try
display dialog "enter the file name" default answer "text.txt"
on error msg number num
if num is in {-1, 25, -128} then
-- respond in the same way for any of the above
else
-- do something else
end if
end try
Saturday, June 24, 2006
note to self: applescript syntax for catching multiple errors
This is from the AppleScript-Users mail list...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment