Re: Accessing lists as references
Re: Accessing lists as references
- Subject: Re: Accessing lists as references
- From: Michelle Steiner <email@hidden>
- Date: Wed, 27 Jun 2001 09:50:04 -0700
On 6/27/01 6:58 AM, Phil Burk <email@hidden> wrote:
>
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.
How about this?
--Michelle
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}
set ClientToLookUp to text returned of (display dialog "Which client do
you want the directory for?" default answer "")
repeat with loop from 1 to length of clientList
if item loop of clientList is the ClientToLookUp then
set clientNumber to loop
exit repeat
end if
end repeat
set foundDirectory to item clientNumber of clientLocationList
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------