Created
April 22, 2017 17:43
-
-
Save freklov/911ecd9643641bb3fcbba181608a684a to your computer and use it in GitHub Desktop.
AppleScript for Things: AppleScript Snippet for Automator Service: copy Firefox URL into new Things Todo (Using QuickEntry with AutoFill)
This file contains hidden or 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
-- create automator servce | |
-- Drag & Drop "Actions:Utilities:Run AppleScript" into service | |
-- | |
-- Services receives: no input | |
-- in <optional: choose specific application> | |
-- copy and paste the AppleScript commands into action | |
-- update "tell application" if necessary | |
on run {input, parameters} | |
-- activate Firefox and copy URL into clipboard | |
tell application "Firefox" to activate | |
tell application "System Events" | |
keystroke "l" using command down | |
keystroke "c" using command down | |
end tell | |
delay 0.5 | |
-- execute global Things keystroke option+ctrl+space (Quick Entry with Autofill) | |
tell application "System Events" to keystroke space using {option down, control down} | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment