![]() Users/your-username/SelfControl.scpt, which would be in our home folder. Now, from AppleScript Editor, save this file somewhere by pressing File » Save, e.g. 24 hours) here so you can automatically kick off SelfControl for the maximum time. Set value of text field 2 of scroll area 1 of group 1 to myPass Tell slider of window "SelfControl" to set value to myTimeĬlick button "Start" of window "SelfControl" Tell application "SelfControl" to activate ![]() Set myPass to do shell script "echo " & x & " | perl -pe 's/]//g'" eliminate invisible characters, or "gremlins," from password Set myPass to (password of first generic item ¬ Tell application "Usable Keychain Scripting" Paste the following contents (originally from here)to a new window of AppleScript Editor.app: on run argv Click 'Add', and you should now have a new application password entitled 'SelfControl' in your Keychain. Under Keychain Item Name, type 'SelfControl.' Make up any Account Name in the next field, and in the Password field, type the password for your user account (the password you would use to authenticate anything in OS X). Create a new password by typing Cmd-N or going to File » New Password Item. You'll need to download and install Daniel Jalkut's Usable Keychain Scripting to quickly and securely access your admin password in order to activate SelfControl. Then, SelfControl will always start up when you log in. Either drag and drop SelfControl into the list, or click the "+" button and navigate to its location. Simply open System Preferences from the /Applications folder, select "Accounts" and, with your user name highlighted in the list to the left, select the "Login items" tab.
0 Comments
Leave a Reply. |