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

How do I record a script in an action script?

Explorer ,
Sep 22, 2018 Sep 22, 2018

I made a custom script for Photoshop CS6 with the ExtendScript toolkit and I need to include it's execution into a custom action script. While recording my action script, I execute the script that I made, but it's never added during the record process. Is it possible to add a .jsx script into a recorded action script?

3.2K
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

Community Expert , Sep 22, 2018 Sep 22, 2018

I am not sure what exactly you want. Can you post some screenshot or to provide more informations because I think you are using interchangeably words action script.

My guess to solve problem:

  • From Actions panel menu choose Insert Menu Item.
  • While dialog is open navigate to script which you want to call from File > Scripts (I guess) > script name (click on it)
  • When you see script name in Insert Menu Item dialog click OK to record that step.

insert menu item.png

Translate
Adobe
Community Expert ,
Sep 22, 2018 Sep 22, 2018

I am not sure what exactly you want. Can you post some screenshot or to provide more informations because I think you are using interchangeably words action script.

My guess to solve problem:

  • From Actions panel menu choose Insert Menu Item.
  • While dialog is open navigate to script which you want to call from File > Scripts (I guess) > script name (click on it)
  • When you see script name in Insert Menu Item dialog click OK to record that step.

insert menu item.png

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
Explorer ,
Sep 22, 2018 Sep 22, 2018

Apologies, I wasn't sure how to word my question. Using your method worded as I need, thank you.

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
Community Expert ,
Sep 22, 2018 Sep 22, 2018

You do not need to use Insert menu item.  In Fact you most likely should not use it.  Particularly  if it a Plug-in script.  The Scripts need to be part of the recording process not inserted as a script step.

You can record using  an action  It will record as a script step.   However if you want the setting you use in the script dialog while recording the script step.  The Script need to be a Photoshop Plug_in Script.  Adobe added Plug-in support into ScriptingSupport in CS3.   For and example of a Plug-in script you can look ate Adobe's "Fit Image.jsx" in  Photoshop's Presets\Scripts folder.  Basically the Script records the settings you use recording the step into the Action Step and when the action is  played the Step Passed the settings to the Plug-in script and the script bypasses displaying its dialog.  You can of course turn on the step dialog in the Action.   If you do the Script will display its dialog when the step is played and the recorded setting will be shown in the dialog.  You can interactively change the settings or use settings displayed.

JJMack
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
Community Expert ,
Sep 22, 2018 Sep 22, 2018
LATEST

https://forums.adobe.com/people/Bojan+%C5%BDivkovi%C4%87  wrote

I am not sure what exactly you want. Can you post some screenshot or to provide more informations because I think you are using interchangeably words action script.

My guess to solve problem:

  • From Actions panel menu choose Insert Menu Item.
  • While dialog is open navigate to script which you want to call from File > Scripts (I guess) > script name (click on it)
  • When you see script name in Insert Menu Item dialog click OK to record that step.

insert menu item.png

I believe that can cause a problem and should not be used for scripts.

Plug-in scripts need to be used when they are reorder not inserted. Here are two steps both steps will work but the fist step will be interactive  or some previous use setting will be use because it was inserted. Where the second step will use the recorded settings in the step and not be interactive. The whole idea of a plug-in  is its dialog can be bypassed by recording setting in the action.

JJMack
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