hello ,
May i ask for a script like this
when selecting multiple file(for example file1.jpg,file2.txt, file3.jpg, file4.doc) the script will copy to clipboard in this format
"file1.jpg" "file2.txt" "file3.jpg" "file4.doc"
(Only file names ,not contain paths)
(the order of the file is sorted by current sorting mode(which we choose in view=> sort by ..)
- like the result list when we select "to clipboard=>items name(s)"
Thanks in advance
[HELP] Scripting : copy to clipboard in specific format ?
Re: [HELP] Scripting : copy to clipboard in specific format
Code: Select all
$copyString = "";
foreach ($item, "<get SelectedItemsNames |>", "|") {
$copyString = $copyString . quote($item) . " ";
}
copytext $copyString;
One of my scripts helped you out? Please donate via Paypal
Re: [HELP] Scripting : copy to clipboard in specific format
Thank so much highend ,you made my day
Re: [HELP] Scripting : copy to clipboard in specific format
May I eliminate your string-building loop? Or if you want to sacrifice legibility for one less instance of the stepping dialog...
Code: Select all
CopyText Quote(Get('SelectedItemsNames','" "'));
Code: Select all
CopyText '"' . Get('SelectedItemsNames','" "') . '"';
Re: [HELP] Scripting : copy to clipboard in specific format
Thank you ,TheQwerty ^^ i really aprreciate itTheQwerty wrote:May I eliminate your string-building loop?Or if you want to sacrifice legibility for one less instance of the stepping dialog...Code: Select all
CopyText Quote(Get('SelectedItemsNames','" "'));
Code: Select all
CopyText '"' . Get('SelectedItemsNames','" "') . '"';