I would like to just press a shortcut key and then the preview should open with the contents of the clipboard. Is that possible?
Thanks for any help.
I would like to just press a shortcut key and then the preview should open with the contents of the clipboard. Is that possible?
Thanks for any help.
ok, meanwhile my script works with this:
tell application “Preview”
activate
tell application “System Events”
keystroke “n” using command down
end tell
end tell
but still i have no found how to “bind” that to keystrokes which work “anywhere”
If I understand you correctly, then you might try creating a service in Automator. You should then be able to assign a keyboard shortcut to that service.
FWIW, you likely won’t be able to use a shortcut like command-n as that does something in practically every application.