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.)
prprts = (slctns = app.document.selections).reflect.properties itms = prprts.slice(0, -(prprts.length - slctns.length)); while (!isNaN(itms)) itms.push(slctns[itms.shift()].name); itms
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?
Yes with .jsx extension, but it wasn't meant to be put to StartupScripts. Use it like you need.
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!
Adobe Bridge 2021 126.96.36.199
* Startup scripts folder as shown when using "Reveal My Startup Scripts"
* Startup scripts as shown by Bridge > Edit > Preferences
* The Bridge context menu
In few milliseconds after initiating Bridge hold shift & ctrl & alt and reset preferences.
Kukurykus, thanks that restored Bridge and didn't clobber too many of my settings.
And the solution that works for extracting the file names is:
Many others were suggested. Extract Metadata was the first one that I got working.
Thanks for all the tips!
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 == 'object') itms.push(slctns[itms.shift()].name) with(File(ad.presentationPath + '/names.txt')) open('w'), write(itms.join('\n')), close()
Its a bit of a pain but this can be further modified to copy the content to the Clipboard on both platforms.