Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Need help with Multiple eventListeners

Advisor ,
Jun 03, 2016 Jun 03, 2016

I saw a script on here yesterday but cannot seem to find it.  it showed abunch of eventListeners at the bottom of the script.  For save as, Save, etc..  I know this is very vague and i'm sorry for that but i want to see how i can implement multiple event listeners in my script.

TOPICS
Scripting
965
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jun 03, 2016 Jun 03, 2016

I believe you are referring to all events for which you can add event listeners

If this is so, then find following is a kind of cheat sheet to refer to.

I have categorized based on the objects DOM. This list is not exhaustive.

ApplicationDocument
Link
PrintEvent
ToolBox

PageItem/TextFrame/

Rectangle/TextPath/

XmlStory/Story

afterActivate

afterClose

afterContextChanged

afterQuit

afterSelectionAttributeChanged

afterSelectionChanged

beforeDeactivate

beforeNew

beforeOpen

beforeQuit

afterActivate

afterExport

afterImport

af

...
Translate
Engaged ,
Jun 03, 2016 Jun 03, 2016

I believe you are referring to all events for which you can add event listeners

If this is so, then find following is a kind of cheat sheet to refer to.

I have categorized based on the objects DOM. This list is not exhaustive.

ApplicationDocument
Link
PrintEvent
ToolBox

PageItem/TextFrame/

Rectangle/TextPath/

XmlStory/Story

afterActivate

afterClose

afterContextChanged

afterQuit

afterSelectionAttributeChanged

afterSelectionChanged

beforeDeactivate

beforeNew

beforeOpen

beforeQuit

afterActivate

afterExport

afterImport

afterLinksChanged

afterNew

afterOpen

afterPrint

afterRevert

afterSave

afterSaveAs

afterSaveACopy

beforeClose

beforeDeactivate

beforeExport

beforeImport

beforePrint

beforeRevert

beforeSave

beforeSaveAs

beforeSaveACopy

failedExport

afterAttributeChanged

afterDelte

afterEmbed

afterMove

afterNew

afterUnembed

afterUpdate

beforeDelete

beforeEmbed

beforeMove

beforeUnembed

beforeUpdate

beforePrint

afterPrint

afterAttributeChanged

afterPlace

beforePlace

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 03, 2016 Jun 03, 2016

Thank you i was all over the net looking for those (Probably searching the wrong key words.) 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 08, 2017 Jun 08, 2017

So... it's not possible to create an event listener to run a script when a certain paraStyle is applied?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 08, 2017 Jun 08, 2017

Hi,

what would you like to do if this is the case?

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 09, 2017 Jun 09, 2017
LATEST

Hi, Uwe. Thanks for reply.

I want to know if there is a way to automatically run a script when certain paraStyle is manually applied.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines