Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. on run {input, parameters}
  2. try
  3. set AppleScript's text item delimiters to "$"
  4. set output to {}
  5. repeat with anItem in input
  6. set the end of output to text item 2 of (anItem as text)
  7. end repeat
  8. set AppleScript's text item delimiters to {}
  9. return output
  10. on error eStr number eNum
  11. display dialog eStr & " number " & eNum buttons {"OK"} ¬
  12. default button 1 with icon caution
  13. set AppleScript's text item delimiters to {}
  14. return
  15. end try
  16. end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement