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 Today's Posts

 
AppleScript error: "Can't Get Alias" Thread Tools Search this Thread Display Modes
I'm writing an AppleScript to export objects on individual layers in Omnigraffle. It opens the file as it's supposed to, but then at line 4, I get an error: OmniGraffle 5 got an error: Can’t get every canvas of alias "[path of file chosen]". Any idea why?

Code:
set myDocument to (choose file with prompt "Select an Omnigraffle file")
tell application "OmniGraffle 5"
	open myDocument
	set numCanvas to count of canvases of myDocument
end tell
 
Code:
set myDocument to (choose file with prompt "Select an Omnigraffle file")
tell application "OmniGraffle Professional 5"
	set oDoc to open myDocument
	set numCanvas to count of canvases of oDoc
end tell
 
Thanks a lot, RobTrew!
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Import error: OmniGraffle Pro cannot open files in the "XML text" format MCV OmniGraffle General 5 2012-08-31 10:43 AM
What's a "forbidden" or "403" error when syncing with MobileMe/iDisk? giessler iDisk/MobileMe/.Mac Syncing 19 2011-06-21 07:33 PM
"Server returned "redirected" (330)" error jasong OmniFocus 1 for Mac 3 2010-09-29 09:02 AM


All times are GMT -8. The time now is 06:20 PM.


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