The following script works with Internet Explorer and MS Entourage. It will
grab the HTML source of the front window in IE and create a new outgoing
message in Microsoft Entourage, with the subject set to the title of the IE
Window, and the content of the message consisting of the HTML source of that
window.

------ Mail HTML of IE Window ------
------ Begin script ------
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
------ End script ------
-- 
Peace be with you!
Allen <[EMAIL PROTECTED]> XNS Name: =Allen Watson
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