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

Re: Error in Leopard


  • Subject: Re: Error in Leopard
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 29 Dec 2011 15:47:04 -0600

On Dec 29, 2011, at 2:27 PM, Stan Cleveland wrote:

I'm not sure about the cause of this problem, but would suggest adding another pair of parentheses as a possible solution:

tell application "Finder"
set msgList to (reverse of (sort (items of sourceFolder) by modification date))

No guarantees, but worth a try.

Just before reading your reply, I tried again and found the problem.
Here's what works ...

tell application "Finder"
set msgList to (reverse of (sort (get items of sourceFolder) by modification date)) 

It seems that not only is Leopard picky about parenthesis, but the use of 'get' seems to be required.
Thanks.

 _______________________________________________
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: Michelle Steiner <email@hidden>
    • Implied 'get' (was Re: Error in Leopard)
      • From: Stan Cleveland <email@hidden>
References: 
 >Error in Leopard (From: Luther Fuller <email@hidden>)
 >Re: Error in Leopard (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Error in Leopard
  • Next by Date: Implied 'get' (was Re: Error in Leopard)
  • Previous by thread: Re: Error in Leopard
  • Next by thread: Implied 'get' (was Re: Error in Leopard)
  • Index(es):
    • Date
    • Thread