CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
4
Task/Exceptions/AppleScript/exceptions-1.applescript
Normal file
4
Task/Exceptions/AppleScript/exceptions-1.applescript
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
try
|
||||
set num to 1 / 0
|
||||
--do something that might throw an error
|
||||
end try
|
||||
7
Task/Exceptions/AppleScript/exceptions-2.applescript
Normal file
7
Task/Exceptions/AppleScript/exceptions-2.applescript
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
try
|
||||
set num to 1 / 0
|
||||
--do something that might throw an error
|
||||
on error errMess number errNum
|
||||
--errMess and number errNum are optional
|
||||
display alert "Error # " & errNum & return & errMess
|
||||
end try
|
||||
1
Task/Exceptions/AppleScript/exceptions-3.applescript
Normal file
1
Task/Exceptions/AppleScript/exceptions-3.applescript
Normal file
|
|
@ -0,0 +1 @@
|
|||
error "Error message." number 2000
|
||||
Loading…
Add table
Add a link
Reference in a new issue