The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Populate Template Placeholders, 0.6.1 (http://forums.omnigroup.com/showthread.php?t=12870)

whpalmer4 2009-12-19 07:20 AM

Henri, the middle section of the following code fragment shows how you can set those values.

[code]
tell application "OmniFocus"
tell front document
tell document window 1
set theSelectedItems to selected trees of content
set selectedItem to value of item 1 of theSelectedItems


-- set next review date to tomorrow
set next review date of selectedItem to (current date) + (1 * days)
-- set review interval to 3 weeks
set reviewInterval to {fixed:true, unit:week, steps:3}
set review interval of selectedItem to reviewInterval


end tell
end tell
end tell
[/code]

henri 2009-12-20 09:30 AM

Awesome! Thank you.

--Henri

bcap 2011-02-03 05:56 AM

Question everyone ...

I followed the instructions, and I can get it to duplicate a project, but it isn't replacing the placeholder text nor changing the date for me. I am getting the prompt for the new "Due Date" and for the "ClientName" (what my placeholder text is), but it won't fill it in for me.

Any ideas?

whpalmer4 2011-02-03 10:01 AM

Can you post a screenshot of your template, making sure to show the notes field for the template and the start and due date columns?

If you don't spell the placeholder exactly the same in the notes field and where you use it, no substitution will be made, and no warning given.

Did you heed the following line in the instructions?[indent]
Note, the project must have a start or due date (or both) or the script will not set dates on the actions.
[/indent]

skillet 2011-10-08 11:38 AM

If you already have a list you have been using in a text document Rob Trew's script is a nice quick start to transferring the info to OmniFocus through cut and paste.

[url]http://forums.omnigroup.com/showthread.php?t=4883[/url]

Great script Curt, I finally got around to using this to set up some templates. Thanks for the screen shot in your instructions, I didn't realize you could put comments on a project but makes sense.

By the way from the instructions it mentions
"With OmniFocus running, hold down the Option key and select the Populate Template Placeholders script from the script menu. The script should open in Script Editor."

This didn't work for me did OmniFocus get rid of this feature?

whpalmer4 2011-10-08 12:36 PM

Still works for me in 10.6.8 with OF 1.9.3.

skillet 2011-10-10 12:25 PM

Thanks whpalmer4, that is the same set up I have on my systems, I tried this on three computers as well and closed ever background and foreground app I had open and it still didn't work for me. Strange, I am clicking an script in the toolbar while holding down option and it just runs the script.

Others strange things on one of my home computer it doesn't let me use one of my key commands for a perspective. I have checked my system keyboard shortcuts and nothing uses it and no other app or background app is open that I know of. I wish I could get the ghost out and knew of a way to track things like that down, because that doesn't make sense.

whpalmer4 2011-10-11 10:44 AM

[QUOTE=skillet;102646]I am clicking an script [b]in the toolbar[/b] while holding down option and it just runs the script. [/quote]
There's your problem, this works when you select the script from the Script menu, not the toolbar. The devil's in the details :-)

skillet 2011-10-14 07:21 AM

[QUOTE=whpalmer4;102707]There's your problem, this works when you select the script from the Script menu, not the toolbar. The devil's in the details :-)[/QUOTE]


Thanks Bill, I figured it was something silly, I completely forgot that the applications scripts now show up in the scripts menu (I've had that set up for a couple years now). I was remembering the old way where it would show up next to the App menus at the far right if you had added any for a particular app.

Just a reference for anyone else that has my problem see post one.
[url]http://forums.omnigroup.com/showthread.php?t=7453[/url]


All times are GMT -8. The time now is 05:23 PM.

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