Event Listner
Hi,
My requirement is not to import .docx files, if one user import .docx then the script need to alert for confirmation to proceed further.
My idea is using event listener and place the script in startup scripts folder. Below is the tried code:
#targetengine "session"
main();
function main(){
var myEventListener = app.addEventListener("beforePlace", myPlaceFile, false);
}
function myPlaceFile(myEvent){
var myconfirm=confirm("You are placing docx file? Shall continue?")
if(myconfirm)
{
// here need to place the files
}
else{
//need to exit
}
}
Regards,
Karthi
