Create an OmniFocus task from Trunk

Post here any hints or tips you have for using Trunk

Create an OmniFocus task from Trunk

Postby psidnell » Wed Jan 18, 2012 8:34 am

This link:

<a href="omnifocus:///add?note">Omni+</a>

Opens OmniFocus in create task mode, I have it as one of the items in my page header.
psidnell
 
Posts: 17
Joined: Wed Jan 11, 2012 9:46 pm

Re: Create an OmniFocus task from Trunk

Postby matthoffner » Wed Apr 11, 2012 12:25 am

Thank you.
matthoffner
 
Posts: 6
Joined: Wed Apr 11, 2012 12:22 am

Re: Create an OmniFocus task from Trunk

Postby Joseph » Sun Apr 29, 2012 1:25 am

How can I replace "CurrentPage" in the example code below with the name of the current page?

I would like to use this in Special:Footer. Thank you!

<a href="omnifocus:///add?name=Review&note=tn://CurrentPage">Add to OmniFocus</a>
Joseph
 
Posts: 1
Joined: Sun Apr 29, 2012 1:10 am

Re: Create an OmniFocus task from Trunk

Postby mgkennard » Wed May 02, 2012 9:43 pm

You could do this using Lua scripting.

Something like:

return '<a href="omnifocus:///add?name=Review&note=tn://' .. page.title .. '">Add to OmniFocus</a>'

Put the above line in a new page called AddOmnifocusLink.lua and then write {{lua AddOmnifocusLink.lua}} into Special:Header or Special:Footer.

(Note the link in the note doesn't always work using the above code. However it could be made to with a little more tweaking!)

Matthew
Apps On The Move
mgkennard
Site Admin
 
Posts: 758
Joined: Mon Jul 21, 2008 2:40 pm


Return to Hints and tips

Who is online

Users browsing this forum: No registered users and 0 guests

cron