Skip to main content
Participant
November 13, 2023
解決済み

Run Photoshop script upon opening image with "Edit in Photoshop" command in Lightroom

  • November 13, 2023
  • 返信数 2.
  • 724 ビュー

When I'm using Lightroom and I select "Edit in Photoshop" on an image, I'd like it to run a script automatically upon opening in PS.

 

I frequently do a repetitive process with my photos, and so I've successfully created a script to run it automatically. I've used PS Script Events Manager to run the script every time I open a new image within PS. However, when I'm in Lightroom and I select "Edit in Photoshop" the script does not run upon opening in PS. There doesn't seem to be an event in Scripts Manager that will trigger this to run when I'm opening the LR image (I've tried them all.) I can run the script manually after the photo has opened, but it's an extra few clicks for every single image. Otherwise it would be a very simple and automated process.

 

Is there a way I can do this? It seems to be such a simple thing, I must be missing something.

このトピックへの返信は締め切られました。
解決に役立った回答 Lumigraphics

Create an action to run the script and assign a shortcut key, if you can't figure out what event is triggered by Lightroom. I was able to run ScriptListener but no useful events are showing.

My guess is that Adobe sends either an Apple Event or a BridgeTalk (not sure if Lightroom supports BridgeTalk) message between Lightroom and Photoshop to open the file. Neither of those is specifically a Photoshop event and wouldn't show up as a trigger.

返信数 2

Lumigraphics解決!
Legend
November 21, 2023

Create an action to run the script and assign a shortcut key, if you can't figure out what event is triggered by Lightroom. I was able to run ScriptListener but no useful events are showing.

My guess is that Adobe sends either an Apple Event or a BridgeTalk (not sure if Lightroom supports BridgeTalk) message between Lightroom and Photoshop to open the file. Neither of those is specifically a Photoshop event and wouldn't show up as a trigger.

Stephen Marsh
Community Expert
Community Expert
November 13, 2023

I don't use Lr.

 

If you install the ScriptingListener plug-in, then perhaps you can see what (if any) applicable event is triggered.

Tomcat20作成者
Participant
November 21, 2023

I tried instaling ScriptingListener, but it doesn't seem to work. It won't create an events file on the destop even after I made sure to enable permissions and ran the terminal prompts according to some other articles on the topic. So it doesn't look like I'll be able to try this option, unfortunately.

 

I'm on a mac btw.

Tomcat20作成者
Participant
November 22, 2023

There are no permissions or terminal commands needed. Just add ScriptingListener to your plugins folder. It runs automatically.


That's how it SHOULD work, yes. Hoever, after unzipping ScriptingListener and adding it to my plugins, it failed to load. If I go to Help > System Info in Photoshop, ScriptingListener shows under "Plugins that failed to load." In trying to diagnose this, I saw some posts about running a script to ensure it has the correct permissions to function on Mac. I was unsuccessful in getting it to work. (I'm not looking to diagnose that problem in this thread.)

 

@Lumigraphics since you've aparently tested the "Edit in Photoshop" scenario with ScriptingListener and found no triggered events I'll just assign a hotkey and move on. Thank you for your suggestions!