ClearSafariCache.sh Stuck

Starting with version 5.2.0, Cookie has been getting stuck running its clearSafariCache.sh script.

Running the script from the command line seems to work properly (it throws some errors due to file permissions, but exits normally), but when invoked by the app, it appears in the menu bar indefinitely; running and running until you click the "x" to stop the process.

The only obvious difference was that three of the scripts (although not the problematic one) were owned by the admin group. (Not sure why.) So I chowned the files to "grettir:staff" and, oddly enough, that appears to have resolved the problem. (Again, not sure why.)

Problem seems to be solved. I deleted Cookie Application and associated folders and files, rebooted computer, and reinstalled Cookie. I still have only three of the 5 scripts listed a being in the com.sweetpproductions.Cookie5 Folder, but clear safari cache no longer hangs.

I deleted Cookie and all associated files and scripts, reinstalled and still experienced the clearSafariCache.sh endless process. I then searched the forum and found your "chown " workaround which did the trick. Hopefully this is a temporary fix to be corrected in some future release, yes?

Even with Safari quit if I run Cookie and then quit Cookie the endless process returns. I have removed Cookie from StartUp Items for the time being in the hope you can find a permanent solution to this problem.

Because the original script throws "Permission denied" errors and therefore opens the file descriptor stderr, it seems that the parent process (com.apple.foundation.UserScriptService) can't close it as long as a file is open.