• 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: Why the speed difference? (was: Problem with modification date of file...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why the speed difference? (was: Problem with modification date of file...)


  • Subject: Re: Why the speed difference? (was: Problem with modification date of file...)
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 14 Nov 2002 16:10:41 -0800

On 11/14/02 2:43 AM, "Mr Tea" <email@hidden> wrote:

> Anyway, why do square brackets compile? Do they have some specific AS
> function? Are they used in some hideous code language that AS has been
> forced to accommodate?
>
> Script Editor seems to treat them as things to wrap lists in, and converts
> them to the conventional braces in script results, but is sometimes confused
> by them.
>
> [1, 2, 3] & 4
> --> {1, 2, 3, 4}
>
> set end of [1, 2, 3] to 4
> --> error: "Can't set end of {1, 2, 3} to 4
>
> set l1 to {[1, 2, 3]}
> set end of l1 to [4]
> l1
> --> {{1, 2, 3}, {4}}
>
> It would be more straighforward (and would significantly extend the life
> expectancy of my shift key) if square brackets just compiled as braces -
> unless they are the vanguard of some sinister hidden agenda, in which case I
> think we should be told.

If the archives for this list are now searchable, do a search on 'vector'
and 'linked list' from a year or two ago... There might be something on the
AppleScript Sourcebook site too.

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Why the speed difference? (was: Problem with modification date of file...) (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Trailing LFs in shell scripts
  • Next by Date: AppleScript 1.6 and Mac OS 8.6
  • Previous by thread: Re: Why the speed difference? (was: Problem with modification date of file...)
  • Next by thread: Recursive alias maker?
  • Index(es):
    • Date
    • Thread