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

Fit On Screen Script Not Working When Opening from Camera RAW

Engaged ,
May 08, 2024 May 08, 2024

Copy link to clipboard

Copied

I have the Script Events Manager set to run a Fit on Screen (ctrl+0) action whenever a New Document is made or on Open Document. It works if I'm in Photoshop and open an image, but if I'm in Bridge, open an image with Camera RAW, make some adjustments, and then open it from there into Photoshop, the script doesn't run.

 

Is there another way to get it to run when opening images from Bridge to ACR to Photoshop?

TOPICS
Actions and scripting

Views

106

Translate

Translate

Report

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 , May 17, 2024 May 17, 2024

I tested with the welcome alert script, not an action, as I was only testing if the open event was triggered after going from Bridge (14.0.0.102) to ACR (16.2.1.1767) to Photoshop (25.7.0) with both open and open as object.

 

You could try to isolate whether this is related to actions or not by trying the scripted equivalent:

 

app.runMenuItem(stringIDToTypeID("fitOnScreen"));

 

Votes

Translate

Translate
Adobe
Community Expert ,
May 08, 2024 May 08, 2024

Copy link to clipboard

Copied

EDIT: I have just tested in both v2021 and v2024 and opening an image from ACR into Photoshop does trigger the open event (I was sure that it didn't, but there you go, perhaps I was thinking of Lightroom!)

 

Otherwise, you would need to trigger it manually via a keyboard shortcut on each image or manually run a batch action or script that loops over all open documents.

Votes

Translate

Translate

Report

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
Engaged ,
May 16, 2024 May 16, 2024

Copy link to clipboard

Copied

EDIT: So you actually got it to run an action after Open Document from ACR, from Bridge? I can get the script to run if I just open an image from ACR from Photoshop or from Windows Explorer, but not from Bridge. 

 

I tried other actions and none of them will run after opening an image from ACR from Bridge. Nothing happens. I'm currently using Photoshop version 25.7.0. 

Votes

Translate

Translate

Report

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 ,
May 17, 2024 May 17, 2024

Copy link to clipboard

Copied

I tested with the welcome alert script, not an action, as I was only testing if the open event was triggered after going from Bridge (14.0.0.102) to ACR (16.2.1.1767) to Photoshop (25.7.0) with both open and open as object.

 

You could try to isolate whether this is related to actions or not by trying the scripted equivalent:

 

app.runMenuItem(stringIDToTypeID("fitOnScreen"));

 

Votes

Translate

Translate

Report

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
Engaged ,
May 20, 2024 May 20, 2024

Copy link to clipboard

Copied

I did actually try it with another script and had the same issue, but when I tried it with your script it appears to have fixed the issue. 

 

Thank you!

Votes

Translate

Translate

Report

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
Engaged ,
May 22, 2024 May 22, 2024

Copy link to clipboard

Copied

LATEST

It's really odd. Most of the time it is working now, but every so often it just doesn't work. I can't seem to find any rhyme or reason to it. I'll open a photo and it doesn't work, close it, open the same photo again, the same way, and all of the sudden it works. Wonder if it has something to do with how busy the CPU or GPU is at that moment or something. Maybe if the CPU or GPU is under a heavy load it just skips the scripts. I don't know.

Votes

Translate

Translate

Report

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