AppleScript to open a TextEdit Window
Like a zillion other users, I would like TextEdit to remember its window position (but I know that's never going to happen because I've already waited 12 years for it). So I'd like to use an AppleScript for this but I must be doing something wrong. The following script should open a new TextEdit window in the upper left corner that is 600 pixels wide and 400 pixels tall. I'm sure I messed something up.
tell application "TextEdit"
launch
make new document
tell front window to set its bounds to {0, 0, 600, 400}
end tell
MacBook Pro 13”, macOS 10.14