Help requested.
"Some days you're the windshield - some days you're the bug."
Code: Select all
// Intent: Duplicate selected file then change the "-01" to COPY
#163;
rename s, "-01/ COPY";Code: Select all
// Intent: Duplicate selected file then change the "-01" to COPY
#163;
rename s, "-01/ COPY";Code: Select all
New("<curbase> COPY.<curext>", 'file', "<curitem>");Example:copyas [pattern], [targetpath], [itemlist]
itemlist: [optional] ......If empty then the current list selections are copied.
Code: Select all
copyas "* COPY.?";
//or even better with error handling in case more then one file is selected:
if (get("CountSelected") == 1) { copyas "* COPY.?"; }
//or
if (get("CountSelected") == 1) { copyas "* COPY.?"; } else { msg "Please select ONE file only!";}