Hi All,
I'm trying to write a Apple Script to get the shapes in a selection exported into individual png files in Omni Graffle 5 Professional.
For that purpose, I modified the Applescript about
exporting Canvases:
Code:
tell application "Finder"
set saveFolder to desktop as string
end tell
tell application "OmniGraffle Professional"
tell canvas of document of front window
set shapeCount to count of shapes of selection
repeat with shapeNumber from 1 to shapeCount
set currentShape of selection to shapeNumber
save currentShape as "png" in (saveFolder & "ssh" & shapeNumber & ".png")
end repeat
end tell
end tell
The problem is, on execution of the Script I get the following error message:
" Can't make shapes of selection of canvas of document of window 1 of "OmniGraffle Professional 5" into type reference,
I am a relative newbie to AppleScript, so I'm probably missing something.
Any help would be greatly appreciated!!
Thanks in advance!
Toby