Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Terminal Commands
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mac57" data-source="post: 597256" data-attributes="member: 17052"><p>Yup, that is it. However, I find what happens when I double click on the script's icon is that Terminal.app launches, but it doesn't run the script.</p><p></p><p>After some researching on the web, it seemed that you needed to title your script with the suffix ".term". This seems to work too, but the same result occurs. Terminal.app launches, but it doesn't run the script.</p><p></p><p>I am guessing that what is needed here is a small AppleScript script that launches Terminal.app and then feeds it the script name as a command. However, I am abysmally ignorant of AppleScript and don't know how to do this. </p><p></p><p>Would any kind volunteers like to demonstrate their mastery of AppleScript by showing us the code for a script that will launch Terminal.app, have it run a bash script and then exit terminal.app and close the terminal windows? Thanks!</p></blockquote><p></p>
[QUOTE="mac57, post: 597256, member: 17052"] Yup, that is it. However, I find what happens when I double click on the script's icon is that Terminal.app launches, but it doesn't run the script. After some researching on the web, it seemed that you needed to title your script with the suffix ".term". This seems to work too, but the same result occurs. Terminal.app launches, but it doesn't run the script. I am guessing that what is needed here is a small AppleScript script that launches Terminal.app and then feeds it the script name as a command. However, I am abysmally ignorant of AppleScript and don't know how to do this. Would any kind volunteers like to demonstrate their mastery of AppleScript by showing us the code for a script that will launch Terminal.app, have it run a bash script and then exit terminal.app and close the terminal windows? Thanks! [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Terminal Commands
Top