• 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
Error in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error in Leopard


  • Subject: Error in Leopard
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 29 Dec 2011 14:16:33 -0600

I have a script that works perfectly in Lion and Snow Leopard, but errors in Leopard (10.5.8).
The problem is the one line of code ...

tell application "Finder"
set msgList to (reverse of (sort items of sourceFolder by modification date)) -- this errors in Leopard

In Leopard, I have to replace this one line with these three lines ...

tell application "Finder"
(items of sourceFolder)
(sort the result by modification date) as alias list
set msgList to (reverse of the result)
Does anyone know more about the nature of this problem?
Is there a known bug in Leopard here?

 _______________________________________________
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: Error in Leopard
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: Extract titles of videos.
  • Next by Date: Re: Error in Leopard
  • Previous by thread: Re: Extract titles of videos.
  • Next by thread: Re: Error in Leopard
  • Index(es):
    • Date
    • Thread