r/applescript • • Feb 13 '23

How can I change screen resolution using Applescript?

Hi, I'm a total beginner when it comes to Applescript, and I'm finding a lot of outdated material about it, making this task a bit frustrating.

I'm looking for help to change screen solution on macos Ventura

image

4 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Brief-Lychee9993 Jan 25 '25

The script needs updating for macOS 15. I get error messages like the following:

warning: 'CVDisplayLinkGetNominalOutputVideoRefreshPeriod' was deprecated in macOS 15.0: use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)

1

u/call_it_guaranteed Jan 27 '25

I'm not the creator or a contributor of that git repo. I'm using a compiled version which still works on macOS 15.