Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

248
Visualizações
Is it possible to detect the change of page in InDesign using CEP/ExtendScript/JS?

I'm currently creating a plugin on InDesign and I would like to know if it's possible to detect if the user changes page ?

I searched in the web and documentation, I found a few events but nothing that interests me.

I thought about storing the user's current page, detecting if there is a click event in the application in general (because there are several ways to switch pages) and retrieving the current page to do something like :

If (previousCurrentPage == newCurrentPage) { 
    alert('The user changed page !');
}

But I don't think it's possible to handle all page switching techniques.

So I would absolutely need to detect a user's page change.

Thanks in advance !

UPDATE

What I mean by page change is page change in the document on InDesign.

Here, the user is therefore on the 1st page of the document :

enter image description here

Here the user is on the 3rd page of the document:

enter image description here

It's this change of page that I would like to be able to recover via my plugin.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

You can look at

app.activeWindow.activePage

in Extendscript

about 4 years ago · Juan Pablo Isaza Relatório

0

SOLUTION

To get the index of the page, I make this line of code in ExtendScript :

app.activeWindow.activePage.documentOffset;

And to detect the page change, I have a setInterval() that is called every 700ms and calls the above code snippet.

If the previous page is different from the current page, I enter my condition and set my current page as the previous one.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda