Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Placing a snippet problem

Engaged ,
Apr 11, 2018 Apr 11, 2018

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??

TOPICS
Scripting
562
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 13, 2018 Apr 13, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 17, 2018 Apr 17, 2018
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines