Re: renaming files in Finder
Re: renaming files in Finder
- Subject: Re: renaming files in Finder
- From: Andy Wylie <email@hidden>
- Date: Wed, 06 Feb 2002 03:15:26 +1300
on 5/2/02 11:56 AM, Deivy Petrescu at email@hidden wrote:
>
>> on run
>
>> set myFolder to choose folder
>
>> --asks you what folder
>
>> tell application "Finder"
>
>> repeat with x in every file of myFolder
>
>> set name of x to ("temp " & name of x)
>
>> end repeat
>
>> --adds "temp" to all file names in myFolder
>
>> end tell
>
>> end run
>
>
>
> Easier, perhaps, but no more effective on my OS 10.1.2 with AS 1.8.2b.
>
> The Finder likes it better if the files in the folder are put into a
>
> variable first...
>
>
Actually, I think it likes only if the files are in a variable. It
>
does not work any other way.
>
And I am talking about AS 1.8.1
>
only feed it stuff smaller than it's head...
repeat with x in (every file of myFolder)
_____________________________ Andy