Created
May 23, 2014 01:32
-
-
Save brandonpittman/6be82d40e415de200f60 to your computer and use it in GitHub Desktop.
set OmniFocus task with video url note title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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