Intercept Copy and Paste with AppleScript
-
07-07-2019 - |
Question
Is it possible to intercept global copy and paste in OS X with an AppleScript? Or would I have to have some intermediary step that would trigger the AppleScript to read the clipboard?
Solution
They way I do it in Applescript is with the following command:
get the clipboard
You could of course then do stuff like setting it to a variable and displaying it:
set xyz to the clipboard
display alert (xyz as text)
Hope that helps!
Elliott
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow