• 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 to get the title as text of a html file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the title as text of a html file


  • Subject: Re: How to get the title as text of a html file
  • From: "Paul F. Henegan" <email@hidden>
  • Date: Fri, 01 Mar 2002 03:37:51 -0500

Hi Paolo,

This should get you started:

======================================================================

set theText to read (open for access (choose file))
set {oldTids, startTid, endTid} to {AppleScript's text item
[NO-BREAK]delimiters, "&gt;title&lt; "&gt;/title&lt;
set text item delimiters to startTid
set theTitle to text item 2 of theText
set text item delimiters to endTid
set theTitle to text item 1 of theTitle
return theTitle
set text item delimiters to oldTids

======================================================================
[formatted using ScriptToEmail - gentle relief for mailing list pains]
[http://files.macscripter.net/ScriptBuilders/ScriptTools/ScriptToEmail.hqx]

Hoping this helps,

paul
--
Paul F. Henegan
<email@hidden>


--
Paul F. Henegan
<email@hidden>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Send mail in Filemaker Pro.
  • Next by Date: Re: Scripting FileMaker
  • Previous by thread: Re: Send mail in Filemaker Pro.
  • Next by thread: Re: How to get the title as text of a html file
  • Index(es):
    • Date
    • Thread