image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old June 8th, 2001, 01:43 PM
Registered User
 
Join Date: Jun 2001
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
hugheba is on a distinguished road
Question Icon to start a command line application

How do I create and I can that I can click on and it would do the same as if I logged into the terminal and typed:

cd SomeApplication/bin
exec ./SomeApplication

Any help would be appreciated.
Reply With Quote
  #2  
Old June 8th, 2001, 06:30 PM
endian's Avatar
Dis Member
 
Join Date: Sep 2000
Location: inside my skin
Posts: 960
Thanks: 0
Thanked 0 Times in 0 Posts
endian is on a distinguished road
just make whatever commands into a shell script (type them into a text file and set its executable bit by doing chmod +x on it) give it a .command extension, set it to open in Terminal.app (get info on the file, and set it to to open in a specific application, specifically, Terminal)

You also have to add the path to the shell as the first line of the script. Something like:

#/bin/sh

or whatever shell you want. sh is usually best.
__________________
g4 400 AGP - 512 RAM
10GB internal (dumping ground) + 60GB (30 GB OSX partition/30 GB OSX Server partition) - 3GB external SCSI (OS9/and I think the Public Beta is still on there somewhere) - DVD-RAM - ZIP

Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using applescript to open web browser and go to a site blackoutspy Software Programming & Web Scripting 10 September 27th, 2008 11:19 AM
Omniweb application icon misbehaves übermac®™ Mac OS X System & Mac Software 1 September 7th, 2002 06:43 PM
X11: How to start Mac OSX application from remote cronomik Unix & X11 5 July 25th, 2002 03:29 AM
How do i put an application on start up items Donmumin Mac OS X System & Mac Software 4 July 10th, 2002 03:14 PM
Can the finder dock icon be made to open a different application? efoivx Apple News, Rumors & Discussion 7 January 2nd, 2002 03:22 PM


All times are GMT -5. The time now is 11:31 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.