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 1 for Mac
FAQ Members List Calendar Today's Posts

 
Unable to execute SQL-New Mountain Lion error message Thread Tools Search this Thread Display Modes
Good !

More generally, running the following Applescript should normally track down the cache location.

Code:
set strPath to GetCachePath()
display dialog strPath
set the clipboard to strPath

on GetCachePath()
	set strDefaultFolder to "~/Library/Caches/com.omnigroup.OmniFocus"
	set strAppStoreFolder to "~/Library/Caches/com.omnigroup.OmniFocus.MacAppStore"
	set strDBName to "OmniFocusDatabase2"
	
	set strCacheFolder to strDefaultFolder
	if (do shell script ("test -d " & strCacheFolder & "; echo $?")) ≠ "0" then
		set strCacheFolder to strAppStoreFolder
		if (do shell script ("test -d " & strCacheFolder & "; echo $?")) ≠ "0" then return ""
	end if
	
	return strCacheFolder & "/" & strDBName
end GetCachePath
 
Quote:
Originally Posted by kagey View Post
Looks like OmniFocus trashed its own cache!
I just reopened it and no error message, and now the Folder has appeared on cache.
Thankyou:-)
Ditto. Self-healing. Bravo!
 
This worked for me, too. I did have to force quit it in order to quit, but it all looks good now.
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
WebDAV working on Mountain Lion Server, .ics calendar file gives error viticci Other WebDAV 0 2012-12-04 10:39 AM
Error Message: Unable to read document, help please javimazzaf OmniFocus 1 for Mac 2 2012-10-19 01:40 PM
Unable to sync, error message 405 amy OmniFocus for iPad 1 2011-11-18 02:49 PM
"Unable to Execute SQL" after 10.7/Lion update. [A: Rebooting Mac resolves.] khcole OmniFocus 1 for Mac 7 2011-07-21 06:43 PM
HELP! Error Message: Unable to execute SQL. [Resolved by reinstall] freedomcars OmniFocus 1 for Mac 2 2010-04-05 05:02 PM


All times are GMT -8. The time now is 06:53 PM.


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