Reputation: 71
I would like to make my app respond to automator actions, similar to the way iPhoto has several actions associated with it (import photos, find iphoto items, new iPhoto album etc.).
I can make the actions, but do not know how to make my app respond to any of them (except the open files actions where I use: - (void) application:(NSApplication *)sender openFiles:(NSArray *)filenames)
.
I can't find any docs or example code. Anything would be appreciated!!!
Upvotes: 3
Views: 360
Reputation: 71
I also found some useful example code here: http://developer.apple.com/library/mac/#samplecode/SimpleScriptingProperties/Listings/scriptLog_h.html#//apple_ref/doc/uid/DTS10004240-scriptLog_h-DontLinkElementID_9
And:
http://developer.apple.com/library/mac/#samplecode/SimpleScriptingObjects/Introduction/Intro.html
Upvotes: 1
Reputation: 54029
Introduction to Automator Programming Guide
That document should get you started...
Upvotes: 0