Skip navigation
ritesh_gcet
Currently Being Moderated

how to get the host application's close event in our extension

Dec 27, 2011 8:35 PM

Hi,

i m using the Photoshop as host application, and creative suite SDK for developing the my extension. My question is, how could I get the close event oh host application (Photoshop) in my extension???

any suggestion is really helpful for me

 
Replies
  • Currently Being Moderated
    Dec 27, 2011 10:37 PM   in reply to ritesh_gcet

    Suggestion :- try reading docs of Ps and Flex ...not sure but u may find it there....!!!

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 4, 2012 1:50 AM   in reply to ritesh_gcet

    I'm doing something similar for InDesign, I haven't tested it on Photoshop, but it should look something like :

     

    import com.adobe.cshostadapter.*;

    ...

    PSEventAdapter.addEventListener(PSEvent.QUIT, applicationClosingHandeler);

     

     

    and then define the applicationClosingHandler function to preform the action you want.

    See the events references here : Photoshop event codes

     

    And documentation about Using the host adapter libraries

     

    Hope it helps.Cheers.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points