Re: getting source in default web browser
Re: getting source in default web browser
- Subject: Re: getting source in default web browser
- From: John Delacour <email@hidden>
- Date: Mon, 14 Apr 2003 15:02:25 +0100
- Mac-eudora-version: 6.0a15
At 5:48 am -0700 14/4/03, matt neuburg wrote:
(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.
Not at all. He can do something like this where <<>> is guillemets:
set browser_ to "Safari"
set s1 to "<<class conT>> of front document as string"
set s2 to "<<event MSIESORC>> item 1 of (Gevent WWW!LSTWH)"
-- etc. etc.
set s3 to "\"some other browser's events\""
tell application "Finder" to if browser_ is not in name of processes then
return (run script s3)
end if
try
tell application browser_ to run script s1
on error
try
tell application browser_ to run script s2
on error
try
tell application browser_ to run script s3
end try
end try
end try
_______________________________________________
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.