从终端清除 Safari cookie [英] Erase Safari cookies from Terminal

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

问题描述

我正在制作一个涉及从 Applescript 控制 Safari 的应用程序.终端(首选)或 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

或者看看这个:List &删除 Safari cookie

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

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