• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Folder action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: mangling messages
  • Next by Date: Re: Reading Lines of Text from File Until EOF...
  • Previous by thread: Folder action
  • Next by thread: FileMaker Strange Reference
  • Index(es):
    • Date
    • Thread