PDA

View Full Version : Applescript/Folder actions




MagicTramp
Oct 2, 2009, 06:44 PM
I have a folder i have constantly, by accident, deleted for months.
I want to attach a folder action to it, so that when it is moved to the trash a dialog box shows up asking whether i actually want to bin it. Or, even better, a script that will stop me moving it/binning it altogether.

That way, if i pick it up and drag it there by accident it will stop me binning the important folder.

What would the script look like for this? I take it i will be implementing the "if" command.... but what? "if the_folder is moved"?

I can't figure it out.

Thanks.
- Matthew