Skip navigation
mike.m
Currently Being Moderated

Script ID Name pairs

Nov 6, 2009 6:55 AM

Adobe requires that we register script ID name pairs.

 

I'm uncertain about what exactly they are wanting. Does this only apply to new scriptable objects added or does this also apply to new script events/elements added to existing object in the API.

 

Any clarification or directions to more explicit docs is appreciated.

 

Thanks Mike

 
Replies
  • Currently Being Moderated
    Nov 6, 2009 7:32 AM   in reply to mike.m

    Register all of them.

     

    Dirk

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 6, 2009 8:01 AM   in reply to mike.m

    The e_Whatever is just a constant name so you need not type the four character code within your sources.

    It makes sense to name it similar to the registered name, just omit the "e_" prefix, use spaces and lowercase (except for acronyms).

    I usually add a comment with the registered string.

    The scripting engine will format the string (as stored in your ScriptInfo resource) to the language's conventions.

     

    Try them out before you register, e.g. see ESTK object model viewer and AppleScript dictionary!

     

    e_MasterPageFlip = 'eMpf', // "master page flip"

     

    Btw, this sounds more like a noun, better use a verb phrase for methods.

     

    Javascript:

     

    myMP.masterPageFlip() // ouch?

    myMP.flipMasterPage() // better!

    AppleScript:
    tell page 7 to master page flip -- huh?
    tell page 7 to flip master page -- yeah!

    Dirk

     
    |
    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