Alicorn comments on Who Wants To Start An Important Startup? - Less Wrong

41 Post author: ShannonFriedman 16 August 2012 08:02PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (407)

You are viewing a single comment's thread. Show more comments above.

Comment author: ModusPonies 14 August 2012 06:12:15PM 4 points [-]

Probably. No promises, but I'll seriously consider any request.

Comment author: Alicorn 14 August 2012 06:19:28PM 1 point [-]

I use Cyberduck for FTP-ing. It's open source. I want it to have a global hotkey that will upload the file I'm working on, or have selected in the Finder, to the current directory so I don't have to drag every time.

Comment author: wmorgan 14 August 2012 09:09:08PM *  4 points [-]

I don't know anything about programming Macs, but here are some thoughts for anyone who wants to try this:

  1. DDHotkey can register global hotkeys.
  2. The current working file of a window is called the "represented file." You can get the path to it by calling representedFilename of the active NSWindow (I couldn't figure out how to get the active NSWindow). I didn't try to find out how to get the currently selected file in the Finder.
  3. Cyberduck is scriptable with AppleScript, I think. It has an "Upload" entry point. See here. It has a single required argument, the path of the file to upload. Wouldn't it be sweet if you could pass in the path from step #2, and everything just worked?

(Another option for step #3 would be to programmatically drag-drop the active file to the Cyberduck window, but I couldn't figure out how to do that)

Comment author: DavidLS 16 August 2012 04:17:30PM 3 points [-]

I'm not sure how comfortable you are working with Terminal, but this works:

curl -T MyFileToUpload.txt ftp://myusername:mypassword@ftp.myhost.com/directory/

(and can be repeated with two keystrokes: "Up, Enter")

Comment author: Alexei 14 August 2012 07:31:39PM *  2 points [-]

You'll be better off learning something like AutoHotkey, which will allow you to do that and a lot more to automate your tasks, without the need to modify every program you use.

Comment author: Alicorn 14 August 2012 07:55:41PM 0 points [-]

Is there anything like it for Mac? AutoHotkey says Windows.

Comment author: Alexei 15 August 2012 07:14:21AM 1 point [-]

Only what Google can find.

Comment author: DaFranker 14 August 2012 08:54:14PM 1 point [-]

alternativeto.net suggests IronAHK, which apparently works on Mono and has source available.

Comment author: ModusPonies 19 August 2012 02:30:03AM 1 point [-]

Figuring out how to do this is now on my list of cool projects to do when I have time. I'd estimate a one in three chance I'll actually finish this one.