|
|
Automate an Internet content filter
Maybe there has been an OS X update in the meantime but for whatever reason, getting the password as described here did not work for me, I kept getting the following error message: "Usable Keychain Scripting got an error: AppleEvent timed out.". So I just tried to use the normal Keychain Scripting instead and removed everything that didn't seem absolutely necessary to me (to avoid errors for now) and now the script works. Maybe they finally fixed the Keychain Scripting.
I replaced tell application "Usable Keychain Scripting" tell current keychain set myPass to (password of first generic item whose name contains "SelfControl") -- eliminate invisible characters, or "gremlins," from password set x to quoted form of myPass set myPass to do shell script "echo " & x & " | perl -pe 's/[^[:print:]]//g'" end tell end tellwith tell application "Keychain Scripting" tell current keychain set myPass to (password of first key whose name is "SelfControl") end tell end tell |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.34 seconds |
|