I am creating a flex panel (myextension) which displays the list of system fonts. I am using the code -"Photoshop.app.fonts" to retrieve all the installed system fonts.
Everything works fine except in one scenario, which is as follows.
- Open Photoshop.
- Click on File>New. Do not close the "New" dailog.
- Open the extension from Window>Extensions>myextension.
In this case the extension opens but the API "Photoshop.app.fonts" returns null and therefore my panel displays nothing.
Can anyone help me understand why the API returns nothing in this case and How can I overcome this scenario??