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:
parent
51e217e38c
commit
f6eb064ce4
13
README.md
13
README.md
|
@ -7,3 +7,16 @@ The program is still in Alpha, though it's basically useable. I still have some
|
|||
|
||||
Requirements:
|
||||
+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)
|
Binary file not shown.
|
@ -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>
|
|
@ -0,0 +1,3 @@
|
|||
def process_updated_files( files ):
|
||||
for f in files:
|
||||
print f
|
Loading…
Reference in New Issue