擦除从终端Safari浏览器的cookies [英] Erase Safari cookies from Terminal

查看:180
本文介绍了擦除从终端Safari浏览器的cookies的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做,涉及到从AppleScript的Safari浏览器控制的应用程序。有没有在终端(preferred)或AppleScript的方式清除Safari浏览器的Cookie。基本上,我想从使用终端的菜单中的重设Safari项目。有没有能做到这一点的方法?

I am making an application that involves controlling Safari from Applescript. Is there a way in the Terminal (preferred) or Applescript to erase Safari's cookies. Basically I want to the "Reset Safari" item from the menu using the Terminal. Is there a method that can do this?

推荐答案

您可以简单地删除 Cookies.plist 文件:

You could simply delete the Cookies.plist file:

rm ~/Library/Cookies/Cookies.plist

还是先看看这个:名单,放大器;删除Safari的Cookie

这篇关于擦除从终端Safari浏览器的cookies的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆