Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Circus Ponies NoteBook which doesn't support Applescript methods. It does support creating services that can clip the current selection into a NoteBook page. This allows me to select text and use the context menu to paste the text into a NoteBook page. I'd like to do the exact same thing from an Applescript script. Is there some way in Applescript to get a handle to an existing service, and send it a message?

share|improve this question

Automator services can be run with the automator command line utility:

do shell script "automator ~/Library/Services/test.workflow -i input -d variable=value"

I couldn't get it to work with the service used by Circus Ponies NoteBook though.

share|improve this answer

If you assign the service a keyboard shortcut through System Preferences » Keyboard » Keyboard Shortcuts » Services,

assign a keyboard shortcut

you can then use the AppleScript keystroke command to invoke that shortcut.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.