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
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.
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.
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");
}
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");
}
Thank you very much, Paul! This is the best thing a stranger has given me in a long time!
![]()
To summarize:
How to add a copy full file name & path right-click context menu option to Bridge:
Launch either:
* ExtendScript Toolkit CS5
* your favorite text editor
Copy this into it (excluding the equals sign seperators)
=====================================================
#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");
}
=====================================================
Save as:
C:\Users\{your user name}\AppData\Roaming\Adobe\Bridge CS5\Startup Scripts\Bridge Copy Path.jsx
Launch Bridge
Allow the new script
Thanks,
Drew
Copy Path has stopped working. ![]()
I double checked that the .jsx file is intact. It is.
I recopied the body of the script from above into the .jsx file. No difference.
I've Disabled and re-enabled the "Bridge Copy Path Script."
I've re-started Bridge.
I've re-booted my computer.
All of these in various sequences.
Selecting "Path to Clipboard" from the right-click context menu causes what looks like a DOS window to popup and close right away. This is normal behavior. But, the result is that the copy buffer is un-changed. It retains whatever was in it before the execution of the script.
The script had been working fine for a long time. I dont' have any idea what would have changed it or how to fix it.
To answer some basic questions that are sure to pop up.
What is in the file
C:\Users\Drew\AppData\Roaming\Adobe\Bridge CS5\Startup Scripts\Bridge Copy Path.jsx
?
---------------------------------------------------------------------- --------
#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");
}
---------------------------------------------------------------------- --------
Does "Bridge Copy Path" show up in the Startup Scripts list?
Yes.
Is "Bridge Copy Path" checked in the Startup Scripts list?
Yes.
Thanks,
Drew
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2012 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).