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?

Was it helpful?

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
scroll top