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

Keeping iPhone Sync Speedy [OBSOLETE: use Compact instead] Thread Tools Search this Thread Display Modes
There's an issue in the OmniFocus for iPhone 1.0.2 and earlier which causes the sync process to take longer than it should. We'll have a fix in the 1.0.3 release, but for the time being, you'll want to do the following to work around the problem.

Sync all your desktop computers, then run the attached applescript attached to this post on whichever Mac has the most up-to-date info.
(You can run an applescript by opening the "Script Editor" application, opening the script file, and pressing the "Run" button.)
Next, open up your iDisk (or whichever location you're storing your sync database at) and rename that copy of the OmniFocus database to "OmniFocus-Old".
(This allows you to revert to the data at some point in the future if necessary.)
Sync from the same machine you ran the applescript on.
Launch OmniFocus on your phone and start a sync; when asked whether to use the 'local' or 'server' copy, choose 'server'.

Your syncs should now take a reasonable amount of time again.
Attached Files
File Type: zip (3.1 KB, 927 views)

Last edited by Ken Case; 2009-06-23 at 05:21 AM.. Reason: Added a note to the title that this script is obsolete
I'm posting the text of the applescript here, for folks who don't want to have to create a forum account in order to download the applescript file.

They can copy the code below, paste it into a new Script Editor document, and save and/or run the script that way.

set temporaryArchive to POSIX file "/tmp/CoalescedDatabase.ofocus"
tell application "Finder"
		-- Make sure our temporary archive doesn't already exist
		delete temporaryArchive
	end try
end tell

tell application "OmniFocus"
	-- Find the database path
	set databasePath to file of front document
	-- Save this database into our temporary archive
	archive front document in temporaryArchive without summaries
	-- Close our broken database, open the repaired temporary archive
	close front document
	open temporaryArchive without using cache
	-- Replace our local database with the coalesced copy
	tell application "Finder"
		delete databasePath
	end tell
	archive front document in databasePath without summaries
	-- Open the coalesced database
	close front document
	open databasePath without using cache
end tell

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to tell omnifocus to compact database by applescript? pumemei OmniFocus 1 for Mac 0 2010-06-08 02:11 AM
Apple script for keeping project names in sync ptorngaard OmniFocus Extras 1 2009-03-08 01:00 PM
Praise for Keeping the Data on the iPhone SpiralOcean OmniFocus for iPhone 0 2008-09-18 05:35 PM
"Keeping Sync Speedy" questions Jay Levitt OmniFocus Syncing 11 2008-08-08 04:19 PM
Thank you for keeping data on the iPhone SpiralOcean OmniFocus for iPhone 0 2008-07-28 05:35 PM

All times are GMT -8. The time now is 01:35 AM.

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