0

I'm trying to make a program consisting of an AppleScript interfacing with bash files (so that I get the fancy Cocoa GUI). I assume this is a simple task, because one of the file types in the new file-menu (cmd+n) is shell scripts (.sh).

I've done a few half-assed tries to get it working (do shell script "sh file.sh"), but I can't figure out how to run those files.

Are there any gurus out there who can help me? :3

If anything is unclear, feel free to ask questions.

1 Answer 1

1

If you just want to launch shell scripts from the Cocoa gui, you don't need the AppleScriptObjC bridge, make a Cocoa program in Objective-C and use the NSTask class: https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSTask_Class/Reference/Reference.html.

Sign up to request clarification or add additional context in comments.

1 Comment

Hmm, that's interesting. Will look into it tomorrow when it's not 1 AM :p

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.