Re: renaming files in Finder
Re: renaming files in Finder
- Subject: Re: renaming files in Finder
- From: Deivy Petrescu <email@hidden>
- Date: Fri, 8 Feb 2002 17:54:04 -0500
I could only reply today. Sorry bringing this topic back again, ...
This is a recurring topic. 'Every file of myFolder' is a Finder reference
to all the files in the folder generally. It looks like a list when
quizzed, but it's not in itself a fixed list of the individual entities.
If the commands inside the repeat do anything to change the number of
files in the folder, or the Finder's opinion of their order in it, the
reference will imply a slightly different "list" on each iteration.
Good point. However, this script works and errs only when it should
____
set lista to {1, 2, 3, 4, 5, 6}
set novalista to {}
repeat with j from 1 to count of items in lista
set end of novalista to item j of lista
log novalista
set lista to rest of lista
log novalista
end repeat
-----
This seems to work too, though I'm not quite clear why it should:
repeat with x in (every file of myFolder) as list
NG
It does not work in a tell finder wrap.
Actually, here XAS1.8.1, it does not work as you wrote even outside
a tell finder.
Actually what I get here to work here is
-----------(every file of myFolder as list) -- parenthesis outside
however, only outside the tell finder wrap.
Would anybody care to confirm this.
Thanks
--
Deivy Petrescu
http://www.dicas.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.