list folder and list disks deprecated?
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