Question: I'm using ssh extensively and I want to be able to click on a button on the OS X menubar that opens the Terminal and does:

```
ssh -p myport myserver

```

Such that I only have to type in my password, and keeps the terminal open until I exit the terminal.

Answer: 
Open *AppleScript Editor* and paste the following script:

```
tell application "Terminal"
    activate
    do script "ssh -p myport myserver"
end tell

```

Save it in `~/Library/Scripts`. Then download [FastScripts](http://www.red-sweater.com/fastscripts/) and run it—it will show your script right in the menu bar:

![](https://i.stack.imgur.com/OnyLb.png)
[Platypus](https://sveinbjorn.org/platypus) could be exactly what you are looking for. (I am not affiliated with the developer in any way.)