Skip to content

Instantly share code, notes, and snippets.

@johanoloflindberg
Created September 25, 2013 04:27
Show Gist options
  • Save johanoloflindberg/6695164 to your computer and use it in GitHub Desktop.
Save johanoloflindberg/6695164 to your computer and use it in GitHub Desktop.
tell application "Finder" to set file_name to (name of theFile)
tell application "OmniFocus"
set task_title to "Review " & file_name
tell default document
set newTask to make new inbox task with properties {name:task_title}
tell the note of newTask
make new file attachment with properties {file name:theFile, embedded:false}
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment