无法在 Apple 脚本中找到指定应用程序的应用程序支持文件夹
我有一个苹果脚本,要求用户选择一个应用程序作为提示。我想知道如何找到该应用程序的应用程序支持文件夹的目录,例如 Spotify 是 ~/Library/Application Support/Spotify/
在我的 mac 上,但就像苹果脚本中有一种方法可以找到特定应用程序的此目录。真的很感激,谢谢!
因为我想然后使用 Apple 脚本删除这个文件夹
I have an apple script that asks the user to select an application as a prompt. I would like to know how it could be possible to find the directory of the Application Support folder for this application per example, Spotify is~/Library/Application Support/Spotify/
On my mac, but like is there a way inside apple script to find this directory for the specific app. It would really be appreciated, thanks!
Because I would like to then delete this folder using Apple Script
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该可以实现您想要实现的目标。但要小心,因为使用
系统事件
来删除
...会永久删除该项目,而不是将其发送到垃圾箱
This should accomplish what you're looking to achieve. Be careful though because using
System Events
todelete
... deletes the item permanently instead of sending it to theTrash