multi-line records?
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