Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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