TextCommands Osax

Is there an alternative for the TextCommands Osax? I’m using it to convert strings.

I’m not familiar with it. What do you mean exactly by convert strings?

Hi,

This was possible with TextCommands:

	tell application "TextCommands"
		set logoF to convert linebreaks logoF to Mac format
		set logoF to split logoF using (ASCII character 13)
	end tell

You can do those both simply with text item delimiters:

on setLineBreaks(theText, theCharacter)
	set thePars to paragraphs of theText
	set {saveTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, {theCharacter}}
	set theText to thePars as text
	set AppleScript's text item delimiters to saveTID
	return theText
end setLineBreaks

on splitOnChar(theText, theCharacter)
	set {saveTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, {theCharacter}}
	set theBits to text items of theText
	set AppleScript's text item delimiters to saveTID
	return theBits
end splitOnChar