I have a script that opens an RTF file in TextEdit to display information to the user while the script performs other commands. My script specifies the window size and position of this alert.
On systems in which TextEdit uses the default setting “show ruler”, the window size that I specify is too small to show the ruler and the text. I could expand the vertical size of the window to accommodate the ruler, but I would prefer to hide the ruler while displaying my RTF file.
I can’t find anything in TextEdit’s dictionary that would help me do this. Is there any other way of hiding the ruler via AppleScript? I would of course prefer to have a method that works while TextEdit is already open, if it is open when my script opens an RTF file, and I would like to be able to restore the existing setting after I hide the ruler.
I haven’t found any way to accomplish this, and will be grateful for any help.