psidnell / ofexport

An OmniFocus database export tool
Other
140 stars 19 forks source link

working with Omnifocus2 from Mac App store #8

Open deladriere opened 10 years ago

deladriere commented 10 years ago

Hi I have upgraded Omnifocus to the version 2 from the Mac App store ofexport still use my old database generated before I upgraded I guess I need to edit of export.json but I don't know the path I need to add/correct Thx for your help

psidnell commented 10 years ago

Currently the top of my ofexport.json looks like this, but I'm using the version direct from Omni so I don't know what the correct MAS config is at the moment:

"db_search_path": [
    "/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus2/OmniFocusDatabase2",
    "/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2",
    "/Library/Caches/com.omnigroup.OmniFocus.MacAppStore/OmniFocusDatabase2",
    "/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus2/OmniFocusDatabase2"
],
deladriere commented 10 years ago

does it need to search the cache folder AND OR the containers folder I have so many of them with the 2 version of Omni so I don't know which path I actually use the only fresh data I can see in the library folder are under /Library/Caches/Metadata/com.omnigroup.OmniFocus2.MacAppStore but I I use only this line in ofexport.json it doesn't works

psidnell commented 10 years ago

What might (probably) is confusing you is that ofexport prepends your home directory onto this those paths - which are the names of the actual (possible) sqlite db file names.

For example my db is at:

~/Library/Containers/com.omnigroup.OmniFocus2/Data/Library/Caches/com.omnigroup.OmniFocus2/OmniFocusDatabase2

Which is found by the first entry. If you search in the Library in your home folder from the command line, you should find it (if they haven't renamed it):

find ~/Library/ -name OmniFocusDatabase2

If that finds the new MAS db file you can paste the full path the above command finds (from "/Library/..." onwards) into ofexport.json

deladriere commented 10 years ago

I got it to works with this in my ofexport.json header : "/Library/Caches/com.omnigroup.OmniFocus/OmniFocusDatabase2", "/Library/Caches/com.omnigroup.OmniFocus.MacAppStore/OmniFocusDatabase2", "/Library/Containers/com.omnigroup.OmniFocus2.MacAppStore/Data/Library/Caches/com.omnigroup.OmniFocus2.MacAppStore/OmniFocusDatabase2"

many thanks

psidnell commented 10 years ago

Great.