• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Copy Selected File Names

Participant ,
May 25, 2021 May 25, 2021

Copy link to clipboard

Copied

Is there a script to copy the selected file names from within Adobe Bridge CC?

(I have a script that copies a single file path. I don't need the path for this use. And I do need to be able to copy multiple file names at once.)

Thanks!

TOPICS
How to , Import and export , Scripting

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , May 25, 2021 May 25, 2021

 

prprts = (slctns = app.document.selections).reflect.properties
itms = prprts.slice(0, -(prprts.length - slctns.length)); while
(!isNaN(itms[0])) itms.push(slctns[itms.shift()].name); itms

 

Votes

Translate

Translate
LEGEND ,
May 25, 2021 May 25, 2021

Copy link to clipboard

Copied

 

prprts = (slctns = app.document.selections).reflect.properties
itms = prprts.slice(0, -(prprts.length - slctns.length)); while
(!isNaN(itms[0])) itms.push(slctns[itms.shift()].name); itms

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 25, 2021 May 25, 2021

Copy link to clipboard

Copied

Bridge gave me an error on that code. "An error occurred while running a startup script named..."

Is it to be saved as file type .jsx?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 25, 2021 May 25, 2021

Copy link to clipboard

Copied

Yes with .jsx extension, but it wasn't meant to be put to StartupScripts. Use it like you need.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

You can use one of the metadata export scripts:

 

Extracting Metadata to .CSV

 

Outside of Bridge, there are options in both Windows and Mac operating systems.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

You can also use my Folder List Export which can be configured on the fly to export varios metadata and filenames.

 

Adobe Scripts

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

Something broke. None of my startup scripts show up in the Bridge context menu anymore. I tried removing them both by Bridge > Edit > Preferences > Disable All and by removing them from the startup scripts folder and adding them back... then restarting Bridge. They just don't show up anymore!

 

Windows 10.0.19042

Adobe Bridge 2021 11.0.2.123

Attachments:

* Startup scripts folder as shown when using "Reveal My Startup Scripts"

* Startup scripts as shown by Bridge > Edit > Preferences

* The Bridge context menu

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

In few milliseconds after initiating Bridge hold shift & ctrl & alt and reset preferences.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

Kukurykus, thanks that restored Bridge and didn't clobber too many of my settings.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

And the solution that works for extracting the file names is:

Extract Metadata.jsx

Many others were suggested. Extract Metadata was the first one that I got working.

Extract Metadata

Thanks for all the tips!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

My code does the same. Save it and run by double clicking when you have some files selected in Bridge:

 

#target bridge

prprts = (slctns = (ad = app.document).selections).reflect
.properties, itms = prprts.slice(0, -(prprts.length - slctns.length))
while(typeof itms[0] == 'object') itms.push(slctns[itms.shift()].name)
with(File(ad.presentationPath + '/names.txt'))
	open('w'), write(itms.join('\n')), close()

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

LATEST

Its a bit of a pain but this can be further modified to copy the content to the Clipboard on both platforms.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines