Hi
I just want to get the name of a selected task
I do:
I just want to get the name of a selected task
I do:
tell application "OmniPlan"it returns:
-- 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
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?