• 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: How do I get variables to go into HTML code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get variables to go into HTML code?


  • Subject: Re: How do I get variables to go into HTML code?
  • From: Denis Boyd via AppleScript-Users <email@hidden>
  • Date: Wed, 27 Jan 2021 17:03:53 +0000

Try something like: set vNote to  "<h1>“ & vTitle & “</h1>“ & vBody

> On 27 Jan 2021, at 16:54, Jim Krenz via AppleScript-Users
> <email@hidden> wrote:
>
> Hello all,
>
> I have two variables that I want to get into a line of HTML code. Any ideas
> on what I am doing wrong?
>
> display dialog "Enter the note's title:" default answer "Title" with icon 1
> set vTitle to text returned of the result
>
> display dialog "Enter the note's body:" default answer "Body" with icon 1
> set vBody to text returned of the result
>
> set vNote to "<h1>vTitle</h1>vBody"
>
> tell application "Notes"
>       activate
>       tell default account to tell folder "Notes"
>               make new note with properties {body:vNote}
>       end tell
> end tell
> _______________________________________________
> 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
 _______________________________________________
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: 
 >How do I get variables to go into HTML code? (From: Jim Krenz via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: How do I get variables to go into HTML code?
  • Next by Date: Re: How do I get variables to go into HTML code?
  • Previous by thread: Re: How do I get variables to go into HTML code?
  • Next by thread: Re: How do I get variables to go into HTML code?
  • Index(es):
    • Date
    • Thread