Copy link to clipboard
Copied
I am having a problem with the Script Events Manager that I'm not sure how to solve. Any help would be appreciated. I've never posted here so I'm not sure if this has been discussed. I did look back through a few pages but didn't find anything that looked similar. I am using Adobe Production Premium CS4 if that makes a difference.
I set up an Event Manager to run a script when a file is opened. This script is simple and only sets up my initial workflow based on the file type (usually a Canon RAW file CR2). This is not being activated all the time when a file is opened. I am testing this by using an "alert(filename)" line in the script that will pop up the name of the file that is opened no matter what as long as the script is activated. I did some more testing on this and this is what I found when opening my CR2 files:
1. When I am in Bridge and double-click or right-click>Open in Camera Raw to open the CR2 file, it opens in ACR. When I am finished in ACR and click Open to open the file in Photoshop the script DOES NOT work.
2. When I am in Photoshop and use File>Open to open the CR2 file, it opens in ACR. When I am finished in ACR and click Open to open the file in Photoshop the script works.
3. When I am in Bridge and use File>Open to open the CR2 file, it opens in ACR. When I am finished in ACR and click Open to open the file in Photoshop the script works.
Option #1 being the easiest, that's the way I normally open my CR2 files. However, that seems to be the only way the Event Handler will not work. Is there a reason for this? Is there something else I need to do?
Copy link to clipboard
Copied
In #2, Photoshop is opening the file via ACR, so an Open event is generated.
In #3, Bridge calls Photoshop which results in #2.
In #1, the ACR plugin (in Bridge) calls Photoshop to process a rendered version of the (raw) file. There is no real PS Open
event for this kind of thing since it was ACR (running in Bridge) that actually opened the raw file, not PS or ACR in PS.
Copy link to clipboard
Copied
Thank you, xbytor2.
Do you know of a way that I can use option #1 and still activate a Script Events Handler in Photoshop as the file opens?
Copy link to clipboard
Copied
#1 doesn't generate an entry in the Script Listener log which means there is nothing you can do about it.
This is likely not the only place that Open events don't get generated. For instance, I suspect the files opened during Batch
processing or via scripts (like Image Processor) fail to generate Open events.
So, you are out of luck with #1.
Copy link to clipboard
Copied
Thank you. I guess I'll have to suffer.
I appreciate your input and help.
Copy link to clipboard
Copied
OK, I found a solution to this. In Bridge Preferences under General and in the Behavior section, I unchecked the option "Double-Click edits Camera Raw Settings in Bridge".
Now the file opens in Photoshop but still goes to ACR first since it is a CR2 file. Then the Script Events Handler works for Open Document.
Copy link to clipboard
Copied
That would work around the problem you are seeing.
I never double-click to open files in Bridge, so this didn't occur to me. I always explicitly open into ACR or Photoshop.