Re: Loops
Re: Loops
- Subject: Re: Loops
- From: "J. Stewart" <email@hidden>
- Date: Sat, 2 Feb 2008 17:10:32 -0500
On 2/2/08 at 12:28 PM, Ed Stockly <email@hidden> spake thusly:
This can be problematic. Entire contents mines down in the
directory and gets every file/item in folders within folders
and the move command dumps all into the same directory. If
files in the sub-folders have the same names the command would fail.
Sheesh Ed, stop being so darn critical of other people's posts
unless there is a glaring syntactical error in them or it just
doesn't work.
Did you read all of my post before replying? It is better not to
quote out of context. You seem to have missed the part about
moving everything. Heaven forbid, I guess this is problematic
too as there might be a folder that also has a duplicate name.
Maybe we should just give up on moving anything because it might
throw an error.
Of course you're going to have trouble if there are existing
items in the destination folder with the identical names. That's
a given and it's also why there are try-on error wrappers and
people code for exceptions. However, that's a subject for a
different thread so feel free to start one. This one was about
looping with an aside about moving files, not about error trapping.
It wasn't meant to be an in-depth course just a quick nudge. If
you want the full course then buy and read Matt's book (or one
of the others). It covers this pretty well and he wrote it
better than I could. I just don't think anyone wants to waste
bandwidth on book length posts, I certainly don't.
J
--
You can get more with a simple prayer and a Thompson
sub-machinegun than you can with a simple prayer alone. -John Dillinger
_______________________________________________
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: Ed Stockly <email@hidden>) |