[CS3 JS] Making sub-/subsub topic (setting parent topic)

Hi all,
I'm trying to have my script add an index, that consists of nested topics:
Parent
Child
Sub-child
From what I can read in the Object Model there's a 'withProperties' parameter, but I just can't seem to get it working ...
var myDocument = app. 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 subtopic:
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

Similar Messages

  • Can I set parental control on firefox for a specific user only?

    I'm using windows 7 and firefox 18.0.2. On my PC I have my Admin account and my kids account. Now as they're coming to an age they're needing Internet access for projects and so on, I wonder if I can set parental control on firefox (by add-on?) as I have on windows, so that whenthey log on their account, firefox will only allow access to what I have allowed. That is, limit internet usage ONLY on their account, while I'll still be able to use firefox unrestrictedly. I don't want to have them use another browser that I' m not as familiar with just so I can set parental control on everything on that browser. Any ideas?

    If you mean you want to block certain sites by some parental control software, you can try a web filter to block sites by URL or keywords.
    https://support.mozilla.org/zh-CN/questions/938721?esab=a&s=&r=1&as=s
    * <sub>'''edit'''</sub> or link [/questions/938721] <sub> this type of link should match viewers locale -J99</sub><br /> <sub>used ''<nowiki>[/questions/938721]</nowiki>'' , omit ''/zh-CN'' </sub>

  • Can't grasp the relation between tab set, parent tab, standard tab set and standard tab

    Very novice to apex application building, but after trying to figure the concepts behind the tab sets I'm getting more and more confused about it as I always get different behaviour when changing things.
    The documentation is not very clear on this.
    Is there someone who can explain this in a comprehensive way?
    It would be nice to have a view on the consequences of using these different levels of groupings.
    Any help will be dearly appreciated ;-)

    Jan
    One level tab application
    Tabsets are used to group standard tabs.
    Use full when splitting up the application in different sections. Much like how the apex is split up in the application builder, sql workshop, team developend and administration.
    Parent tabs aren't used. And a one level tab application can't be turned into a two level tab application.
    Two level tab application
    Parent tabs belong to only one tabset "main".
    The standard tabset is the connection between the parent tab and standerd tab.
    There is one standard tabset for every parent tab.
    The standard tabset in the two level application has the same function as the tabset in the one level application.
    The standard tabset also determines when a parent tab is current.
    When on the page the setting Standard Tab Set is set then the parent tab belonging to that standard tabset is current.
    This means that if you change a page form one parent tab to an other you not only need to change the tab settings. But also the settings on the page.
    If you still in the position to choose between list or tabs as your main form of navigation I would recommend using lists.
    The possibilities with the list templates are greater that with tabs.
    Tabs have a maximum of two levels. List don't have such a limit.
    If you created your application as a one level tab application you can't turn it in a second level application without some serious hacking.
    Clicking on a standard tab submits the page and branch after the computations. This could also be viewed as a pro for tabs because with list navigation your page needs to be accessible by url. Did isn't necessary with standard tabs making them more secure. Parent tabs also use an url to navigate.
    Only the standard tabs belonging to the current standard tabset are rendered making a drop down menu impossible.
    Hope this clears up some of your questions.
    Nicolette

  • I apparently have 3 apple IDs, and it's making it challenging to set up iCloud. Is there a way to combine them into the one I actually use?

    I apparently have 3 apple IDs, and it's making it challenging to set up iCloud. Is there a way to combine them into the one I actually use?

    You can't combine or merge iCloud IDs, but you can migrate the iCloud data from one account to another if you wanted to move it to a different ID.

  • Unable to set parental controls on itunes b/c my username and password are not correct.  How do I reset them?  There is no prompt to give any clues what they are.

    unable to set parental controls on Itunes b/c my user name and password got rejected.  How do I reset them or figure out my username and password?

    This is a user to user support forum.  We are all iphone users just like you.
    You are not addressing Apple here at all.
    This is an odd way to ask your fellow iphone users for help. Berating oterh users will not help you.
    "it's too fragile"
    No it is not.  i have never damaged one, nor has anyone I know.
    " U loose data when Ur phone is locked"
    No you don't.  Why do you think this?
    "and there is no customer support!!!  "
    Wrong yet again.  Apple has an 800 number and they have many retail stores and they have support articles that you can access using the search bar. Or you can contact them throgh express lane online
    "but I will go back with Blackberry "
    Please do.
    Good ridance

  • Setting parental controls in an iTunes movie?

    I know you can set parental controls in the iTunes program generally, but is there a way to tweak an indivusal movie parental controls? Or add parental controls to a single movie or TV show, or music song? I could not find this option when displaying a movies "info". I'd think iTunes would add a parental control settings the user can modify..?

    Try going here and emailing the store about the issue
    http://www.apple.com/support/itunes/musicstore/download/

  • Unable to set parent context for this record.

    Has anyone seen this error when doing an import? In my case I was doing an import to the Opportunity Product record.
    the full error message is
    Unable to set parent context for this record. Please make sure that the parent record is valid and you have permission to modify the parent record.
    I was attempting to populate one field on the record with data.

    Hi,
    Was there a resolution to this that you found, cause it's driving me crazy.
    We've resorted to manually created a product in OnDemand with an EUI and exported it but we can't reimport it to overwrite it as we get the same error message "Unable to set parent context for this record"
    The opty and the product both exist as they got manually created, although when you export them there are now 2 of them (I see this in reporting as well????)
    Besides the Opty-Product External ID what else is required to do an import to overwrite?
    regards
    Alex

  • Exposing sub site list on parent site (SPO 2010)

    2 site collections configured the same, one is a team site one a public site. In the team site I can expose lists from a sub site on a parent site page via a custom data view web part. The exact same technique doesn't work on the public site and throws the
    "list doesn't exist" error. The web part is configured correctly because it works if I insert it on a sub site page. It's not a permissions issue - the source list can be accessed anonymously on the sub site.
    Any ideas? 
     

    I was able to get the sub site list web part to show up on a parent site page - but then when I went to add the exact same web part to a different  zone on the same page: BAM! List not found.
    It also started randomly adding chunks of content from list items right in the web part code.....
    I tried but can't find any justification for any of this behavior, so as usual when I work with Sharepoint I find myself agreeing with the people who say it's a mind numbingly badly made product.

  • Remove all entries in sub csv list from parent csv list?

    I have two csv files, one is a complete (parent) list, the other is a sub list. I want to remove all sub-list entires from the parent list. Without manually removing each entry from the parent list one at a time, is there an effecient way to remove all sub list entries from parent list in one simple effort?
    Each list contains email addresses, I want to exclude the sub list from the parent list for the next mailing as they have already completed an action.
    Example:
    Parent list (csv1) has A, B, C, D, E
    Sub list (csv2) has B, D
    How can I remove B & D from Parent list in a concise action?
    Thanks!

    Hi smashart,
    Ian has given you a method that requires manual removal of the unwanted values from the Parent list. My preference would be for a method that constructs a new sub list that includes only the items wanted, but does not affect the original parent list data.
    Like Ian's method, this requires opening both the parent list and the existing sub list of addreses not wanted as separate tables in the same Numbers document.
    Here's an example:
    Two formulas are required.
    Parent::C2, and filled down: =IF(COUNTIF('Sub 1 (have acted)' :: $A,B2)>0,"",MAX($C$1:C1)+1)
    This creates the index shown in column C of Parent. This column may be hidden.
    Sub 2::A2, and filled down: =IF(ROW()-1>MAX(Parent :: $C),"",LOOKUP(ROW()-1,Parent :: $C,Parent :: $B))
    This uses LOOKUP to copy the indexed addresses to Sub 2.
    (Note: Close examination of the addresses in Sub 1 will show a repeated address. As can be seen, this does not affect its removal from the list in Sub 2.
    Regards,
    Barry

  • Setting parental controls and allow safari access

    when is set parental controls i can't fine safari (although it's checked) in the guest user profile of my applications

    Sharon...
    Possibly a restriction causing this...
    Read here >  Mac OS X v10.5, 10.6: About the Parental Controls Internet content filter

  • Hi, I hope someone can help.... When I open a new user account, which I want to set parental control on, the screen keeps freezing once the account is open. The wee rainbow circle appears and I can't do anything. Does anyone know how to fix this? Thanks

    Hi, I hope someone can help.... When I open a new user account, which I want to set parental control on, the screen keeps freezing once the account is open. The wee rainbow circle appears and I can't do anything. Does anyone know how to fix this? Thanks

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    Report any errors it found for Disk Repair, don't need the ones for Permissions Repair.
    Try it again & see if anything changed, but have Activity Monitor open & Show All Processes & sorted on CPU%, also have Console open if we can... maybe not when switching, but we'll see.
    Does this happen if you just try to create a new admin user???

  • I was trying to set parental controls and somehow lost the abitlity to sign in as adminstrator. When I try to reset using my OSX CD, it says I need to install Rosetta before I can reinstall MacOSX. I say yes, but it asks for my administrator ID/password

    Somehow lost my ability to login as administrator when i was trying to set up Parental Controls. Now it does not recognize my administrator name or password. When I try to reset my password by reinstalling MacOSX, it tells me I have to first install Rosetta. When I say yes, it asks for my administrator name and password!  ARG!  Help please!

    Whew, let's see if we can trick it into making a new admin account...
    Reset OS X Password Without an OS X CD...
    http://theappleblog.com/2008/06/22/reset-os-x-password-without-an-os-x-cd/
    Admin Hack...
    http://www.hackmac.org/?q=node/4
    Starts up like the first time you buy a new Mac, but after filling in all that info again, you should have access to the computer and the other Users & files will still be there... give the new User a different name than an existing one.

  • Problems with footage after making Sub clips

    Hey there
    Today I woke up to view all the subclips I had made out of my most recent project. Only today, all the footage looked more pixelated and blurry.
    What might of happened? When I pause the footage the quality is exactly as it was before. But when played it's more pixelated.
    Some of the footage was shot at a lower resolution, but when I set the size of the screen to the appropriate resolution the quality still looks bad.
    Could this have anything to do with making subclips? Even going back and seeing the clips that the sub clips came from: the footage is still more "pixely"
    Any help appreciated

    Update to FCP 7.0.3...run the software updater. That solves a lot of NX5 issues.
    Shane

  • Need suggestions on making sub-clips

    Okay, so here's the situation:
    I did an interview for a documentary I'm making, and want to split up the large file into sub-clips for individual topics. However, when I was reviewing it, I noticed that somehow the sound/visuals had been desynched in capturing. It would be very inconvenient for me to have to recapture at this time, so I found a work around by making a new sequence, putting in the desynched file, and trimming some of the video off to sync it up. However, now I can't make sub-clips, I can only use the blade tool on the large sequence. Can anybody think of a workaround?

    Okay thanks that might be helpful but I actually figured it out. I just exported the synched sequence to a Quicktime movie and then re-imported it. It's a little cumbersome and has to be rendered all the time, but it works.

  • Export sub-layer without its parent content

    Hello,
    I am trying to export the sublayer in jpg without the parent layer's content. I have tried options with AIArtSuite and AILayerSuite but have been unsuccessful. The following is the code for reference:
    sAILayerSuite->GetFirstLayer(&Firstlayer);
    sAILayerSuite->GetLayerFirstChild(Firstlayer, &childLayer);
    sAIArt->GetFirstArtOfLayer(childLayer, &artGroup);
    //Export to jpg using the artGroup
    On observing the layers in AI, the child layer preview always has the content of the parent layer. So,
    Is it possible to get the art of a sublayer without the parents content? If yes, then how to achieve that?
    Thanks,
    Hitesh

    I've tried using the AIRasterizeSuite but still no luck. Here's what i've tried:
    Approach 1:
    //Get the childe layer from the parent
    AILayerSuite->GetLayerFirstChild(Firstlayer, &childLayer);
    Approach 2:
    sAIArt->GetFirstArtOfLayer(Firstlayer, &artGroup);
    sAIArt->GetArtFirstChild(artGroup, &childart);
    sAIArt->GetLayerOfArt(childart, &childLayer);
    And after getting the layer handle in childLayer, the following is used.
    // Create the art set.error = artSetSuite->NewArtSet(&artSet);
    // Populate the art set.
    error = artSetSuite->LayerArtSet(childLayer, artSet);
    //Create raster settingsAIRasterizeSettings rasterSettings;
    rasterSettings.type = kRasterizeRGB;
    //Compute bounds
    AIRealRect bounds;
    error = sAIRasterize->ComputeArtBounds(artSet, &bounds, false); 
    //Create raster
    AIArtHandle rasterOut = NULL;
    error = sAIRasterize->Rasterize( artSet, &rasterSettings, &bounds, kPlaceAboveAll, 0, &rasterOut, MyRasterizeProc);
    But in either case the result is the same, the chaild layer always contains the information of the parent.
    Also, as mentioned in the previous post, I could not find any AIRaster and AIRasterHandle in the SDK. I'm using the CS3 SDK.
    thanks,
    Hitesh

Maybe you are looking for