• 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: Attaching Folder Action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attaching Folder Action


  • Subject: Re: Attaching Folder Action
  • From: Christopher Nebel <email@hidden>
  • Date: Sat, 24 Aug 2002 19:57:50 -0700

On Tuesday, July 30, 2002, at 09:45 AM, Michael Sullivan wrote:

I'm looking for a way to attach a folder action script
to a folder using some kind of API (on OS 9), and not
through the 'Attach Folder Action' menu obtained with
the control-click.
I would like my application to be able to
automatically attach a script to a folder when the
user chooses his 'hot folder', and not to make him
attach it manually.

Anyone knows how this can be done?

I'm pretty sure you can't do it. ...

No, you totally can. (M. Sullivan seemed to suggest that folder actions didn't exist, which is certainly untrue in Mac OS 9, and is now untrue in Mac OS X as of 10.2.)

The "Folder Actions" application in Mac OS 9 is itself scriptable and can add and remove folder actions. In fact, all the menu command does is send an event there. In Mac OS X 10.2 (Jaguar), substitute System Events for Folder Actions; the rest is the same.


--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Attaching Folder Action
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Can AS sublaunch based upon Mac OS version?
  • Next by Date: Re: Sending Commands to Terminal Windows
  • Previous by thread: Can AS sublaunch based upon Mac OS version?
  • Next by thread: Re: Attaching Folder Action
  • Index(es):
    • Date
    • Thread