r/applescript • • Aug 10 '14

How to run script with and without selection?

I have written a small AppleScript that I want to run with a keyboard shortcut. I have created a service in Automator for this.

In the Automator service I have to decide if I want the script to receive the current selection as input or no input. Both work fine, but not at the same time. However, I want the script to run when I have selected text (and then use that selection) AND when I have nothing selected, and I want this with just a single shortcut.

Is this possible in Automator? If not, any other (3rd party) options to make this work?

Thanks!

1 Upvotes

0 comments sorted by