December 10, 2016

Apple Security Settings – Are You Sure You Want To Open It?


Apple security settings – Are You Sure You Want To Open It?

I’m sure Apple means well – they have added with their latest release of Lion another safety function. Each time I want to open a file I’ve downloaded from the web it asks me: “Are you sure you want to open it?” It´s not a big thing if you could set “Yes” and use the same for all of these type of files but no, it keeps asking me for each and every file. So with time – this gets a real pain.

Does this Apple security setting look familiar to you?

Apple security setting

Here is how to get around the Apple security setting 🙂

You need to “write” a little script to get around this setting. Don’t worry, it is not as hard as it sounds, actually it is done in a few minutes.

1. Open your TexEdit

2. Copy and paste the following code:

<?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>

This part of the code

<string>public.html</string> and <string>public.php-script</string> refers to the file you want to declare as secure – in this case html and php files. But I guess there are more files you want to declare as save, e.g. downloaded pictures. There are many other types of files but for jpg files for example you just add the following code:

public.jpeg (kUTTypeJPEG)

between the lines <string> and </string>

So if you want for example avoid to be asked for jpeg, php and html files your code would look something like that:

<?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>
        <string>public.jpeg (kUTTypeJPEG)</string>
</array>
</dict>
</dict>
</plist>

Of course there are many more types of files – you can look up the code for each in this Developer document.

After that save your file with the name – com.apple.DownloadAssessment.plist

Your TextEdit won’t allow you to do so first and saves it with the extension .rtf . But after you´ve saved the file just go to the file and rename it to com.apple.DownloadAssessment.plist – the system will ask you if you want to keep .rtf as an extension or .plist – you choose the second option of course.

Once you are finished with this go to your hard drive, and open the folder Library/Preferences and move your file there.

After you’ve restarted your system you should have got rid of this nasty Apple security setting!

About Monja

Monja is a Multimediadesigner and Mac enthusiast since she discovered the beauty of Mac Computers - she never looked back to her Windows Laptop.

Comments

  1. followed this to the letter for this exact same purpose (jpeg opening permission)

    it didn’t work

    • hi,

      that´s strange. it should work for anyone. what computer do you have?

      • imac from circa 2006, using lion – one or two other scripts i found on the net similarly failed – in the end i found that onyx completely removes that annoying alert message

        • hi,
          well that´s great, guess i should add it to the post – could you tell us which setting you used in onyx? because this message is really a pain for anyone and if some of you find this not working… maybe it would be helpful! thanks!

Speak Your Mind

*

CommentLuv badge