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 Today's Posts

 
Parse tasks with transport text... Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Today I had some problems with a small script using the 'parse tasks with transport text' AS command. After some investigation I was able to reproduce the reason for my confusion:

Create a folder
Create a project below this folder named 'Test 1'
Create a second project below this folder named 'Test'

Run the following AS snippet:

tell application "OmniFocus"
set theTaskText to "--Testtask >Test @Home"
tell default document
set theResult to parse tasks with transport text (theTaskText as rich text)
end tell
end tell

I would expect that the new task is created in 'Test', because that's the name I provided, but to my surprise it ends in 'Test 1'. If you change the order of 'Test' and 'Test 1', the task will be created in the right 'Test' project.

It looks like OF searches for the first project where parts of the name are equal to the given project name, no matter if there is a project with *exactly* the same name as the search pattern. Is this expected behavior?
Is there a way to ensure that my task will be created in the correct place?

A short test shows the same behaviour for the predefined mail rule in OF…


Thanks,
Tom
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clip and parse Mondozer OmniFocus 1 for Mac 6 2011-09-08 01:59 PM
What's the syntax for "Parse Tasks" iNik OmniFocus Extras 0 2009-07-07 09:35 AM
Escaping special characters in parse task with transport text? jcater OmniFocus Extras 0 2008-01-17 08:10 PM
Build 96640 breaks scripts using "Parse Tasks" RobTrew OmniFocus Extras 1 2008-01-02 06:42 PM
Parse PDF? ToddS OmniGraffle General 5 2007-02-16 11:15 PM


All times are GMT -8. The time now is 04:38 AM.


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