Re: Loops
Re: Loops
- Subject: Re: Loops
- From: "J. Stewart" <email@hidden>
- Date: Sat, 2 Feb 2008 05:08:33 -0500
On 2/1/08 at 5:48 PM, Luther Fuller <email@hidden>
spake thusly:
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
Luther,
tell application "Finder"
set foo to every file of entire contents of path2sourcefolder"
move items of foo to path2Destinationfolder
end tell
It's probably the fastest way to move all the files in a folder
to another folder while leaving the folder structure intact in
the original folder. To move everything simply change "every
file" to "every item" and it will move all of it. I'd qualify it
with a whose clause if moving all items so I didn't copy the
invisible ones.
Your answer is essentially the same as mine, a decrementing
count variable.
J
--
The tree of liberty must be refreshed from time to time with the
blood of patriots and tyrants. It is its natural
manure. -Thomas Jefferson
_______________________________________________
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: Luther Fuller <email@hidden>) |