No such automation is possible within XY.
You need a monitor software, that executes applications on creation of files.
E.g.:
http://www.nodesoft.com/foldermonitor
Additionally AutoHotkey or different scripting language (even a batch file would be sufficient).
An Example:
Extract foldermonitor into a new directory.
Start it.
Right click on the tray icon, choose "Options..."
Tab "Events":
Only check "Created".
Tab "Visual notification"
Check "No visual notification"
Uncheck "Stop screen saver"
Tab "Sound notification"
Check "No sound"
Tab "Execute command"
Command: D:\notify.exe
Arguments: "{0}{1}"
Then add all the folders that you want to monitor.
Step two:
Get AutoHotkey_L and it's compiler
Code: Select all
#SingleInstance force
#NoTrayIcon
Sleep, 2000 ; Give an application time to save it's file
StringReplace, iVar, 1, ",, All
; Only proceed if it's really a file (not on directories)
FileGetAttrib, Attributes, %iVar%
IfNotInString, Attributes, D
{
path_only := RegExReplace(iVar, "\\[^\\]*$", "")
file_only := RegExReplace(iVar, ".*\\", "")
base_only := RegExReplace(file_only, "\.[^\.]*$", "")
IfInString, iVar, D:\Temp\Brushes
{
newName := "[brush]_" . file_only
FileMove, %iVar%, %path_only%\%newName%
}
}
Save this as D:\notify.ahk
Use the compiler to compile it to D:\notify.exe
Whenever foldermonitor is running and a new file is created in D:\Temp\Brushes
E.g.: "nice brush.png"
it will be automatically renamed to D:\Temp\Brushes\[brush]_nice brush.png
Ofc you have to change that directory name in the ahk script and the [<content>] as well...
and don't forget to recompile your script afterwards^^