View Single Post
Originally Posted by Brian View Post
Hmmm... okay, I'm able to work around the bug in the following while visible is set to true, but once I run the script with that set back to false, I get the same 'no window' response to a click on the dock icon.
Thanks for your help. I can reproduce it with visible set either way. Setting visible to true pops up the window, the export is completed, then the dock icon no longer works. Interestingly, the export doesn't appear to be happening if visible is set to false.

tell application "OmniFocus"
	tell default document		
		set theWindow to make new document window with properties {visible:true}
		tell theWindow
			set perspective name to "Home"
			save in "Users:username:Dropbox:HomeContextExportForMobile" as "HTML"
		end tell
	end tell
end tell