dataType is the data type of theData and it can be text, list, record etc. theData is the data you want in the file. Important note: You have to plug in the USB cable from the Display to the Macbook Pro in order that the keyboard shortcuts work. I have tested this on my MacBook Air 2011 13' and 27' Thunderbolt Display. targetFile is the path to the file you want to write On Apple displays, if you press Control-F1 or Control-F2 the brightness on a secondary display will adjust. On writeTo(targetFile, theData, dataType, apendData) WriteTo(logfilepath, brightness, text, false)ĭo shell script "/bin/brightness " & text of brightness If brightness as number is greater than 0 then Set brightness to (words 1 thru 1 of (text item 2 of result)) as real get first number after word "brightness" so its safe if multiple displays Set AppleScript's text item delimiters to "brightness " Set logfilepath to ("/Users/?/.brightness-.txt" as Unicode text) Press and hold the Shift and Option keys. adjust path to User Directory, file will be hidden Here's how you can use a quick keyboard command to give you finer control over the screen brightness of your Mac. So you can use it with Spark or something as shortcut! Here it is: Hey, based on this great tool, this blog () and some forums I made an Applescript that stores the current brightness in a hidden file, set it to 0 and back if executed again.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |