• 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: Differentiating between "A1", "A12", "A13"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Differentiating between "A1", "A12", "A13"


  • Subject: Re: Differentiating between "A1", "A12", "A13"
  • From: Nigel Garvey <email@hidden>
  • Date: Fri, 11 Jan 2002 00:56:59 +0000

Arthur J Knapp wrote on Thu, 10 Jan 2002 15:30:11 -0500:

>> Subject: Re: Differentiating between "A1", "A12", "A13"
>> Date: Thu, 10 Jan 2002 18:42:12 +0000
>> From: Nigel Garvey <email@hidden>
>
>
>> set myFolder to choose folder
>
>> -- Get the names of all the files in the folder
>> -- (Hopefully, they're in alphabetical order)
>
>> tell application "Finder" to set nameList1 to name of files of myFolder
>
> I'm surprised at you, Nigel ;-)

We-e-ll.... This:

> tell application "Finder"
>
> set theFiles to sort (every file of myFolder) by name

... only returns an alphabetical sort of the *files*. You then have to
examine each one in turn to get its name, which is very tedious on my
4400. This:

> set theNames to sort (name of every file of myFolder) by name

... returns an empty list, which is fairly useless - but it does speed up
the rest of the script enormously! ;-)

Actually, 'list folder myFolder without invisibles' is just the ticket,
provided that there are no folders in myFolder. David didn't say, so I
didn't make the assumption - having made enough of them in the script
already. ;-)

NG


  • Prev by Date: Re: script for Eudora and Bcc
  • Next by Date: Dialing via a modem
  • Previous by thread: Re: Differentiating between "A1", "A12", "A13"
  • Next by thread: Re: Differentiating between "A1", "A12", "A13"
  • Index(es):
    • Date
    • Thread