Your best friend for file transfer.

Fetch application logoFetch

automating upload with applescripts (3 posts)

  • Started 8 years ago by Hendree
  • Latest reply 8 years ago from Hendree
  • Hendree Member

    I have a question about automating uploads. I'm in a different position than the users in the other posts that wanted to upload once a day with a droplet. I've got a log file on my computer that is updated on average every minute or so. The log file is a current song file for a radio station. I'd like to upload this file each time the file changes to let visitors to my webpage know what is playing. My radio station software (MegaSeg) says I can do this with a combination of folder-actions and an ftp software. Any ideas on how I can make this go with Fetch?

    Thanks,

    Hendree

    Posted 8 years ago #

  • Jim Matthews Administrator

    You could run an AppleScript that checks once a minute to see if a particular file has changed, and uploads it when it has. I've added such a script, called Upload File When Changed, to our collection of Fetch 5 example scripts. You can download them from http://fetchsoftworks.com/FetchExampleScripts.sitx

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 8 years ago #

  • Hendree Member

    Awesome, Jim, thanks. The only thing I'm worried about is the CPU usage expended. I try that out and monitor it.

    Gratefully,

    Hendree

    Posted 8 years ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.