Skip to main content
bagonterman
Inspiring
August 9, 2012
Question

Create a calculator for bridge?

  • August 9, 2012
  • 1 reply
  • 2439 views

I have done scripting for InDesign wich has a palette for scripts or a start up script folder to run the script from. I am not sure how to start this thing. The next thing I want to do after I figure that out is to count photos in each folder that I select and then add them. The calculator could just be a UI window in Bridge is what I was thinking I just need help getting it going.

This topic has been closed for replies.

1 reply

bagonterman
Inspiring
August 9, 2012

Ok well I think I have the answer to my first question.

/Users/art5/Library/Application Support/Adobe/Bridge CS6/Startup Scripts

bagonterman
Inspiring
August 9, 2012

I am using a little snippet of mine to get this thing going and the ok and cancel buttons are not working. I was wondering if anyone could shed some light on this for me.

























var myOKGroup =  myIDinfo.add (“group”);

myOKGroup.orientation = “row”;

myOKGroup.minimumSize.height = 40;

myOKGroup.add(“button”, [15,80,95,110],  “OK”);

myOKGroup.add(“button”, [15,80,95,110],  “CANCEL”);

myOKGroup.alignment=[“right”,”bottom”];

var myResult = myIDinfo.show();

This works in InDesign.

Paul Riggott
Inspiring
August 9, 2012

The snippet you posted had mis-matched quotes everywhere, maybe you are using an editor not suited for the job?

This does work...

var myIDinfo = new Window('dialog','test');

var myOKGroup =  myIDinfo.add ('group');

myOKGroup.orientation = 'row';

myOKGroup.minimumSize.height = 40;

myOKGroup.add('button', [15,80,95,110],  'OK');

myOKGroup.add('button', [15,80,95,110],  'CANCEL');

myOKGroup.alignment=['right','bottom'];

var myResult = myIDinfo.show();