New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Adding Terminal commands


Post Reply New Thread Subscribe

 
Thread Tools
Discerptor

 
Discerptor's Avatar
 
Member Since: Aug 02, 2005
Posts: 1,229
Discerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to allDiscerptor is a name known to all
Mac Specs: 2.6GHz Core i7 15" MacBook Pro - 8GB DDR3 SDRAM - 750GB 7200 RPM HDD - GeForce 650M GT 1GB VRAM

Discerptor is offline
Hello,

I was wondering if anyone could tell me how to add terminal commands in OS X for opening specific applications, or even opening files with a cerrain application. For instance, on a Linux setup I'm working with, if I type emacs (insert filename), it will open that file (or create it if it doesn't exist) using emacs. Similarly, if I want to use xppaut, I type xppaut (filename) and it'll open that file with xppaut. How can I accomplish this sort of thing for programs with the OS X terminal? Thanks in advance.

And I know there is an emacs command built into the OS X Terminal, but I'd like it to use the Carbon emacs for OS X I downloaded instead of the one that works inside the Terminal. So I guess what I'm asking is if someone knows how to make one of those executable files that are in /usr/bin.
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
It appears that you will need to change the permissions on the file that you downloaded. Look at the permission of the file where you downloaded it and be sure that it is excutable. Then you should be able to do a ./emacs filename, as long as you are setting the directory/folder where the application stored.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks

Post Reply New Thread Subscribe


« running apps from terminal | Programming language rated »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Need some basic terminal commands... maxf OS X - Development and Darwin 3 07-22-2007 01:46 AM
Changing Terminal Colors using Unix Commands? johninc OS X - Development and Darwin 4 05-07-2006 10:14 PM
Automated Terminal Commands sarahsboy18 OS X - Operating System 3 09-09-2005 07:39 PM
useful terminal commands moz Switcher Hangout 4 06-24-2005 11:06 AM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 10:52 PM

All times are GMT -4. The time now is 04:37 PM.

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

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?