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

Folder Action Problem


  • Subject: Folder Action Problem
  • From: John Mistler <email@hidden>
  • Date: Mon, 26 Jan 2009 16:17:48 -0800

I have a folder action script that is behaving strangely.  If I drop more than 3 files into the receiving folder, the script sometimes just quits (without an error) before finishing.

on adding folder items to theFolder after receiving theseItems
     try
          set chosenFolder to choose folder with prompt "Move File To?"
          repeat with thisItem in theseItems
     -- I perform lot of functions here (left out for simplicity) on the files that take a few seconds to complete each time, including moving each file to the chosenFolder
          end repeat
     on error theError
          display dialog theError
     end try
     display dialog "Files tranferred successfully."
end adding folder items

It seems that if the whole process takes more than a certain number of seconds to complete, the whole script just quits without displaying the last dialog, or the error dialog.  Is there some kind of timeout built into the adding folder items folder action that could be causing it to quit prematurely?  Any other ideas?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Getting Properties from an Applet
  • Next by Date: Re: Flattening Nested Lists
  • Previous by thread: Getting Properties from an Applet
  • Next by thread: Apple Script to Configure Mail.app
  • Index(es):
    • Date
    • Thread