I am scripting in javascript on a Mac OSX machine with Bridge 1.0.4.6.
I am trying to execute a Photoshop Javascript file from within Bridge, but I have been, as of yet, unsuccessful. I am attempting to use the photoshop.executeScript command with a string value of the photoshop script, but all that happens is that photoshop comes up and my script is not launched.
Inside of my Bridge script, I call the executeScript like this:
var file = new File( "~/Desktop/test.jsx" );
file.open( "r" );
var buffer = file.read();
file.close();
photoshop.executeScript( buffer );
And the ~/Desktop/test.jsx file looks like:
var file = File.openDialog('Image to test');
var fileRef = new File(file);
var docRef = open (fileRef);
If you have any suggestions, please let me know.
Thank you.
Evan Appleby
Sony Pictures Imageworks