• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing lists as references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: scripting bbedit
  • Next by Date: Re: scripting bbedit
  • Previous by thread: Accessing lists as references
  • Next by thread: Paper size in QX
  • Index(es):
    • Date
    • Thread