The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Apple-Script triggered exports of selection into separate images in OmniGraffle 5 Pro Thread Tools Search this Thread Display Modes
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:

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!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Omnigraffle 5.4 - Apple Script Font Issue marxes OmniGraffle General 6 2012-06-13 09:17 AM
Images in exports to Keynote Fredrik OmniOutliner 3 for Mac 0 2011-11-21 12:55 AM
Placing several images at once (script) RobTrew OmniGraffle General 5 2011-07-22 08:16 AM
Script: Focus on Current Selection jeremydb OmniFocus Extras 3 2009-06-29 10:04 AM
Apple Script for layer visibility in OmniGraffle Pro 4? nicoledb OmniGraffle General 0 2009-02-04 07:52 AM

All times are GMT -8. The time now is 04:05 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.