Re: Problems with AppleScript and IE 5.2
Re: Problems with AppleScript and IE 5.2
- Subject: Re: Problems with AppleScript and IE 5.2
- From: julifos <email@hidden>
- Date: Sun, 13 Jul 2003 19:37:17 +0200
>
Are there known problems with AppleScript and IE? Is there a better way to
>
open and close IE? We can use a shell script if that is more stable then
>
AppleScript. Does anyone have practical experience on UNIX shells vs
>
AppleScript?
If you *only* use AS to run and quit IE, I'd better use the shell. To open
IE use "open". To close it, use "kill". Less technologies involved, best
performance...
>
=============================================================
>
/bcservice/scripts/ie52_start.as Script
>
=============================================================
[SNIP]
>
tell application "Internet Explorer"
>
launch
>
run
>
activate
>
end tell
launch application "Internet Explorer"
--> or
tell application "Internet Explorer" to activate
--> should be good enough
>
=============================================================
>
/bcservice/scripts/ie52_stop.as script
>
=============================================================
>
try
>
with timeout of 5 seconds
>
tell application "Internet Explorer"
>
quit saving no
>
end tell
>
end timeout
>
on error
>
end try
tell application "Internet Explorer" to quit --> should be good enough
There is nothing wrong in you code, except for lots of redundances and the
"saving no" with the "quit", which is not part of its dictionary and will be
ignored.
About your original question, I've been scripting IE for several years and
didn't see special signals of unstability over scripting, except when you
use *lots* of javascripting in your statements, which is not your case...
Cheers...
jj
_______________________________________________
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.