Use Transmit to upload?

Sharing and discussing custom actions for LaunchBar
Post Reply
Forumposter
Posts: 18
Joined: Wed Jul 29, 2009 7:56 pm

Use Transmit to upload?

Post by Forumposter » Mon Aug 03, 2009 9:15 pm

I use Transmit, the ftp client, a lot.
I have a bookmark - let's call it "ftp1".
What I want to archieve is that I mark a file in the finder and instant send it to the ftp. I was able to do this with quicksilver. How to realize it in launchbar?

besologic
Posts: 3
Joined: Fri Sep 11, 2009 8:45 am

Re: Use Transmit to upload?

Post by besologic » Fri Sep 11, 2009 9:26 am

I put together a quick script using Panic's apple script examples. You will need to change the name of the favorite you want to connect to (right now it's set to Helpspot, it is case sensitive). If you need to navigate to a subdirectory, uncomment the line below "-- CHANGE: change remote path if desired".

Code: Select all

-- Send selected file to specified Transmit favorite
-- Adapted from Panic's Droplet Example.scpt http://www.panic.com/transmit/support.html
-- http://twitter.com/bensonlee, September 10, 2009

on open selected_file
   
   set the sf to POSIX path of selected_file
   
   open location "x-launchbar:hide"
   
   activate application "Transmit"
   
   tell application "Transmit"
      
      -- create new window to upload files with
      
      make new document at before front document
      
      tell document 1 -- send commands to the frontmost document window
         
         tell session 1 -- sends commands to the first session in the window
            
            -- CHANGE: connects to the favorite with the name specified
            
            if (connect to favorite with name "Helpspot") then
               
               -- CHANGE: change remote path if desired
               -- set their stuff to "Upload Destination"
               
               -- upload selected items
               
               if not (upload item sf) then
                  display dialog ("Upload Failed!")
               end if
               
            else
               display dialog ("Could not connect")
            end if
            
            disconnect
            
         end tell
         
      end tell
      
   end tell
   
end open


Forumposter
Posts: 18
Joined: Wed Jul 29, 2009 7:56 pm

Re: Use Transmit to upload?

Post by Forumposter » Mon Oct 19, 2009 8:00 pm

Works flawless. Thank you very much!

ScottNYC
Posts: 4
Joined: Sat Sep 12, 2009 1:51 am

Re: Use Transmit to upload?

Post by ScottNYC » Tue Oct 20, 2009 1:50 am

Any chance someone can briefly explain how to apply and use applescripts, Id really appreciate it, I've never had a chance to experiment and utilize them, Thanks :D

sjk
Wizard
Wizard
Posts: 315
Joined: Thu Sep 13, 2007 9:46 pm
Location: Eugene
Contact:

Re: Use Transmit to upload?

Post by sjk » Tue Oct 20, 2009 6:13 am

Have you looked at the Running AppleScripts section of the built-in Help?

Timmy
Posts: 1
Joined: Tue Oct 27, 2009 10:13 pm

Re: Use Transmit to upload?

Post by Timmy » Tue Oct 27, 2009 10:20 pm

In Quicksilver, you can type 'Transmit' into the first pane and then arrow in to your favourites, choose the one you want to connect to (using the arrow keys) and press the 'Enter' key which will launch Transmit and connect to your chosen favourite site. Not being a techie, I wonder if this is possible (I haven't found a way) in LaunchBar and if it requires an AppleScript, please could someone be kind enough to write one?

Many thanks in advance.

Tim.

shooflyshoo
Posts: 6
Joined: Thu Feb 10, 2011 11:13 pm

Re: Use Transmit (or any ftp method) to upload?

Post by shooflyshoo » Thu Jul 14, 2011 1:19 am

Hi,

I know this topic has been dead awhile but I've been racking my brain all day on how to use launchbar to not only upload the selected file to the folder on my ftp server, but also delete the local file upon successful transfer. I've been trying to get this to work with an automator service but I can't figure it out. I think automator doesn't like to play with non-apple sanctioned application actions. I can successfully make a service that will upload then delete the file if I right click the file and select the service in the contextual menu -- but alas this doesn't work when I try to pass whatever file is selected in launchbar using the "send to" tab keystroke. I'm a complete noob, so automator's visual drag and drop scheme is basically the closest I can get to "programing" this action.

Also, I like the idea of using automator because it can run in the background without opening transmit (using an automator action called "upload to ftp" (http://editkid.com/upload_to_ftp/). Any chance someone can help me figure out a way to not only upload the file, but also delete it -- all in the background? I'm not tied down to transmit, so any ftp client/script is fine with me.

I really appreciate any help that you launchbar ninjas can impart on me.

Thanks in advance,
Jake

bartekb81
Posts: 4
Joined: Wed Aug 03, 2011 10:44 pm

Re: Use Transmit to upload?

Post by bartekb81 » Wed Aug 03, 2011 10:45 pm

If you're running Transmit 4, please consider saving your favorite as a droplet on your hard drive. You can then pick some files using Launchbar, hit tab, search for your Transmit Droplet and hit Return - Transmit will start (if not running) and selected files will be copied to the favorite's droplet.

xander771
Posts: 1
Joined: Wed Sep 14, 2011 12:55 pm

Re: Use Transmit to upload?

Post by xander771 » Wed Sep 14, 2011 12:57 pm

habib0862 wrote:I have a bookmark - let's call it "ftp1".
What I want to archieve is that I mark a file in the finder and instant send it to the ftp. I was able to do this with quicksilver. How to realize it in launchbar?

nevermind this post. it's a duplication of the very first post in the topic


Read about gsm booster www.art-marron.com/wiki/wakka.php?wiki=gsmrepeaterreview
How to Choose the Right Mobile Phone Signal Booster

Post Reply