Skip to content

Instantly share code, notes, and snippets.

@Callisto88
Last active October 13, 2020 09:42
Show Gist options
  • Save Callisto88/5466ee238a80293333be29950f86ed43 to your computer and use it in GitHub Desktop.
Save Callisto88/5466ee238a80293333be29950f86ed43 to your computer and use it in GitHub Desktop.
on run {input, parameters}
tell application "Flycut" to activate
tell application "System Events"
# show the Bezel ( deleting item using shortcut seem to be only available when the Bezel is shown )
# adjust this value according to your FlyCut shortcut in my case it's Cmd + H
keystroke "h" using {command down}
# simulate Command + backspace combination
key code 51 using {command down}
# close the Bezel
keystroke "esc"
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment