Data Collector Script - CS3 Bridge Issues

Upload Photoshop Scripts, download Photoshop Scripts, Discussion and Support of Photoshop Scripts

Moderators: Tom, Kukurykus

Andrew

Data Collector Script - CS3 Bridge Issues

Post by Andrew »

That's very helpful X. I might try writing some test code, not the scripts themselves, just the bare bones of the interactions, and sending it across to you to try on your dual box. As you say this is extremely important for anyone who wants to make scripts readily available to other users.

Andrew

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

YrbkMgr

Data Collector Script - CS3 Bridge Issues

Post by YrbkMgr »

I dunno - I'm grateful that you spent the time on this Xbytor, I really am. But I'm just a guy who got a handy script to extract meta data from PSD files and don't do scripting.

I have no idea what to do with what you posted. I was hoping for either a "here, download this", or "paste this snippet between here and here in the original script", or something simple like that.

I have no ability to reason out what should go where in the scheme of things, so any expectation for one to do the "logical" thing, is pretty much lost on me.

I can't script, don't know what to do with this stuff, so, while I am supremely grateful (and impressed at your facility with this stuff), I guess I'm just going to have to live with it as it is.

Thanks man.
xbytor

Data Collector Script - CS3 Bridge Issues

Post by xbytor »

I'm down for a week or so with a hand injury. If Andrew doesn't tackle this by next Friday, I'll get it working for you then.

I really should have practiced typing with one hand more when I was younger

-X
YrbkMgr

Data Collector Script - CS3 Bridge Issues

Post by YrbkMgr »

That's quite kind of you. Thanks man.
Andrew

Data Collector Script - CS3 Bridge Issues

Post by Andrew »

Hi X

I think there is a problem with your sample code. Am I right in thinking the core issue is that when you tell BridgeTalk to go off and send a script somewhere, you need to tell it which version of the target app to use.

If that is right then when you tell it use photoshop-10.0 you are going to be in trouble when Adobe release 10.01. It gets worse. Imagine some people have upgraded photoshop to 10.01 but left bridge at 2.0 while others have upgraded Bridge to 2.01 but left photoshop at 10.0.

Any thoughts on how to deal with this? Hopefully I have got it wrong.

Andrew
Andrew

Data Collector Script - CS3 Bridge Issues

Post by Andrew »

Having done some more reading I am hoping the simple solution to this possible difficulty is to specify 'photoshop-9', 'bridge-1' etc. If not, more delving into the Bridge javascript manual is going to be necessary. I am currently downloading CS3 but on my connection the chances of a successful download are not great which makes testing kind of a challenge.

Andrew
xbytor

Data Collector Script - CS3 Bridge Issues

Post by xbytor »

My 'final' solution is to have an interface like this

Code: Select allXBridge.getAppSpecifier function(appName, majorVer) {}

This will let you write stuff like:

Code: Select allvar spec = XBridge.getAppSpecifier('photoshop');
spec = XBridge.getAppSpecifier('photoshop', '9');
spec = XBridge.getAppSpecifier('photoshop-10');


This amount of flexibility may be a little much, but this should cover all possible situations.

-X
Andrew

Data Collector Script - CS3 Bridge Issues

Post by Andrew »

I've released a new version:

bb/viewtopic.php?t=205

Please report (in that thread) if it works for you. Also if anyone can test it with CS3 that would be much appreciated.

Andrew