The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Dead stoopid AppleScript question: finding the tell target (http://forums.omnigroup.com/showthread.php?t=11667)

jporten 2009-03-19 09:06 AM

Dead stoopid AppleScript question: finding the tell target
 
Finding that my OmniOutliner AppleScript chops aren't translating as I'd like. Having trouble saying, "Give me the text of the selected task in OmniFocus". Tried examining a Dan Byler script, but his document tell targets are erroring here. Can someone lend me a hand?

xmas 2009-03-19 10:10 AM

tell application "OmniFocus"

-- get the current selected task
set MyWindow to front window
set MyContent to content of MyWindow
set MySelection to a reference to selected trees of MyContent
set aTask to value of first item in MySelection

name of aTask
--note of aTask
end tell


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

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