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

Populate Template Placeholders, 0.6.1 Thread Tools Search this Thread Display Modes
I've posted an updated version of my Populate Template Placeholders script to my software page. Here's a description of the script lifted from there:

Templates were the only thing missing in the current version of OmniFocus that were part of my old GTD system. But the scripting interface in OmniFocus is solid enough to implement them!

Here is a script that will take an OmniFocus project, replace placeholders with user entered strings, and adjust all dates by some fixed interval-again based on user input. Installation and use instructions are included in the download.

The latest version can handle apostrophes and other punctuation inside the replacement text. Itís also faster and has a shiny new icon so itís spiffy on your tool bar.
Share and enjoy!

Hi Curt -

Thanks for your script. Unfortunately, I get an error when I run it. The line "duplicate (value of item 1 of theSelectedItems) to after last section" throws the following error (translated from German):

Objects of the class "task" cannot be put after <Document: 0xWHATEVER>. scriptSections requires "section".

Any ideas?

Thanks, Jeremy
Sorry for the confusion. You need to select a Project to be populated, not an Action. I'll add code to check for that to a future version of the script.

Edit: Iíve posted that update. Version 0.6.2 is now available.


Last edited by curt.clifton; 2009-06-26 at 09:00 AM.. Reason: Update posted
I actually modified your script to work with actions, as well, and to not require subsitutions, if all you want is to dupe the project to some other time, changing the dates. There is a bug in OF's handling of repeating actions containing nested actions, so this script seems to be a way around it. I can send you the mods, if you want them.
I'm glad the script provided a useful starting point. Feel free to post the mods here so others can use them.

Great script. Been using it forever. Would love for OG to put this in the product, but it has been working so long, I guess it is all good.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate Template Placeholders script Not filling placeholders Tim1 OmniFocus 1 for Mac 2 2013-03-11 03:32 PM
Adding Due and Start Dates for Populate Template Placeholders jessicatmt OmniFocus Extras 1 2012-08-06 10:05 PM
'Populate Template Placeholders' could not complete. Solana OmniFocus 1 for Mac 5 2012-03-21 09:53 AM
Curt Clifton's Populate Template Placeholders bcap OmniFocus Extras 1 2011-02-17 09:31 PM
Populate Template Placeholders Script problem Danoz OmniFocus Extras 8 2007-09-11 03:34 AM

All times are GMT -8. The time now is 09:46 PM.

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