Skip to content

Instantly share code, notes, and snippets.

@garybernhardt
Created October 21, 2011 03:42
Show Gist options
  • Save garybernhardt/1303043 to your computer and use it in GitHub Desktop.
Save garybernhardt/1303043 to your computer and use it in GitHub Desktop.
set conf_name to text returned of ¬
(display dialog ¬
"Enter conference name:" with title ¬
"Schedule Conference" default answer ¬
"" default button 2)
tell application "OmniFocus"
tell default document
set newProject to make new project with properties {name:conf_name}
tell project conf_name
make new task with properties {name:"Schedule " & conf_name & " in calendar"}
make new task with properties {name:"Register for " & conf_name}
make new task with properties {name:"Book flight for " & conf_name}
make new task with properties {name:"Book hotel for " & conf_name}
make new task with properties {name:"Add " & conf_name & " flight and hotel to Tripit"}
make new task with properties {name:"Prepare talk for " & conf_name}
make new task with properties {name:"Prerecord DAS screencasts for " & conf_name}
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment