Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

aneks

macrumors regular
Original poster
Aug 29, 2006
132
0
Hi Gys,

I know that has been touched on in the past and I read the forums and got this far but I can't seem to get this to work and I know it should.

I have an application which can be launched via a script called Nuke5.0 it is located here :

/Applications/Nuke5.0v2b7/Nuke5.0v2b7.app

So I created a file called .bash_profile and added the following lines

export PATH=${PATH}:/Applications/Nuke5.0v2b7Nuke5.0v2b7.app
alias nuke=/Applications/Nuke5.0v2b7/Nuke5.0v2b7.app/Nuke5.0

and when I use the nuke alias in my bash I get the response

nuke : unknown command

so I guess I am doing something wrong. Just don't know what it is !

What is the correct way to do this ?

thanks,
T.
 

sord

macrumors 6502
Jun 16, 2004
352
0
Try something like:
Code:
alias nuke='open -a Nuke5.0v2b7'

Or
Code:
alias nuke='open /Applications/Nuke5.0v2b7/Nuke5.0v2b7.app/Content/MacOS/Nuke'
(To get the exact name, do:
Code:
ls /Applications/Nuke5.0v2b7/Nuke5.0v2b7.app/Content/MacOS/
)
 

yeroen

macrumors 6502a
Mar 8, 2007
944
2
Cambridge, MA
Then of course, after you do as suggested above, remember to 'source' your .bash_profile the first time you use it so the aliases get loaded into memory.
 

aneks

macrumors regular
Original poster
Aug 29, 2006
132
0
ah crap it was just syntax. no symboilc link necessary

alias nuke="/Applications/balh/blah"

silly silly Bourne Again Shell
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.