Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Automate an Internet content filter' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automate an Internet content filter
Authored by: carina_st on May 29, '11 03:44:36PM
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 tell
tell application "Keychain Scripting"
	tell current keychain
		set myPass to (password of first key whose name is "SelfControl")
	end tell
end tell

[ Reply to This | # ]