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
-- tag input options: | |
-- div -> <div>{SELECTED TEXT IF ANY}</div> | |
-- div.myclass -> <div class="myclass">{SELECTED TEXT IF ANY}</div> | |
on splitText(theText, theDelimiter) | |
set AppleScript's text item delimiters to theDelimiter | |
set theTextItems to every text item of theText | |
set AppleScript's text item delimiters to "" | |
return theTextItems | |
end splitText |
OlderNewer