• 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: Convert HTML Text to Plain Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert HTML Text to Plain Text


  • Subject: Re: Convert HTML Text to Plain Text
  • From: Jim Underwood <email@hidden>
  • Date: Thu, 30 Jun 2016 01:47:34 +0000
  • Thread-topic: Convert HTML Text to Plain Text

Thanks, Shane.  That really clears things up.

So it looks like use of the property statements might be a good thing to put in a template for ASObjC scripts, right?

In a script library, can I put those property statements at the top of the script file, and then refer to them in the handlers below?

Best Regards,

Jim Underwood
aka JMichaelTX


From: <applescript-users-bounces+jmichael=email@hidden> on behalf of Shane Stanley <email@hidden>
Date: Wed, Jun 29, 2016 at 8:11 PM
To: "ASUL (AppleScript)" <email@hidden>
Subject: Re: Convert HTML Text to Plain Text

On 30 Jun 2016, at 10:56 AM, Jim Underwood <email@hidden> wrote:
May I ask, for my (and others) edification, what effect the options parameter has on the extraction of plain text from HTML text?

It's unnecessary. There are a few variations on initWithHTML:, and at the time I missed the simpler one.
Also, what is the benefit of using the property statement to set the ASObjC objects?

For most Cocoa terms, it just moves all the "current application's" out of your actual code, making it a bit shorter and hopefully more readable.

 _______________________________________________
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: Convert HTML Text to Plain Text
      • From: Shane Stanley <email@hidden>
References: 
 >Convert HTML Text to Plain Text (From: Jim Underwood <email@hidden>)
 >Re: Convert HTML Text to Plain Text (From: Shane Stanley <email@hidden>)
 >Re: Convert HTML Text to Plain Text (From: Jim Underwood <email@hidden>)
 >Re: Convert HTML Text to Plain Text (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: window order
  • Next by Date: Re: Convert HTML Text to Plain Text
  • Previous by thread: Re: Convert HTML Text to Plain Text
  • Next by thread: Re: Convert HTML Text to Plain Text
  • Index(es):
    • Date
    • Thread