The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniPlan Extras (http://forums.omnigroup.com/forumdisplay.php?f=45)
-   -   omniplan applescript create milestones (http://forums.omnigroup.com/showthread.php?t=22395)

xtream 2011-10-17 08:11 AM

omniplan applescript create milestones
 
Hi all,

Could you please tell, how to create a new milestone task using AppleScript?

xtream 2011-10-17 09:24 AM

Got it myself
tell application "OmniPlan"
--using terms from "OmniPlan"

set _document to make new document
set _project to project of my _document
set _tasks to tasks of _project
repeat with i from 1 to the count of _tasks
set task type of (item i of _tasks) to milestone task
end repeat
end tell


All times are GMT -8. The time now is 01:16 AM.

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