Sponsored Content
Operating Systems OS X (Apple) Opening Applications from the commandline Post 302583650 by butterbaerchen on Wednesday 21st of December 2011 01:58:15 AM
Old 12-21-2011
Opening Applications from the commandline

as you probably/may know, one can open any application from the
application folder with the command
Code:
open -a program_name

I found that out today and so I created aliases in .bash_profile and
they work.
Code:
alias safari="open -a safari"
alias gimp="open -a gimp"
alias seamonkey="open -a seamonkey"
alias firefox="open -a firefox"
alias sketch="open -a sketchbookpro"
alias mindnode="open -a MindNode\ Pro"

spaces have to be escaped, so far so good.
since I have two vms in virtualbox I wanted to add parameters to these
open commands but looking for that I found that there is a simpler
way.
Code:
alias linux="VBoxManage startvm gNewSense"
alias xpro="VBoxManage startvm XP\ Professional"

now this is really nice - starts the vm without opening the virtualbox
screen.
I have several iphoto libraries and up to now I doubleclicked the
librarie file to open it, not anymore
I can just append the respective path to the open command
Code:
alias bpics="open -a iphoto /Volumes/HD500/BlenderImages"
alias images="open -a iphoto /Volumes/HD500/Image\ Database"
alias photos="open -a iphoto /Volumes/HD500/iPhoto\ Library"

in emacs I have to source .bash_profile first for the aliases to work
in a shell buffer ...
This may all be trivial but I would love to hear about how you do
things on your mac to navigate between the candy apps and the
underlying unix. So anyone - feel free to comment or point out better
ways, pitfalls, consequences etc. thank you.
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

list only directories in commandline.

I want to list only directories in the command line using ls command. Can anyone please help me. (9 Replies)
Discussion started by: jhmr7
9 Replies

2. Shell Programming and Scripting

Validating commandline argument

Hi, I am calling a script script2.shl from script1.shl as below script2.shl "TABLE_NAME" -r 10 In that I have to validate the parameter 4. i.e : it should be only 10 20 30 40 50 I know that I can do it by checking like below if ]; then echo "TRUE" else echo "FALSE" fi ... (3 Replies)
Discussion started by: mr_manii
3 Replies

3. Shell Programming and Scripting

$OPTARG changes commandline input

Hi there, I hope, that I do not open an thread, that is already existing, but I didn't found something matching with my problem while searching for problems with "getopts" My problem ist, that I'm taking arguments from commandline into my script with getopts, I've an flag -s, after that there... (2 Replies)
Discussion started by: thommes_pommes
2 Replies

4. Shell Programming and Scripting

Using curl in commandline

Hi, I am using curl to hit a url using http in solaris 10 using commandline, I want to transfer an attachment(using multipart curl -F) also as a part of the request. If anyone has used kindly help me with the syntax. I am using below command: /usr/local/bin/curl -v... (1 Reply)
Discussion started by: manishmaha
1 Replies

5. Shell Programming and Scripting

Multiple commandline switches

I have a script that has commandline switches that work no problem. But i don't know how to enable it to have multiple switches at one time. So I'd want myscript -h -o or even myscript -ho but i'm having no luck incorporating this. I tried shifting but i'm not getting it. Thanks ----------... (0 Replies)
Discussion started by: DC Slick
0 Replies

6. Shell Programming and Scripting

Checking commandline

mymk target How to check is on commandline or no? Cannot to find out ;( Know that I need to use if.....new in shell sorry Please use code tags next time for your code and data. (2 Replies)
Discussion started by: Manueldo
2 Replies
Evolution(1)							GNOME Applications						      Evolution(1)

NAME
evolution - Run Ximian Evolution, a groupware suite for GNOME containing email, calendar, addressbook, and task-list tools. SYNOPSIS
evolution [OPTION] ... [URI] DESCRIPTION
This program is a graphical groupware suite; a single application with email, calendar, address book, and task-list tools to help you col- laborate with other people. This man page is not the central source of help for Evolution. You can find the user's guide by running the application and selecting items from the Help menu. Additional help and security information are available at the Ximian knowledge base online at http://sup- port.ximian.com. For help with additional command-line options, type evolution --help at the command line. EXAMPLES
evolution Runs the application. evolution "%s" To use Evolution as the handler for mailto: links in GNOME applications, open the GNOME Control Center and set the mailto: URL han- dler to this value. You can do this with non-GNOME browsers such as Mozilla, by setting the appropriate value in that application's preferences dialogs. evolution mailto:joe@somewhere.net Open the message composer, addressing the message to joe@somewhere.net. evolution evolution:/local/Inbox Start the application with the local Inbox folder open. evolution default:mail Start the application with the folder mail/calendar/contacts/tasks open. evolution --no-splash Start Evolution, but do not display the start-up splash screen. evolution --debug=FILENAME Start the application, and output debugging messages to FILENAME. Ximian, Inc. 1.2 Evolution(1)
All times are GMT -4. The time now is 03:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy