Windows Shortcut equivalent?

BarkingGhost

macrumors regular
Original poster
Oct 18, 2011
220
1
Atlanta+35 miles
Is there an equivalent of a Windows Shortcut with which I can create and place on the dock?

For instance, I have the Mozilla Thunderbird icon on the Dock, but I would like to have a Dock object that is "thunderbird.exe -P", which would launch the Profile Manager.
 

jamietshaw

macrumors member
Sep 25, 2009
86
16
UK
The first result on Google for "thunderbird profile manager mac” tells you how to start it from the command line: http://kb.mozillazine.org/Profile_manager#Mac_OS_X

Making this command into a shortcut (=alias) for your Dock (or anywhere else) is fiddly, but possible. The best way I know is:

  1. Start Automator and create a new application.
  2. Add a "Do Shell Script" workflow.
  3. Add the command you need to run (probably this: /Applications/Firefox.app/Contents/MacOS/firefox-bin -profilemanager &)
  4. Save. When you run this new application you have created, it will start Thunderbird with the desired parameters.

It’s unusual for graphical Mac applications to work like this, which is why it’s not very easy to do. Normally, if there is an alternative way of starting an application it’s done by holding the Alt/Option key down when clicking on the icon - e.g. to change library in iTunes.

Your may be interested in further discussions at:
http://stackoverflow.com/questions/281372/executing-shell-scripts-from-the-os-x-dock
http://stackoverflow.com/questions/281372/executing-shell-scripts-from-the-os-x-dock
 

BarkingGhost

macrumors regular
Original poster
Oct 18, 2011
220
1
Atlanta+35 miles
Thanks, Jamie, I'll give that a shot tomorrow. I was aware of the command line option as my research and discover of the Profile Manager revealed it. I had tested it a couple of days ago, but now trying to make it simple enough for the wife to just click from the Dock.
 

chown33

Moderator
Staff member
Aug 9, 2009
8,780
5,161
vertical
Look under Utilities. Its name is Run Shell Script.

Or click the top-level Library item, then type the word shell into the Search box (the text-entry box with the magnifying glass). To then revert to the full list of actions, click the gray circled-X to remove what you typed in.
 
Last edited:

BarkingGhost

macrumors regular
Original poster
Oct 18, 2011
220
1
Atlanta+35 miles
Bingo! That did the trick. I used the Run Shell Script, copied the desired command line into it, saved, made an alias and placed it on the Dock and it works like a charm. Sweet!

Thanks, guys!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.