Isit possible to run a script (e.g. for find some text, and replace with the other text), but no need to open the documents?
Coz I wrote a backup script, and when I opend the file(s), run the backup script, it backup the file(s) in the path that I want, and the backup file(s) will auto run the other script (but no need to open the backup file(s))
If possible, how to do that?
app.open ("path", false).
Here the second parameter false makes the document opened but not displayed in a window.
Important question is what event is a trigger for your backup script?
Assuming "afterOpen" - cool, cause it is triggered twice
so Chinna's way could work if you filter your event.currentTarget to "Window" only.