This discussion is archived
6190 Views 6 Replies Latest reply: Sep 23, 2010 7:11 AM by AlexanderTheGreat
Currently Being ModeratedAug 17, 2010 8:10 AM (in response to Loren Ryter)Still no solution here. Folder Actions simply are not called. Everything is enabled in the GUI. launchctrl apparently cannot unload the launch agent. I notice there are two instances of launchd, one running as root, one as my user.
I killed and disabled speed download, which I suspected as a possible conflict.
zfp below is a bash function to list processes (ps axcru...)
Anyone have any ideas?
MacPro:/ lryter$ zfp launchd
lryter 269 0.0 0.0 2511784 1580 ?? Ss Fri06PM 0:58.39 launchd
root 1 0.0 0.0 2511988 1516 ?? Ss Fri06PM 9:12.50 launchd
MacPro:/ lryter$ cd /Users/lryter/Library/LaunchAgents
MacPro:LaunchAgents lryter$ ls
MacPro:LaunchAgents lryter$ tail -100 /var/log/system.log | grep folder
Aug 17 10:48:07 MacPro com.apple.FolderActions.enabled: launchctl: Error unloading: com.apple.FolderActions.folders
Aug 17 11:02:03 MacPro com.apple.launchd.peruser.501 (com.apple.FolderActions.folders): Throttling respawn: Will start in 10 seconds
Aug 17 11:03:35 MacPro com.apple.launchd.peruser.501 (com.apple.FolderActions.folders): Throttling respawn: Will start in 10 seconds
Aug 17 11:04:09 MacPro com.apple.launchd.peruser.501 (com.apple.FolderActions.folders): Throttling respawn: Will start in 10 seconds
Currently Being ModeratedAug 20, 2010 2:01 PM (in response to Loren Ryter)I have the similar problem. Folder Actions work well for me, but front (active) application window sometime blinks (becomes inactive for a second)
Strange messages in Console: (com.apple.FolderActions.folders) Throttling respawn: Will start in 7 seconds
And I can't disable Folder Action at all, Console message appears:
8/20/10 11:47:24 PM com.apple.FolderActions.enabled launchctl: Error unloading: com.apple.FolderActions.foldersMBP MA610, Mac OS X (10.6.4)
Currently Being ModeratedAug 31, 2010 12:27 PM (in response to vaddie)Same problem here. Any solution?MacBook Pro 2.8GHz, 320Gb, 4Gb, Mac OS X (10.5.5), iPhone 3G, PBG4 1.67, iMac G4/800, PB WallStreet G4/500 upgrade
Currently Being ModeratedSep 19, 2010 5:58 PM (in response to Loren Ryter)I finally go Folders Action to work, after being unable to use it even for a simple beep for years now.
Here is what I did:
1. Changed permissions to 755 for the following folder and two contained files (note that 775 didn't work for me)
2. Changed the following lines within ~/Library/LaunchAgents/com.apple.FolderActions.enabled.plist (using TextWrangler)
Prior to the permissions changes within #1 above, the value of <true/> kept getting changed back to <false/> by something in the system... and though
there was improvement by the permissions changes, the following console message appeared until false was changed to true.
com.apple.FolderActions.enabled launchctl: Error unloading: com.apple.FolderActions.folders
At this point true is staying true, and not being changed by unknown forces to false, and the above message is not appearing.
3. The only other thing I did prior to #1 and #2 above, was to run the script (unsaved),
tell application "/System/Library/CoreServices/Folder Actions Dispatcher.app" to tick
This little tell line caused something to occur where my Folder Action surprised me and worked for the first time though it took about 30 seconds and was erratic,
sometimes performing, sometimes not, though if I would do move something into the folder to trigger the action that should occur, and did not occur, then at the point
running the above tell line or script would cause the action to occur.
4. At this point I don't fool with the tell line or script from #3, and it seems that systemevents has gotten involved, as well as launchd, and with my simple Folder Action script
I'm getting the folder action within 10 seconds compared to 30 to 45 if ever seconds.
5. This is still too early to tell if this is the wonder pill I've needed since Leopard, and now Snow Leopard (and maybe Tiger as well: I forget when I even tried Folder Actions).
There was a time when I moved things around, so that the items normally found in the former AppleScript folder, were placed elsewhere in subfolders, so I don't know if that lead to this...
because I could get Folder Actions to work on Macs in the Applestore, but not my own Mac. Watching the console messages was helpful. I don't think it's a big concern that
deprecated messages are found sometimes. That's a just a normal part of the constantly rebuilding of things that goes on. It's more like a reminder that we've got an upgraded
OEM part were going to start using, and the older part won't be available after such and such date, so program accordingly, and in the meantime drive.MacBook Pro, Mac OS X (10.6.4)
Currently Being ModeratedSep 20, 2010 1:03 PM (in response to Loren Ryter)I have to add, that my above post is all true only for scripts within the folder ~/Library/Scripts/Folder Action Scripts/ in the home domain
For scripts within folder /Library/Scripts/Folder Action Scripts in the root domain, the same problem occurs, where OnDemand becomes <false/>, though it was saved as <true/>
And, the console shows the seemingly corresponding error regarding launchctl: Error unloading: com.apple.FolderActions.folders which seems to be matched by a following message
that says com.apple.FolderActions.folders: Already loaded
Those scripts in the folder in the root domain still work, at least the one I tried did, but I'm wondering if all the folder action scripts I plan to use should be duplicated into the
folder Folder Actions Scripts in the Home DomainMacBook Pro, Mac OS X (10.6.4)
Currently Being ModeratedSep 23, 2010 7:11 AM (in response to Loren Ryter)My Folder Actions didn't seem to work just after moving from my trusty old Mac mini (PPC) to a new Mac Pro. But after adding / deleting a couple of action they kicked into gear.
However... there is a strange delay when they are being triggered. This is what I see in the console:
23-09-10 15:29:23 com.apple.launchd.peruser.502 (com.apple.FolderActions.folders) Throttling respawn: Will start in 10 seconds
23-09-10 15:29:51 com.apple.launchd.peruser.502 (com.apple.FolderActions.folders) Throttling respawn: Will start in 10 seconds
23-09-10 15:30:22 com.apple.launchd.peruser.502 (com.apple.FolderActions.folders) Throttling respawn: Will start in 10 seconds
23-09-10 15:31:38 com.apple.launchd.peruser.502 (com.apple.FolderActions.folders) Throttling respawn: Will start in 10 seconds
This is consistent with the delay that I experience. It may take a couple of seconds before anything happens. Sometimes half a minute.
Has anyone seen this? Is it related to the issue in this topic?
A.Mac Pro, DP, 8-core, Mac OS X (10.6.4)