I'm trying to write an AppleScript to increase the brightness on my MacBook. Is there a way to do this from AppleScript and if so how? I did some searching and I found and tried the following code:
But when I entered this into Script Editor and pressed the "Run the Script" button, it just beeped and didn't do anything.
Code:
tell application "System Events"
key code 107
end tell
But when I entered this into Script Editor and pressed the "Run the Script" button, it just beeped and didn't do anything.