本文介绍了自定义Applescript应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建了 AppleScript ,对其进行了测试并将其保存为.app,并且可以正常运行.
I have created my AppleScript, tested it, saved it as an .app and it works.
现在,如何为它设置自定义图标?
Now, how do I set a custom icon for it?
我做了一些谷歌搜索,并尝试了一些不同的方法,但无法使其正常工作.该应用程序主要供我使用,也许我认识的某些人可以简化工作流程,因此拥有一个漂亮的小图标会带来很大的不同.有人可以帮忙吗?
I have done a bit of googling and tried a few different things but cannot get it to work. The app is mainly for me and maybe some people I know to make workflows easier so having a nice little icon makes a huge difference.Can anyone help with this please?
推荐答案
- 基本上,您需要一个
.icns
图标文件. - 右键单击>
Show Package Contents
打开您的应用程序 - 导航到
Contents > Resources
- 删除
applet.icns
- 将自定义图标文件拖到
Resources
文件夹中 - 将
Resources
中的图标文件重命名为applet.icns
- 要更新图标外观,请在脚本编辑器中打开并重新保存小程序.
- Basically you need an
.icns
icon file. - Open your application with right-click >
Show Package Contents
- Navigate to
Contents > Resources
- Delete
applet.icns
- Drag the custom icon file into the
Resources
folder - Rename the icon file in
Resources
toapplet.icns
- To update the icon appearance open and re-save the applet in Script Editor.
这篇关于自定义Applescript应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!