Sunday, June 2, 2013

Omnigraffle AppleScript bug: moving a canvas removes all shared layers on that canvas

Just so you AppleScripters out there are aware, this bug exists in OmniGraffle's AppleScript implementation as of version 5.4.2.

Moving a canvas through AppleScript to the beginning or end of the canvas list removes all shared layers of the moved canvas, even shared layers that are the last instance of that layer.

For example, the following script will remove all shared layers from the second canvas when it is moved to the front of the document.

-- warning: running this script will remove shared layers
tell application id "OGfl"
    tell document of front window
        set c to item 2 of canvases
        move c to beginning of canvases
    end tell
end tell

Also, if any of the shared layers is the last instance of that shared layer, you won't be able to get it back (other than using Undo).

The folks at Omni Group have added this to their bug database.

1 comment:

  1. Real estate, often described as one of the cornerstones of the modern economy, is a multifaceted industry with deep roots in human civilization. It encompasses the development, purchase, sale, and management of land, properties, and structures, both residential and commercial. Real estate is an essential component of our lives, shaping the way we live, work, and interact with our environment.Hillock Green Showroom

    ReplyDelete