Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error with empty timeout block



Here's an interesting error from Script Editor (OS 10.2.1) :

tell app "Finder"
with timeout of 1000 seconds
end timeout
end tell
beep
--> error: Can't continue beep


Which is interesting, because none of these causes an error:


tell app "Finder"
end tell
beep
--> no error

with timeout of 1000 seconds
end timeout
beep
--> no error

with timeout of 1000 seconds
tell app "Finder"
end tell
end timeout
beep
--> no error


I started testing this situation because I was seeing a strange crash with
an applet on 10.2.1 which was crashing when it came to an empty timeout
block. I suspect this construction :

with timeout of 1000 seconds
end timeout

leads to instability.

- Olof Hellman
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.