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 > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
AppleScript to sync and then quit? Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
I am trying to get OmniFocus to sync and then quit itself once it has finished syncing.

Somewhere along the way I found this AppleScript to tell OmniFocus to sync:
Code:
	osascript << EOI
	if application "OmniFocus" is running then
		tell application "OmniFocus"
			synchronize front document
		end tell
	end if
	EOI
However, I noticed that AppleScript seems to just tell OmniFocus to do that, but it 'returns' before the sync is actually finished.

1. Is there a way to tell OmniFocus to "Sync and Then Quit" using AppleScript, and if so, how?

2. Am I correct that if I choose 'Quit' from OmniFocus' menu, and it needs to sync first, it will attempt to do so before quitting?

(If the answer to #2 is yes then I don't really need an answer to #1, except out of curiosity.)
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -8. The time now is 07:49 AM.


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