Archive for April, 2008

OS X Leopard - Are you sure you want to open it?

I think by now, every OS X Leopard users will be well acquainted with the warning message “Are you sure you want to open it?”. Apple’s over cautious security feature thats been described by some as a Vista-esque feature, but for me it’s just a real pain in the backside.


Basically every file downloaded from the internet is tagged by the OS depending on its file type. If the download is an application or script, the OS will warn you with the above message when you first try and open it. Fine if you are opening one or two files, but not if you are trying to open up 20+ files at a time.

There is some reasoning behind this security feature, but I can’t help think that Apple should have included a way to turn it off or at least configure what file types the user deems ’safe’ or ‘unsafe’.

After Googleing for a solution I discovered two options. The first is by Henrik (Lift the Leopard download quarantine) is a simply Apple Script folder action that you apply to your Downloads folder. Every time a file is downloaded the Apple Script removes the ‘unsafe’ tag from it and thus banishes the warning message. The only problem I can see with the script is that is dose not work its magic on files within sub-folders.

The second is by Lazeez (Changing the system’s default settings for html files (safe)) and is my preferred solution. Basically you need to create a file called com.apple.DownloadAssessment.plist with a list of the file types you consider ’safe’, you then need to save it to the ~/Library/Preferences folder, log-out or reboot to activate the changes, and no more warning messages!

The file looks like this:-

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>LSRiskCategorySafe</key>
<dict>
	<key>LSRiskCategoryContentTypes</key>
<array>
	<string>public.html</string>
	<string>public.php-script</string>
</array>
</dict>
</dict>
</plist>

You can see I have added two strings, public.html and public.php-script this allows me to open both .html and .php files without the warning. A full list of file types can be found on the Apple Developer site: System-Declared Uniform Type Identifiers.

To add more, simply add in <string>file.type.here</string> (The file type Identifier)

I hope this helps other Leopard users as much as it has helped me - as any unnecessary clicks can really start to slow a work flow down.

Comment Spam - does Akismet work?

A week ago I was receiving on average 10 spam comments a day. I had Akismet running and was more than happy that it was catching all the nasties for me. But while updating a few plugins I appear to have inadvertently turned Akismet off. I didn’t realised this until today when I received an email saying I had 1 comment awaiting moderation.

I logged in to check it out, but soon realised it was only spam — strange I thought, why hadn’t Akismet caught it. Then I realised the Akismet Spam Tab was missing and then I realised I must have accidentally turned it off — but wait a minute I thought — why have I only received 1 spam comment in the last week when Akismet is turned off?

My brain is still trying to work this out, but I appear to have received more spam while Akismet was turned on. That can’t be right? Can it? I am going to turn it back on and see what happens — but I must confess I don’t have it running some of my other sites, and interestingly they hardly ever get any spam.

A question I’d like to ask is — has anybody else noticed anything weird with Akismet? Do you use it? Or perhaps some other spam catching method?

Copyright © 2009 Davinian.   Terms of Use | Privacy Policy
Powered by WordPress | Theme based on Blue Weed by Blog Oh! Blog.
Entries (RSS) and Comments (RSS)