Copy link to clipboard
Copied
Hello ,
"adobe_newDocument" is the action name for creating a new document, so we can call
sAIActionManager->PlayActionEvent("adobe_newDocument", kDialogNone, NULL); to create a new document.
Like this, what is the action name for "Place...", so that I can call, sAIActionManager->PlayActionEvent(placeActionName, kDialogNone, NULL); to open "Place..." dialog??
P.S. According to the API docs:
Additional parameters can be specified for the action depending on the target file format. See the action information for individual formats for definitions of the additional parameters.
Parameters:
kAIPlaceDocumentActionNameKey The name string of the file to place.
kAIPlaceDocumentActionLinkKey When true, the file is linked. When false, the file is embedded.
kAIPlaceDocumentActionReplaceKey When true, the file replaces the current selection in the document
Copy link to clipboard
Copied
kAIPlaceDocumentAction is defined as "adobe_placeDocument".
Either should work, but I would recommend using the constant.
I found this by looking at "AIActionManager.h". I would recommend looking around first before posting questions - this was not hard to find.
Copy link to clipboard
Copied
P.S. According to the API docs:
Additional parameters can be specified for the action depending on the target file format. See the action information for individual formats for definitions of the additional parameters.
Parameters:
kAIPlaceDocumentActionNameKey The name string of the file to place.
kAIPlaceDocumentActionLinkKey When true, the file is linked. When false, the file is embedded.
kAIPlaceDocumentActionReplaceKey When true, the file replaces the current selection in the document.
kAIPlaceDocumentActionTemplateKey When true. creates a template layer and places the file in that layer.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now