Re: Folder action
Re: Folder action
- Subject: Re: Folder action
- From: Michelle Steiner <email@hidden>
- Date: Tue, 30 Jan 2001 10:18:07 -0800
On 1/30/01 9:46 AM, Amir Bozorgzadeh <email@hidden> wrote:
>
I am trying to create a folder action script that will automatically close
>
a window after somebody opens it. I need this to be generic so that I can
>
use it for several different folders and have only one script. If this is
>
not possible I am having problems getting it to work. ANy syntax help would
>
be apprecited. Sorry for such a simple question but I am not real familiar
>
with folder actions. Thanks.
on opening folder this_folder
tell application "Finder" to close this_folder
end opening folder
Attach this compiled script to each folder you want it to work with. To
attach it to a folder, command-click on the folder, and choose Attach
Folder Action.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------