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 the usage of the terms or the keyword this_folder itself.
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 the usage of the terms or the keyword this_folder itself.
Using Automator I could build a Folder Action workflow to display the path of a file moved to a folder using only JavaScript:
I hope that could help.
Folder Actions are defined in Standard Additions. The full syntax for this action is:
You JXA script should look something like this:
Parameters:
this_folder
is an alias to the receiving folder.added_items
is a list of aliases for the dropped items.