Author Topic: Auto-upload when a file is saved???  (Read 2763 times)

GregX999

  • Newbie
  • *
  • Posts: 2
Auto-upload when a file is saved???
« on: June 20, 2007, 09:47:10 PM »
I work on various large websites with large numbers of files in complex folder hierarchies. Sometimes I'm working on 3 or 4 files at the same time that I constantly tweak and save, then need to check online - over and over again. It can be a PAIN to have to navigate through all the folders uploading each file individually, and syncing can take too long since there are so many files.

So... is there anyway to have files automatically upload every time they are saved? Either with a folder action or an AppleScript? I'm new to the Mac (just bought my first one last week - had Windoze ever since the Amiga fizzled).

Thanks for any help!
Greg

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Auto-upload when a file is saved???
« Reply #1 on: June 21, 2007, 07:03:05 AM »
The first thing that comes to mind is remote editing. You can open file(s) for editing via Yummy FTP and the preferred text editor of your choice - when you save, they will be automatically uploaded. I recommend using TextWrangler for this, since it's free and integrates well with Yummy FTP:

http://www.barebones.com/products/textwrangler/

So, to recap:

1. Select file(s) to edit in the Server listing of Yummy
2. Click the 'Edit' toolbar icon (it is the TextWrangler icon by default)
3. Click 'Save' as the option of when to upload the changed file(s)

GregX999

  • Newbie
  • *
  • Posts: 2
Re: Auto-upload when a file is saved???
« Reply #2 on: June 21, 2007, 11:15:04 AM »
Thanks for the quick reply, but that's not really do-able for me. I use TextMate to edit my code due to many of it's helpful programming features and its handy file-browser. So, I need something that either watches folders for files being created/saved/deleted.

Greg

JD

  • Administrator
  • FTP Guru
  • *****
  • Posts: 2157
Re: Auto-upload when a file is saved???
« Reply #3 on: June 21, 2007, 12:01:12 PM »
TextMate works wonderfully well with Yummy FTP as a remote editor too. Just select it as your default editor from the menu in the Server Options panel of the Preferences.

Another possible solution is an 'Upload Only' FTP Watcher. This will monitor a folder for changes and upload changed/new files, however it does only work at the folder level at which it is placed, so it will not detect changes within sub-folders. FTP Watchers will not upload changes immediately, but they do check for changes about once a minute. A description of the use and configuration of an FTP Watcher can be found in the Quick Start - select 'Quick Start' from the Help menu in Yummy FTP to see this.

Finally, a synchronization scheduled to run perhaps once every minute, would do the job of an FTP Watcher but would cover the entire hierarchy of the folder on your Mac.This won't instantaneously upload changed/new files, however. Again, a description of how to configure this is available in the Quick Start.