Jeff E
Jeff E

Reputation: 63

Adding Mac OS X app to "General Services"

I have found that "Services..." a very useful place to add functionality via AppleScript.

enter image description here

I have written a small OS X app that uploads documents to a web based service (it requires OAuth2) and thought it would be great to add this functionality to the "Services" submenu. For example, when I am viewing a pdf in Preview to upload directly from a Services item.

I have tried wading through Apple's documentation on "Services", but I don't see how to add one outside of the Automator. I would be happy to use that but:

  1. Do I need to make my app AppleScript-able? If so, how?

  2. Is there another way to add Services outside of the Automator?

Thanks!

Upvotes: 0

Views: 399

Answers (1)

Brendan Shanks
Brendan Shanks

Reputation: 3236

AppleScript/Automator are not needed, there's a couple steps involved (Info.plist entry and handler in your app). See the Services Implementation Guide for details.

Upvotes: 1

Related Questions