I am looking for a direct translation of AppleScript\'s
on adding folder items to this_folder
but I can\'t seem to find it anywhere, neither t
Using Automator I could build a Folder Action workflow to display the path of a file moved to a folder using only JavaScript:
function run(input, parameters) {
var app = Application.currentApplication();
app.includeStandardAdditions = true;
var text = "FileName = " + input[0];
var options = { };
app.displayAlert(text, options);
return input;
}
I hope that could help.