• 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
multi-line records?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multi-line records?


  • Subject: multi-line records?
  • From: Mitchell L Model <email@hidden>
  • Date: Fri, 24 Feb 2017 17:35:12 -0500




On Feb 24, 2017, at 2:10 PM, Mitchell Model wrote:

property largeRecord1 : {ThisIsTheFirstKey:"one"} & ¬
{ThisIsTheSecondKey:"two"} & ¬
{ThisIsTheThirdKey:"three"} & ¬
{ThisIsTheFourthKey:"four"} & ¬
{ThisIsTheFifthKey:"five"} & ¬
{ThisIsTheSixthKey:"six"}

works, but is silly looking and I don't want to be using concatenation to define a constant data structure.

I guess silly is in the mind of the observer.  Reads more logically to me than a long string.


property largeRecord2 : { ¬
ThisIsTheFirstKey: "one", ¬
ThisIsTheSecondKey: "two", ¬
ThisIsTheThirdKey: "three", ¬
ThisIsTheFourthKey: "four", ¬
ThisIsTheFifthKey: "five", ¬
ThisIsTheSixthKey: "six" ¬
}

turns into

property largeRecord : ¬
¬
¬
¬
¬
{ThisIsTheFirstKey:"one", ThisIsTheSecondKey:"two", ThisIsTheThirdKey:"three", ThisIsTheFourthKey:"four", ThisIsTheFifthKey:"five", ThisIsTheSixthKey:¬
"six"} ¬

I don't know why it decided to put in the next to last line continuation character or where the last one comes from. And it doesn't even break at a comma -- it breaks between a key and a value. 

At least it isn't as old and hard to read as Ugaritic :-).


 _______________________________________________
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: multi-line records?
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: multi-line records?
  • Next by Date: Re: Finder window views ?
  • Previous by thread: Re: multi-line records?
  • Next by thread: Re: multi-line records?
  • Index(es):
    • Date
    • Thread