Marek Kowalczyk
2008-02-24, 11:45 PM
Hi,
I often find myself needing to read/review a document that's sitting somewhere on my disk.
Rather than putting all the documents needing a review to a "To be reviewed" folder, I decided to try put toghether a quick and dirty script to help me with that, inspired by Curt Cliftons Send URL to OF (http://www.rose-hulman.edu/~clifton/software.html#SendURL-OF).
The script gets the name of the selected Finder documents and creates an OF task in the inbox called "Read XXX:YYY:ZZZ.pdf".
Ideally:
the task name should just be the file name, without the full path
the task note should contain the alias to the file
the script should check if one document is selected, and not a folder
but that's beyond my non-existent knowledge of Apple Script.
Maybe you'd like to add this functionality.
-- Written by Marek Kowalczyk, inspired by Curt Clifton
property actionPrefix : "Read "
tell application "Finder"
set theName to the selection
end tell
tell front document of application "OmniFocus"
make new inbox task with properties {name:(actionPrefix & theName)}
end tell
I often find myself needing to read/review a document that's sitting somewhere on my disk.
Rather than putting all the documents needing a review to a "To be reviewed" folder, I decided to try put toghether a quick and dirty script to help me with that, inspired by Curt Cliftons Send URL to OF (http://www.rose-hulman.edu/~clifton/software.html#SendURL-OF).
The script gets the name of the selected Finder documents and creates an OF task in the inbox called "Read XXX:YYY:ZZZ.pdf".
Ideally:
the task name should just be the file name, without the full path
the task note should contain the alias to the file
the script should check if one document is selected, and not a folder
but that's beyond my non-existent knowledge of Apple Script.
Maybe you'd like to add this functionality.
-- Written by Marek Kowalczyk, inspired by Curt Clifton
property actionPrefix : "Read "
tell application "Finder"
set theName to the selection
end tell
tell front document of application "OmniFocus"
make new inbox task with properties {name:(actionPrefix & theName)}
end tell