Frogger3140

Blockland SQLiteHelper

Mar 20th, 2011
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set blocklandPath to "/Applications/Blockland v19/" --set to your blockland folder path
  2. try
  3.     delete blocklandPath & "cache.db"
  4. on error the error_message number the error_number
  5.     beep 1
  6.     if error_number = 1700 then
  7.         display dialog ¬
  8.             "Can't delete the SQLite database.
  9.    
  10. Change blocklandPath to the path to your Blockland folder." with title "AppleScript Error " & error_number buttons {"Dismiss"} with icon 2 default button 1
  11.         return
  12.     else
  13.         display dialog ¬
  14.             "Can't delete the SQLite database.
  15.    
  16. " & error_message with title "AppleScript Error " & error_number buttons {"Dismiss"} with icon 2 default button 1
  17.     end if
  18. end try
  19. open blocklandPath & "Blockland.app"
Advertisement
Add Comment
Please, Sign In to add comment