Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set x to 0
  2. repeat
  3.     try
  4.         log "Calculating 2^" & x & ": " & (2 ^ x)
  5.         set x to x + 1
  6.     on error number -2702
  7.         beep 1
  8.         display dialog "This computer can't handle the calculation 2^" & x with icon stop buttons {"End Test"} default button 1
  9.         exit repeat
  10.     end try
  11. end repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement