• 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: Does AppleScript have arrays within the language?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does AppleScript have arrays within the language?


  • Subject: Re: Does AppleScript have arrays within the language?
  • From: Guy Algot <email@hidden>
  • Date: Wed, 13 Dec 2000 10:16:37 -0700

On 12/13/00 9:54 AM, Paul sent:

> Does AppleScript have arrays within the language?
>: If so, is it possible to list all files from within a
>: local folder and place the file names into the array?
>: If this isn't possible, another proposed solution would
>: be much appreciated.

Lists are similar to arrays. You can also have lists of lists.

Here is a sample Applescript that will do what you ask given a particular
folder reference;

tell application "Finder"
set y to every file of folder "A Folder" of disk "My Hard Disk"
end tell

'y' will be a list of files.

Later,
Guy


*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Guy Algot, Graphic Dimensions Consulting (403) 861-9882
email@hidden Calgary, Alberta
"The higher, the fewer!" Mac consulting/4D development
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
'Remember that as a teenager you are in the last stage of your
life when you will be happy to hear that the phone is for you'
-- Fran Lebowitz


  • Prev by Date: Re: document list?
  • Next by Date: Re: Excel last cell
  • Previous by thread: Re: Does AppleScript have arrays within the language?
  • Next by thread: Re: Does AppleScript have arrays within the language?
  • Index(es):
    • Date
    • Thread