如何让按钮运行 Applescript?
我正在使用 Xcode 和 Interface Builder。我的 Xcode 项目基于 Applescript 模板。我在界面生成器中有一个按钮。我想
tell application "Terminal"
activate
do script "list" in front window
end tell
在单击按钮时运行。顺便说一句,它是 Xcode 3.2.4
I am using Xcode and Interface Builder. My Xcode project is based off the Applescript template. I have a button in interface builder. I want
tell application "Terminal"
activate
do script "list" in front window
end tell
to run when the button is clicked. Btw it's Xcode 3.2.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来你需要一些基础教程来学习这个。这不是一件可以轻易解释清楚的事情。我在此处找到了一个,但您应该在那里搜索,因为我知道还有更多教程。
It seems like you need some basic tutorials to learn this. It's not something that can be explained easily. I found one here but you should search there because I know there's more tutorials.