无GUI应用程序包 [英] GUI-less App Bundle

查看:172
本文介绍了无GUI应用程序包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个没有GUI但无权访问应用程序包的帮助程序。我在看Xcode命令行项目模板,但这些都只是生成可执行文件。我如何创建一个类似命令行工具,提供没有应用程序菜单,但提供访问捆绑资源在.app?

I would like to create a helper application that has no GUI yet does have access to an app bundle. I was looking at the Xcode command line project templates, but these all just generate executable files. How can I create something like a command line tool that presents no application menu yet provides access to bundle resources in a .app? Am I thinking about this the wrong way?

感谢。

推荐答案


我想创建一个没有GUI但没有应用程序包的帮助应用程序。

I would like to create a helper application that has no GUI yet does have … an app bundle.

这就是所谓的代理,你通过一个常规的应用程序,并设置其 LSUIElement 键到字符串1。

That's called an agent, and you make one by making a regular application and setting its LSUIElement key to the string "1".

这篇关于无GUI应用程序包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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