Is there a quick and easy way to dump the contents of a MacOS X keychain?

Allright, I’m stupid. There’s a command-line tool called security that does just this (and lots of other actions on keychains). An example usage: security dump-keychain -d login.keychain This will dump all the data in the login.keychain (the default keychain for a user) as plaintext, including the passwords. You still have to confirm access , but … Read more

How do I add Applescript support to my Cocoa application?

If you want to send AppleScript from your application and need a sandboxed app, you need to create a temporary entitlement You need to add those two keys in your info.plist <key>NSAppleScriptEnabled</key> <true/> <key>OSAScriptingDefinition</key> <string>MyAppName.sdef</string> …of course you have to change “MyAppName” to your app’s name Create a .sdef file and add it to your … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)