187 Messages
•
3.6K Points
Fri, Feb 14, 2014 9:56 AM
Photoshop: Notifier event for Open 'Opn ' documents fails when opens from CameraRaw. Why?
I have a script that enables the notifiers event to detect when photoshop opens a document:
app.notifiers.add("Opn ", myscript);
I works well but only when I open directly Image > Photoshop
But 95% of my work must get the images passing first on CameraRaw plugin.
Image > CameraRaw > Photoshop
The same notifier doesn't work at all and it is so important to run a script verification on every single opened image.
What is the logic of this? It is so frustrating.
app.notifiers.add("Opn ", myscript);
I works well but only when I open directly Image > Photoshop
But 95% of my work must get the images passing first on CameraRaw plugin.
Image > CameraRaw > Photoshop
The same notifier doesn't work at all and it is so important to run a script verification on every single opened image.
What is the logic of this? It is so frustrating.
Question
•
Updated
7 years ago
27
7
Helpful Widget
How can we improve?
Tags
notifier
listener
event
opn
open
cameraraw
script
Responses
trevor_morris_4298557
22 Messages
•
438 Points
7 years ago
var desc1 = new ActionDescriptor();
desc1.putPath(cTID('null'), new File('path to file'));
var desc2 = new ActionDescriptor();
desc2.putString(cTID('CMod'), 'Camera Model');
desc2.putEnumerated(cTID('Sett'), cTID('Sett'), cTID('Img '));
desc2.putEnumerated(cTID('ClrS'), cTID('ClrS'), cTID('ProP'));
desc2.putEnumerated(cTID('BtDp'), cTID('BtDp'), cTID('BD16'));
desc2.putEnumerated(cTID('RStF'), cTID('RStF'), cTID('RFNo'));
desc2.putDouble(cTID('Rslt'), 300);
desc2.putEnumerated(cTID('ReUn'), cTID('ReUn'), cTID('PpIn'));
desc2.putEnumerated(cTID('OSM '), cTID('OSM '), cTID('OSMN'));
desc1.putObject(cTID('As '), sTID('Adobe Camera Raw'), desc2);
executeAction(cTID('Opn '), desc1, DialogModes.NO);
It does indeed fire the "Opn " notifier, however, I've noticed that the notifier isn't fired if the open command is initiated by a script. For example, if you set up a Script Event for "Open" via the Script Event Manager, the Script Event is executed when a Camera Raw file is open. However, if you open the same Camera Raw file via another script, the Script Event is not executed. Not sure what's going on here, and I'm not sure if any of the above is helpful or not.
--
Cheers,
Trevor
1
0
JeffreyTranberry
Adobe Administrator
•
15.9K Messages
•
295.2K Points
7 years ago
Sr. Product Manager, Adobe Digital Imaging
1
0
davide_barranca_5510963
21 Messages
•
704 Points
7 years ago
to my tests too the Open event isn't fired when you open via script:
Conversely, when the notifier is added and you open an image from Photoshop yourself, everything works as expected.
Even if the image is a Raw file (I've tested a .CR2 on Photoshop CC).
And, despite what Jeffrey said, even if I open it from Bridge...
The code was just:
Hope this helps!
Davide Barranca
www.davidebarranca.com
1
0
davide_barranca_5510963
21 Messages
•
704 Points
7 years ago
just wondering: why don't you dispatch yourself an Open event after the OpenInCameraRaw?
Davide
0
0
pedro_cortez_marques
187 Messages
•
3.6K Points
7 years ago
Bridge will perform the half script well until
dd.chooseMenuItem('OpenInCameraRaw');
after this line it jumps to ACRaw and the fact is that we use some time (1 minute ) to make ACRaw adjustments.
Then we press Open button on ACRaw and in that moment, the second part of the Bridge script was ended for too long.
This means that I only can trigger 'Opn ' event when photoshop really has opened the images.
If I do that with BridgeTalk from bridge to photoshop just before the moment:
dd.chooseMenuItem('OpenInCameraRaw');
in fact the photoshop script of the 'Opn ' event would fail, because in fact the images still on ACRaw.
See the problem?
The event 'Opn ' should in fact run also with this situation (generated by bridge button script.)
2 years my team can not use 'Opn ' notifier = many errors avoided on our workflow.
But I am hoping that when I manage to redesign all script to CC (it will take time) this will work. The problem on this is that it will persist and we will no longer can have our bridge own panel with our buttons and notes.
For now CS6
0
0
davide_barranca_5510963
21 Messages
•
704 Points
7 years ago
This way you could dispatch the open event no matter how long it takes for the user to tweak the raw - possibly...
In case, have a look here:
http://selfdocumentingcode.blogspot.i...
0
0
pedro_cortez_marques
187 Messages
•
3.6K Points
7 years ago
But again...
My team productivity would be reduced largely at the ends of the day.
To run faster, a team element opens on bridge 5, 6, 7 products on different folders (each product has 5,6,7 raws).
If the script you suggest was running on the first product, it would have to wait until photoshop has opened all the images (it takes some time to have all raws opened).
We use that time to go back to bridge and open the second product and so on.
We would not be able to that anymore because bridge would be frizzed by th previous script.
This is the reality of a factory that produces images like us. Wish Adobe would be here to see. May be one day...
But I never give up.
I really appreciate your interest on this David! Thanks.
0
0