Skip to content

Instantly share code, notes, and snippets.

@freklov
Created April 22, 2017 17:43
Show Gist options
  • Save freklov/911ecd9643641bb3fcbba181608a684a to your computer and use it in GitHub Desktop.
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)
-- 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