Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

The Butsmeister

macrumors newbie
Original poster
Jan 17, 2008
9
0
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
 

Attachments

  • Picture 1.png
    Picture 1.png
    4.4 KB · Views: 619
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.