开发者

How can I have a button run an Applescript?

开发者 https://www.devze.com 2023-03-09 15:34 出处:网络
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

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

精彩评论

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