image ResEx Logo
ResExcellence www : Powered by Google
Cell Phone Themes Icons Mighty Mouse Cursors Software Reviews Widgets & Widgets


Files are in Stuffit 5 or greater format.
Free download.

Tell us about a bad link.

Thank You!


Running 18 days
without a restart.

Applescript to protect folders. by Michael Coyle

Looking to keep coworkers for accidentally deleting your files from your Mac? Mark Evans sends this Applescript.

The function of this script is to add a low level form of security to a specific folder. I created this at work one day when I had one of my co-worker delete some files I was working on. There is software available that will do things like this but I found just using Applescript to be effective.

What to do: Open Script Editor and paste this code or use the enclosed script "Folder Protect"

on opening folder This_Folder
tell application "Finder"
set dialogresult to display dialog "Please enter the password to access folder:
" & This_Folder & "" buttons {"Ok"} default button 1 default answer " "
set PWText to the text returned of dialogresult
if not PWText = "Password here" then
close folder This_Folder
beep 3
display dialog "The password entered is incorrect" buttons {"Doh!"} default button 1
end if
end tell
end opening folder

1. On the line "If not PWText =......" replace "Password here" with any text or numbers you like.

2. Save the file as some random name. I used "Wysygigadoo" And make sure to save the script as "Run-Only" this will protect it from being opened and edited.

3. Attach the folder action to the desired folder.

4. Place the script somewhere random and out of site.

Drawbacks : Well since this is a script/folder action it can be turned off via Control Clicking on the folder. Most people however will not know about this and for low level security RE: silly co-worker and children this should be fine.

Cell Phone Themes Icons Mighty Mouse Cursors Software Reviews Widgets & Widgets

Maintained by the Staff of ResExcellence. This entire site ©1997-2006 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement. [an error occurred while processing this directive]