• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quick Question (Internet Explorer - OpenURL, GetSource)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Quick Question (Internet Explorer - OpenURL, GetSource) (From: Dave Moen <email@hidden>)

  • Prev by Date: Quick Question (Internet Explorer - OpenURL, GetSource)
  • Next by Date: Re: Quick Question (Internet Explorer - OpenURL, GetSource)
  • Previous by thread: Quick Question (Internet Explorer - OpenURL, GetSource)
  • Next by thread: Re: Quick Question (Internet Explorer - OpenURL, GetSource)
  • Index(es):
    • Date
    • Thread