• 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: Luther Fuller <email@hidden>
  • Date: Fri, 17 Sep 2010 19:00:55 -0500

On Sep 15, 2010, at 10:14 AM, Bert Groeneveld 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

Just noticed, but shouldn't the second line be ...

if class of item myFolder is alias file then

For example ...

set fileAlias to alias "OS_X:Users:lutherfuller:Desktop:CommentRepair.app"
tell application "Finder"
class of fileAlias --> alias
class of item fileAlias --> «class alia»
(class of item fileAlias) as text --> "alias file"
end tell



 _______________________________________________
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: set/find original folder of alias
  • Next by Date: Re: Test for valid URL?
  • Previous by thread: Re: set/find original folder of alias
  • Next by thread: Test for valid URL?
  • Index(es):
    • Date
    • Thread