getting source in default web browser
getting source in default web browser
- Subject: getting source in default web browser
- From: John Cochrane <email@hidden>
- Date: Mon, 14 Apr 2003 23:30:25 +1000
On Monday, April 14, 2003, at 10:48 PM, matt neuburg wrote:
>
So, we learn two things:
>
>
(1) You can't compile a script for which AppleScript doesn't have the
>
dictionary terms. This is why they gave you "using terms from". See:
>
>
http://www.applescriptsourcebook.com/tips/tellbyvariable.html
>
Thanks for your reply Matt. I have read about "using terms from" in
the past without really understanding its use fully. Now they have a
relevance to a script I have written I won't forget it .
>
(2) Your attempt to use this script generically is probably doomed to
>
failure anyway, because each browser likely has a different way of
>
being
>
told to get the source of the current page. You're going to have to
>
write
>
different scripts for different browsers.
>
I am a bit embarrased at not checking the dictionaries. I see I will
have to alter the script to have different actions depending on which
browser is used. I don't use Internet Explorer but as your reply came
through I had just discovered
tell application "Internet Explorer"
Activate
set vContent to GetSource
end tell
but am struggling to get the text and name of the web page in Explorer.
Thanks again
John
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.