Skip navigation
DrewF-Fvt6ti
Currently Being Moderated

Copy Path Context Menu

May 1, 2010 2:48 PM

Is there a way to add copy path (full path to the file) to the right-click context menu inside of Bridge?

 

Currently, I "Reveal in Explorer" and then use FileMenuTools' copy path to accomplish this.

 

Thanks,

Drew

  • Currently Being Moderated
    Community Member
    May 1, 2010 4:20 PM

    Know just enough about computers to make me dangerous, but I believe the right click stuff is set by the OS.

     

    When I got Vista the right click did not have "copy to and move to".  I added them with help from web on changing the registry.  Might google your querry and see if there is similar solution.

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    May 2, 2010 9:58 AM

    You can add scripts to the right click menu within Bridge, it all depends what you want to do with the path when you have it?

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    May 2, 2010 10:23 AM

    That would be more difficult, you can get the path, but not an easy task to put it on the clipboard. You might need to pass the data to an external program to put it there. I think you may be able to use the system command to pass the presentationpath to clip.exe. I will have a play and get back to you.

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    May 2, 2010 10:35 AM

    Ok got it to work, this is windows only!

     

    Save the code as filename.jsx using a TEXT editor, (better with EXtendScript Toolkit).

    Open Bridge, Edit - Preferences - Startup Scripts. Click the reaveal button and this is where the script resides.

    To use :-

    Select you folder and using the Right Click Menu select "Path to Clipboard"

     

    
    #target bridge   
       if( BridgeTalk.appName == "bridge" ) {  
    bridgePath = new MenuElement("command", "Path to Clipboard", "at the end of Thumbnail");
    }
    bridgePath.onSelect = function () { 
       pathToClipboard();
       }
    function pathToClipboard(){
    app.system("echo "+decodeURI(app.document.presentationPath) +"|clip");
    }
    
    |
    Mark as:
  • Currently Being Moderated
    Community Member
    May 2, 2010 3:24 PM

    This will put the full path and filename of the selected file...

    
    #target bridge   
       if( BridgeTalk.appName == "bridge" ) {  
    bridgePath = new MenuElement("command", "Path to Clipboard", "at the end of Thumbnail");
    }
    bridgePath.onSelect = function () { 
       pathToClipboard();
       }
    function pathToClipboard(){
    var sels = app.document.selections;
    app.system("echo "+decodeURI(sels[0].spec.fsName) +"|clip");
    }
    
    
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points