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

 
Database size and attachments Thread Tools Search this Thread Display Modes
I am scrambling to trim the size of my database. I've read a bunch of posts, gotten rid of stale clients, run the coalesce script, rebuilt my database, etc.

I think it's all fine now except that I inadvertently filed a few attachments (images, docs) from Mail into OF. They belong to completed tasks and I can't locate them.

I've taken a look inside the OF's database zip file. There are a handful of "mime-attachment.html" files and images from emails, but a search in OF for either jpg, gif or html brings no results.

Any hints?
 
Let's say you have a couple of big attachments lost somewhere in your OmniFocus database. You're sure you don't need them any longer, but how to find them to delete them?

This discussion only applies to OmniFocus 1.1 sneakypeeks, not the original OmniFocus 1.0. The OmniFocus.ofocus file is a package containing a number of files of the following types: clients, new transactions, and ancient history. The client files have .client as their extension (for example, 20080918040533=bfkJ3BUXFgK.client) and describe a particular client in the synchronization pool (machine type, OS version, OmniFocus version, time and date of last sync, client name, time and date of first sync, etc.) These files are used to keep track of which transaction files have been seen or created by a given client so that compaction of the database can be done without losing data. Only transaction files which have been seen by all clients can be compacted. The transaction files (for example, 20080709155423=exr7j6jY8Va+osE9FUQa-Ug.zip) contain descriptions of actions and projects. Transactions which are "old news" for all clients in the pool are compacted into one big file, and new transactions are added in small files. All of these files are made visible by selecting the OmniFocus.ofocus file, control-or-right-clicking to get the contextual menu, and choosing "Show Package Contents" which will open a new window to show the list of files.

To make things simple, I'll assume that the attachments are in the "past history" section of the database, which should be easy to find. It will be the file that is larger than everything else in the usual case.



Find that file, and option-drag it to the desktop (this is a safety measure to protect against accidental modification). Next, double-click the .zip file to expand it. Open up the resulting folder.



There will also be a "contents.xml" file (not shown above). You'll open that up with an application such as BBedit or even TextEdit. But first, you'll want to find where the big attachments are (and more importantly, what they are named). All of the attachments will be in the "data" hierarchy seen above. If you use the Finder's View->Show View Options command to turn on the calculation of folder sizes in the "data" folder, you can quickly see which attachments are space hogs, if you can't tell from the names.



In the example above, "Picture 38.png" is the biggest offender, and has internal reference "cx5z9nHYpRo". So, in our editor we are using to view the "contents.xml" file, we'll search for that string. There will be two hits, but we want the one that looks like this:


Last edited by whpalmer4; 2008-09-17 at 09:42 PM..
 
From this we'll get the task idref of "iyRXSc7CL9C" and search for that to find the actual name of the task so we can search for it in the document:



Now we know the name of the task ("send email to support@mozy.com describing problem"), and can search the entire OmniFocus document (don't forget completed items!) for it.
 
I'm impressed - thanks a million!!!
 
Unfortunately that did not work for me. I addressed the support ninjas once more ... :-)
 
Quote:
Originally Posted by mseibert View Post
Unfortunately that did not work for me. I addressed the support ninjas once more ... :-)
What didn't work about it?
 
I'm in the same boat: I want to find my attachments and delete them. I'm looking for the omnifocus.ofocus file but can't find it anywhere (except for a very old backup I made).

So where is this file? I used to remember working with it a lot, but now I can't find it.

I'm running OF 1.6 (v77) on the desktop, the latest version on my iPhone, and I sync with Bonjour.

Thanks.
 
OmniFocus stores the main database at Library/Application Support/OmniFocus/OmniFocus.ofocus in your home directory.
 
OmniFocus stores the database in

<your home folder>/Library/Application Support/OmniFocus/

Edit: bill beat me to the punch. :-)
 
I think I might make a practice of trimming attachments or deleting long text notes from actions as I tick them off. Often (for me) they are there as collected information to help me do the task, and are not needed once the task has been done.
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Omnifocus Database Size gpetit OmniFocus 1 for Mac 4 2012-03-08 04:46 PM
Managing database size rmathes OmniFocus 1 for Mac 7 2011-07-03 09:34 AM
Storing attachments vs. database size and efficiency areobe OmniFocus for iPad 1 2010-09-09 04:02 PM
Database Size nunez OmniFocus 1 for Mac 9 2010-01-11 04:53 PM
OF Database size.. wooster OmniFocus 1 for Mac 8 2009-10-28 12:09 PM


All times are GMT -8. The time now is 02:20 AM.


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