Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonpittman/6be82d40e415de200f60 to your computer and use it in GitHub Desktop.
Save brandonpittman/6be82d40e415de200f60 to your computer and use it in GitHub Desktop.
set OmniFocus task with video url note title
tell application "OmniFocus"
tell default document
set inbox_tasks to every inbox task
repeat with t in inbox_tasks
set t_name to (name of t) as Unicode text
set t_note to (note of t) as Unicode text
if matchResult of (find text "[w|W]atch" in t_name with regexp) exists then
set t_url to do shell script "/Users/brandonpittman/.rbenv/shims/ruby /Users/brandonpittman/Dropbox/Documents/Code/Ruby/get_url_title.rb " & t_note
set name of t to "Watch " & t_url
end if
end repeat
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment