[Q] Illustrator seems forgeting what selected after 50 sec on Mac. How to avoid?
I'm not sure what's going on the detail, but it seems only on Mac with Illustrator CC 2017. Windows seems fine.
Currently my code is monitoring what object selected and significant performance issue on certain case.
I got workaround to work, but I'd like to know if there's better solution.
It is from CEP plugin JavaScript file and used CSInterface.evalScript() to call JSX.
JSX part is simple and only accessing followings:
documents.length
activeDocument.selection.length and typename
On Windows (i7 2.5GHz machine), it responds about 9 - 15 ms.
On Mac (i7 2.5GHz machine), it responds 20-40 ms. It's obviously slower than Windows.
But if I left for over 50 sec, it responds 2 - 30 second (not millisecond) on Mac.
Illustrator is foreground.
Second request become fast as usual.
My current workaround is ping above function every 10 second and avoid Illustrator forget the selection.
I tried ping with app.version instead of above selection code, so I think it's not CEP or app object part.
Is there any better solution?
Thank you,
Naoki