Re: multi-line records?
Re: multi-line records?
- Subject: Re: multi-line records?
- From: "S. J. Cunningham" <email@hidden>
- Date: Fri, 24 Feb 2017 14:44:10 -0500
On Feb 24, 2017, at 1:42 PM, Stockly, Ed wrote:
> --Sorry for the blank message earlier : }
>
> The compiler munges continuation line when it sees quotes. The way round that is to use variables.
>
> set dialogText to "directParamText"
> set dialogDefAnswer to "defaultAnswerText"
> set dialogButtons to {"one", "two", "three"}
> set defButton to "one"
> set cancelButton to "three"
> set dialogTitle to "withTitleText"
>
>
> set resultDialogReply to display dialog dialogText ¬
> default answer dialogDefAnswer ¬
> hidden answer false ¬
> buttons dialogButtons ¬
> default button defButton ¬
> cancel button cancelButton ¬
> with title dialogTitle ¬
> with icon withIconValue ¬
> giving up after givingUpAfterNumber
Well, that's interesting. A couple of extra steps but probably worth the gain in readability.
Steve
------------------
OS X 10.6.8, AppleScript 2.1.2
_______________________________________________
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