Skip to main content
Participating Frequently
October 7, 2019
Question

Active document null

  • October 7, 2019
  • 2 replies
  • 429 views

Hi,

 

I had created Flex extension for InDesign CS6. Recently I installed the extension on Mac machine with OS 10.13.6. The extension panel opens fine but some of the functionality is not working as expected. On investigation I found that InDesign.app.activeDocument is null even though there is an active/open document in InDesign. Why InDesign.app.activeDocument is null?

 

Thanks,
Narayan

    This topic has been closed for replies.

    2 replies

    rob day
    Community Expert
    Community Expert
    October 7, 2019

    Have you tried app.documents[0], rather than app.activeDocument?

     

    BTW, I assume you know Flex/Flash/Actionscript extensions are no longer supported with InDesign CC? Does Flex/Actionscript really want InDesign.app.activeDocument? With JS it would be simply app.activeDocument

    Participating Frequently
    November 26, 2019

    Hi Rob,

     

    Thanks for the reply.

     

    The issue occurs on a particular Mac machine with OS 10.13.6. I am still investigating for the root cause. It is an old Flex extension for CS6.

     

    Thanks,

    Narayan

    brian_p_dts
    Community Expert
    Community Expert
    October 7, 2019

    I'm not familiar with Flex, but it's likely that the extension has some kind of Event Listener that is triggering before a document is opened. That would be my best guess.