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

[Scripting actions] Is there a way to determine if an action is currently being recorded?

Mentor ,
Apr 08, 2020 Apr 08, 2020

Is there a way to determine if an action is currently being recorded?

The most obvious way is to try playing a known action or run menu items that are usually locked during recording (for example, duplicate a command, delete a command, etc.). If an error occurs, then recording is in progress. However, in this case, a system dialogue appears that cannot be suppressed by try... catch or DialogModes.NO 😞

 

2020-04-09_00-18-01.png

TOPICS
Actions and scripting
2.7K
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

People's Champ , Apr 08, 2020 Apr 08, 2020

try to ctreate droplet from this action.

Translate
Adobe
Community Expert ,
Apr 08, 2020 Apr 08, 2020

Open your Actions Panel.

If the round record button is red, you are recording an action.

To stop recording, hit the square stop playing/recording button to the left.

See screenshot.

 

Actions Panel, recording in progressActions Panel, recording in progress

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Mentor ,
Apr 08, 2020 Apr 08, 2020

... tag is "Actions and scripting". I want to do it not by my eyes, but in script 🙂

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
People's Champ ,
Apr 08, 2020 Apr 08, 2020

try to ctreate droplet from this action.

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
Mentor ,
Apr 08, 2020 Apr 08, 2020

A droplet is simply created without causing any errors or changing the state of the action record.

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
People's Champ ,
Apr 09, 2020 Apr 09, 2020

You are confusing something. If the action is playing or recording, then it will not work to make a droplet from it. The error is easily caught.

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
Mentor ,
Apr 09, 2020 Apr 09, 2020

!!! Thanks! I try to save droplet for another action, not the one that is currently active 🙂 The operation is a bit time-consuming, but nevertheless solves my problem

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 ,
Apr 08, 2020 Apr 08, 2020

Plug-in scripts sort or do that. While recorging an action you can record using a script. When you record a step menu File>automate>Fit Image.... The fit image script will open its dialog so you can enter the width height and option. When you Click The script will record the settings you entered into its dialog into the action step and do the document constrain resize. The settings may be written bey the action recorder because if the code in the first 1000 characters in the script.  When the action is played the action players will pass a message to the script ant the script will bypass displayine its dialog and uset the pass setting if you did nit force the dialoog to be displayed vvia checking thr mernu boox in the action step 

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
Mentor ,
Apr 08, 2020 Apr 08, 2020

My script already works in plug-in mode. The problem is not in editing and saving the settings, but in fact that the script should start the action in which it recoredered itself as a result of its work. Because of this, a system dialog appears with a message about the impossibility of starting the action in the recording process (which, however, does not affect the recording of the action and its launch with the settings are successfully recorded as a command).
The problem with launching an action during the recording process can be solved in two ways - either to "understand" that the operation is being recorded and not to activate the launch of the action inside the script, or to disable the launch of the action in normal script operation mode. So far I have chosen the second option, but I am looking for ways to implement the first.

P.S. the script is very simple - it launches the active action sequentially for each selected layer. However, I decided to add a little recursion and added the ability to run the same action into which the script itself was recorded - the problem occurs when recording at this point

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
LEGEND ,
Apr 09, 2020 Apr 09, 2020

Did 'Insert Menu Item' not work as well?

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
Mentor ,
Apr 09, 2020 Apr 09, 2020

Works. But in this case, another error appears - "you can not pley the action during playback 🙂". The problem arises because I use app.playbackParameters.count in order to determine if the script is running from the menu or from the action panel. When a menu command is inserted into an action, the script considers that it is launched from the menu and tries to work in normal mode (i.e., find and launch the action) - this behavior is blocked by Photoshop with an error message.

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
Enthusiast ,
Aug 07, 2025 Aug 07, 2025

I'm trying to figure out how to "Stop Playing/Recording". Do you know if there's a way to do this via Scripting? I compiled a scripting listener plugin to record actions, but it starts recording and won't stop.

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
Mentor ,
Aug 08, 2025 Aug 08, 2025

No, I don't know how to do that.

How exactly do you listen to events?

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
Enthusiast ,
Aug 08, 2025 Aug 08, 2025

Using "ScriptingListener.plugin" from Adobe. On a mac Silicon chip I had to enable Rosetta for it to work, duplicated my photoshop app and changed the icon so I didn't have to toggle back and forth.

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
Mentor ,
Aug 08, 2025 Aug 08, 2025

Events and actions, although related, but not the same thing. Answered you in the topic "Stop Playing/Recording" on the Actions panel via scripting?  

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
Enthusiast ,
Aug 11, 2025 Aug 11, 2025
LATEST

Thanks, looking to stop the actions panel from recording an action and not the scripting listener.

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