Re: applescript and browsers
Re: applescript and browsers
- Subject: Re: applescript and browsers
- From: Gary Lists <email@hidden>
- Date: Mon, 26 Jan 2004 16:48:38 -0500
Florian Weber wrote [1/26/04 3:03 PM]:
>
On Jan 26, 2004, at 10:44 Uhr, Emmanuel wrote:
>
>
> At 9:12 AM -0800 26/01/04, Florian Weber wrote:
>
>> and if there is a common interface to to basic stuff.. (for
>
>> example resize a window, close it, print the current window, etc)
>
>
>
> Isn't that what javascript does?
>
>
well, it could be certainly also possible to do this via javascript.
>
but i doubt that all those browser implement a appscript interface
>
for javascript.
>
>
>
is it possible to change the default browser via applescript
>
somehow?
I think Emmanuel's point, coupled with Paul B's point, is that there are
application-specific implementations of AppleScript in browsers. However,
if you use JavaScript, you are much more likely to have a set of browsers
that have a similar/same implementation (ECMA 2.x).
Most browsers (that you mentioned) that have AppleScript support also have a
'do script' or 'DoScript' or related command to take, from AS, some JS code
and execute it.
Check the dictionary of each browser you care about, and see if there are AS
terms to support the execution of JavaScript.
RE: is it possible to change default browser?
Yes, but don't go changing user's defaults just because they ran your script
(or is the script just for you?).
If the only way you can think of to make your script work is to change a
user's default browser choice, then you may wish to re-examine your script's
logic to try to find another way.
IMO, that is.
--
Gary
_______________________________________________
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.