Hot Folders

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
cmhjon
Posts: 175
Joined: Tue Aug 04, 2015 11:55 am

Hot Folders

Post by cmhjon » Tue Apr 27, 2021 3:46 pm

Hi all,

I was wondering if anyone might have an idea on how a LiveCode stack could be scripted to monitor a "hot folder". For anyone who might not know what a hot folder is, a hot folder is simply a folder on a computer that when a file is put into said folder, software that monitors said folder then does something with the file in said folder.

For my needs, files placed into the hot folder would accumulate until a certain time of day is reached (in this case, midnight) and then all the files within the hot folder are then copied to another folder on a different computer. Once complete, all the files in said folder are then deleted.

Could something like this be done?

Thank you,
Jon :-)

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Hot Folders

Post by Klaus » Tue Apr 27, 2021 4:23 pm

Hi Jon,
Could something like this be done?
sure! I would just "send" a handler ervery X minutes and check if that folder has changed.
If yes, take action, if not, "send" again in X minutes.

Get the picture?


Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9647
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Hot Folders

Post by dunbarx » Tue Apr 27, 2021 6:07 pm

What Klaus said.

What Klaus didn't say was "read about the files function in the dictionary"

Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”