Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent

    clearSafariTPcache Failing

    Cookie 6
    3
    25
    117
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      HFTobeason last edited by

      If you're asking me, yes, my account is an Admin account.

      1 Reply Last reply Reply Quote 0
      • T
        Tacitus @SweetP last edited by

        @SweetP Unfortunately I think I've confused this thread, but I run as user.

        The scripts folder is in ~/library/application scripts/com.sweetpproductions.CookieApp

        Folder permissions are:
        user (me): r/w
        everyone: read only

        Permissions on the Scripts are:
        User (me): R/w
        staff: read only
        everyone: read only

        1 Reply Last reply Reply Quote 0
        • T
          Tacitus last edited by Tacitus

          FWIW I tried stopping Cookie6 and installed a copy of Privatus 6.1.8 to see what happened.
          Again the same problem: following Safari -> quit the small gear wheel in the menu bar with clearSafariCache.sh failed.
          Since the problem has started fairly recently it suggests that an update to either MacOS or to Safari is behind the problem. I also have a laptop running the last version of Mojave and that is not showing the same problem.
          I should have added that permissions for Privatus are the same as those for Cookie6

          1 Reply Last reply Reply Quote 0
          • T
            Tacitus last edited by

            Hmm. Made a mistake there.
            A more thorough check on the laptop running Mojave 10.14.6 and Safari 13.1.1 shows the same problem: spinning gear wheel in the menu bar which then shows 'failed' after quitting Safari and the clear cache script runs.

            1 Reply Last reply Reply Quote 0
            • SweetP
              SweetP last edited by

              try the following command on the scripts:

              chmod +x clearSafariTPCache.sh
              chmod +x clearSafariTPHistory.sh
              
              1 Reply Last reply Reply Quote 0
              • H
                HFTobeason last edited by HFTobeason

                Did as requested.

                This is the directory listing BEFORE the +x commands:

                Screen Shot 2020-07-03 at 11.54.43.png

                And this is the +x commands and the "new" directory listing:

                Screen Shot 2020-07-03 at 11.54.55.png

                And this is the directory path in question:

                Screen Shot 2020-07-03 at 11.57.19.png

                A quit/relaunch/quit of SafariTP still results in this:

                Screen Shot 2020-07-03 at 12.01.32.png

                1 Reply Last reply Reply Quote 0
                • SweetP
                  SweetP last edited by

                  Ive just uploaded a new beta, which I hope fixes the problem:
                  https://sweetpproductions.com/products/cookieapp/beta_updates.htm

                  If you can download the beta and try that, then let me know how it goes.
                  You should be prompted to update the scripts when they are required.

                  1 Reply Last reply Reply Quote 0
                  • H
                    HFTobeason last edited by

                    Quit Cookie. Replaced the app with the new beta. Relaunched Cookie. Quit SafariTP. Got prompted to update one script, which seemed to be successful, as I got the "OK" dialog. However - and this is all part of this single instance of quitting SafariTP - I got this:

                    Screen Shot 2020-07-09 at 11.23.32.png

                    1 Reply Last reply Reply Quote 0
                    • H
                      HFTobeason last edited by

                      After posting the above message, I quit SafariTP again at which point I saw this:

                      Screen Shot 2020-07-09 at 11.26.38.png

                      and then, after several minutes, this:

                      Screen Shot 2020-07-09 at 11.27.39.png

                      Please note, however, that my history is being deleted from SafariTP upon quit/relaunch:

                      Screen Shot 2020-07-09 at 11.29.38.png

                      I don't know how to check to see if my cache data is being removed or not...

                      1 Reply Last reply Reply Quote 0
                      • H
                        HFTobeason last edited by

                        Also note that I see tons of messages like this in Console after quitting SafariTP:

                        Sandbox: find(31092) System Policy: deny(1) file-read-metadata /private/var/folders/8c/t4q625mn1sv94y7z9w5k8zzc0000gn/0/com.apple.Safari/SafariFamily
                        
                        1 Reply Last reply Reply Quote 0
                        • SweetP
                          SweetP last edited by SweetP

                          ok,
                          Ive been doing some reading, it looks as though support for running these scripts has been deprecated in one of the Catalina updates...

                          <edit>support is still there, but the cache removal script was trying to remove data from a protected folder - and this was causing the fail I think</edit>

                          I'll try and find a way to implement them some other way, or even see if they are still necessary at all...

                          1 Reply Last reply Reply Quote 0
                          • SweetP
                            SweetP last edited by

                            so it looks as though Cookie can now do its job without the cache removal script. πŸ’ƒ

                            Ill look into a solution for fixing the history removal. and upload a new beta when I have a solution

                            H 1 Reply Last reply Reply Quote 0
                            • H
                              HFTobeason @SweetP last edited by

                              @SweetP Thank you.

                              To reiterate: my history IS being deleted as expected (upon SafariTP quit); I can't tell if my cache is being deleted or not.

                              1 Reply Last reply Reply Quote 0
                              • SweetP
                                SweetP last edited by SweetP

                                Ive just uploaded beta v6.0.16.3
                                Im hoping this one finally fixes the issue
                                https://sweetpproductions.com/products/cookieapp/beta_updates.htm

                                The cache script is no longer required, and the history script has been updated. the history script is only used to remove recent search terms, so you might not have even noticed if it was failing

                                1 Reply Last reply Reply Quote 0
                                • H
                                  HFTobeason last edited by HFTobeason

                                  Well, I no longer see the little spinning gear appear in my menu bar upon quit of SafariTP, and there's no other sign of Cookie having issues... So I think things are looking good! Thanks!

                                  EDIT: I just saw the tiny gear flash on in the menu bar upon quit of SafariTP - but only for an instant.

                                  SweetP 2 Replies Last reply Reply Quote 0
                                  • SweetP
                                    SweetP @HFTobeason last edited by

                                    @HFTobeason super nice!
                                    thanks for testing
                                    πŸ‘

                                    1 Reply Last reply Reply Quote 0
                                    • SweetP
                                      SweetP @HFTobeason last edited by

                                      @HFTobeason the history script should still run - but hopefully it’s not failing. It should also be deleting your recent searches in safari.
                                      πŸ‘

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post