Skip to content

Instantly share code, notes, and snippets.

@ahmadvaroqua
Last active September 25, 2015 15:28
Show Gist options
  • Save ahmadvaroqua/943595 to your computer and use it in GitHub Desktop.
Save ahmadvaroqua/943595 to your computer and use it in GitHub Desktop.
-- Save this file in ~/Library/Application Support/Quicksilver/Actions/
-- You may need to create the "Actions" folder if it's not there already
-- After you've saved it there, you need to restart Quicksilver:
-- Invoke quicksilver, then press: control+command+q
-- You should be good to go
using terms from application "Quicksilver"
on process text task
-- Add your tracker.vg username and password below
set ts_username to "yourusername"
set ts_password to "yourpassword"
-- Don't touch the following four lines
set quoted_username to quoted form of ("username=" & ts_username)
set quoted_password to quoted form of ("password=" & ts_password)
set quoted_task to quoted form of ("task=" & task)
set results to do shell script "curl -F " & quoted_username & " -F " & quoted_password & " -F " & quoted_task & " http://timestreamapp.com/api/task/add"
-- Notification options:
-- Uncomment if you want to use the Mac dialog to show success or error
-- display dialog results
-- Uncomment the two lines below if you want growl to show success or error
set quoted_results to quoted form of (results)
do shell script "growlnotify -m " & quoted_results
-- Uncomment below if you don't want any notifications
-- return nothing
end process text
end using terms from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment