OmniFocus 2 scripts

In this directory you will find some scripting I did for adapting OmniFocus 2 to my workflow. I missed being able to label actions to provide some means to preallocate work to specific days (marking stuff with weekday labels). The combination of scripts here does just that by toggling labels on one or more actions selected in OF2. If you then search for that label enclosed in curly brackets ('{}'), possibly through a custom perspective, you can easily find all the actions labelled that way.

The script is split into two parts really: The 'library' that contains the actual script, and a wrapper that can be copied and renamed that provides an easy way to adding new labels.

Installation

Copy the file OmniFocusLib.scpt and label.scpt into Omnifocus' script directory, which you can find by selecting 'Open Scripts Folder' in the 'Help' menu in OmniFocus 2.

To test the labelling create a dummy entry in your OmniFocus inbox and select it. Then run label.scpt from the Apple Script editor. If everything is working, you should see '{label}' being prefixed to the title of the selected entries. If you then copy the file 'label.scpt' to for example 'wed.scpt' in the same directory, and run the script by that name the label '{wed}' will be added. If you run either script again you will see the appropriate label being removed.

If you add a script -.scpt you can use it to remove all labels (anything that looks like '{...} ' from the title.

Now copy the file 'label.scpt' to the label names you need and add these scripts to your customised toolbar so you can click on them. Also consider installing BetterTouchTool and add keyboard shortcuts so you can quickly toggle labels by hitting keystrokes.

Custom perspectives (OF Pro)

You can create a perspective that selects tasks for one specific label by creating a new one and then setting the 'Find text' field in the 'Filter' section to for example '{wed}' to search for all actions labelled with '{wed} '.

To find all tasks that have been labelled set the search string to '{ }' (note the space in between the two braces).

Caveat: Any action that contains the string '{label}' anywhere in the action title, project name, or note field will match the custom perspective. This can't be helped until OmniGroup finally starts listening to their user base and implements proper labelling. Or implements regular expressions in their search field. But I don't expect that to be implemented.

Contact

If you have any questions or comments, send me a private message in the OmniFocus forums, user name NickHibma. Thanks in advance.

Disclaimer: If it breaks, you get to keep the pieces.



[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]OmniFocusLib.scpt2015-01-28 15:35 30K 
[   ]label.scpt2015-01-28 15:35 33K