Hi everyone,
Is it possible to attach an xmp file to a JPG image in order to open it via "open" command in CameraRaw too?
My idea: I get PSD files, via an action I can secure the PSD as a JPG. (Allways the same name & Folder)
(Desktop/RAW/raw.jpg)
Now I want to attach and open (CameraRaw-Dialog) a script using the JPG.
Thanks, willem
psd to jpg - open with CameraRaw
psd to jpg - open with CameraRaw
Some questions.
If the path is always the same, why do you want to use Bridge?
Do you just want to launch ACR dialog using that file?
If the path is always the same, why do you want to use Bridge?
Do you just want to launch ACR dialog using that file?
psd to jpg - open with CameraRaw
Hi Mike,
in Bridge, I always have a window open with uncorrected PSD files,I can not be opened a second window with different folders.
thanks,
willem
in Bridge, I always have a window open with uncorrected PSD files,I can not be opened a second window with different folders.
thanks,
willem
psd to jpg - open with CameraRaw
I'm still not sure what you want to do. This will open a new instance of Bridge and point it to a folder.
Code: Select allfunction openBridge(folder){// folder as String "~/Desktop/"
var bt = new BridgeTalk ();
bt.target = 'bridge';
bt.body ='app.browseTo("'+folder+'");';
bt.send();
}
var f = '~/Desktop/RAW';
openBridge(f);
Code: Select allfunction openBridge(folder){// folder as String "~/Desktop/"
var bt = new BridgeTalk ();
bt.target = 'bridge';
bt.body ='app.browseTo("'+folder+'");';
bt.send();
}
var f = '~/Desktop/RAW';
openBridge(f);
psd to jpg - open with CameraRaw
Hi Mike,
(photoshop)
1.Save the active PSD-document as X.jpg in DesktopFolder/RAW
name + folder allways the same. (phs-action)
2.(Bridge) with right mouse button select "develop Settings" > and assign zero-corr.xmp
and
3.open the jpg (automatically opened in CameraRaw-Dialog)
(2 and 3 is possible via script?)
thanks
willem
(photoshop)
1.Save the active PSD-document as X.jpg in DesktopFolder/RAW
name + folder allways the same. (phs-action)
2.(Bridge) with right mouse button select "develop Settings" > and assign zero-corr.xmp
and
3.open the jpg (automatically opened in CameraRaw-Dialog)
(2 and 3 is possible via script?)
thanks
willem
psd to jpg - open with CameraRaw
Which version of Bridge do you have? With both CS3 and CS4 there is no assign under develop Settings. Just default and last conversion.
However, depending on the contents of zero-corr.xmp you would be able to transfer those setting to the jpg and open in the ACR dialog.
Can you post the zero-corr.xmp?
However, depending on the contents of zero-corr.xmp you would be able to transfer those setting to the jpg and open in the ACR dialog.
Can you post the zero-corr.xmp?
psd to jpg - open with CameraRaw
Hallo Mike,
> Which version of Bridge do you have?
I`m using CS3/ Mac
here`s a screenshot
Thanks
willem
> Which version of Bridge do you have?
I`m using CS3/ Mac
here`s a screenshot
Thanks
willem
psd to jpg - open with CameraRaw
Have not tested this on a Mac, but this will write the acr settings to a jpg then open it in the acr dialog.
Code: Select allapplyZeroCorrection( '~/Desktop/Photo-00131.jpg' );
var f = new File( '~/Desktop/Photo-00131.jpg' );
OpenCameraRaw( f );
function applyZeroCorrection( filePath ) {
var bt = new BridgeTalk ();
bt.target = 'bridge';
bt.body = 'tn = new Thumbnail( File("'+filePath+'") );md = tn.synchronousMetadata;md.namespace = "http://ns.adobe.com/camera-raw-settings ... md.Version = 4.0;md.WhiteBalance = "As Shot";md.HasSettings="True";';
bt.send();
}
function OpenCameraRaw(file) {
try{
var desc = new ActionDescriptor();
desc.putPath(charIDToTypeID('null'), File(file.toString()));
// Suppress choose file dialog.
var overrideOpenID = stringIDToTypeID('overrideOpen');
desc.putBoolean(overrideOpenID, true );
var desc1 = new ActionDescriptor();
desc.putObject( charIDToTypeID( 'As ' ), stringIDToTypeID( 'Adobe Camera Raw' ), desc1 );
var returnDesc = executeAction(charIDToTypeID('Opn '), desc, DialogModes.ALL);
return (returnDesc.hasKey(charIDToTypeID('As ')) && returnDesc.hasKey(charIDToTypeID('null')));
}catch(e){}
}
Note on my system the acr defaults are the same as the setting that are being written to the file so I can just open the file in acr without the need to write the settings first.
Code: Select allapplyZeroCorrection( '~/Desktop/Photo-00131.jpg' );
var f = new File( '~/Desktop/Photo-00131.jpg' );
OpenCameraRaw( f );
function applyZeroCorrection( filePath ) {
var bt = new BridgeTalk ();
bt.target = 'bridge';
bt.body = 'tn = new Thumbnail( File("'+filePath+'") );md = tn.synchronousMetadata;md.namespace = "http://ns.adobe.com/camera-raw-settings ... md.Version = 4.0;md.WhiteBalance = "As Shot";md.HasSettings="True";';
bt.send();
}
function OpenCameraRaw(file) {
try{
var desc = new ActionDescriptor();
desc.putPath(charIDToTypeID('null'), File(file.toString()));
// Suppress choose file dialog.
var overrideOpenID = stringIDToTypeID('overrideOpen');
desc.putBoolean(overrideOpenID, true );
var desc1 = new ActionDescriptor();
desc.putObject( charIDToTypeID( 'As ' ), stringIDToTypeID( 'Adobe Camera Raw' ), desc1 );
var returnDesc = executeAction(charIDToTypeID('Opn '), desc, DialogModes.ALL);
return (returnDesc.hasKey(charIDToTypeID('As ')) && returnDesc.hasKey(charIDToTypeID('null')));
}catch(e){}
}
Note on my system the acr defaults are the same as the setting that are being written to the file so I can just open the file in acr without the need to write the settings first.
psd to jpg - open with CameraRaw
Hi Mike,
exactly what I wanted, it works great, Thanks!!!
willem
exactly what I wanted, it works great, Thanks!!!
willem