FileWatcher w/ sample script & sample settings

This version seems to be buggy, the code I have on the repo probably
isn't the newest code I have; I have to go looking through my backups to
verify which is the most up-to-date version.

I've included a sample script and settings file.
This commit is contained in:
Brian 2013-12-20 20:16:48 -07:00
parent 51e217e38c
commit f6eb064ce4
6 changed files with 42 additions and 1 deletions

View File

@ -6,4 +6,17 @@ FileWatcher is currently a Windows only C# and IronPython driven program for run
The program is still in Alpha, though it's basically useable. I still have some bugs to work out, and A LOT of features to work out. I also plan on having some premade scripts to make using it as easy as possible. I have never written a plugin system before (well, the current implementation isn't one, but I'd like to try), so bear with me, and maybe send me some feedback on how I can improve the program. The program is still in Alpha, though it's basically useable. I still have some bugs to work out, and A LOT of features to work out. I also plan on having some premade scripts to make using it as easy as possible. I have never written a plugin system before (well, the current implementation isn't one, but I'd like to try), so bear with me, and maybe send me some feedback on how I can improve the program.
Requirements: Requirements:
+IronPython 2.7.3 +IronPython 2.7.3
Notes:
+FileWatcher runs in the background, it's a taskbar application. So when you close the windows, the program is still running. To exit you have to open up the menu File>Exit, or right click on the icon in the taskbar and hit Exit.
+Play/Stop buttons do not yet do anything.
+There are currently no hot keys, only keyboard shortcuts when the program is open. If you have a request for specific types of hotkeys, let me know.
+There are some issues with running at startup that may not have been resolved in this version. I need to fix this.
Features:
+Script delay specifyable in units ms, s, m, and h. For instance, you can delay the script by "1s 500ms" or "1h 5m 25ms". This timer can be reset when a file is updated, or continue to count down when the first file was updated.
+Script file is monitored for changes and can be reloaded at the press of a button.
+Script Shortcut button for opening your favorite text editor and quickly updating the script.
+If there's a problem with the script you'll be told what the basic issue is and where it is in the log window, or by hovering over the warning icon in the File Group where the script was loaded.
+Create File Groups to monitor multiple directories, each group uses it's own script. (Currently you can't enable/disable groups, they're automatically active as long as everything is setup correctly)

View File

BIN
bin/FileWatcher.exe Normal file

Binary file not shown.

25
bin/settings.xml Normal file
View File

@ -0,0 +1,25 @@
<?xml version="1.0"?>
<root>
<groups>
<group name="Testing 123">
<directories>
<directory path="C:\" />
</directories>
<extensions value="*.txt" />
<script path="..\scripts\sample.py" />
<delay value="5s" />
<relativeScriptPath />
</group>
</groups>
<preferences>
<editor>
<defaults>
<default name="System Default" />
<default name="Sublime Text 2" />
<default name="Notepad++" />
<default name="NotePad" />
</defaults>
<programs />
</editor>
</preferences>
</root>

View File

3
scripts/sample.py Normal file
View File

@ -0,0 +1,3 @@
def process_updated_files( files ):
for f in files:
print f