• 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
Why won't folder action fire?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why won't folder action fire?


  • Subject: Why won't folder action fire?
  • From: email@hidden
  • Date: Wed, 19 Feb 2003 22:38:58 -0800

I want to set up a folder action that does nothing but run a shell script or a Perl script. (So I'm operating with minimal Applescript knowledge.) I save the following as a compiled script, add it to the folder using the script menu, but it won't fire.

on adding folder items to this_folder after receiving added_items
display dialog "About to print some files..." with icon note buttons "OK"
do shell script "/users/jrussell/bin/print_all_files"
end adding folder items to

If I take the part inside the "on adding... end adding..." and make that its own script, it runs fine from inside the script editor. The sample "add items" folder action script works, that's where I saw the "on adding..." code.

What else can go wrong with a folder action, that could cause it not to work at all?

John
_______________________________________________
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: Why won't folder action fire?
      • From: Bill Cheeseman <email@hidden>
References: 
 >"missing value" in GUI scripting (From: David Crowe <email@hidden>)

  • Prev by Date: Re: Sorting Lists by multiple criteria
  • Next by Date: osacompile and making an application
  • Previous by thread: Re: "missing value" in GUI scripting
  • Next by thread: Re: Why won't folder action fire?
  • Index(es):
    • Date
    • Thread