Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 3.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[10,433 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 whoever posted them. This site is not responsible for what they say.
Maybe not what you think...
Authored by: mr. applescript on Dec 13, '07 03:43:17PM

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 Dec 18, '07 11:14:19AM

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 Dec 13, '07 07:33:57PM

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 | # ]