Skip to main content
Known Participant
December 25, 2009
Answered

What is the action name for "Place..."??

  • December 25, 2009
  • 1 reply
  • 728 views

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??

This topic has been closed for replies.
Correct answer 3DTOPO

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.

1 reply

3DTOPO
Inspiring
December 25, 2009

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.

3DTOPO
3DTOPOCorrect answer
Inspiring
December 25, 2009

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.