Read html code from htm file into string

Hi all

I am looking for a script to read the html code from htm file into string.
More info. I already have code for Windows but now looking for a script to run on a Mac but no luck till now. Reading a txt file is no problem but can’t get it to work for a html file.

Thanks for helping me

The regular “read” command is working for me.

set HTMLtext to read alias "Mackintosh HD:Users:user:Downloads:Test.html"

So easy if you know, I am a VBA guy and sometimes need AppleScript to get things working.
This give me a start to get something working in a VBA macro.

Thanks for your time

Attached is an alternate scheme returning the text content of the document.

set theFile to (path to desktop as text) & "3_0_0.html"

tell application "Safari"
	open file theFile
	text of (get document of window 1)
Small. Fast. Reliable.
Choose any three.
About Sitemap Documentation Download License News Support
SQLite Release 3.0.0 On 2004 June 18 (3.0.0 alpha)

*** Alpha Release - Research And Testing Use Only ***
Support for internationalization including UTF-8, UTF-16, and user defined collating sequences.
New file format that is 25% to 35% smaller for typical use.
Improved concurrency.
Atomic commits for ATTACHed databases.
Remove cruft from the APIs.
BLOB support.
64-bit rowids.
More information.
A complete list of SQLite releases in a single page is also available. A detailed history of every check-in is available at"
end tell

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) dimanche 4 novembre 2018 17:15:49