Hi,
Relatively newbie to ascripting and need help with a repeat problem.
The following script works but it continuously adds the adds the text to the filename as shown in screenshot so I guess somewhere I'm missing something.
here's the script . . .
on adding folder items to this_folder after receiving these_items
repeat with i from 1 to number of items in these_items
tell application "Finder"
set this_item to item i of these_items
set theFileName to the name of this_item
set thenewName to the (theFileName & "test") as string
set the name of this_item to thenewName
end tell
end repeat
end adding folder items to
Thanks in advance for any help
Relatively newbie to ascripting and need help with a repeat problem.
The following script works but it continuously adds the adds the text to the filename as shown in screenshot so I guess somewhere I'm missing something.
here's the script . . .
on adding folder items to this_folder after receiving these_items
repeat with i from 1 to number of items in these_items
tell application "Finder"
set this_item to item i of these_items
set theFileName to the name of this_item
set thenewName to the (theFileName & "test") as string
set the name of this_item to thenewName
end tell
end repeat
end adding folder items to
Thanks in advance for any help