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:

Quote:
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!
__________________
Cheers,

Curt
 
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.
__________________
Cheers,

Curt

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.
__________________
Cheers,

Curt
 
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.

BZ
 
Apologies if this isn't the right place to raise this.

I downloaded version .7 and when I tried to use it I got the following error

AppleScript reported the following error:
OmniFocus got an error: Canít get name of value of tree 1 of content of document window id 14081 of document id "iAF1BObmx-F".
 
Odd, I've never seen that particular error. What steps do you have to take to reproduce the error? What versions of OF and the operating system are you using?
__________________
Cheers,

Curt
 
Quote:
Originally Posted by kingsinger View Post
AppleScript reported the following error:
OmniFocus got an error: Canít get name of value of tree 1 of content of document window id 14081 of document id "iAF1BObmx-F".
Glancing at the script, I would guess that it's just an unhandled selection.

Try, for example, to run it while selecting the "No Context" icon in the content pane or sidebar of Context view (or the Inbox icon in the content pane or sidebar of Project view): it would probably trigger an error of this kind. (These nodes don't have name properties).

Rob

Last edited by RobTrew; 2009-07-02 at 09:37 AM..
 
Thanks, Rob. Interestingly, those nodes have name properties, but if you take the name of the value of such a node you get an error.

That gave me a better way to do my checks for correct selections. Version 0.7.1 is now available from my software page.
__________________
Cheers,

Curt
 
 


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 08:07 AM.


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