Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Dec 25, 2009 Dec 25, 2009

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

TOPICS
SDK
710
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Dec 25, 2009 Dec 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

...
Translate
Adobe
Contributor ,
Dec 25, 2009 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 25, 2009 Dec 25, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines