自定义 Applescript 应用程序图标 [英] Customize Applescript app icon
本文介绍了自定义 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 >资源
- 删除
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 应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文