![]() |
Adobe Photoshop SDK |
|
Automation ModuleAutomation plug-in modules access all Photoshop scriptable events. More...
Detailed DescriptionAutomation plug-in modules access all Photoshop scriptable events.These modules appear under the Automate menu or the Help menu. Automation plug-ins are built on top of the Adobe Plug-in Component Architecture (PICA). For further information, see Photoshop Actions Event Guide, and Adobe PICA API.
Since Automation modules are built on top of PICA, they have a different invocation than many of the other Photoshop plug-in modules. By convention the entry point is called
DLLExport SPAPI SPErr AutoPluginMain( const char* caller, // who is calling const char* selector, // what do they want void* message // what is the message ) AutoPluginMain( ) function, collectively they make up a message. The first two parameters represent the message action, describing what the plug-in is supposed to do. The caller string identifies the sender of the message and a general category of action. The selector string specifies the action to take within the category of action.All PICA plug-ins receive five message actions: startup, shutdown, reload, unload and about. These are documented in The Adobe PICA API. In addition, automation plug-ins receive a caller/selector pair that indicates the plug-in should begin the automation. See kPSPhotoshopCaller and kPSDoIt.
The third parameter is a pointer to a data structure, which provides data that depends on the message action. For an Automation module, when the caller/selector pair is Define Documentation
Caller portion of message action sent to an Automation plug-in entry point.
Selector portion of message action sent to an Automation plug-in entry point. When the plug-in receives this message, it should execute its core functionality.
|