[AS-CS3] How to create subtopics in an index?

I wrote a script whose make an index from character styles.
I guy ask to me:
"We've just had a print customer ask us for help w/ their index --- I've got it worked out except for adding sub-topics, sub-sub-topics and (of course) sub-sub-sub-topics."
I don't write scripts for a long time (due to my work).
Is it possible to make that???
I thing the short answer is "no", but...
Thanks.
Oli.

Here's a message I'm about to post to the applescript-list (my apologies for those who're seeing it twice):
I'm trying to up-date Olivier Berquin's script (located somewhere near here):
http://olivier.berquin.free.fr/indesign/indesign_cs1.html
so that it will make multi-level indexes.
I'm currently working in CS2 (but I don't think the indexing code has changed much since then), and have managed to get to the point where I have:
FoundObjects -- a list of all the things which need to be indexed
myFoundItem --- the thing which I want to index
howMany --- the number of index levels (1, 2, 3, or 4)
indexone --- the main topic
indextwo --- the sub-topic (if any)
indexthree --- the sub-sub-topic (if any)
indexfour --- the sub-sub-sub-topic (if any)
Olivier's script has:
tell myIndex
-- Add the topic to the index if it does not already exist.
try
set myTopic to topic indexone of myIndex
on error
set myTopic to make topic with data {name:indexone}
end try
end tell
tell myTopic
make page reference with properties {parent story:myStory, source text:myFoundItem}
end tell
(which I have wrapped up in an if howMany is 1 then .... endif block)
to check and see if an index entry exists and make it if it doesn't, but I'm simply not understanding how one would code adding a sub-topic, sub-sub-topic or sub-sub-sub-topic and the page reference to the last topic --- I just need to fill in the last three code blocks (if howMany is 2, 3 or 4 then ... endif) --- how do I do that?
William

Similar Messages

  • E-rec   How to create or generate the index category????? SOS!!!!!

    Hi guys,
    How to create or generate the index category?.
    From the posts of this forum I have read more things but anything works:
    reports:
    -RSRETT02
    -RCF_INITIALIZE_KPRO
    -RSTIRIDX_INDXCAT_RETRIEVE
    Can anyone show me the way?
    Thanks in advance.

    Hello,
    If you haveat least Version 7.10.18 then KPro configurations are no longer required. Did you activate Business Function HCM_ERC_SES_1 as this is required for SES? The scenario to choose will depened on whether you are making a new implementation, upgrading without use of SES before or upgrading after using SES with earlier versions. Scenario 1 is for when you have activated HCM_ERC_CI_3 after using earlier versions with HCM_ERC_SES_1 already activated. Scenario 2 is for those who have upgrade and activated HCM_ERC_CI_3 but where using search without SES in their earlier version. Last scenario is when you are making a new e-Recruiting implementation (not upgrading). Also check notes 1426757 and 817145.
    When you try to search are you getting an error? Can you check in SLG1 transaction after trying to search and post the error messages. Also can you execute report RCF_CHECK_SEARCH_SETTINGS as it will point you to the missing configurations points if any based on your version.
    Regards,

  • CS3: how to create action to add fixed text of foreground color, etc.

    I'm trying to create an action and/or brush preset(?) that will:
    1) Add a fixed text string in the forground color, consistent font, size, etc.
    2) Apply a consistent Layer Style -> Bevel and Emboss setting
    3) Allow me to move the text to whatever position
    4) Change text layer opacity
    5) Flatten
    At some point in the past when searching the internet I came upon a description of how to create a brush preset (I think that was it) that did at least most of this, but somehow I seem to have lost the preset and don't know how to recreate it.
    thanks,
    Mike

    j_m_d wrote:
    I'm trying to create an action and/or brush preset(?) that will:
    1) Add a fixed text string in the forground color, consistent font, size, etc.
    2) Apply a consistent Layer Style -> Bevel and Emboss setting
    3) Allow me to move the text to whatever position
    4) Change text layer opacity
    5) Flatten
    At some point in the past when searching the internet I came upon a description of how to create a brush preset (I think that was it) that did at least most of this, but somehow I seem to have lost the preset and don't know how to recreate it.
    thanks,
    Mike
    First it is And/or you can create both or one or the other. For in actions  and scripts you can not automate the use of a brush.
    1) Add a fixed text string in the forground color, consistent font, size, etc.
        Easy if all images are the same size and a little more work if image size vary for you will need to scale the image.
        If you want to scale the image back to it original scale at the end of the action you need to use a little script in the action. .
    2) Apply a consistent Layer Style -> Bevel and Emboss setting
        Again easy if aoo images are the same size not posible if images vary in size for many setting in layer style are in absolute pixel size.
        However layer styles will look good for a range of images sizes like Print Size or thunbnail size or small web sizes.
        Therfore I create actions for print size images and work full size. if I need smaller image I work full size and resize before output.
    3) Allow me to move the text to whatever position
         This is quite easy to do in an action you simply add an interactive transform step after adding the text layer.
         However this is not a good idea if you want to batch the action. Interactive sort of defeats batch.
         With an action it is easy to posion a layer.
    4) Change text layer opacity
        Simply change the added text layers opacity and or fill and it will be recorded.
    5) Flatten
        Simple just record it I don't like actions that flatten though. If you give your action to some and the use it on an image the did a lot of work on the may get very upset the your acrion flatten all their work.
    Have a look at my Crafting Actions Package it cantains a sample action that add a text copyright layer to any size image.
    Package Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    12 Scripts for actions
    Example
    Download

  • Dm cs3: How to create a proper layout for the E-mail sent to me by the submit-button

    Hi everyone,
    I created a form by dreamweavercs3. By the submit-button an
    e-mail is sent to the right E-Mail-Address. Everything ok.
    But the result looks very poor. Like :
    "name=xyc,adress=xtown".... and so one. Difficult to read and
    uncomfortable for further use.
    How I can get a better lay-out of this e-mail. Is it possible
    to create with that data f.e an excel-file. Or an jpg-sheet.
    Any ideas?
    And PLEASE! I am a greenhorm in the dreamweaver-world. If you
    like me to answer, do it in a way I can understand. (;-))
    Klaus

    Please find the form tag on the page, copy it to the
    clipboard, and paste it
    into a reply....
    <form name="..." method="..."....
    (that's an example of the tag - please copy everything from
    "<" through to
    ">")
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dr.Scholl" <[email protected]> wrote in
    message
    news:faeecd$dav$[email protected]..
    > Hi everyone,
    > I created a form by dreamweavercs3. By the submit-button
    an e-mail is sent
    > to
    > the right E-Mail-Address. Everything ok.
    > But the result looks very poor. Like :
    "name=xyc,adress=xtown".... and so
    > one.
    > Difficult to read and uncomfortable for further use.
    > How I can get a better lay-out of this e-mail. Is it
    possible to create
    > with
    > that data f.e an excel-file. Or an jpg-sheet.
    > Any ideas?
    > And PLEASE! I am a greenhorm in the dreamweaver-world.
    If you like me to
    > answer, do it in a way I can understand. (;-))
    > Klaus
    >

  • Mac - CS3 - How to Create an oversized document?

    I need to create a doc. 360 in. x 120 in. - Illustrator Does not allow this page size. How can I accomplish this?

    Your doing a banner right? Work half size or quarter size.

  • [JS] (CS3) How to create Session Variable

    Is there a way to create an Array for the current InDesign session and access/modify its value with scripts?
    I already have a Startup script with #target indesign & #targetengine "session" declared, but creating a variable (xxx = new Array;) doesn't make it global/persistent throughout the session!

    try
    var xxx= new Array();

  • How to create a Complex Organization Index  Materialized View Example

    Hi
    I have a 11g database that I'm trying to create a complex Materialized View that I would like to make Organization Index? How do I specify what I want for a primary Key?
    CREATE MATERIALIZED VIEW RCS_STG.MV_NEXT_HOP_iot
    ORGANIZATION INDEX
    AS
    SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
    service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r2.device_key
    AND tn_network_resource.resource_key(+) = r2.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
    UNION ALL
    SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
    service_telephone_number, service_package_name, telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r1.device_key
    AND tn_network_resource.resource_key(+) = r1.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
    I get an error message ORA-25175: no PRIMARY KEY constraint found
    I would like to specify resource_key, resource_key2, and service_telephone_number as my primary key?

    Ah,
    I get it now. This is what I did.
    CREATE TABLE mv_next_hop_iot
    resource_key NUMBER (38),
    resource_key2 NUMBER (38),
    resource_full_path_name VARCHAR2 (256 BYTE),
    device_name VARCHAR2 (64 BYTE),
    device_model VARCHAR2 (64 BYTE),
    service_telephone_number VARCHAR2 (20 BYTE),
    service_package_name VARCHAR2 (64 BYTE),
    telephone_number_key NUMBER (38),
    created_on DATE,
    CONSTRAINT mv_next_hop_pk PRIMARY KEY (resource_key, resource_key2, service_telephone_number)
    ORGANIZATION INDEX
    CREATE MATERIALIZED VIEW rcs_stg.mv_next_hop_iot
    ON PREBUILT TABLE
    AS
    /* Formatted on 2010/06/10 1:39:04 PM (QP5 v5.149.1003.31008) */
    SELECT resource_key, resource_key2, resource_full_path_name, device_name, device_model, service_telephone_number,
    service_package_name, telephone_number_key, created_on
    FROM (SELECT r2.resource_key, r1.resource_key resource_key2, r2.resource_full_path_name, device_name, device_model,
    NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
    telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r2.device_key
    AND tn_network_resource.resource_key(+) = r2.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key
    UNION ALL
    SELECT r1.resource_key, r2.resource_key resource_key2, r1.resource_full_path_name, device_name, device_model,
    NVL (service_telephone_number, ' ') AS service_telephone_number, service_package_name,
    telephone_number.telephone_number_key, c1.created_on
    FROM network_resource PARTITION (network_resource_subinterface) r1,
    connection c1,
    network_resource PARTITION (network_resource_subinterface) r2,
    device d1,
    tn_network_resource,
    telephone_number
    WHERE r1.resource_key = c1.resource1_key
    AND c1.resource2_key = r2.resource_key
    AND d1.device_key = r1.device_key
    AND tn_network_resource.resource_key(+) = r1.resource_key
    AND telephone_number.telephone_number_key(+) = tn_network_resource.telephone_number_key)
    Many thanks. the PREBUILT TABLE is the secret.

  • How to create a composite nonclustered index using sql server management studio

    Hi,
    How do I create a composite non clustered index using Manage Index and Keys dialogue box?
    sukai

    See image below:
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • How to create the JOB SEARCH INDEX in multi-language?

    Hi, my company is using Peoplesoft HRMS 8.8 with the recruiting solution. We have a problem in job searching for the langauage other than English. The problem is that the index for other language can't be built. Do anyone know how to do it?

    Hi Ashutosh,
    If you need to run only Info Package, you can schedule it in background. Otherwise if it needs to be followed by further processes like Data Activation or Compression, better you can create a Process Chain.
    To schedule an Info Package in Back Ground, go through the following steps.
    1. Go to the Scheduler Tab of InfoPackage.
    2. Select the Radio Button "Start Later in Back Ground"
    3. Click on "Scheduling Options".. Here you can schedule it in   Five differeng ways. a)Immediate  b)Data/Time c)After Job 4)After Event 5) At Operation Mode
    4. Select the desired option and enter the values. If you want this load to run repetitively, you can select the option periodic job. (Like hourly, daily, weekly etc..)

  • How to create a local partition index asign its storage tablespace

    hi
    i see the syntax about create local context index
    quote:
    Syntax for CONTEXT Indextype
    Use this indextype to create an index on a text column. You query this index with the CONTAINS operator in the WHERE clause of a SELECT statement. This index requires manual synchronization after DML.
    CREATE INDEX [schema.]index on [schema.]table(column) INDEXTYPE IS ctxsys.context [ONLINE]
    LOCAL [(PARTITION [partition] [PARAMETERS('paramstring')]
    [, PARTITION [partition] [PARAMETERS('paramstring')]])]
    [PARAMETERS(paramstring)] [PARALLEL n] [UNUSABLE];
    and i try the under code ,all failed.
    SQL&gt; create index html2_idx on HTML2(newsdescription) indextype is ctxsys.contex
    t local (partition indx parameters('lexer my_lexer'),partition indx01 tablespace
    users01 parameters('lexer my_lexer'),partition indx02 tablespace users02 param
    eters('lexer my_lexer'),partition indx03 tablespace users03 parameters('lexer m
    y_lexer') );
    ERROR:ORA-29850
    could anybody show some demo sql code creating partition context index asign its storage tablespace
    thanks

    try:
    create index html2_idx on HTML2(newsdescription) indextype is ctxsys.contex
    t local (
    partition indx parameters('lexer my_lexer'),
    partition indx01 parameters('storage users01_stg lexer my_lexer'),
    partition indx02 parameters('storage users02_stg lexer my_lexer'),
    Create storage preferences users01, users02, .. with I, K, ... attributes for tablespace users01, users02, ...
    Btw, ¿does anyone know whats the upper limit of partitions for a domain index? I've read in OTN they were 9999 but it crashes me (oracle 9.2.0.1) when I have 255... ¿has anyone tried this?

  • How to create an encrypted key for a user table

    I have an airshow website where volunteers and vendors can apply online (www.hollisterairshow.com) . The city attorney requires that we have a wet signature on a printed application form so the volunteer/ vendor currently has to print their application at the time they apply online, then sign it and mail it in and this works fine. Unfortunately, we have had a lot of instances where volunteers/ vendors needed to print their application again and the only way we could do this was for an administrator to print their application to a pdf file and e-mail the file to them. So, I'd like to improve this process by automatically sending an e-mail to the applicant when they apply online with a link to a printable page and containing a key pointing to their application. This way, volunteers/ vendors could print and sign their application whenever they want and as many times as they need to. Each volunteer is a single row in a volunteer table and each vendor is a single row in a vendor table.
    The key I use in the tables is a sequential key automatically incremented by MySQL so I would end up sending them a link looking something like www.hollisterairshow.com/printvolunteerapp.php?volunteernumber=27 . This would work, but it wouldn't be hard for a volunteer to change it to a different volunteernumber and so get access to someone else's personal information, which would not be acceptable. So, I'm thinking I need a secondary key that is somehow scrambled and used as an secondary index in the table so I'd be sending a link that mght look like www.hollisterairshow.com/printvolunteerapp.php?volunteerkey=sygew . So I'd really appreciate some advice on how to create a scrambled secondary index for each volunteer or vendor and plug it into the link I send them in the e-mail.
    Thanks for any advice.
    Tony

    Your question is not clear whether you want to create account or you want to create agent.
    For creating local agent you can refer
    http://bhabaniranjan.com/configure-odi-11g-local-agent/
    For creating EE Agent you can refer
    http://bhabaniranjan.com/configure-odi-java-ee-agent-on-windows-server-2008-64-bit/
    For creating account, login to supervisor and then go to security tab. There you can create different user to login to odi Studio. Let me know If i understand you correctly or not.
    Thanks.

  • How to create index category for TREX in ECC for E-recruiting

    Hi guys,
       i have finished the settings in SKPR07 transaction for SSR and attached to the HR_KW the SSR id.
       But i don't know how to create or generate the index category.
       From the posts of this forum someone told me to regenerate the index in SKPR07 , but i failed.
       Can anyone show me the way?
       Thanks in advance.
        sheery

    The solution is so simple you want to kick yourself....
    You need to upload a document. The index catagory is created automatically. I recommend simply adding an attachment to a candidates profile.
    ;p)

  • [CS3 JS] How to Create a Timer?

    Within InDesign I need to be able to fire a periodic process to examine links from a JavaScript script. I have my own script running in its own engine.
    I can't figure out how to create a timer that will run in the background and call the appropriate callback function periodically.
    I've created a little process like this:
    * Sleeps for waitTime milliseconds then calls the callBack function.
    function timer(callBack, waitTime) {
    $.writeln("timer(): callBack=" + callBack + ", waitTime=" + waitTime);
    if (waitTime == undefined) waitTime = 2000;
    $.writeln("timer(): sleeping for " + waitTime + "...");
    $.sleep(waitTime);
    $.writeln("timer(): awake, calling callBack");
    try {
    return callBack();
    } catch (e) {
    $.writeln("timer(): Exception from callBack.exec(): " + e);
    return undefined;
    function myCallBack() {
    return Window.confirm("Callback called", true, "Continue looping");
    while (true) {
    if (!timer(myCallBack)) break;
    And this works in the sense that my timer runs, but it runs as a blocking process, which is not what I want.
    Is there something I'm missing or is this simply not possible in CS3 JavaScript? A search on "timer" in the InDesign forums didn't reveal anything, nor did the InDesign JavaScript Guide nor the Scripting Tools Guide.
    Thanks,
    Eliot

    1. Download and install Active Page Item Developer Toolkit.
    http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/
    You'll have a demo period for 20 days or a month, I don't remember exactly.
    2. Create a new document, open 'Active Page Item Developer' panel (Windows menu).
    3. Copy the script from my previous post, draw an object - e.g. a rectangle and with the object selected enter 'idle' into Event Filter field, then press Tab and paste the script into the largest field.
    You'll see an alert appearing every 10 seconds and the cursor flickering.

  • How to Create Templates in CS3

    Can anyone point me to a website that gives clear
    instructions on how to create templatesin Dreamweaver CS3?
    Thanks!

    FILE | Save as Template.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Mr. Angier" <[email protected]> wrote in
    message
    news:fo7ra0$96r$[email protected]..
    >
    quote:
    Originally posted by:
    Newsgroup User > Can
    > anyone
    > point me to a website that gives clear instructions on
    how to > create
    > templatesin Dreamweaver CS3? > > Thanks! any
    specific parts of the
    > process?
    > Are you asking how to layout a page in general, or how
    to take an existing
    > page
    > and make it a template? -- Alan Adobe Community Expert,
    dreamweaver
    >
    http://www.adobe.com/communities/experts/
    Create a template from
    > an
    > existing document.
    >

  • How to Create PDF from Illustrator CS3 by using applescript?

    Hi Guys,
    Do some one knows how to create PDF from Illustrator CS3 by using apple script. If know, please give me the scripting.
    HARI

    Have you tried File>Scripts>SaveDocsAsPDF? There should be a folder of sample scripts installed in your AICS3 folder and a folder of documentation which contains an Illustrator AppleScript Reference which has examples.

Maybe you are looking for