Re: Quick Question (Internet Explorer - OpenURL, GetSource)
Re: Quick Question (Internet Explorer - OpenURL, GetSource)
- Subject: Re: Quick Question (Internet Explorer - OpenURL, GetSource)
- From: Luca Pozzato <email@hidden>
- Date: Fri, 29 Dec 2000 13:11:35 +0100
Hi Dave
try this
tell application "Finder"
set myLocalDESKTOP to desktop as text
end tell
tell application "Internet Explorer 4.5"
Activate
OpenURL "
http://www.apple.com/";
set MYsource to (GetSource)
set MyRef to open for access file (myLocalDESKTOP & "my_source") with
write permission
write MYsource to MyRef
close access MyRef
end tell
Luca
>
From: Dave Moen <email@hidden>
>
Date: Fri, 29 Dec 2000 03:53:38 -0700
>
To: <email@hidden>
>
Subject: Quick Question (Internet Explorer - OpenURL, GetSource)
>
>
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?
>
>
Thanks for your assistance.
>
>
tell application "Internet Explorer"
>
Activate
>
OpenURL "http://www.apple.com";
>
set the clipbaord to (GetSource)
>
end tell
>
>
>
tell application "Microsoft Word"
>
activate
>
do Visual Basic " Documents.Add DocumentType:=wdNewBlankDocument"
>
do Visual Basic " Selection.Paste"
>
end tell
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users