on 10/21/2000 9:46 AM, Gregory Chan at [EMAIL PROTECTED] wrote:

> On 21/10/00 12:53 AM, Allen Watson wrote:
> 
>> I know this was just discussed somewhere recently (this list or AppleScript
>> list), but I can't find it. Or I am imagining it. Did someone post a script
>> that would send an E-mail message containing the entire contents (not just
>> the link) of the web page currently displayed in Internet Explorer?
> 
> there's an OE5 script for this called "Send Complex HTML", very useful when
> I create HTML emails for my work.
> 
I just wanted a simple script to mail the source code off a web page as it
is displayed in the browser. I just wrote one myself and posted it. It works
for me! (Just the HTML source; no graphics.)

---------
set pageSource to ""
try
    tell application "Internet Explorer"
        GetSource
        set pageSource to result
        set pageName to item 2 of (GetWindowInfo 1)
    end tell
on error theErr
end try
if (length of pageSource) = 0 then
    error "No HTML source could be found."
    return
end if
tell application "Microsoft Entourage"
    activate
    set newMsg to make new outgoing message with properties
{content:pageSource, subject:pageName}
    open newMsg
end tell
--------------
-- 
Peace,
Allen Watson <[EMAIL PROTECTED]> XNS name: =Allen Watson
A Mac family since 1984
My web page: <http://home.earthlink.net/~allenwatson/>


-- 
To unsubscribe:               <mailto:[EMAIL PROTECTED]>
To search the archives: 
          <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to