On May 3, 2011, at 5:24 PM, Brenden wrote:

> On May 3, 11:21 am, Rob McBroom <[email protected]> wrote:.
>> 
>> Does iTerm have a URL scheme for accessing these bookmarks, like 
>> iterm://bookmark_name?
> 
> Unfortunately not that I know of. It can be made to handle the URL
> scheme for ssh and telnet but I don't think it has a native one for
> it's bookmarks.  I know it does have an applescript dictionary which I
> think is what qslaucher is taking advantage of.

There’s an iTerm plug-in. Ideally, this could be updated to know about those 
bookmarks and what to do with them.

> So I tried out the Remote Hosts plugin and overall it's very nice,
> however it does have a few limitations that stop by workflow that I'm
> use to/like. One, it only supports Terminal and not iTerm/iTerm2, at
> least I couldn't find a way to put it in as an option.

It just sends URLs to the OS like ssh://login.foo/. If you can tell these to 
open in iTerm as you said, then it should work with iTerm.

> Two, the hosts file lets me create an alias to a host but doesn't let you 
> dictate a
> command to run upon connection.  For example I have a bookmark in
> iTerm that the command is 'ssh foo@bar -t screen -rRaAdD login.foo’.

Because it uses the URL scheme, it’s limited to what can be in there. I don’t 
know of a way to specify commands to run in the URL. User and host seem to be 
all you can customize.

This isn’t ideal, but I have some common commands assigned to F-keys and the 
one I use the most is to run a command as soon as I log in.

> I admit I did like Remote Hosts support for vnc and telnet though,
> wished it supported RDC and not just CoRD though.

Again, this is a URL thing. Microsoft’s Remote Desktop client doesn’t register 
itself as being able to handle `rdp://` URLs (or anything else). CoRD does. 
I’ve resorted to saving RDP files and adding them to the catalog, but then I 
only have like two Windows boxes to worry about. The RDP files are just XML 
though, so you could make a script that generates them based on the contents of 
`.hosts` if you needed hundreds.

-- 
Rob McBroom
<http://www.skurfer.com/>

Reply via email to