mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 16:50:12 +01:00
15 lines
No EOL
542 B
Text
15 lines
No EOL
542 B
Text
using terms from application "Quicksilver"
|
|
on process text ThisClipping
|
|
|
|
set myUsername to "<%= current_user.login %>"
|
|
set myToken to "<%= current_user.token %>"
|
|
set myContextID to <%= context.id %> (* <%= context.name %> *)
|
|
|
|
tell application "<%= home_url %>backend/api"
|
|
set returnValue to call xmlrpc {method name:"NewTodo", parameters:{myUsername, myToken, myContextID, ThisClipping}}
|
|
end tell
|
|
tell application "Quicksilver"
|
|
show notification "Tracks: action added."
|
|
end tell
|
|
end process text
|
|
end using terms from |