Skip to content

Instantly share code, notes, and snippets.

@maripo
Created March 5, 2013 15:47
Show Gist options
  • Save maripo/5091226 to your computer and use it in GitHub Desktop.
Save maripo/5091226 to your computer and use it in GitHub Desktop.
"Split" method for AppleScript
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