Yummy Software
Welcome, Guest. Please login or register.
November 09, 2006, 01:33:11 PM
749 Posts in 150 Topics by 164 Members
Latest Member: garyh357
Home Help Search Login Register
Yummy Software  |  Yummy FTP  |  Yummy FTP Talk  |  bbedit autoroute script? « previous next »
Pages: [1] Print
Author Topic: bbedit autoroute script?  (Read 419 times)
suzerain
Newbie
*
Posts: 5


View Profile Email
bbedit autoroute script?
« on: April 05, 2006, 03:42:13 AM »

Hi there.  It's mentioned in the product features that a script could be written to reside in BBEdit's scripts menu to send the currently edited file to Yummy FTP and have it upload via the autoroute feature.

I just wanted to check if anyone else has already written this script...what an amazing time saver this feature would be for me, since I am editing and uploading files all day long, on various web servers...

Cheers!
Logged
JD
Administrator
Sr. Member
*****
Posts: 353


View Profile Email
Re: bbedit autoroute script?
« Reply #1 on: April 05, 2006, 05:58:37 AM »

Sure, here it is:

tell application "BBEdit"
   set thefile to file of front document
end tell

tell application "Yummy FTP"
   open thefile
end tell

Very simple... but it works!

Of course, this assumes that you've already set up AutoRoute in the Bookmarked servers you're using.
Logged
JD
Administrator
Sr. Member
*****
Posts: 353


View Profile Email
Re: bbedit autoroute script?
« Reply #2 on: April 05, 2006, 01:17:31 PM »

The person who I originally wrote the AppleScript for emailed me back with the original script, which reminded me that I didn't tell BBEdit to save the document first... Thanks, Adam!

tell application "BBEdit"
   save front document
   set thefile to file of front document
end tell

tell application "Yummy FTP"
   open thefile
end tell
Logged
suzerain
Newbie
*
Posts: 5


View Profile Email
Re: bbedit autoroute script?
« Reply #3 on: April 06, 2006, 05:35:50 AM »

Thanks a lot.  You might as well bundle some AppleScripts like this with the download; some people sould find it useful.  I'm a coder, but not an AppleScripter, so though I'd have figured this out, I just thought someone else would have already done it.

Anyway, I have been a Web developer for 11 years now...I use this stuff on a daily basis.  I am still using the demo, but I didn't think anything would ever make me switch from Transmit.  I'm still evaluating it, but I think this just might do it.  I noticed Transmit sucking more CPU than I thought it needed to on occasion, and this AutoRoute feature is something I thought about years ago, but never saw anyone build until now.

Good work...I dare say this software might just kick ass.
Logged
JD
Administrator
Sr. Member
*****
Posts: 353


View Profile Email
Re: bbedit autoroute script?
« Reply #4 on: April 06, 2006, 07:54:43 AM »

Thanks, suzerain Grin

Good suggestion - I'll include this example script, plus some additional useful odds and ends, in the forthcoming major (free) update that I'm working on right now.
Logged
Pages: [1] Print 
« previous next »
Jump to: