User Tools

Site Tools


sift:tutorials:using_directory_watchers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
sift:tutorials:using_directory_watchers [2025/02/06 18:56] sgrangersift:tutorials:using_directory_watchers [2025/02/06 19:11] (current) sgranger
Line 199: Line 199:
 Lets break down the command the **name** parameter is how we will refer to the watcher the **directory** parameter will be the one watched, in this case we want to watch the Data folder, and finally the **script** parameter is what we want to execute when the watcher is triggered in this case the V3D pipeline " <sub>Tip: if you want to quickly get the path to a file or folder click on it and press **Ctrl + Shift + C**</sub> \\ Lets break down the command the **name** parameter is how we will refer to the watcher the **directory** parameter will be the one watched, in this case we want to watch the Data folder, and finally the **script** parameter is what we want to execute when the watcher is triggered in this case the V3D pipeline " <sub>Tip: if you want to quickly get the path to a file or folder click on it and press **Ctrl + Shift + C**</sub> \\
  
-[pic] \\+{{watcher_v3d.png}} \\
  
 Now we will create the second watcher, this time for the Sift script \\ Now we will create the second watcher, this time for the Sift script \\
 **-CreateWatcher name "Sift_Watcher" directory "C:\Users\shane\OneDrive\Desktop\Testing\Watcher Demo\Watcher Demo\CMZs" script "C:\Users\shane\OneDrive\Desktop\Testing\Watcher Demo\Watcher Demo\Sift_Script.bat"** \\ **-CreateWatcher name "Sift_Watcher" directory "C:\Users\shane\OneDrive\Desktop\Testing\Watcher Demo\Watcher Demo\CMZs" script "C:\Users\shane\OneDrive\Desktop\Testing\Watcher Demo\Watcher Demo\Sift_Script.bat"** \\
  
-[pic] \\+{{watcher_sift.png}} \\
  
 now that both watchers have been created lets run **-ListWatchers** just to be sure that everything is correct, the output should look something like this: \\ now that both watchers have been created lets run **-ListWatchers** just to be sure that everything is correct, the output should look something like this: \\
  
-[pic] \\+{{sift_rename_watchers.png}} \\
  
 With our watchers made we must set Sift to run in the background (Watchers will only trigger when Sift is running in the background) enter **-LaunchBackgroundInstance** this will immediately launch an instance of Sift in the background, we can interact with it in the system tray icon. Before moving on be sure to exit the open Sift command line console, only one instance can be open at a time and the watcher script will need to open one when executing the BATCH file.\\ With our watchers made we must set Sift to run in the background (Watchers will only trigger when Sift is running in the background) enter **-LaunchBackgroundInstance** this will immediately launch an instance of Sift in the background, we can interact with it in the system tray icon. Before moving on be sure to exit the open Sift command line console, only one instance can be open at a time and the watcher script will need to open one when executing the BATCH file.\\
  
-[pic] \\+{{sift_launch_bg.png}} \\
  
 Here we can see what watchers we have made and even enable or disable them Here we can see what watchers we have made and even enable or disable them
  
 <sub>Tip: You can set Sift the launch to the system tray by default if you pass the command **-LaunchMinimized**</sub> \\ <sub>Tip: You can set Sift the launch to the system tray by default if you pass the command **-LaunchMinimized**</sub> \\
 +
 +{{sift_tray.png}}
  
 ===== Using The Watchers ===== ===== Using The Watchers =====
sift/tutorials/using_directory_watchers.1738868173.txt.gz · Last modified: 2025/02/06 18:56 by sgranger