Skip to main content
dulajun
Inspiring
March 17, 2013
Question

I want to define event handler for Batch Rename.

  • March 17, 2013
  • 2 replies
  • 1136 views

main();

function main () {

    var myMenu = MenuElement.find("BatchRename");

    myMenu.onSelect = function () {

        alert (myMenu.id);

    }

}

Could anyone tell me why this snippet doesn't work.

Thanks.

This topic has been closed for replies.

2 replies

dulajun
dulajunAuthor
Inspiring
March 17, 2013

What I want really is to trace the file system operations on the files and folders which are (copy, cut, rename, move and delete), and that to redeem the script-defined files' relationships.

This is required for a tool I have developed to manipulate snippets.

http://sourceforge.net/projects/livesnippets/

Inspiring
March 17, 2013

That is what it sounded like… but all of these actions can take place in the OS. Bridge will know nothing of this. It can only let you know if these actions take place in it's browser window while it's running…

dulajun
dulajunAuthor
Inspiring
March 17, 2013

And I suppose that the user will not commit any of these actions outside the Bridge. So as you said I want to

know if these actions take place in it's browser window while it's running…

Inspiring
March 17, 2013

You need to *register* any events you want script to handle with the app… Won't this in-built menu already have an onSelect() handler…?

dulajun
dulajunAuthor
Inspiring
March 17, 2013

How?

Inspiring
March 17, 2013

I don't think you can with what you want here… Have you looked at the available events in the scripting guide…? I don't know if Batch Rename is a loaded script but I would expect it to already have an onSelect handler and I don't think you would just be able to over ride that…