Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Extend the power of 'open -a'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Extend the power of 'open -a'
Authored by: spoier on Jun 23, '04 12:57:14PM

I think you're missing a semicolon before the second "then" there. Or you can put it on a newline, like the first if .. then

Skye



[ Reply to This | # ]
Extend the power of 'open -a'
Authored by: scottgo on Jun 23, '04 02:25:22PM
You are correct. I kept getting:
syntax error near unexpected token `else'
Once I added the semi-colon and all was well.

Thanks!

---
There are 10 kinds of people in the world, those who understand binary and those who do not.

[ Reply to This | # ]

more on open -a
Authored by: rroberts on Jun 23, '04 04:05:50PM

Nice tip! Because I use a handful of favorite applications, however, I created aliases in my .bashrc, so only have to type a brief command. For instance, in .bashrc:

alias pshop='open -a Adobe\ Photoshop\ CS'

Then I just type "pshop" at the command prompt.
To open a specific file, just type:

pshop SomePhoto.jpg

cheers!



[ Reply to This | # ]