Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. to explode(delimiter, str)
  2.     set text item delimiters to {delimiter}
  3.     text items of str
  4. end explode
  5. to change(del, value, plist)
  6.     set i to 0
  7.     repeat with res in explode("\"", del)
  8.         if (i mod 2) is 1 then
  9.             set mycal2 to do shell script "defaults write " & plist & " " & res & " " & value
  10.         end if
  11.         set i to i + 1
  12.     end repeat
  13. end change
  14.  
  15. set myPlist to "com.chillingo.cuttheropehd"
  16. set mycal to do shell script "defaults read " & myPlist & "| grep DRAWINGS"
  17. change(mycal, "1", myPlist)
  18. set mycal to do shell script "defaults read " & myPlist & "| grep UNLOCKED"
  19. change(mycal, "1", myPlist)
  20. set mycal to do shell script "defaults read " & myPlist & "| grep SCORE"
  21. change(mycal, "5000", myPlist)
  22. set mycal to do shell script "defaults read " & myPlist & "| grep STARS"
  23. change(mycal, "3", myPlist)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement