Quantcast
Channel: Adobe Community : Popular Discussions - Bridge Scripting
Viewing all 45715 articles
Browse latest View live

(extension) HTML panel freezes after full screen preview

$
0
0

Hello!

 

The html panels are working good until I pressed the space key(full screen). After that the extensions stop working.
I have a custom panel I changed the type of extension in manifest  file to  <Type>Embedded</Type> . If I changed  the type to Modeless it works perfectly.

I tried with other computers and the issue remains the same.


Copy sort order between folder

$
0
0

Hello,

 

I'd like to copy sort orders from one folder to another. Let's say one folder contains RAW files and the other JPEGs with identical names.

Should be easy to copy the .BridgeSort file and modify the content, that is the file extension of the key value of the item tags. But the key is build by the filename plus something that seems to be a timestamp. I just can't figure out what timestamp from metadata or file attributes I have to use.

 

Rainer

Renamer using string

$
0
0

RS132695_72419-1.jpg

RS12691_372369-1.jpg

RS12693_72379-1.jpg

RS12694_72384-1.jpg

RS12696_724139-2.jpg

RS12697_72472-1.jpg

RS12698_72475-1.jpg

RS122692_72378-1.jpg

 

As I mentioned above I have different files, need to change as below(need to remove RS and from _/d{5-6}-/d) )

 

12691

12693

12694

12696

12697

12698

122692

132695

 

the extension should not be added, I need the file as Unix format. Could anyone help me with this?  Please

Watched folder functionality

$
0
0

I shoot product photos tethered with Canon Utility and review the captures in Bridge. Canon Utility has a linked software setting which calls an app after each capture. On the Mac, this feature switches focus to Bridge but on Windows 10, Canon Utility won't switch to Bridge automatically. I don't know if this is an Adobe or Canon bug.

 

Bridge unfortunately doesn't have a watched folder (sometimes called a hot folder) feature, so there is no built-in way to fix the problem.

 

I decided to write a watched folder script that can run arbitrary functions. This works perfectly and fixes the problem I'm having. It can be easily modified to do pretty much any processing that was needed and can be scripted.

 

Add the script below to Startup Scripts and run it to start the operation.

 

This could be modified to only work on a specific folder. When the menu item was selected, an choose folder dialog could allow hot folder selection and then the script could test to see if that was the active folder before processing.

---------------------------------------------

if(BridgeTalk.appName == 'bridge'){

    try{

        var wfMenu = MenuElement.create('command', 'Watched Folder', 'at the end of Tools'); //create new menu command

       

        wfMenu.onSelect = function(){

            //choose folder dialog could be added here to set a specific hot folder

            app.eventHandlers.push({handler: wfOpenDocument}); //runs on window load

       

            function wfOpenDocument(event){

                if(event.object instanceof Document && event.type == 'loaded'){

                    //if a hot folder was defined, would test for it here

                    app.bringToFront(); //do stuff here

                    }

                }

            }

        }

    catch(e){

        alert(e + e.line);

        }

    }

Applying metadata to all images in a folder

$
0
0

I have about 1000 folders with various numbers of tiffs in each folder and I am trying to figure out a simple mod to the DIY Metadata script that will apply metadata to all of the images in each folder. So each line in my tab-delimited text file would be a folder name followed by the appropriate metadata. The script would apply that same metadata to all of the tiffs in each folder.

Any ideas?

CSUIB 2.0 alpha - WYSIWYG GUI builder for Photoshop/Bridge

$
0
0
Hi everyone !

http://www.jkozniewski.com/tools/CSUIB_2.0a.zip

So, after 2 months of sleeping for 4h/day...
After almost 3000 lines of ActionScript code...

Finally there is alpha version of CSUIB the second
This time it's stand alone app with support for CS2 JS GUI,
ability to save and open your projects (as most of you asked for this feature)
And much more!

But there is still so much to do...
So, as always I'm opened for your feedback
and, what's more, your comments and requests are essential for
further development of this app.

Regards,
Jakub Kozniewski.

Bridge and Photoshop Actions

$
0
0
I have a number of Photoshop actions that run scripts. These scripts have been brought forward from CS and work fine when run inside Photoshop CS2. They are of varying complexity, but I've tested the following with a simple script: alert ("Hello World");

When I run the actions from Bridge, via the Batch command, the file opens correctly in Photoshop and I then get an error "the command scripts is not currently available".

Why is this? Do I need to alter my scripts to run in Photoshop CS2?

Note that when I save the action as a droplet, I can drag files onto the droplet and the script is triggered correctly.

John

copy filename to iptc description

$
0
0

Hello,

I need to create a process of copying the filename of a tiff to the description in that same file's iptc. Ideally i'd like to be able to drop the script in to an Apple Automator process, but that would be a luxury. There's also an extra catch: i need the script to replace "=" with ":" and to add a prefix, for example "CMS:"

 

Here's an example:

 

input

 

filename: 8737=6.tif

description:

 

output

 

filename: 8737=6.tif

description: CMS:8737:6

 

It seems a faily basic process but i don't know where to start with this scripting business... Any help or advise would be much appreciated! Perhaps you know of a really similar one that i can modify??

 

Lewis


Can you import metadata from an excel database to images (JPG, PSD, TIF) in bulk?

$
0
0

I am very new to working with metadata. I have a microsoft excel file with the IPTC Core fields I need for each image file.

(Creator, Headline, Description, Keywords, Title, Job Identifier, Credit Line, Source, Rights Usage Terms, Copyright Status and Copyright Notice)

 

Is there a way to get the metadata into the files without having to copy from a cell into each metadata field individually?

 

I am hoping some for sort of script, possibly...

 

Also, if only ONE of these fields needed updating in all of the files (i.e. Rights Usage Terms) can that be done?

 

I have Bridge 5.1 (and earlier versions CS3/CS4)

Script to move description metadata information into title field

$
0
0

I have tried for 2 days (off and on) to try to get Bridge CS6 to copy the information from the Description field to the Title field in the metadata. I can get it into the menu, but nothing happens when I modify other scripts. Any suggestions would be greatly appreciated.

 

If you want a good laugh, I can post my previous attempts.

documentID to source?

$
0
0

I tried to modify a script to copy the <xmpMM:DocumentID> to the <photoshop:TransmissionReference>, obviously I have had no luck. Where do I find the correct syntax for calling up the two fields?

 

#target bridge
if( BridgeTalk.appName == "bridge" ) {  
DocumentIDToSource= MenuElement.create("command", "Document ID to Source", "at the end of Tools");
}
DocumentIDToSource.onSelect = function () { 
var sels = app.document.selections;
for(var a in sels){
md =sels[a].synchronousMetadata; 
md.namespace = "http://ns.adobe.com/photoshop/1.0/";  
var DocumentID =  md.DocumentID.toString().replace(/,/g,'.');// Replace a comma with decimal point
md.namespace = "http://purl.org/dc/elements/1.1/"; 
md.TransmissionReference='';
md.TransmissionReference = DocumentID;
}
};

 

Any suggestions will be appreciated.

Bridge Script to copy and move first image of filename set?

$
0
0

I have a folder with 1000s of images I'd like to grab the first image to make a thumbnail of.

 

For example, the images are named like this:

 

228837.jpg

228837a.jpg

228837b.jpg

228837c.jpg

228837d.jpg

 

I need to figure out a script that would pull the first image (non-alphabetical sequential). In this example, it would be 228837.jpg and would like to select all instances of non-alphabetical sequential and copy it to a folder called "thumbnails".

 

I've been searching and can't seem to figure it out. I would need it to check the active folder I'm in while in Bridge, and then throw into a sub-folder I'd call thumbnails. Any advice?

How to run the callback fucntion onReceive[Static+callback]-onResult-onError and sendData?

$
0
0
Hi, everybody,
I can run this script in indesign cs2 very well,
But now I went to get the target running script is OK or No, and When it completed,
Now I would like those info. send back to the sender, then do some otherthings.
So, help me how to get those infors, include the errorMsg.

Thanks advanced!

jxswm

//=======================================================

//RunScript
//Usage:
//Define the scriptEnum and runTargetScript(scriptEnum), all is OK!
//Set the scriptEnum.scriptStr = null, will do not run the ScriptString;
//Set the scriptEnum.fileURI = null, will do not run the ScriptFile;
//Set the scriptEnum.isRunTargetApp = true, will run the target program before run the script;
//Set the scriptEnum.isBringToFront = false, will not bring the target program 's main window
//is not brought to the front of the screen.
//eg:
//In indesign CS2, run below script, you can see the result

do{
var scriptEnum = {};
scriptEnum.senderAppName = "indesign";
scriptEnum.targetAppName = "bridge";//"illustrator";//"photoshop";//"bridge"
scriptEnum.isRunTargetApp = true;
scriptEnum.isBringToFront = true;
scriptEnum.fileURI = null;//"D:\\Adobe\\Adobe Indesign CS2\\Presets\\Scripts\\File+Folder\\00)FilesReport.js";
scriptEnum.scriptStr =
"alert(\"Hellow World! From " + scriptEnum.senderAppName + "-> " + scriptEnum.targetAppName + "\");\n"+
"var result = {}; \n"+
"result.file = new File(\"c:\\1.jpg\");\n"+
"result.toSource();";

if(!validateSenderScriptVersion(scriptEnum)){break;}
#target indesign

if(!runScript(scriptEnum)){
alert("Run the script failure!");
break;
}
}while(false);

function validateSenderScriptVersion(scriptEnum){
switch(scriptEnum.senderAppName){
case "indesign": return app.version != 3; break;
default: break;
}
return false;
}

function runScript(scriptEnum){
if(BridgeTalk.appName != scriptEnum.senderAppName ){return false;}
var targetAppName = scriptEnum.targetAppName;
if(!BridgeTalk.getSpecifier(targetAppName)){return false;}
if(scriptEnum.isRunTargetApp){
if(!BridgeTalk.isRunning(targetAppName)){
var runtime = 0;
var totalDelayTime = 180*1000;
var periodDelyTime = 3*1000;
if(scriptEnum.isBringToFront){
if(BridgeTalk.launch(targetAppName)){
//There might be a queued for sending later for still not run the target app,
//so wait it 15s until the target app run completly.
//if(delayTime(180*1000, 3*1000, !BridgeTalk.isRunning(targetAppName))){return false;}
while(totalDelayTime > runtime && !BridgeTalk.isRunning(targetAppName)){
$.sleep(periodDelyTime);
runtime += periodDelyTime;
}
if(!BridgeTalk.isRunning(targetAppName)){return false;}
}else{return false;}
}else{
if(BridgeTalk.launch(targetAppName, "background")){
while(totalDelayTime > runtime && !BridgeTalk.isRunning(targetAppName)){
$.sleep(periodDelyTime);
runtime += periodDelyTime;
}
if(!BridgeTalk.isRunning(targetAppName)){return false;}
}else{return false;}
}
}
}
var sStr = scriptEnum.scriptStr;
if(!sStr || sStr == ""){sStr = load(scriptEnum.fileURI);}
if(!sStr || sStr == ""){return false;}
if(!runScriptAString(sStr, targetAppName, scriptEnum.isBringToFront)){
return false;
}
return true;
}

newline in script string

$
0
0
This is so basic but I haven't found my way round it yet.

function mytest() {
var bt = new BridgeTalk ();
var theScript = "alert('Hello World');";
bt.target = 'photoshop';
bt.body = theScript;
bt.send();
}
mytest();

If I want Hello and World on different lines I would expect the following to work but it doesn't, in fact it kills the script.

var theScript = "alert('Hello\nWorld');";

I have tried various things like \\n and reversing the ' and " - so far no progress.

Andrew

compiled bridge cs5

$
0
0

Hi,

 

I  dont have a compiler  or maybe v c++  installed by default I am not used to compile.

The bridge cs5 sdk have dlls to be compiled apparently.

 

 

SampleLib

BasicExternalObject

 

I would like to have theese compiled for vista 32 or 64 bits.

 

JPD


Script for copying keywords to description field

$
0
0

Does anyone have a script that can be used in cs5 to copy the keywords to the description field?

 

Thanks

 

Mark

Initiating a script from a created menu

$
0
0

Ok,

 

I admit that I am a novice with JavaScript, although I have experience developing using Xcode with ObjC and lots of interapplication scripting with AppleScript.

 

However, I am clearly missing some very basic concepts trying to do some very simple things to script Adobe Bridge.

 

For instance, I have followed the tutorials and have had no problem running and customizing versions of SnpAddMenuItem.jsx and SnpCreateThumbnailInspector.jsx.

 

Now, let's say I put the SnpAddMenuItem.jsx in the Startup Scripts folder for Bridge CS6. (works fine and creates menu on launch.)

 

However, instead of displaying an alert, as in the demo:

 

alertCommand.onSelect = function (m)

    {

        var txt = m.text;

        // Display result as UI, as this is UI sample

        alert("'" + txt + "' was chosen menu item");

        // run javascript

        //SnpCreateThumbInspectorPanel.Main();

    }

 

 

 

I want to run  SnpCreateThumbnailInspector.jsx.

 

Do I:

  1. Call the script by referencing it's location on disk
  2. Include the CreatThumbnailInspector code as a function in the AddMenuItem script and direct function.OnSelect to run that function
  3. Or is there some other method that I am totally missing?

 

I have scoured the documentation and much of the sample scripts and can't seem to figure out this seemingly simple concept.

 

 

- James

 

 

 

 


can i send email directly from bridge cs6 and cc ?

$
0
0

hi

 

can i send emails directly from bridge cs6 or cc directly from bridge?

 

i found this scripts http://kb2.adobe.com/community/publishing/894/cpsid_89450.html

 

but i run cs6 and cc under windows 7 sp1 64bit and windows 8.1 64bit

 

and i have thunderbird email client

 

is there a way to make it work?

maybe i can install another email client

 

thanks

Exporting Bridge metadata to Excel or CSV

$
0
0

How can I extract Bridge (version CS4) metadata to Excel?  I find some guidance here in the Adobe forums about moving metadata from a spreadsheet to Bridge, but I need to export Filename and ITPC Core Description fields from Bridge to a Excel (or CSV) file.  Any advice would be welcome!

New folder from selected items - in Adobe Bridge

$
0
0

Hi

 

Is there a way to create 'New folder from selected items' in Adobe Bridge (Similar to the Finder functionality on a Mac) ?

 

Thanks

 

Nige

Viewing all 45715 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>