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

 
Weird issue with AppleScript and "open" function Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
I have some scripts that automate the export of multi-canvas files, but the scripts seem to fail on the "open" call. Specifically, they hang. I can replicate the problem with a simple script I found on the forums here:

Code:
set myDocument to (choose file with prompt "Select an Omnigraffle file")
tell application "OmniGraffle Professional 5"
	set oDoc to open alias myDocument
	set numCanvas to count of canvases of oDoc
end tell
The event/reply log for running this script is:

Code:
tell application "AppleScript Editor"
	choose file with prompt "Select an Omnigraffle file"
		--> alias "Macintosh HD:Users:einarnn:Droplets:cca-visualization.graffle"
end tell
tell application "OmniGraffle Professional 5"
	open alias (alias "Macintosh HD:Users:einarnn:Droplets:cca-visualization.graffle")
Result:
error "OmniGraffle Professional 5 got an error: AppleEvent timed out." number -1712
Any hints as to how to resolve this problem is will be gratefully received!!

Cheers,

Einar
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
"Next Action Starts Today" Issue kray OmniFocus 1 for Mac 16 2011-02-03 05:39 PM
Weird dates... "today" is wrong date --> 2059, 2084 etc.! electroglodyte OmniFocus 1 for Mac 0 2009-11-03 09:39 AM
Issue using AppleScript "activate" command chucksense OmniFocus Extras 2 2008-02-10 07:10 AM


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


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