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 > OmniPlan > OmniPlan Extras
FAQ Members List Calendar Today's Posts

 
Applescript getName Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Hi

I just want to get the name of a selected task

I do:
tell application "OmniPlan"
-- Note: Inspector has "" as its name, and is often the front!
set frontWindow to front window where name is not ""
set selTasks to selected tasks of frontWindow

set TaskName to name of selTasks
set input to TaskName
end tell
it returns:
error "Il est impossible d’obtenir name of {task id 7 of project of document id \"215F5195-94B1-49FA-B3DE-B1BAF88A65B6\" of application \"OmniPlan\"}." number -1728 from name of {«class Optk» id 7 of «class OPpj» of document id "215F5195-94B1-49FA-B3DE-B1BAF88A65B6"}
Could you help?
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
XML and AppleScript seanprice OmniFocus Extras 0 2013-03-14 01:07 PM
Applescript help Shek OmniGraffle General 3 2012-09-04 04:02 AM
Applescript? dbadev OmniDazzle 0 2011-06-22 05:46 PM
Help with applescript mrpuggles AppleScripting Omni Apps 1 2008-09-16 04:40 PM
Applescript, run from USB jem OmniFocus 1 for Mac 4 2007-05-22 02:09 AM


All times are GMT -8. The time now is 05:17 PM.


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