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 > OmniOutliner > OmniOutliner 3 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
losing location of file in front window Thread Tools Search this Thread Display Modes
I've written an applescript to automate taking an OmniOutliner Pro document, save it, dump it to OPML, and then run the OPML through an XSLT filter. Here is the part that works with OmniOutliner:

Code:
tell application "OmniOutliner Professional"
	activate
	set theDoc to the document of window 1 of application "OmniOutliner Professional"
	set whoami to the path of theDoc
	save theDoc -- in whoami
	
	set whoami to my swapExtension(whoami, "opml")
	
	export theDoc to whoami as "OOOPMLDocumentType"
end tell

... script continues with calls to handlers, none of which save the original file ...
After I run the script a few times, going to File > Save causes a sheet to slip down, saying 'The location of the document "yadayada.oo3" cannot be determined'.

This happens even though command-clicking on the file icon in the title bar shows the proper location.

Is there something I'm doing wrong in the script (other than being klutzy or ignorant)?
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem trying to get the perspective name of the front window jhncbrwn OmniFocus Extras 2 2011-08-16 11:12 PM
Location of ofocus file in v1.1 BonafideBM OmniFocus for iPhone 1 2008-11-05 11:21 PM
JavaScript bug: popup window doesn't come to the front Ward OmniWeb Bug Reports 0 2007-11-09 10:27 AM
How to set default window location? migueld OmniWeb General 5 2006-11-20 09:57 AM
Fix default window location bug migueld OmniWeb Feature Requests 0 2006-11-19 12:26 PM


All times are GMT -8. The time now is 02:13 PM.


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