Thread View: adobe.scripting.indesign
9 messages
9 total messages
Started by Steven_F._Bryant
Fri, 09 Jan 2009 13:51
JS CS4 MISSING ENUM
Author: Steven_F._Bryant
Date: Fri, 09 Jan 2009 13:51
Date: Fri, 09 Jan 2009 13:51
1 lines
686 bytes
686 bytes
is there a way to override or add to enum. for example vbs has 4 additional choices for idNumbering. can they be added manually
Re: JS CS4 MISSING ENUM
Author: Dave_Saunders
Date: Fri, 09 Jan 2009 14:34
Date: Fri, 09 Jan 2009 14:34
5 lines
792 bytes
792 bytes
What are those four choices? As far as I know, the object model is functionally the same across the three scripting languages. Dave
Re: JS CS4 MISSING ENUM
Author: Dave_Saunders
Date: Fri, 09 Jan 2009 14:34
Date: Fri, 09 Jan 2009 14:34
3 lines
768 bytes
768 bytes
If you use one of those four choices in a VBS script and then interrogate the text with a JS script, what does it give you? Dave
Re: JS CS4 MISSING ENUM
Author: Steven_F._Bryant
Date: Fri, 09 Jan 2009 16:07
Date: Fri, 09 Jan 2009 16:07
12 lines
1172 bytes
1172 bytes
idNumberingStyle.idArabicAbjad= 1296130410 idNumberingStyle.idArabicAlifBaTah=1296130420 idNumberingStyle.idHebrewBibical=1296589410 idNumberingStyle.idHebrewNonStandard=1296589422 this is the call app.activeDocument.chapterNumberPreferences.chapterNumberFormat=1296130410; In vbs passing the number value works but in js passing the number value return "expecting NumberingStyle but received 1296130410" when set with vbs then callin in js for example writeln(app.activeDocument.chapterNumberPreferences.chapterNumberFormat); returns a string value but not a NumberingStyle enumerator
Re: JS CS4 MISSING ENUM
Author: Dave_Saunders
Date: Fri, 09 Jan 2009 16:38
Date: Fri, 09 Jan 2009 16:38
5 lines
870 bytes
870 bytes
Looks like a hole in the implementation of the unsupported RtoL features. There are others more knowledgeable than I on this issue, so perhaps one of them can cast more light. There is no documented, formal mechanism for a user to extend an enumeration. Dave
Re: JS CS4 MISSING ENUM
Author: Peter Kahrel
Date: Fri, 09 Jan 2009 22:37
Date: Fri, 09 Jan 2009 22:37
15 lines
904 bytes
904 bytes
Steven, In JS you would use the following format: ....pageNumberStyle = PageNumberStyle.arabicAbjad The five availsble styles are .arabic .arabicAbjad .arabicAlifBaTah .hebrewBiblical .hebrewNonStandard Peter
Re: JS CS4 MISSING ENUM
Author: Harbs
Date: Sat, 10 Jan 2009 18:55
Date: Sat, 10 Jan 2009 18:55
16 lines
1117 bytes
1117 bytes
Hi Steven, I've got to be out of my mind for helping out with a competing product! But, what the heck... It's not exactly a hole. It's very much scriptable. You can't add to the enums, but it does accept strings as well... That should be enough info to point you in the right direction. FWIW, I've found enums in CS4 to be rather buggy. I've found the need to switch to the numerical forms on a number of occasions. -- Harbs http://www.in-tools.com
Re: JS CS4 MISSING ENUM
Author: Harbs
Date: Sat, 10 Jan 2009 18:59
Date: Sat, 10 Jan 2009 18:59
16 lines
1033 bytes
1033 bytes
Peter Kahrel wrote: > In JS you would use the following format: > > .....pageNumberStyle = PageNumberStyle.arabicAbjad > Hi Peter, He's talking about the chapter numbering formats. That's a bit trickier. It's interesting that vbs has the enums though... Who wants to file the bug? -- Harbs http://www.in-tools.com
Re: JS CS4 MISSING ENUM
Author: Steven_F._Bryant
Date: Sat, 10 Jan 2009 23:18
Date: Sat, 10 Jan 2009 23:18
1 lines
727 bytes
727 bytes
Thanks for all the help esp Harbs. I am currently using string values, but I was trying to change it all to enums. Thanks again
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads