image

Invisibles

image

Script Debugger lets you see invisible text characters, such as tabs and return characters. To see invisible characters:

If the menu item is checked, invisibles are showing.

Showing invisibles is especially helpful for viewing string literals. AppleScript compiles whitespace literals into literal whitespace, which conceals their identity. For example, this script:

  set s to "\t\r"

compiles like this:

  set s to "	
  "

Now you’ve no idea what that string consists of. To find out, show invisibles.

image

This is particularly useful in the case of line endings, which can present a complicating factor in AppleScript, as explained here.



image
Line Wrapping Spaces
image