Simple Help Files
Simple Help Files
- Subject: Simple Help Files
- From: Malcolm Fitzgerald <email@hidden>
- Date: Thu, 11 Nov 2004 17:39:48 +1100
OS X does some things nicely. I'm writing short help documents, aimed at
myself in six months time. This little snippet writes a simple html
file to /tmp and it is displayed by textedit. Its a lightweight solution
that may appeal to others here.
--
if the button returned of the result is "Help" then
set s to "<html><head><title>Analysing Web
Logs</title></head><body><h1>Analysing Web Logs</h1><div><p>We analyse
the Web Logs to monitor trends and minimise errors.</p><p>The logs are
downloaded from the web site via curl. This is automated using
cron.</p><p>The log file processing has been automated but it must be
initiated manually.</p><p>etc,etc</p></div></body></html>"
set f to "/tmp/log.html"
set fRef to (open for access POSIX file f with write permission)
set eof of fRef to 0
write s to fRef
close access fRef
open location "file://" & f
end if
--
Malcolm Fitzgerald phone: 02 9318 0877
Database Manager fax: 02 9318 0530
The Australian Society of Authors <http://www.asauthors.org>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden