Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.