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

 
Canned Projects Thread Tools Search this Thread Display Modes
Quote:
Originally Posted by yucca
A "simple" (since I'm not having to code this) import/export project feature would do the trick, wouldn't it?
Not sure I want to import/export everytime I want to start a new project.

Easier, I think would be the ability to take a project and use a "Save as Template" command which would put it in a template mode. From there you could edit it etc.

To start a new project with a template use the "New Project from Template" menu item or key command and choose which template you want.

BZ
 
Ooh, ooh! Variables in projects templates! Ooh. That's so obviously brilliant.

Count me an enthusiastic supporter for that suggestion.
 
Quote:
Originally Posted by curt.clifton
Ooh, ooh! Variables in projects templates! Ooh. That's so obviously brilliant.

Count me an enthusiastic supporter for that suggestion.
Thanks! :)

BZ
 
Templates were the only thing missing in the current sneaky peak 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 interface--again based on user input. The only thing missing for my needs is automatic duplication of the template project. Unfortunately script-based duplication is a crasher in the current build. So to use a template you must manually duplicate it first, then run the script, then move your populated project to the folder you want it to "live" in.

Download: the most recent version is available here


To install, download the script and save it in ~/Library/Scripts/Applications/OmniFocus. You can then use Customize Toolbar to add the script to the toolbar in OmniFocus.

To use, first you need to create a project template in OmniFocus. Here's an example template:

Click image for larger version

Name:	SampleProject.jpg
Views:	525
Size:	39.0 KB
ID:	218

I use a top-level folder named Templates, marked inactive, to hold my templates.

To create a template:

1. Create a project with actions and action groups.

2. Include placeholders in the project and action descriptions. Placeholders will be replaced with project-specific text when the template is populated. Placeholders are phrases without spaces, surrounded by double angle quotation marks (also know as guillemets). For example, «RoomName» or «Client». On a US keyboard this punctuation can be typed with Option-\ and Option-Shift-\. The placeholder markers can be changed by editing properties in the script.

3. List all of the placeholders in the last line of the note field of the project. For example, "«RoomName» «Client»". This allows the script to determine what values to prompt you for.

4. If desired, set start and due dates for the project and for any items within the project. Dates will be adjusted when the template is populated.

To populate a template:

1. Duplicate the template project.

2. Select just the root item of the duplicate project.

3. Run this script from the script menu.

4. When prompted, enter values for each of the placeholders.

5. If prompted, enter a new start or due date from the project.

6. The script will create a duplicate of the project template with placeholders and dates filled it.

7. Drag the new project to the proper folder in your system.

I hope others find this useful. I'll post a new version once the duplication crasher is fixed.

Last edited by curt.clifton; 2007-06-17 at 03:00 PM.. Reason: Changed download link to point to my web page
 
Quote:
Originally Posted by curt.clifton
You can then use Customize Toolbar to add the script to the toolbar in OmniFocus.
Am I the only one for whom the scripts in that folder appear as unlabeled icons in the Customize Toolbar set? I can't tell which icon is which script!
 
Quote:
Originally Posted by Craig
Am I the only one for whom the scripts in that folder appear as unlabeled icons in the Customize Toolbar set? I can't tell which icon is which script!
That's a known (by Omni) bug.
 
Wow... you took my idea and made it better (with different parameters).

Great work!

A few suggestions.

- Remove the placeholder placeholders in the note field after you run the script.

- Allow to run the script on the original template and it would just make a copy for you

Good stuff.

BZ
 
Quote:
Originally Posted by BwanaZulia
Wow... you took my idea and made it better (with different parameters).

Great work!

A few suggestions.

- Remove the placeholder placeholders in the note field after you run the script.

- Allow to run the script on the original template and it would just make a copy for you

Good stuff.

BZ
Glad you like it! Good suggestion to remove the list of placeholders; I'll do that in a future version. The current version has code to make the copy, but it crashes the current alpha of OmniFocus. Once the crasher is fixed I'll change the script to enable the auto-copying.
 
I've posted a new version of my Populate Template Placeholders script. This one clears the placeholder placeholders from the note field, as BZ suggested.

Download: from my web page
 
Quote:
It probably won't make it into 1.0, but it's on our radar.
I'd like to put in my third request: Omnifolks, please give us visibility into what is and isn't planned for 1.0 and 2.0.

It'd improve the sensation that you're listening, tell us what's already been considered, and set expectations for the rest of the cycle.
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Collapsing Sub-Projects within Projects? banderson317 OmniFocus for iPad 2 2013-01-08 11:51 AM
Can't move projects in the left sidebar (projects view) Stevo OmniFocus 1 for Mac 1 2012-07-16 07:45 AM
Projects within Projects - Help understanding to do it the correct way carlsson Applying OmniFocus 9 2009-10-22 03:48 PM
Canned Perspectives - Get Rid of & Replace with Templates joelande OmniFocus 1 for Mac 1 2007-12-19 12:48 PM
Task as Projects to get around multiple projects on one sheet kenyondesign OmniPlan General 5 2007-10-14 02:07 PM


All times are GMT -8. The time now is 07:50 PM.


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