Mac Forums

Mac Forums (
-   OS X - Development and Darwin (
-   -   How-To run a script? (

milessthomas 10-04-2007 05:17 PM

How-To run a script?
**edit** [[Could someone please take the time to refer me to something showing me how to create an icon that when clicked will open terminal and run the command: "telnet" It is very urgent that I get this done as this mac is to become our master inventory check in terminal. ]]

I don't really fool around much in the terminal except to log into my offices terminal database.

I've put two new macs in the office and two of my employees are older and don't understand how to enter the commands. Is there a way I can automate the process to run

>telnet (send command)

After that command it automatically logs into the TAMS server and they understand the rest. So how can I get it so they can click an icon, terminal opens, and runs the "telnet" command automatically?

Any help would be greatly appreciated.

xstep 10-05-2007 02:54 AM

You could place the following 3 lines into a file and then using the Info panel set the file to be opened in Terminal App when double clicked.


You'll also have to, from the terminal type the followling after you have created the file. I named mine termit.bash. The file needs execute permissions for the people who will run it. You'll need to do this and the ab ove Terminal App association for each system you copy it to.

chmod ugo+x termit.csh

milessthomas 10-05-2007 06:23 PM


milessthomas 10-05-2007 08:07 PM

I found an alternate way via a member at

If you open Applescript''s ScriptEditor you can write the following command and save it as an Application Bundle and it will do exactly what I want it to.

(Type in script below)
tell application "Terminal" to do script "telnet"

Then click Compile. And go File Menu->Save As->File Name (but save file format as "application bundle"

xstep 10-06-2007 03:40 AM

That is another good alternative.

All times are GMT -4. The time now is 02:50 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.