Re: How to get the title as text of a html file
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, ">title< ">/title<
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.