How to run script on selected files in Bridge

I have a script that takes an open Photoshop document and saves it to four different resolutions in different folders. I'd like to be able to select files in Bridge and run the script on the selected files instead of having to do it each image individually in PS. Anyone know how to do this? Thanks!
Eric

MarkWalsh wrote:
A fairly easy way, you can add your script to the 'Scripts' menu, then create an action that calls this script (use 'Insert Menu Item' to add to your action) and call this action through a batch in Bridge. One issue with this, though, is that it does require creating an action to specifically call the script, I don't know if you can call the script directly from Bridge.
I haven't scripted Bridge at all myself, but I believe you should also be able to rewrite your script to get the selection in Bridge, and process those files in Photoshop.
If your script is set up to process one file at a time, the Bridge/Batch technique is the simplest way to do it.
If your script needs to know what all of the files are before it can begin processing, you have to add a Menu element in Bridge and have it call your action/script in Photoshop. A bit more complicated, but there are a lot of examples of this at ps-scripts.com.
-X

Similar Messages

  • Possible to run a photoshop script by selecting files in Bridge?

    Hi,
    I have a good script I've written that I always used to run from Photoshop. The script has a dialog box which asks where to get the files from. Is it possible to select files in bridge and run the script from there? Without rewriting it for Bridge?
    Thanks,
    Stan

    > I have a good script I've written that I always used to run from Photoshop. The script has a dialog box which asks where to get the files from. Is it possible to select files in bridge and run the script from there? Without rewriting it for Bridge?
    Yes, this is possible. However, a much easier solution is to select the files in
    Bridge then switch to PS manually to run your script. It avoids having to having
    to write any code to run in Bridge at the cost of not having seamless integration.
    In xtools/xlib/XBridgeTalk.jsx I have a set of functions that simplify working
    with Bridge from within PS. For instance:
    var files = XBridgeTalk.getBridgeSelection();
    will return an array of Files that are currently selected in Bridge. If Bridge
    isn't running or if no files are selected it returns an empty array.
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

  • How to run script file ( unix script file like ksh or sh file) using Java

    How to run script file ( unix script file like ksh or sh file) using Java Program?.
    I am using the following code snippet to run the simple commands like top or ls ,etc....
    Runtime runtime = Runtime.getRuntime();
    Process proc = runtime.exec("top");
    Thanks In Adavance
    -Siva

    String [] { "ksh" , "-c" , "script", "arg 1", "arg 2", "arg 3"}

  • How to run the emca batch file

    Hello,
    I would just like to know how to run the emca batch file for a single test database on my PC with SID = ORCL1.
    Hope someone can help me.
    Thanks!

    Hi
    If you mean running EMCA as batch file and test something.
    I think the best way is to write OS level script to handle this

  • How to run scripts ?

    I would like to know how to run scripts with xgrid.
    From the Xgrid Admin manual, page 37, I created a file and added
    !#/bin/sh
    /bin/echo "Hello, World!"
    saved the file, and gave chmod 755 hello.sh
    When I run at the command line, "Hello, World" is displayed. But as Apple mentioned in the same page of the manual, I did this at the command line
    xgrid -h localhost -p mypassword job submit hello.sh
    Job id is displayed. Say it is 67.
    I could see in the Admin interface that job is sumbitted and running. After finishing, at the command line I did a
    xgrid -h localhost -p mypassword job results -id 67
    Nothing is displayed. Am I doing right or missing something ?
    Appreciate any help.

    A little comment: add to your bashrc file (in /etc/)
    export XGRIDCONTROLLERHOSTNAME=yourcontroller
    export XGRIDCONTROLLERPASSWORD=yourpass
    so that you don't need to use -h and -p options all the time.
    Am I wrong or shouldn't your commands be -job (notice the dash before job)?
    I suppose because otherwise you would get a help page. Also, I suppose your beggining of file is #! instead of the inverse...
    Did you try using run instead of submit? You should see the output right away.
    What is the status of the job in Xgrid Admin? What happens if you use -so to direct the output to some file?

  • How to run an external .exe file from an indesign pluging

    Hi,
          Suppose if I have written an separate application in C++ (.exe file) & need to run it from an indesign pluging(as if a service in windows). have you provided that facilities in your SDK? if it's please let me know how to run an external .exe file from a indesign pluging.
    Thanks,

    I'm actully writing data in PMString to a external txt file.
    another question..
    if i want to execute an action when the ok button is cliked how can i do it?
    whe i add a button(widget) i know how to handle it. please see my code.
    // Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).
    CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
    do
    InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
    ASSERT(controlView);
    if(!controlView) {
    break;
    // Get the button ID from the view.
    WidgetID theSelectedWidget = controlView->GetWidgetID();
    if (theChange == kTrueStateMessage)
    //if (theSelectedWidget == kEXTCODGoButtonWidgetID
    switch(theSelectedWidget.Get())
             case kEXTCODGoButtonWidgetID:
      this->ViewOutput();
      break;
             case kEXTCODFindButtonWidgetID:
      this->SaveLog();
      break;
    // TODO: process this
    } while (kFalse);
    I do two actions "SaveLog" & "ViewOutput()" using two buttons. But i dont know how to execute an action when the ok button is clicked...

  • How to run the Main.kon file ?

    Hi
    I have Downloaded and Installed
    SAP Widget Foundation.
    I am trying to Create the HelloWorld Widget.
    I have Written the Main.kon file
    as described in the tutorial.
    But how to run the Main.kon file ?
    Regards
    Rajendra

    hi,
    check whether you have installed yahoo widget engine...
    Then right-click on the main.kon and choose run..
    thanks
    jaideep

  • How to run script .sql

    Hi
    eBS
    DB: 11.1.7
    APS: R12.1.2
    Does anyone who can guide me how to run script for .sql
    I need command on how to execute this |
    Run the script poxrespo.sql in the PO_TOP/sql directory
    Thanks

    Does anyone who can guide me how to run script for .sql
    I need command on how to execute this |
    Run the script poxrespo.sql in the PO_TOP/sql directoryConnect as apps user to SQL*Plus as run the script.
    Make sure COMMIT is issued -- Release Notifications Error - ORA-20002 2018 Unable To Generate The Notification Content [ID 342734.1
    Thanks,
    Hussein                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to run script in HP -UNIX

    Hi all,
    I am facing problem in running oracle scripts in HP-Unix..
    In nohup option i can`t able to use @ symbol...
    can anyone suggest me how to run ???its urgent
    In solaris i usually run like below
    nohup sqlplus -s data/data @script.sql &
    but i cant do the same in HP-Unix please some one tell me how to run??

    Hello Kirupa,
    this is from the HPUX FAQ, maybe it helps:
    Subject: 8.14 Why can't I type an '@' character?
    If you do a 'stty -a' and you will see that your 'kill' character is
    set to '@'. You need to set your 'kill' character to be something
    other than the '@' character by doing something like 'stty kill '^U''.
    You should add this to your .profile or .cshrc file.
    Kind regards

  • How to run scripts in Numbers?

    In Yvan Koenig's script, the instructions say
    "Save the script as a Script: numberInLetters.scpt
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Put the cursor in the cell which contains the number to translate.
    menu Scripts > Numbers > numberInLetters"
    What I have done so far:
    placed a script in that location
    checked option in AppleScript Editor "Show Script menu in menu bar"
    closed and opened Numbers since doing all that
    Still no Script menu.
    What else do I need to do to get the Script menu to display in Numbers?

    Hi kharisma,
    This is what  did with the script:
    Selected everything from   (*   to   --[/SCRIPT]   (omitting {code} )
    Pressed command-C to Copy.
    Opened AppleScript Editor.
    Went AppleScript Editor > Preferences.
    Checked "show Script menu in Menu bar"
    Closed preferences.
    Clicked in the script area and Pasted.
    Went File > Save to open the Save Dialogue.
    Chose Script from the File Format: popup menu.
    Navigated to the Desktop and clicked Save.
    Switched to Finder and opened a Finder window.
    Pointed the window to the Desktop. Sorted by Date to bring the newly saved file to the top.
    (Later repeated the steps above, saving the same script as an Application with the name Num2wdsResults. Moved both to the folder noted below.)
    Clicked otside the window to deslelect it.
    Pressed and held the option key.
    Went Go > Library to open my user Library.
    Released option key.
    Navigated/constructed path to Library > Scripts > Applications > Numbers.
    Dragged newly saved file to the newly made Numbers folder.
    Launched Numbers (which opened a new blank document)
    Entered numbers in A2 through A11.
    Selected each in turn and went Script menu > Numbers2words
    (or on alternate rows, Script menu > num2wds)
    Resuts as shown. Note the limitations demonstrated in the yellow rows.
    The script may be saved as either a Script or an Application. Both produce the same results.
    To run either from within Numbers, select a cell containing a number, then select the script from the Script menu in Numbers.
    Regards,
    Barry

  • Cron job : how to run scripts as cron job

    Hi friend,
    Sorry one very small question ..
    Can someone tell me how can i run scripts as cron job .. on HP UX.
    thanks
    ashish

    Hi Ashish,
    open one telnet session.
    crontab -e
    then give the periodicity day and time
    like below
    05 00 * * 1-6  /usr/local/bin/database_backup.sh
    and now create the script file with the command or script to execute.
    Regards
    Ashok Dalai

  • How To Run An External .exe File With Command Line Arguments

    Hiya, could anyone tell me how I can run an external .exe file with command line arguments in Java, and if possible catch any printouts the external .exe file prints to the command line.
    Thanks.

    Using the Runtime.exec() command. And read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Script to select files in a folder based on extension

    Does anyone have a script that would select files in a folder based on extension, then move the files somewhere else?

    Hi Kagey and welcome!
    You have to be completely accurate about the path. If your hard disk is called "Macintosh HD", then it's
    every file of folder "Macintosh HD:Applications:FileMaker Pro 6 Folder" whose name extension = "tab"
    You can generalise this for other users if you can't be sure about the name of their hard disk:
    set apps_folder to path to applications folder as string
    set fmp_folder to apps_folder & "FileMaker Pro 6 Folder"
    tell application "finder" to get every file of folder fmp_folder whose name extension = "tab"
    HTH
    H
    PS - well done in the footy

  • How to get list of selected files from swf to javascript ?

    Hi everybody,
    i want to make an upload script with swf and javascript. I want to do selecting files via swf then uploading files to server via javascript. I have searched SWFupload plugins but they are not working as i need. I am new here and i do some search, i see it is possible to save list of selected files in FileReferenceList array, but i dont know if is it possible to pass this array into javascript and then make upload progress via javascript ?

    Hi,
    You will not be able to get the local file paths from FileReference due to flash security restrictions.
    Hence I think it is not possible to pass the file reference data to javascript and load the same.
    Warm Regards
    Deepanjan Das
    http://deepanjandas.wordpress.com/

  • OSD: How to run script(it's In package) without download

    I has a hta script need to run before "Partition Disk", but this script is in a package, if I want to run it, it need to download to harddisk. so it will fail, because no partition.
    So how to run directly this script in network, without download to C drive.
    PS: I think I can put this script into boot image, but it is not easy to maintain. So I want to run directly in network
    06/30:
    Thank you for everyone support!
    My Hta will warn users that the following operations will format data.So "Create a temporary partition on the disk"--It is not for my requirement.
    As Narcoticoo mentioned, I want to use "Package Share Settings" to share folder, so how to map this folder with automatically recognize
    DP?
    just like \\%DP%\hta

    Thank you for everyone support!
    As Narcoticoo mentioned, I want to use "Package Share Settings" to share folder, so how to map
    this folder with automatically recognize DP?
    just like \\%DP%\hta
    Is there this variable?

Maybe you are looking for

  • Function Module to send SOAP message

    Is that possible to use function module to send out SOAP message from CRM to external system? Thanks a lot in advance

  • Joins in Oracle 8i

    Hi Oracle 8i supports keywords for join syntax? INNER JOIN ON

  • Testing at Query Level

    Hi All, How do you do the testing at the query level in BW? what scenario's or test cases will be used, kindly update me coz i'm new to this. Regards, V V.

  • Shockwave - fixes don't fix so why lock it?

    Seems all the topics on Shockwave are locked, and one is marked gaving a dozen things to 'try'. I have had 3 updates to, FF, updated, uninstalled, updated, renewed FF, Shockwave, Silverlight, installed, uninstalled, safe mode, unsafe-mode (verses saf

  • White space around graphic

    Is there any way to get rid of the white space around an image. A lasso?