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


Click here to return to the '10.4: Modify how the system classifies 'safe' files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Modify how the system classifies 'safe' files
Authored by: ra5ul on Dec 27, '05 02:50:00PM

is that link reliable? how could example 1 be declaring "safe" files and example 2 be declaring "unsafe" files?



[ Reply to This | # ]
10.4: Modify how the system classifies 'safe' files
Authored by: uurazzle on Dec 28, '05 12:19:33PM

Yes, the link is reliable. It is my article and I have tested it with Mac OS X 10.4.3 and Safari Version 2.0.2 (416.13). For instance, example 1 with declares Citrix ICA files to be "safe" using uniform type identifier com.citrix.ICAClient.plist works for me. Note, that the plist file com.apple.DownloadAssessment.plist doesn't exist by default and I tested with the file in the current user's ~/Library/Preferences/ folder. I needed to quit/relaunch Safari after adding or modifying the com.apple.DownloadAssessment.plist file and you need the Safari setting 'Open "safe" files after downloading' enabled.

So, once I had the file created in the users Preferences folder with the proper XML info and quit/relaunch Safari, when I download a Citrix ICA file, for example *.ica, it downloads and then auto-opens the file into the Citrix ICA application.

There was a typo, in example two which I have fixed. It should have been "LSRiskCategoryUnsafeExecutable" NOT "LSRiskCategorySafe". Sorry about that error, and thanks for pointing it out.



[ Reply to This | # ]
10.4: Modify how the system classifies 'safe' files
Authored by: ra5ul on Dec 28, '05 06:15:19PM

nice. after some more testing, i can affirm that this does work, but only partially (at least in my case: safari 2.0.2/416.13).

for example, using .pdf extensions w/LSRiskCategoryUnsafeExecutable did pop up the warning, but using it w/LSRiskCategoryNeutral didn't prevent pdf files from auto-opening. similarly, i couldn't get any key/string values to stop safari from auto-opening .gz or tar.gz files.

it seems like the user.plist file doesn't totally "override" the system one. where is the system config file, by the way?



[ Reply to This | # ]
10.4: Modify how the system classifies 'safe' files
Authored by: uurazzle on Dec 28, '05 09:17:18PM

If you are concerned with pdf, gz or tar.gz, why not simply disable the 'Open "safe" files after download' option in Safari?



[ Reply to This | # ]