Copy link to clipboard
Copied
var myCheck = app.activeDocument.pages.item(0).place(File(snippet));
This works just fine from the toolkit but when I am running this from a third party software it doesn't work unless a user presses the cursor key on the page and then it places but I need this to be automatic. I was wondering if there was a way you could force a key press.
Something like:
app.menuActions.item("$ID/Selection Tool").invoke();
then app.select("a point on the page")
Ideas??
Copy link to clipboard
Copied
Gonterman1201 wrote
… but when I am running this from a third party software it doesn't work unless a user presses the cursor key on the page …
Hi Gonterman1201 ,
can you be more specific what is meant by that?
What "third party software"?
Can you discuss the issue with the developers?
Regards,
Uwe
Copy link to clipboard
Copied
It is ekso pilot. I solved the problem although I can't for sure say why the problem occurs. If all the actions take place under one function than it places fine. When I ran it as a separate function it was as if the software lost track of where it was and then did not place the snippet. I can't say that for sure. But having a function and running it twice once for the first template and again for the second template worked. Thanks for your reply.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now