Instance Property

inputFieldSeparator

Returns a string to be used as the delimiter between items in the string passed to the action through standard input.

Declaration

var inputFieldSeparator: String { get }

Discussion

The Automator framework converts the output from the previous action (which is usually in the form of a list or array) into a single string in which the array elements are concatenated by the input field separator. By default, this separator is the newline character (@”\n”). You could, for example, override this method to return a null character (@”\0”) to provide null-terminated strings for xargs -0.

See Also

Handling the I/O separator character

var outputFieldSeparator: String

Returns a string used as a delimiter in the string output by the action.

var remapLineEndings: Bool

Returns whether you want automatic remapping of carriage return (\r) to newline (\n) characters in the input string.