[CS3 JS] Ship - sub / subsub topic (subject of parent setting)

Hi all

I try to have my script to add an index, that consists of nested themes:

Parent

Child

Child under

I can read in the object model, it is a parameter 'withProperties', but I can't make it work...

var myDocument = approx. activeDocument;

for (var j = 0; j < myWord.length; j ++) {}

if ( j%3 == 0 ) {

var myTopicL1 = myDocument.indexes [0].topics.add (myWord [j]);

var myTopicL2 = myDocument.indexes [0].topics.add (myWord [j + 1] .charAt (0));

var myTopicL3 = myDocument.indexes [0].topics.add (myWord [j + 1]);

}

}

--

molsted

Simply add a topic to a subsection:

var myTopicL1 = myDocument.indexes [0].topics.add (myWord [j]);

var myTopicL2 = myTopicL1.topics.add(myWord[j+1]);

var myTopicL3 = myTopicL2.topics.add(myWord[j+2]);

Peter

Tags: InDesign

Similar Questions

  • In beta version of Firefox 4.01, I can't access subject: config to set the Flash meter, how to do it?

    Topic: config does not start, instead, it searches in the web.

    URL of affected sites

    Subject: config

    Hello Stephen,
    Make sure you enter Subject: config with no capitalization.

    Looks like you are running an add-on called Ant bar tools (it's in your above user agent).

    If you close Firefox, and then start Firefox in Mode without failure, in the problem? For instructions on the safe boot mode, see problems to troubleshoot Firefox in Safe Mode.

  • new subject tab: Home Search does not work

    I installed 18.0 today. I set it up to open the FF search page (topic: House) when I open a new tab. This search page work anymore; I can enter search terms, but neither the search button or enter does nothing. He's right there.

    I tried the procedure described here: https://support.mozilla.org/en-US/questions/934580?esab=a & as = aaq
    It did not help. I also tried disabled addons. No go.

    Ok. Found the problem. This is the Tab Mix Plus.

    Options > tabs > Tab Mix Plus Options > tabs > address: has been reset during the upgrade to ' newtab: home ' while the browser.newtab.url was "subject: House. Set them both to about: home and now it works fine.

    (Note: I don't know why disable addons don't work... it should have disabled Tab Mix Plus and eliminated the conflict.)

    EDIT. Yes, I restarted the browser. And I had tried two other these steps before I asked for help... See the link in my original question.

    Thanks for the help, cor - el.

  • Info on "subject:-' places?

    Is there anywhere I can see brief descriptions and instructions for * everything * "subject:-' addresses I could find useful? I use Firefox for many years and since on Win 3.1 days (and BACK to the years before that), but about: blank and about: config were about the limit of my experience in this particular field.

    Another Member on the forums of Avast directed me topic: permissions to properly set up the new click-to-play feature on a site by base and I'm sure there must be many others I would find useful for various purposes. Thank you.

    If you go to about: about, it will give you a list of almost all on the page in Firefox.

  • change the subject of an email in the Inbox

    can I change the subject of an email in the Inbox

    Message class

    Sub setSubject (String subject)

  • Deleted topics that... won't erase

    RoboHelp 8

    I work to reduce the number of topics we have in our 3000 + by taking a large number of very small subjects and adding the text of their share in a great subject with bookmarks. However, as I was working on this yesterday, RoboHelp broke on me and when I relauched it, everything that I worked an a was drizzled in pretty bad.

    Here is my method for this compilation:

    1 create a new topic.

    2 cut and paste the individual text of each of the small subjects in the new great topic.

    3. create a bookmark for each of the elements in the large new topic.

    4 remove the files small topic.

    5. set all links broken for new bookmarks in the new subject large file.

    I had about enough step 4 when RoboHelp stopped on me without warning. Now, nearly half small topics deleted reappeared and the other half are removed, but are appearing in the list of topics with a red X through them and I can't seem to go in.

    I tried to restore before the crash, but that has not helped at all. I also deleted the project locally and reloaded in RoboHelp and once again, no luck.

    I tried to delete these topics of RoboSource Control, remove them from my C drive and doing a Get Latest Version everything and generate a main page layout after each step to see if these subjects really would be delete, but alas, they have simply not disappear in my project manager. When I try to delete them, I get the popup asking about removing references to other files, but after choosing my answer, nothing happens, and the subject does not disappear.

    I did the same 5 steps in a different project and when RoboHelp does not plant, I don't have any problems.

    Any guidance you have would be appreciated!

    I had this happen also. The way I solved it is to edit the file .fpj with a text tool like Notepad and hand delete topics. The fpj file contains a list of all the topics that are expected in the folder and when RoboHelp plant it doesn't have a chance to do this clean up. The file is named .fpj (folder_name) If you have topics in a folder. If the topics are in the main directory, the file is named root.fpj. I hope this helps.

  • Site built in CS3, not able to export, but must import into PCOC

    My site is a mostly html files folder in documents > local sites. I used CS3 which stopped working and I uninstalled and tried to reinstall but it still does not work. I uninstalled again and installed CBWMS. I would like to import the site. All the information that I found on how to import a site on CBWMS said you must export it as a certain type of file/folder CS3 first, is possible to import the folder I have?

    I'm working on a Mac.

    Any help would be much appreciated, please you would use layman.

    Thank you.

    The export function is to back up your site definition settings only.  If you don't have CS3 .ste files, no worries.  You can manually set the sites in DW CC.

    Site > new Site (see screenshot).

    Nancy O.

  • CSH: Several elements of the application can point link to a single help topic?

    Is it possible for several items in a call from the user interface the same online using CSH help topic? How to set up the card ID for this?

    Thank you very much.

    Or alternatively, you can assign several identifiers to a single topic.

  • CS3: Is it possible to define the size of font in px?

    I use CS3 extended and I would like the option to set my size of font in pixels instead of points. Is this possible to do? If Yes, could you please tell me or give me an explanation of how to do it? Thank you!

    Go to Preferences (Ctrk more K keys), click units & leaders and in the units box change the preference of Type on pixels.

    Paulo

  • [AS] [CS3] script find/repalace with style groups

    Hello world

    I've been struggling with this problem for a while and hope someone can enlighten us.

    I'm trying to use applescript to run a series of queries to search and replace.

    For example:

    Tell application "Adobe InDesign CS3"
    paragraph style applied to find the value of "Text" text preferences
    font style to find value text preferences 'italic book '.
    style character applied to change the value text preferences 'italic book '.
    tell document 1
    change the text
    tell the end
    tell the end

    This works great except if the document contains styles within groups of styles, in which case, I get an error saying

    "Adobe InDesign CS3 has been an error: invalid value for the set of"applied paragraph style"property."

    String, style section or anything, but received the "text". »

    If you do the find/replace manually, the paragraph style text (hand) indicating that the text is inside the hand of the style group.

    How can I specify it in the script?

    Thank you!

    InDesign is forgiving if you specify your style just in name, but in the case of groups of styles, be more specific.

    Tell application "Adobe InDesign CS4"

    -paragraph style applied to find the value of "Text" text preferences

    the value applied paragraph style to find text preferences for the paragraph style "Text" of the paragraph style group 'Hand' of the active document

    end say

    Dirk
  • joining several tables to generate data

    with itemlist as

    (select 1 cid, listname 'test', 'r' flg Union double all the)

    Select 2 cid, listname 'test2', ' not flg double

    ),

    category 1)

    Select 1 cid, 122 k' sub '123' catcode, of any double Union

    Select 1 cid, '234i' catcode, sub '124' all Union double

    Select 1 cid, 238 k' void '124' catcode, double

    )

    void)

    Select 1 cid, sub '123' of any union double

    Select 1 cid, sub ' 124' double

    )

    I want to write a static query that gathers all the tables and produces the following output assuming that

    CID is you pass as a parameter

    CID listname flg topic catcode

    1 123 122 k r test

    1 test of r 234i 124

    1 124 238 k r test

    Suppose the data as changes to follow and even cid 1 is to pass as a parameter:

    with itemlist as

    (select 1 cid, listname 'test', 'r' flg Union double all the)

    Select 2 cid, listname 'test2', ' not flg double

    ),

    category 1)

    Select 1 cid, 122 k' sub '123' catcode, of any double Union

    Select 1 cid, '234i' catcode, sub '124' all Union double

    Select 1 cid, 238 k' void '124' catcode, double

    )

    void)

    Select 2 cid, sub '123' of any union double

    Select 2 cid, sub '124' double

    )

    then the output should be

    CID listname flg topic catcode

    1 r test 123

    1 test of r 124

    1 test of r 124

    for a final example, suppose the data now as to user 1 as cid

    with itemlist as

    (select 1 cid, listname 'test', 'r' flg Union double all the)

    Select 2 cid, listname 'test2', ' not flg double

    ),

    category 1)

    Select 2 cid, 122 k' sub '123' catcode, of any double Union

    Select 2 cid, catcode '234i', '124' void in any union double

    Select 2 cid, 238 k' void '124' catcode, double

    )

    void)

    Select 1 cid, sub '123' of any union double

    Select 2 cid, sub '124' double

    )

    output must be

    CID listname flg topic catcode

    1       test            r                 123

    Basically, the user will pass a cid, in this case 1. I'll read the itemlist where cid = 1 and I want to join all the other tables

    to itemlist in such a way that I can generate extra lines.  If no entry is found for cid 1, for example, in category 1 or auxiliary table

    then the beloging column of this table must be null in the result

    can someone help me write a query to produce the output above

    Hello

    elmasduro wrote:

    ...

    Here is an explanation of the output.  a user will have a front screen where it can enter itemlist info.
    then in a submenu may enter a category or sub or both or none of them. the user can select multiple categories or sub
    When the user presses the button Save, an entry will be made in the itemlist table, for example the cid = 1.
    If he choose a category but without Subs, then will be entered into the table at say cid = 1


    but no entries will be made for sub because he chose not to all values.  If he chooses void instead of category values
    then sub taable will fill and category is not. If he chooses the category and under, then both will be filled.

    what I want to do is to join the itemlist with table category and sub table and get the data to the Scriptures, this intervention of the user.
    These entries not found will be the null value column in the result.
    for example, the cid = 1 itemlist, if user enter category but not void, itemlist will be the join with the table category and sub
    but since sub has no entry for the cid = 1, the column object will be empty in the output, but catcode will fill

    I'm so confused.

    It is a query (that is, just a SELECT statement, which shows the data already present in the tables), or is this a DML statement, that will add data to the tables?  If it's just a query, then do not say things like "entries will be taken" or "filled with tables.

    Assuming you want a request maybe you want something like this:

    WITH c_and_s AS

    (

    SELECT NVL (c.cid, s.cid) AS cid

    NVL (c.sub, s.sub) AS topic

    , NVL2 (s.cid, c.catcode, NULL) AS catcode

    CATEGORY 1 c

    FULL OUTER JOIN void s ON c.cid = s.cid

    AND c.sub = s.sub

    )

    SELECT i.cid, i.listname, i.flg

    cs.subject, cs.catcode

    Itemlist I have

    LEFT OUTER JOIN c_and_s ON cs.cid = i.cid cs

    WHERE the i.cid (1) - you can do the cids 2 or several at the same time, if you want to

    ORDER BY i.cid, cs.subject, cs.catcode

    ;

    This example gets the output you asked data sample you posted.

  • Console SOA requires an optional element value

    I sent a BPEL process that XSD is attached at the bottom. Please note the definition of element CC. Basically, I'm saying that the CC element can be empty. However, when I go in the SOA Console and try to test the process with the following XML, he tell me that CC is a required field. What Miss me?


    < envelope soap: ' xmlns:soap = ' http://schemas.xmlsoap.org/SOAP/envelope/ ">

    < soap: Body >

    " < = xmlns:ns1 ns1:ApplSpecificEmailNotificationProcessRequest ' http://xmlns.Oracle.com/ApplSpecificEmailNotification "> "

    < ns1:AppName >

    < span style = "color: rgb (0, 0, 0);' > APP </span >< / ns1:AppName >"

    < ns1: to >

    Emp1< / ns1: to >

    < ns1:CC > < / ns1:CC >

    < ns1:BCC >

    < span style = "color: rgb (0, 0, 0);' > EMP2 </span >< / ns1:BCC >"

    < ns1:Subject >

    < span style = "color: rgb (0, 0, 0);' > test Sub </span >< / ns1:Subject >"

    < ns1:Body >

    < span style = "color: rgb (87, 87, 87);" > < span style = "color: rgb (0, 0, 0);' > test of body </span > < / span >< / ns1:Body >" "

    < / ns1:ApplSpecificEmailNotificationProcessRequest >

    < / soap: Body >

    < / envelope soap: >


    Please note that I can't use nillable attribute in the definition of the element as it forces me to specify the xsi: Nil = 'true '.

    attribute for the incoming data and the data is coming from outside consumers over which I have no control.


    --


    XSD for the BPEL process.




    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < xs: Schema attributeFormDefault ="unqualified"elementFormDefault ="qualified"targetNamespace =" http://xmlns.Oracle.com/ApplSpecificEmailNotification "" xmlns: XS = " http://www.w3.org/2001/XMLSchema " xmlns:tns =" http://xmlns.Oracle.com/ApplSpecificEmailNotification " > "

    < xs:simpleType name = "empty string" >

    < xs:restriction base = "XS: String" >

    < xs:enumeration value = "" / >

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "channel-or-empty" >

    < values basic memberTypes = "XS: String tns:empty - string" / >

    < / xs:simpleType >

    < xs: element name = "ApplSpecificEmailNotificationProcessRequest" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "AppName" type = "xs: String" / >

    < xs: element name = "En" type = "xs: String" / >

    < xs: element name = "CC" type = "tns:string - or - void" / >

    < xs: element name = "BCC" type = "xs: String" / >

    < xs: element name = "Topic" type = "xs: String" / >

    < xs: element name = "Body" type = "xs: String" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "ApplSpecificEmailNotificationProcessResponse" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "result" type = "xs: String" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < / xs: Schema >

    Hello

    Why you do not set 'minOccurs' zero? If you do, you can change the XML format in the EM Console and remove the item to test the Web Service.

    Let me know if this can help you.

    Kind regards

    Jorge

  • Need to pair iPhone to computer for Apple pay?

    I'm happy to use ApplePay through Safari with Sierra and iOS 10.  However, I don't know how this will work without pairing my phone to my computer first, assuming that a bluetooth connection is necessary.  I cannot not and have never been able to associate the two.  Thus, any clarification would be welcome.

    Hi abdellah,.

    I am pleased to see that you are very happy to be able to use ApplePay in macOS Sierra. I can understand wanting to make sure that everything is configured correctly. I'll be happy to help you with this.

    You need not match between the iPhone and Mac. You must, however, make sure that Bluetooth is enabled on both devices and signed in iCloud. Below you will find articles that have additional information on this subject.

    Set up Apple pay on your iPhone, iPad, Apple Watch or Mac

    With the help of Apple pay in stores and in the applications and Web sites

    Pay on websites in Safari

    With your iPhone, iPad and Mac, you can use Apple pay pay Web sites in Safari.

    With your iPhone or iPad

    1. Tap buy it with Apple pay or button Apple.
    2. Check your billing, shipping and contact information for you ensure that they are correct. If you wish to pay with a different card, press on > next to your card.
    3. If you wish, enter your billing, shipping and contact information. Apple pay will store this information so you will not need to enter it again.
    4. When you're ready, make your purchase and place your finger on a contact ID. After your payment successfully sent information, you will see Done and a check mark on the screen.

    With your Mac

    1. Make sure that you are connected to the same account iCloud on your iPhone, iPad, Mac or Apple Watch. Additionally, make sure that Bluetooth is enabled on your Mac.
    2. Tap buy it with Apple pay or button Apple.
    3. Check your billing, shipping and contact information for you ensure that they are correct. To pay with a different card instead of your card by default, click on next to your default map and select the map you want to use. You can choose to credit and cards of any iPhone or Apple Watch, which is close to flow and signed on the same account iCloud.
    4. If you wish, enter your billing, shipping and contact information. Apple pay will store this information on your iPhone, then you will not need to enter it again.
    5. When you're ready, make your purchase. On your iPhone, place your finger on the ID key or double click on the side button on your Apple Watch. After your payment successfully sent information, you will see Done and a check mark on the screen.

    Thanks for stopping by Apple Support communities. Have a great weekend.

  • Where can I find the new tab controls, not wheel

    I can't change the new tab to display the tiles.

    You can watch the pref browser.newtab.url the topic: config page and set this pref to the URL of your preferred the new tab page.
    You can use these special pages or set the pref to the URL of your preferred the new tab page.

    • the new default tab with the tiles page is on: newtab
    • the default homepage is Subject: Home
    • to a blank page, you can use Subject: vacuum

    The pref browser.newtabpage.enabled must be set to true to use the page defined through browser.newtab.url like the new tab page.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    If you do not keep the changes after a reboot or have problems with preferences, see:

  • I want to set the default url of all new additional tabs I have open - how please?

    When I'm already browing and I choose to open a new tab opens on the Yahoo search engine, and I don't see how to change this. I want to open with google.co.uk. The first page is the default in Firefox and it works very well - it's just the extra legs that are the problem.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    You can watch the pref browser.newtab.url the topic: config page and set this pref to the URL of your preferred the new tab page.
    You can use these special pages or set the pref to the URL of your preferred the new tab page.

    • the new default tab with the tiles page is on: newtab
    • the default homepage is Subject: Home
    • to a blank page, you can use Subject: vacuum

    The pref browser.newtabpage.enabled must be set to true to use the page defined through browser.newtab.url like the new tab page.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

Maybe you are looking for