View Single Post
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