• 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
list folder and list disks deprecated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

list folder and list disks deprecated?


  • Subject: list folder and list disks deprecated?
  • From: André Berg <email@hidden>
  • Date: Tue, 28 Oct 2008 08:32:52 +0100

Hi all,

I just read in the AppleScript Language Guide
(http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html)

that

list folder alias "Macintosh HD:"

is deprecated and that one should instead use the rather lengthy _expression_:

tell application "System Events" to get the name of every disk item of alias "Macintosh HD:"

On my Octo-Core MacPro the latter seems to be within 2x to 5x slower than the former
and also I don't see how one can specify an equivalent to

list folder alias "
Macintosh HD:" without invisibles

without having to use a rather costly boolean test specifier like

tell application "System Events" to get the name of every disk item of alias "Macintosh HD:" ¬
    whose name does not contain
"."


Does anyone know why this decision was made and if it the 'list folder' command will
vanish anytime soon?


Appreciate any replies. Thanks.

André



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: list folder and list disks deprecated?
      • From: Philip Aker <email@hidden>
    • Re: list folder and list disks deprecated?
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: Now, I have “Left(StringSource, CharCount)” and “Right(StringSource, CharCount)”
  • Next by Date: Re: list folder and list disks deprecated?
  • Previous by thread: Re: Two AFP mounted volumes with the same name
  • Next by thread: Re: list folder and list disks deprecated?
  • Index(es):
    • Date
    • Thread