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

Posted on Mar 6, 2019 1:23 PM

Reply

Similar questions

3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AppleScript to open a TextEdit Window

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.