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

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


References: 
 >multi-line records? (From: Mitchell L Model <email@hidden>)
 >Re: multi-line records? (From: "S. J. Cunningham" <email@hidden>)
 >Re: multi-line records? (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: multi-line records?
  • Next by Date: multi-line records?
  • Previous by thread: Re: multi-line records?
  • Next by thread: multi-line records?
  • Index(es):
    • Date
    • Thread