Skip to main content
Participant
April 11, 2014
Question

Event handler if new File added in current folder

  • April 11, 2014
  • 0 replies
  • 380 views

Hi folks,

I'm just trying to write a little jsx script for Bridge CS6.

How can I implement an event handler that will react if the user adds a new thumbnail (new file) to the current folder in bridge.

I've tested it with this code, but it doesn't work:

app.document.thumbnail.watch ("children", function(id, oldVal, newVal) {

     $.writeln (oldVal + " to " + newVal);

     // some code here

});

Thanks. Greetings

This topic has been closed for replies.