• 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
Accessing lists as references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


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