Accessing lists as references
Accessing lists as references
- Subject: Accessing lists as references
- From: Phil Burk <email@hidden>
- Date: Wed, 27 Jun 2001 08:58:33 -0500
Ok, I'm kind of stuck on this. I have two lists, one containing the
location of directories on an ftp server organized by client and another
with the client names themselves.
I'm doing a filename compare against the client name list and want to
somehow assign the proper ftp directory for the client name.
Example:
Property ClientA : "email@hidden/Client Directories/ClientA"
Property ClientB : "email@hidden/Client Directories/ClientB"
Property ClientC : "email@hidden/Client Direcotries/ClientC"
Set clientList to {"ClientA","ClientB","ClientC"}
Set clientLocationList to {ClientA,ClientB,ClientC}
If I use a repeat loop for the clientList list and compare the contents of a
filename against the list, what would be the easiest way to to get the
proper ftp directory variable assigned? Should I use a bunch of "if-else"
tests? Another repeat loop?
I'm at a loss - but yet this seems to have an obvious solution that I'm
overlooking.
TIA,
Phil
----------------------------------------------------------------------------
Phil Burk
DesktopMedia, Inc.
email@hidden
"Let us all be happy, and live within our means, even if we have to borrow
money to do it with."
- Artemus Ward, "Artemus Ward in London" (1872)