Video_Beagle

Zatanna Applescript

Jul 12th, 2014
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. display dialog "Enter your spell:" default answer ""
  2. set answer to text returned of result
  3. set zanswer to ""
  4. set {myTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, {" "}}
  5. set myList to text items of answer
  6. set AppleScript's text item delimiters to myTID
  7. repeat with fword in myList
  8.     #set testf to fword
  9.     #set fword to each
  10.     set zword to reverse of characters in fword as string
  11.     set zanswer to zanswer & " " & zword
  12. end repeat
  13. set zansewer to ((characters 2 thru -1 of zanswer) as string)
  14. set the clipboard to zanswer
  15. display dialog zanswer
Advertisement
Add Comment
Please, Sign In to add comment