Re: System Administrator?
Re: System Administrator?
- Subject: Re: System Administrator?
- From: Philip Aker <email@hidden>
- Date: Sat, 11 May 2002 12:08:51 -0700
On Saturday, May 11, 2002, at 09:33 AM, Mr Tea wrote:
Hi, Russ Conte. This one's for you.
Call me eccentric, but there's something slightly unsettling
about seeing 'System Administrator' appear regularly in the
'from' column of my AS List folder.
I don't drink tea at all and find it scary too.
For the web content to AppleWorks problem, I suggest using
'curl' to download the page directly to a file and then have AW
deal with it directly. That way, I believe all the rest can be
done with AW's AppleScript. Change a few items in the following:
=========
on ShowUrl(theUrl)
try
set tnum to (random number 100000) as string
set tpath to (path to temporary items folder as string)
set res to (do shell script "curl " & theUrl)
set tfile to tpath & tnum & ".html"
set tref to (open for access file tfile with write permission)
set eof tref to 0
write res to tref
close access tref
tell application "Finder"
set creator type of file tfile to "OWEB"
select tfile
open the selection
end tell
on error errstr number errnum
if errnum is not -128 then
display dialog errstr buttons {"OK"} default
button "OK" with icon caution
end if
end try
end ShowUrl
set turl to "
http://www.apple.com/downloads/macosx/"
ShowUrl(turl)
=========
Philip Aker
http://www.aker.ca
_______________________________________________
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.