<<event ascrgdut>>
<<event ascrgdut>>
- Subject: <<event ascrgdut>>
- From: John Delacour <email@hidden>
- Date: Sat, 10 Aug 2002 00:54:00 +0100
I have this script running from the menu in Eudora to close all
windows except the front one and various other specified windows.
-- tell app "Eudora"
set ls to {}
repeat with i from 2 to count windows
set end of ls to name of window i
end repeat
repeat with w in ls
set w to "" & w
if w does not start with "Task Prog" and ,
w does not start with "Person" and ,
w does not start with "Toolbar" then ,
try
close window w
on error e
-- display dialog e
end try
end repeat
-- end
The script works, but it often throws an error type 1 and the log
shows +event ascrgdut;. If I have the error display, it displays
before the windows close but does not impede the completion of the
script once the dialog is dismissed.
If I run the script from Script Editor with the tell[] enabled,
Script Editor is very likely to crash if I don't trap the error.
Since the 'latest' version of Script Editor is fairly likely to crash
at the slightest provocation -- whereas before it was very stable --
this may mean nothing, but I can see no obvious reason why this error
is occurring. The same script could be used in almost any process; I
just happen to be using it in Eudora.
Any ideas? -- I imagine this is a problem others have had.
JD
_______________________________________________
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.