• 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: set/find original folder of alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set/find original folder of alias


  • Subject: Re: set/find original folder of alias
  • From: Nathan Greenstein <email@hidden>
  • Date: Fri, 17 Sep 2010 16:20:47 -0700

Is it faster to use coerce the path into a string and use text item delimiters to get rid of the bottom level?
In my experience, string paths are a good deal faster than aliases.

HTH,
--
Nathan Greenstein
email@hidden



On Wed, Sep 15, 2010 at 08:14, Bert Groeneveld <email@hidden> wrote:
How can I speed up this script? The more files inside myFolder, the slower the script.

tell application "Finder"
if class of myFolder is alias file then
set myFolder to original item of myFolder -- 0.01 sec if myFolder is empty, but 5 secs. if myFolder contains 7000 images
end if
end tell


—

Bert.

 _______________________________________________
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

 _______________________________________________
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

References: 
 >set/find original folder of alias (From: Bert Groeneveld <email@hidden>)

  • Prev by Date: Re: Select, Reveal and Column View
  • Next by Date: Re: set/find original folder of alias
  • Previous by thread: set/find original folder of alias
  • Next by thread: Re: set/find original folder of alias
  • Index(es):
    • Date
    • Thread