Re: Quick Question (Internet Explorer - OpenURL, GetSource)
Re: Quick Question (Internet Explorer - OpenURL, GetSource)
- Subject: Re: Quick Question (Internet Explorer - OpenURL, GetSource)
- From: Samuel Hargis <email@hidden>
- Date: Fri, 29 Dec 2000 06:55:02 -0500
- Organization: The Printing House, Ltd.
Dave Moen wrote:
>
New to Apple Script, having problems with Internet Explorer NOT returning
>
the HTML Source! Is there a better approach to getting the HTML Source from
>
Internet Explorer and Pasting the Result into a New Microsoft Word Document?
>
>
Also, if you use just the GetSource Function the result window is limit to
>
ONLY 2000 characters - is there a way to expand the result window storage?
try saving the source to a variable, then writing it out to
a simpletext file. You could then open that in Word, or
Netscape, Go Live, whatever. Good Luck.
tell application "Internet Explorer 4.5"
Activate
OpenURL mySEARCHurl_1 toWindow 0
--opens URL as variable in a --new window
delay 5 -- allows time to receive data
GetSource
set searcH_Result to result
-- saves the source to a variable to be written
-- to a file or used however you like
-- using clipboard may be limiting you
set NewDoc_A to (open for access file thisFilePath_A with write permission)
write searcH_Result to alias thisFilePath_A
close access alias thisFilePath_A
-- writes your source to a simpletext file
-- uses variables for the name and path of file
CloseWindow
--CloseAllWindows
end tell
--
Regards,
--
Samuel P. Hargis
-----------------------
General Manager of Research, Development & Training
The Printing House, Ltd. - Tallahassee, Florida
email@hidden - 800-277-7687