Skip to content

Instantly share code, notes, and snippets.

@zaydek-old
Last active September 10, 2016 00:38
Show Gist options
  • Save zaydek-old/e6a22932bd68ac89dbc43bbe6f4a6ab1 to your computer and use it in GitHub Desktop.
Save zaydek-old/e6a22932bd68ac89dbc43bbe6f4a6ab1 to your computer and use it in GitHub Desktop.
on replace(s, f, r)
set AppleScript's text item delimiters to f
set _ to text items in s
set AppleScript's text item delimiters to r
text items of _ as string
end replace
replace("AppleScript", "Apple", "Java")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment