• 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: Why is it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is it


  • Subject: Re: Why is it
  • From: "Nigel Garvey" <email@hidden>
  • Date: Wed, 30 Jan 2008 11:00:09 +0000

Michelle Steiner wrote on Tue, 29 Jan 2008 14:00:42 -0700:

>This script takes four seconds to complete:
>
>tell application "Finder"
>	set foo to entire contents of (path to documents folder)
>end tell
>
>This script runs almost instantaneously:
>
>tell application "Finder"
>	set foo to entire contents of (path to documents folder) as alias list
>end tell

As an aside, 'as Unicode text' (Jaguar to Tiger) is even faster:

  set astid to AppleScript's text item delimiters
  set AppleScript's text item delimiters to (ASCII character 0) as
Unicode text
  tell application "Finder"
    set foo to text items of (entire contents of (path to documents
folder) as Unicode text)
  end tell
  set AppleScript's text item delimiters to astid
  items 1 thru 10 of foo


NG

 _______________________________________________
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

  • Prev by Date: Re: Office:Mac 2008 (Word)
  • Next by Date: Re: Office:Mac 2008 (Word)
  • Previous by thread: Re: Why is it
  • Next by thread: Mail message content issues
  • Index(es):
    • Date
    • Thread