Script to add text to file names
Posted: 19 Feb 2009 00:11
A small request, if I may, ladies and gentlemen.
I need a script that takes filenames of selected files (including extension), copies those filenames (not files themselves) to clipboard and adds a preset (aka hardcoded) bit of text to the beginning of every filename in clipboard. Example, I have files called file1.txt, file2.txt and file3.txt selected in a folder. Upon applying this script, assuming hardcoded preset is "temp-", the clipboard will have the following:
Having had a look at the list of scripting commands, I literally don't know where to start so I'm hoping someone will be able to help me. Thanks a lot guys 
I need a script that takes filenames of selected files (including extension), copies those filenames (not files themselves) to clipboard and adds a preset (aka hardcoded) bit of text to the beginning of every filename in clipboard. Example, I have files called file1.txt, file2.txt and file3.txt selected in a folder. Upon applying this script, assuming hardcoded preset is "temp-", the clipboard will have the following:
Code: Select all
temp-file1.txt
temp-file2.txt
temp-file3.txt