Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

10.5: Change the polling interval for folder actions System 10.5
Folder actions in Leopard are triggered by the application Folder Action Dispatcher, which basically checks for modifications in a folder at a specified interval. Unfortunately, the default time interval in Leopard is 180 seconds, i.e. three minutes, which may be way too long sometimes. However, Folder Action Dispatcher is a scriptable app and it allows user to change the checking interval. Open Script Editor in /Applications/AppleScript, and type the following command on one line:

tell application "Folder Action Dispatcher" to set polling interval to nnn

Replace nnn with the desired polling interval, in seconds. Now click the Run button in the toolbar, and voila!

[robg adds: On the queue site, a comment notes that Script Editor may ask where the app is -- it resides in /System/Library/CoreServices. You can avoid this by specifying the full path in the above command. It's also noted that there's a new AppleScript command to force a folder to be checked: tell application "/System/Library/CoreServices/Folder Actions Dispatcher.app" to tick.]
    •    
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,975 views]  

10.5: Change the polling interval for folder actions | 3 comments | Create New Account
Click here to return to the '10.5: Change the polling interval for folder actions' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Maybe not what you think...
Authored by: mr. applescript on Thu, Dec 13 2007 at 3:43PM PST
Actually, in Leopard, Folder Actions are triggered by notification of the file system. The poll property is for special circumstances and is generally not used (hence the high poll rate). As for the other commands, they're good for testing and triggering actions via Apple Events. ;-)

[ Reply to This | # ]
yes but...
Authored by: Steff-X2 on Tue, Dec 18 2007 at 11:14AM PST
You're right but I've got so many segmentation faults or malloc errors on Console with FolderActions that polling seems to be used instead of notifications

[ Reply to This | # ]
10.5: Change the polling interval for folder actions
Authored by: michelle_eris on Thu, Dec 13 2007 at 7:33PM PST
You can avoid having the script asking where the application is without having to specify the full path. Just use this instead of the application's name or path:

id "com.apple.FolderActionsDispatcher"


[ Reply to This | # ]