Created
March 5, 2013 15:47
-
-
Save maripo/5091226 to your computer and use it in GitHub Desktop.
"Split" method for AppleScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on split(txt, delimiter) | |
set defaultDelimiter to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to delimiter | |
set res to text items of txt | |
set AppleScript's text item delimiters to defaultDelimiter | |
return res | |
end split |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment