Re: Implied 'get' (was Re: Error in Leopard)
Re: Implied 'get' (was Re: Error in Leopard)
- Subject: Re: Implied 'get' (was Re: Error in Leopard)
- From: Luther Fuller <email@hidden>
- Date: Thu, 29 Dec 2011 16:27:19 -0600
On Dec 29, 2011, at 4:11 PM, Stan Cleveland wrote: On Dec 29, 2011, at 1:47 PM, Luther Fuller wrote:
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.
Hi Luther,
I was under the impression that the use of parentheses was more-or-less equivalent to a 'get', in which case using both would be overkill. Your scenario punches a big hole in that idea. Please confirm that the following does fail:
tell application "Finder" set msgList to (reverse of (sort (items of sourceFolder) by modification date)) If so, then it's clear that an implied 'get' is the result of the syntax of the code, not the parentheses.
Stan C.
OK. (After a short pause.) I get this ...
tell application "Finder" -- set msgList to (reverse of (sort (get items of sourceFolder) by modification date)) -- this works in Leopard set msgList to (reverse of (sort (items of sourceFolder) by modification date)) -- errors in Leopard -- Finder got an error: every item of alias "..." doesn't understand the sort message.
Mmmmmmm.
|
_______________________________________________
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