Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac OSX Create Shortcut to /usr/local/bin/jmeter

Tags:

macos

How do I create a shortcut to a brew installed jmeter? The script is in /usr/local/bin/jmeter and it's a symlink to another shell script. When I launch it I cannot pin it to the bar at the bottom with an icon like I have Eclipse and such.

I'm familiar with Windows 7 and Linux administration, but don't know Macs and this is challenging. I can drag it to the right side of the bar but I only get an icon for a terminal and it launches the terminal every time I launch JMeter. How do I just get an icon that launches it?

I do not see it in finder.

like image 308
mikeb Avatar asked Sep 05 '25 03:09

mikeb


2 Answers

You need to make an application wrapper for it. Easiest is probably to use /Applications/Automator.app to create an Application workflow. Add the Run Shell Script action and configure the script. (Replace the default cat command with /usr/local/bin/jmeter.) Save it and put that in your Dock.

like image 155
Ken Thomases Avatar answered Sep 09 '25 18:09

Ken Thomases


Mac has command files. Create jmeter.command file on your desktop. Put jmeter in it. Double-click to run.

like image 39
Alex O. Avatar answered Sep 09 '25 20:09

Alex O.