Last active
November 13, 2015 16:37
-
-
Save oliveratgithub/ed7102bd1fb1653c45e7 to your computer and use it in GitHub Desktop.
AppleScript to add a Text selection as a new Reminder to Wunderlist
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
on run {input, parameters} | |
-- This code comes from http://raduner.ch/blog/ | |
-- To be used with an Automator Service | |
-- ------------------------------------------------ | |
tell application "System Events" | |
keystroke "c" using {command down} | |
end tell | |
set inputText to the clipboard as Unicode text | |
tell application "Wunderlist" | |
activate | |
tell application "System Events" | |
tell process "Wunderlist" | |
keystroke "i" using {command down, shift down} | |
keystroke "v" using {command down} | |
keystroke (ASCII character 3) | |
end tell | |
end tell | |
end tell | |
return input | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to be compatible with latest Version of Wunderlist, as pointed out by Mark in the comment here:
http://raduner.ch/blog/automator-service-to-add-task-to-wunderlist/