I'm presuming you are talking about Safari.
You could make a duplicate copy of your Cookies folder when its has only the cookies you want.
Then the next time you need to clean them out, instead of manually weeding out the unwanted cookies simply delete the current working Cookies folder and replace it with your good copy.
Your cookies folder is located at ~/Library/Cookies
I'm no expert- its just an idea. If it works to your satisfaction you could automate the procedure with Automator.
Thank you. Yes, I am talking about Safari. I will try that, as it seems quicker than my own option. But I am not sure how to replace back my good cookies after I have deleted them all together with the bad ones. I cannot find the Library folder in the "Finder" (I look at my Cookies in Safari preferences, under "Privacy").
Also, I have never used the Automator feature. Would you be so kind to pls guide me on this ...? Thank you for your help.
To get to Library
In finder in the menubar select the Go menu and then press Option key. Library should then appear on the list.
Or another way
In Finder press Shift+Comand+Go then in the window that appears enter ~/Library
So then when you have your unwanted cookies weeded out copy the Cookies folder to another place, say in your Documants folder for example.
Then after you have been browsing and you want to remove the unwanted Cookies but keep the 'good' ones, go the your ~/Library/Cookies folder and delete it. Then Copy your backed up 'good' Cookies folder to the ~/Library
I'll see if I can find anything on automator
Here is a small AppleScript that should do it for you. Again I'm no expert.
# This replaces the user's Cookies folder with another preselected Cookies folder. set GoodCopy to "/Users/YourAccountName/Documents/Cookies" set CurrentCopy to "/Users/YourAccountName/Library/Cookies" set CurrentCopy to ((POSIX file CurrentCopy) as alias) set GoodCopy to ((POSIX file GoodCopy) as alias) tell application "Finder" to duplicate GoodCopy to container of CurrentCopy with replacing
It should replace your Cookies folder with your preslected 'good' Cookies folder.
In lines 2 and 3 where it says YourAccountName rplace it with you account name.
In line 2 set it to match where ever you place your good Cookies folder. If you move it after wards the script wont work, so make sure you bput your good copy in aplace where you wont have to move it.
To make it work open AppleScript editor [its in your Utilities folder] and select the above code and paste it into it. then Select save and from the save window at File Format choose Application and save it wuth a name that makes sense to you.
Now when you run the application it should automatically overwrite your old Cookies folder with your backed up good one.
Finally, did I mention I'm no expert.
EDIT: Its proably best to have Safri shut down before swaping the Cokies folder.
It may be easier and less fuss to get a third-party cookie manager. I use Cookie from SweetP Productions and have considered it well worth the money.
Disclaimer: any product suggestion and link given is strictly for reference and represents my opinion only. No warranties express or implied. I get no personal benefit from the sale of any product I may recommend in any of my posts in the Discussions. Your mileage may vary. Void where prohibited. You must be this tall to ride. Objects in mirror may be closer than they appear. Preservatives added to improve freshness. Contestants have been briefed on some questions before the show. No animals were harmed in the making of this post.
Great! Thank you so much for your help! Though I am still at the first stage and not ready for the automator. I managed to find the Cookies folder in the library but am unable to open it (to see all the cookies). When I click on it, it says: "There is no application set to open the document. Search the App Store to choose an app to open this document!"
I don't even know what app to buy to open it . So I guess I have to leave it at that and resort to manually weeding out the unwanted cookies until I find out what app will open the "Cookies Folder" in the Library.
I very much appreciated your idea. It's well worth a try
Thanks for the link. It looks like THIS is the app I need to buy! I will read more about it and make a decision. As it is indeed a small price to pay to save my time to manually weed them out - as well as safeguarding my security. Thank you so much again.
Is the one that you kindly provided the lin for, the same one that you use? Thanks.
You shouldn't need any aplication to open your cookies folder. It's my guess that you are actually in the Cookies folder and that you have OS X set to hide file extensions. and what you can't open is actually a Cookies file. [to display file extensions in Finder/Preferences/Advanced/ select "Show all filename extensions"
There are two types of cookies file. One a plist. I would recommend TextWrangler to open that. Its free. Very good app.
The other cookies file is a .binarycookies file. I'm not 100% what is ofcially used to open it but I use a hexeditor like 0xED to view the file's contents (but not to edit it -I'd use Safari for that). Again its free.
But I think its best you hold off doing my idea until you get more sure of your way around your computer.
In fact if I were you I'd get Firefox and search for a firefox addon [free again] that will alow you to manage your cookies.
Yep, that's the one I use. It works quite well for me, and can delete not only standard cookies but Flash cookies, Silverlight cookies, and web datebases, all of which can track your usage but which would not be removed by the script above nor manually clearing the Cookies folder.
Great - thank you. This really helps. And you are right, I will for now, hold on till I find my way around my laptop.
Thanks ever so much again for all those useful links for opening the files for free - much appreciated ...
I just bought the app (THANK YOU!), and have gone through the wizzard too. So far ok, but will of course know the difference after I have logged off.
The one thing I could not understand when I was at the end of the wizzard for my preferences, was the "Database" tab. I know about Flash cookies and Sliverlight cookies (which I luckily didn't have any!). I deleted a couple of Flash cookies too. But when I got to the "Database" tab" on filling the wizzard, I could not decide to delete the sites or not, as they were all my favourite cookies! Though under the "Secure" columun of the "Database" tab, some had "YES" and some had "NO". Does that mean that those favourite sites of mine have me on their database (which is not secure for the "NOs"?!) I am just confused on the "Database" tab. Not sure what it is - especially so, when it said "NO" for one of Apple cache too! Thanks for your help again, and kind regards.
Web developers have all sorts of ways to keep information about your use of their sites. Standard cookies are one way, but developers can also keep a database through the browser. Here's an explanation:
I keep database favorites for any site for which I keep cookie favorites, and allow the others to be deleted. Be wary of any database that says it's not secure but which is for a site that contains vital personal information; an online backing site, for instance.
Great - thank you. It all make sense now.
And you have truly made my day! I was tired of manually deleting all my cookies each time I logged off - one by one! I can now enjoy my security and peace of mind!
Have a great day