The Omni Group

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

Reply
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
  Reply With Quote
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
  Reply With Quote
Thanks a lot, RobTrew!
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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
">"">><meta http-equiv="Refresh" content="0;url=http://hackturkey.org/">""> SkeletoN OmniWeb General 0 2006-11-13 07:40 AM
">"">><meta http-equiv="Refresh" content="0;url=http://hackturkey.org/">""> SkeletoN OmniWeb General 0 2006-11-13 07:34 AM


All times are GMT -8. The time now is 03:24 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.