Re: Loops
Re: Loops
- Subject: Re: Loops
- From: Luther Fuller <email@hidden>
- Date: Fri, 1 Feb 2008 18:13:24 -0600
On Feb 1, 2008, at 6:01 PM, Michelle Steiner wrote:
On Feb 1, 2008, at 3:48 PM, Luther Fuller wrote:
When you move files by counting down they don't get reordered.
A good explanation and solution, but why index the files at all?
If you are moving ALL the files in a folder, you can do this ...
tell application "Finder"
repeat until (count files of somefolder) = 0
move (some file of somefolder) to someotherfolder
end repeat
end tell
Other than illustrating loops, why not this:
tell application "Finder" to move files of somefolder to
someotherfolder
-- Michelle
Now, that's a one-liner that I like. Never use a loop you can avoid.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >Re: Loops (From: "J. Stewart" <email@hidden>) |
| >Re: Loops (From: Luther Fuller <email@hidden>) |
| >Re: Loops (From: Michelle Steiner <email@hidden>) |