开发者

How can I have a button run an Applescript?

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 fro开发者_开发知识库nt window
    end tell

to run when the button is clicked. Btw it's Xcode 3.2.4


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜