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 Search Today's Posts Mark Forums Read

Applescript getName Thread Tools Search this Thread Display Modes

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?
Incidentally i post this "service" wich allow you to autocreate a iCalevent from whatever text is selected in whatever app.

The event is created at the action date and is one hour long.

My goal is to spot the task I GOT to do today and send it to ical.

Just put it in your ../library/Services folder in order to work
Attached Files
File Type: zip (65.7 KB, 547 views)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:52 PM.

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