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


Click here to return to the 'Contents of file?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Contents of file?
Authored by: ClassicUser on May 01, '06 05:24:22PM
On my 10.4.6 system, this file actually appears to contain a single character - in my case, the letter "a".

So, to be safe, it appears it would be better to:

sudo echo "a" > /private/var/db/.AccessibilityAPIEnabled
...instead.

[ Reply to This | # ]
Contents of file?
Authored by: ClassicUser on May 01, '06 05:28:04PM
Argh - submitted too soon...

Almost correct: The file should NOT contain the trailing newline. So, that means it should be:

sudo echo -n "a" > /private/var/db/.AccessibilityAPIEnabled
(with the extra "-n" switch passed to echo)

Sorry about that...

[ Reply to This | # ]

Contents of file?
Authored by: Adam van Gaalen on Sep 15, '09 04:28:55AM

I figured out it would even be better to change that into:

sudo echo -n "a" > /private/var/db/.AccessibilityAPIEnabled
sudo chmod 444 /private/var/db/.AccessibilityAPIEnabled

Not using the -n would leave an 'a' followed by a 'newline' inside the file instead of just the 'a'



[ Reply to This | # ]