Navigate through the paragraphs

I'm missing a fundamental concept in InDesign. Given a particular point in a story, I need navigate back paragraph-by-paragraph until I find another paragraph I'm looking for. FrameMaker uses lists chained internally, so it's easy:

so that {(pgf.isValid)

If (FMP. Name = 'Head-1') {}

return the TFP;

}

PGF = bmp. PrevPgfInFlow;

}

What is the best way to do with InDesign JavaScript? Thank you much in advance.

Rick Quatro

The official way is to use http://jongware.mit.edu/idcsjs5.5/pc_Paragraphs.html#previousItem

in other words, given a point p, you access the previous using a

pprev = p.parentStory.paragraphs.previousItem(p);

But it has been observed that it is d'ex-cru-ci-at-ing-ly s - l - o - o. If you need to do this a couple of times, you might be better off first collection all the paragraphs of a story using everyItem and use instead as fast indexed table.

Tags: InDesign

Similar Questions

  • need help to navigate through the Boolean photos

    I have a program to navigate some Boolean control to its sub-controls. I need to do the same thing for 4 Sub-controls.

    pelase see jpg attachment.

    I have a table I need to find channels void (sub-booleancontrols legends) from the legend of a control.

    here in the attachment, instead of the table, I have shownn table columns in the table 1 d of channels.

    I'm confused about this way of writing code.

    respond with your valuable suggestions on how can I navigate through the images.

    Thanks in advance

    RENN

    LV8.5.1

    Hi, RENN,.

    See the attached example. It shows what you want to with the drop-down lists.

    It will be useful.

    Mike

  • ls.exe system error - how to navigate through the directories

    I get the following error when you try to use ls or ls-l to navigate through the directories/folders on windows command prompt.  "ls.exe system error, the program cannot start because cygintl - 2.dll is missing on your computer. Try reinstalling the program to fix this problem. »

    I wish I could use ls and cd to browse the directories.

    Does anyone have any ideas?  Is there something I need to do to win these functions? Where can I download this program and how to install?

    Ok. I think I maybe just but by own question.  I tried to install SSH.  I installed "OpenSSH 4.2p1 - 1 for Windows" athttp://sshwindows.webheat.co.uk/#top .  Now, when I type ls , the command prompt lists my directories. OpenSSH 4.2p1 - 1 includes ' cygintl - 2.dll and cygintl - 3.dll as required by some exe such as ls.exe.»

  • How to navigate through the file to the blackberry playbook using Tablet blackberry OS for Adobe Air SDK

    Hi all

    How to navigate through the file to the blackberry playbook using Tablet blackberry OS for Adobe Air SDK.

    And also I want to download this file on the server.

    Help me by providing examples of coding.

    Thanks in advance.

    With respect,

    Sébille C

    Here are some tips to help you get started.  It all depends on the terms that you use for your search.  For the first, I would use "adobe air browse file."  For the second, I start with only a variation as "adobe air download file" and then adjust according to the first results.

  • Using arrow keys to navigate through the presentation

    Hi all

    I converted a powerpoint presentation using adobe captivate and uploaded to LMS. My question is how can I use the arrow keys on my keyboard to navigate through the presentation.

    Thank you in advance.

    Hello Yanno,

    You can try to associate the arrow key as shortcut for the click box that would appear on the slide if you imported the TPP with the slider forward as a click of the mouse.

    Thank you

    Vish

  • How to navigate through the plans of work on my device?

    I would spend my plans to work on my device. How?

    You can drag to navigate and get an overview of the different work plans. Allows preview CC that slide you through work plans based on the width. For example, if you have a PSD that has plans to work for iOS of various sizes, and you connect an iPhone 5, overview CC will automatically display the work plan first iPhone 5. You can also select a specific work plan in the Nav app menu and navigate through work plans that correspond to the width of the selected one.

  • How to change the keyboard shortcut to navigate through the tabs open in PS and AI CC 2014

    I'd love to put my own keyboard shortcuts to navigate through tabs open in PS and AI 2014 on OS X. I found out that this can be done with ctrl + tab to the PS, but I couldn't manage to make suggestions to the work of the forum of the AI. As said, I would like to define a 'standard' shortcut more like alt + cmd + arrow key at the same time of applications. If this shouldn't be possible, does anyone know a shortcut in AI CC 2014?

    Thank you very much!

    Amadeus

    In Illustrator, in my view, you can set these shortcuts in Edit > keyboard shortcuts > Menu commands > funny

    (illustrator can be also command-F6)

    Fact command + ~ (tilde key) work for you in photoshop and illustrator?

    I don't think you want to use alt + cmd + arrow key since it's repositioning/moving objects

  • Interaction of value to navigate through the different report.

    Hi friends...
    On my dashboard, I want to use interaction value to navigate to the different report. But I need the value at which the user clicks on the dashboard to filter the next report.

    for example. My dashboard looks like this.

    Region of... Total
    A........... 120
    B............ 200
    C........... 300

    When I click on A linked report must contain only A region.
    I have not any hirarchy put in place in the RPD.

    Thanks in advance

    Change column properties and value Interaction Navigate.
    In the linked report, add columns filters and assign "is invited".

    Kind regards
    Stijn

  • Is there a way to keyboard to navigate through the properties panel?

    The Properties Panel has underlines under the keyboard shortcut letters in domain names (for example, Format, St's , C SS, LF ont, Size, ink, etc.). How did you navigate to these fields via the keyboard?

    (Note that these underscores appear sometimes, and sometimes they do; I did not yet understand what causes appear them and disappear. It seems that if I click on the mouse in one of the fields to focus here and then press the ALT key, underscores appear and stay there even when the focus returns elsewhere. By slide properties from its upper left panel to disconnect it seems to make notes disappear.)

    Quote:
    justathought says:
    CTRL F3

    It's pretty close. He finds the property on and outside panel, which is not quite what I want. If it is already on, I want to just the development to go. But I can put it off, then on again and the development ends here, so your solution does not work.

  • Portege M400 - cannot navigate through the pages of BIOS

    Hello

    I bought a M400 Tablet system and having a lot of trouble with the BIOS.

    I am able to get into the BIOS, but it seems to be limited.
    It is said there are three pages, and to use the pgup and pgdn to edit pages, it does not work.

    I tried with a USB keyboard and remove the keyboard of the Tablet, but it does not work either.
    The laptop doesn't have a SWSetup installed on it. That I download from the Web site but say that the BIOS is incorrect.

    I decided to Flash the BIOS.
    Windows downloaded BIOS flash and say is that the BIOS is incorrect.

    I would like to reinstall the OS, but for the moment, I don't then so that it can boot from the CD that I can not change the boot sequence.

    Can someone help me please.

    Hello

    That s strange.
    First of all, you can boot from the CD by pressing F12 and then you could choose ODD as a boot device.

    Secondly it s interesting to know whether certain passwords (user or supervisor password) have been defined, because this kind of password could restrict by changing BIOS options.

  • Canvas, navigate through the timeline of an object on the stage without mouse action

    For some reason, canvas, this will not work:

    this.myObject.gotoAndStop(1);
    
    

    Whereas, when the mouse is clicked, will be:

    this.test.addEventListener("click", fl_ClickToGoToAndStopAtFrame_1.bind(this));
    function fl_ClickToGoToAndStopAtFrame_1()
    {
      this.myObject.gotoAndStop(1);
    }
    
    

    I'm new to the Web, what I'm missing here, please?

    adumi wrote:

    So basically if I want to, on the first frame of the main timeline to control outside the navigation of an instance on the stage...

    UH... No. We've already established that you can't control the outside a clip over the first picture, it is on the scene, no matter how much you want. What you can do, is have each clip is hidden during its first image (either by this.gotoAndStop (1), where the frame 1 is empty, this.visible = false), then tap any image after that you can start issuing external goto.

    Or if you really, REALLY can't have this delay of an image so that all was in place, you could go with what Colin has produced and communicate with each clip via external variables. They would even be global. Declare this.clip1Frame = 5; then in the clip have this.gotoAndStop (this.parent.clip1Frame);

    Well, I just did some experiments, and it seems that the real problem here is that the instance of timeline on subitems get immediately initialized. The container itself, clip, however, which means that you can set variables on this subject. Doing so this.myclip.goFrame = 1; in the parent, then this.gotoAndStop (this.goFrame); in the subitem, works.

  • Captivate 9 - text entry area - cannot navigate through the input of text boxes on the same slide using enter key (works only tab)

    I designed a slide that has 3 areas of text entry.

    I need the user to be able to type in their response to the first box and then press the ENTER key, it will pass them in the next text box. After typing in their response to the second box, press ENTER, and then have developed pass to the third area.

    I don't want to use tab, I want to go to work as a shortcut key, so this works well on all devices. It feels like a trip to the logic of the user.

    I removed the button SUBMIT and check the validate user input.

    I put the shortcut key to ENTER in propriety / Actions area

    However, after that type in an answer and pressing on enter, the focus is not moved in the input text box available at the following address on the same blade.

    This happens regardless of browser (tested Firefox, Chrome, Safari, and IE9/10) and also OS - Windows 7, Mac OSX 10.9, 10.10 and latest version of iOS

    Only the tab key works (Ive even tried with other keyboard shortcuts and it always comes back to TAB).

    I know that this feature is possible in Captivate 9. I have read and watched many tutorials online, it seems a very basic feature. I could be wrong.

    This is a feature of wholesale/known or I'm doing something wrong.

    If a bug, is there a plan to fix it soon?

    Indeed, your problem is related to the Enter key as a shortcut key, not to have multiple TEB and one absolutely validation button. Take a look at this article very old (you are not the first to ask about this):

    A submit button for multiple text entry boxes? -Captivate Blog

    But here I explained to indicate to the user click in a next TEB, do not use input.

  • Impossible to navigate through the table of contents

    Whenever I have re-launch of a course, I can't access the slides/pages displayed previously despite the TOC enabled.

    I've hidden the slides and I use the model resulted in SendTrackingDataatEnd with the following parameters:

    • Self-paced learning
    • Activate the navigation
    • Sailed visited slides only
    • Set output to normal after the end

    Thank you!

    Self-paced learning is disabled when you enable the communication to an LMS.  So you can forget this work to mark the location you last reached during the access to the course.  On the other hand, Bookmarking of resume data may work when you report to your LMS (based on the LMS), but it will have NO impact on your table of contents at the start of the race for the second time.

  • problem with "back" button when using workflow to navigate through the pages

    I use a task flow to browse my pages
    in page 2 I added the back button so I can go back to page 1 using the A2 action


    Workflow 1
    Page 1 - A1-> page 2
    Page 2 - A2-> page1

    the problem when I used page 2 in a different workflow

    Workflow 2

    page 3 - A3-> page2
    page 2 - A4-> page3


    here when I click the back button it take me to page 1

    How can I go back to the page 3?

    I created an example here http://tompeez.wordpress.com/2011/11/27/jdev-11-1-2-1-0-using-router-to-conditionally-set-navigation-target/ because it is a little difficult to show the declaratively without some photos.

    Timo

  • How to navigate through the CSV file by row and pass it by MFL

    I have a CSV file that got no. n. records with the new line ("N") that separates each record of the

    Each record is of about 10 fields or more delimited by ' |'

    for example.

    11111. "20090316152" | " » 0"| » 0"| » 0"| » 0"| » 0"| "1-7DT-439" | " » "||" N ".

    22222 | "20090216152" | " » 1"| » 0"| » 0"| » 0"| » 0"| "1-7DDI-439" | " » "||" N ".

    33333 | "20090316352" | " » 6"| » 0"| » 0"| » 0"| » 0"| "1-5KK-439" | " » "||" N ".

    The requirement is to read the file using OSB - file adapter and move all records to the MFL for the conversion of XML

    Thank you
    Danny

    What happens when you pass all $body as it is the transformation of MFL?

Maybe you are looking for