• 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
Fwd: Difference between square and curly brackets around AS lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Difference between square and curly brackets around AS lists


  • Subject: Fwd: Difference between square and curly brackets around AS lists
  • From: jif <email@hidden>
  • Date: Thu, 24 Nov 2016 02:19:00 +0000

Ah ...

Seems to be older [linked lists] vs newer {vector-based arrays}

http://mjtsai.com/blog/2015/05/22/launchbar-action-editor-and-applescript-list-syntax/

so I imagine that ( the & operator ) coerces ...
 


Begin forwarded message:

From: jif <email@hidden>
Subject: Difference between square and curly brackets around AS lists
Date: 24 November 2016 at 02:11:16 GMT
To: email@hidden

Square and curly brackets seem almost but not quite interchangeable around AS lists.

{1, 2, 3} & [[4, 5, 6]] --> {1, 2, 3, 4, 5, 6}

{1, 2, 3} & {{4, 5, 6}} --> {1, 2, 3, {4, 5, 6}}


Can anyone point to documentation or insight ?

 _______________________________________________
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: 
 >Difference between square and curly brackets around AS lists (From: jif <email@hidden>)

  • Prev by Date: Difference between square and curly brackets around AS lists
  • Next by Date: Sal Soghoian: In Appreciation
  • Previous by thread: Difference between square and curly brackets around AS lists
  • Next by thread: Mac .app bundle maker utility for apple script
  • Index(es):
    • Date
    • Thread