![]() ![]() dataType is the data type of theData and it can be text, list, record etc. theData is the data you want in the file. targetFile is the path to the file you want to write On writeTo(targetFile, theData, dataType, apendData) WriteTo(logfilepath, brightness, text, false)ĭo shell script "/bin/brightness " & text of brightness It will also dim the keyboard brightness and screen backlight when the computer is not used for a configurable amount of seconds. If brightness as number is greater than 0 then Lightum is a MacBook automatic light sensor daemon, it reads data from the ambient light sensor (located on the iSight camera) and automatically light up or dim the keyboard brightness and screen backlight. ![]() 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) adjust path to User Directory, file will be hidden 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 |