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

Get four character event ID(charID) code for Create Video Timeline event

Explorer ,
Mar 28, 2018 Mar 28, 2018

I have created an event listener to detect Photoshop events. I used following 4-char IDs to detect their events,

  • Make - 'Mk  '
  • Select - 'slct'
  • Delete - 'Dlt '
  • Close - 'Cls '
  • Open - 'Opn '
  • Set - 'setd'

Also I want to know is there any 4-char IDs to detect event Create Video Timeline?

I have found stringID ( "makeTimeline" ) for above event.

But I need charID for above event.

I used Photoshop CC 2014, 2015 and 2017.

TOPICS
Actions and scripting
1.7K
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
Adobe
Enthusiast ,
Mar 29, 2018 Mar 29, 2018

You don't need charID you need typeID which is just number. You need to first ask for stringID and then you can use this number. Script event manager uses charIDs but it's converted into typeID on the end.

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
People's Champ ,
Mar 29, 2018 Mar 29, 2018

alert (stringIDToTypeID("makeTimeline") == charIDToTypeID(String.fromCharCode(0,0,3,14)))

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
Explorer ,
Mar 30, 2018 Mar 30, 2018
LATEST

Thank you for the response @r-bin.

I have tried following solution.

alert (stringIDToTypeID("makeTimeline") == charIDToTypeID(String.fromCharCode(0,0,3,14)))

I have a function to get charIDToTypeID function as mentioned in below question.

Get the direct implementation of stringIDToTypeID

values for charIDToTypeID(String.fromCharCode(0,0,3,14)) returns always 782.

But in my environment, Create Video TImeline event takes type ID as follows when I am trying to

values for stringIDToTypeID("makeTimeline"),

Photoshop CC 2014.0.0 - 931

Photoshop CC 2015.5.1 - 1086

Photoshop CC 2017.0.0 - 1082

When I am trying it another PC, it takes different value Create Video Timeline event for same versions as follows,

Photoshop CC 2014.0.0 - 942

Photoshop CC 2015.5.1 - 1075

Photoshop CC 2017.0.0 - 1082

stringIDToTypeID("makeTimeline") value seems to be dynamic.

It seems suggested solution is not working. Do you have any idea for another solution?

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