Copy link to clipboard
Copied
I'm trying to find a way of using the color labels in Bridge ('select', etc.) to allow conditional use in Photoshop javascript.
So, for example, all the images tagged with red will be sized to 600px, while those tagged with green will be sized to 400px.
Any ideas?
Ian
Copy link to clipboard
Copied
Bridge Labels get stored in the file's XMP…
You can script Bridge and pass the values to a Photoshop script via BridgeTalk
or
You can load the external XMP library in a Photoshop script.
Bridge's labels are not the same as those of the mac OS.
Copy link to clipboard
Copied
Hi Mark,
Thanks for your prompt reply!
I'll investigate the external XMP library suggestion further. Do you know if there's a code snippet out there which will point me in the right direction?
cheers
Ian
Copy link to clipboard
Copied
A search of the forum for ExternalObject should find you plenty of reference…?
You just need to load library…
Retrieve your value…
Do your Photoshop process ( use switch or if/else )
Unload the library
Done…
If you struggle post back I may be able to help…
Copy link to clipboard
Copied
That's great many thanks Mark. I've been looking in the wrong direction (not for the first time...)
Copy link to clipboard
Copied
No probs… Photoshop has a documentInfo Object but its limited properties… for all else in XMP load the library…