Skip to main content
pierrem32632919
Participant
November 24, 2022
Question

Indesign 18.0 idleTask not run

  • November 24, 2022
  • 1 reply
  • 1680 views

Hello, during the migration of a plugin from 17 to 18, I saw that the idleTask in my case I use CIdleTask did not run when the indesign desktop application is not the one used, for example I work on indesign then I switch to the terminal; in my case I use macos monterey on m1 and ventura on intel.

you can find the same problem on the sample provided in the CustomDataLink sdk in the CusDtLnkLinkResourceStateUpdaterIdleTask class by adding logs in the runtask

This topic has been closed for replies.

1 reply

pierrem32632919
Participant
November 24, 2022

Sorry for the bad english on the first post, here is a corrected version :

Regression on Indesign 18.0 : Idle tasks don't run anymore when app is not focused.

 

While migrating a c++ plugin we made from Indesign 17 to 18, it seems idle task (in my case a CIdletask instance) don't run anymore when Indesign isn't focused. Tested on MacOs Monterey (M1) and MacOs Ventura (Intel).

It also seems the same problem can be reproduced with the sample provided in the CustomDataLink SDK, in the CusDtLnkLinkResourceStateUpdaterIdleTask class, in which I added logs (in the runtask) to check if the function was executed

Community Expert
November 26, 2022

I thought this is how it's designed. Quoting an excerpt from the SDK documentation below

"An idle task is a function point that can called when the application is waiting to receive user events"

This gives me an impression that the application being active but not recieving any input from the user is the condition for the Idle task to run.

Did you check it with an older version and see how it behaves.

-Manan

-Manan
Robert at ID-Tasker
Legend
November 26, 2022

Is this a quote from the actual SDK? 

 

"An idle task is a function point that can called when the application is waiting to receive user events"

 

Wow...