The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniPlan Extras (http://forums.omnigroup.com/forumdisplay.php?f=45)
-   -   Applescript getName (http://forums.omnigroup.com/showthread.php?t=17458)

mattao 2010-08-20 06:27 AM

Applescript getName
 
Hi

I just want to get the name of a selected task

I do:
[INDENT][I]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[/I][/INDENT]
it returns:
[INDENT][I]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"}[/I][/INDENT]
Could you help?

mattao 2010-08-20 06:38 AM

Send a selected task to ical
 
1 Attachment(s)
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


All times are GMT -8. The time now is 04:15 PM.

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