According to paragraph Style of "new Destination of the hyperlink.

Dear inDesign Experts

Please help me find a way or a Script to add all the headings of the specific paragraph style to 'New Destination of the hyperlink... (Anchor text) »

and... is there any automation for such a task?

Thanks in advance

Try this

var activeDoc = app.activeDocument;

    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;

app.findGrepPreferences.appliedParagraphStyle = "XXXX";//Give your paragraph Style name here
var foundRefList = activeDoc.findGrep();

    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;

var myCount =0;
var foundListLength = foundRefList.length;
for (var j = 0; j

~ Green4ever

Tags: InDesign

Similar Questions

  • In CC 2015.4 I can not find my trusty option 'New Destination of the hyperlink'

    Hello

    Please see the screenshot below.

    The updating of CC 2015.4, suddenly the option 'New Destination of the hyperlink' which appears in my context menu under "Interactive" simply disappeared. In general, I surligner highlight the text in the frame, then right-click on it to reveal the menu, then scroll to the "Interactive" submenu and select 'New Destination of the hyperlink' (see the part CS6 2014 screen captures below). I do then highlight a text anchor Tech. Finally, I select other text in the document and make a hyperlink to anchor text, I just created. I now spent 90 minutes in the options of CC 2015.4 trying to find these (or new?) to create a new destination for the hyperlink (a text anchor), with no chance inside the app (even impossible to find another way to do it) and no luck on online forums. Anyone can solve this for me?

    Thank you
    Aaron

    7-18-2016 2-57-23 PM.png

    It is in the hyperlinks Panel menu. It is in the Panel menu cross-references.

    It is missing from the context menu (someone forgot it?)

    You can add a keyboard shortcut: Edit > keyboard shortcuts > product area: Panel Menus > links: New Destination of the hyperlink.

  • Paragraph style to the new Destination of the hyperlink

    Dear inDesign Experts

    Please help me find a way to add all the headings of the specific to the 'new hyperlink Destination..."paragraph style (Anchor text) »

    and... is there any automation for such a task?

    Thanks in advance

    If possible, it woud be scripted. You should ask in the forum script: InDesign Scripting

  • How remove the destination of the hyperlink does not exist?

    New to Indesign.

    I need to use the text of the header "White" as the destination hyperlink and I want the name of the destination of the hyperlink to be the same as the text.

    When I try, I get:

    BLANKOFF.PNG

    Yet, it seems to be NO Hypertext definition already in existence by this name. See:

    hyperoptions-01.png

    Now... I've been dinking autour herein for hours, create and delete Hypertext destinations, making bookmarks, try text variables, etc.

    I fear that all this back may have screwed up my file (s) and now I have some hypertext ghost, hidden destination I can not find and so is indelible.

    This is an excellent suggestion and I tried, but the Destination of the hyperlink undeletable survived.

    And still don't appear in the list of already defined hyperlink Destinations:

    Then, I started to eliminate layers and try again set a new Destination of the hyperlink by using the name of 'White White' which was taken somehow, every time I want to delete a whole.

    After nixing a few layers, I was actually able to reuse the 'white white '. I kept him going.

    Once I knew the affected layer, I then reduces to the object responsible for text. Guess who it was...

    Yes, the header "White" itself.

    Apparently I had used the same exact text to define two hyperlink Destinations, and in this case the Destination of the hyperlink named "white" doesn't appear in the Options of Destination of Hyperlink dialog.

    Had to remove the text touched, then re - type and redefine my Destination of the hyperlink.

    geeze...

    Steve, thanks for your help, if!

  • created in Chapter 1 paragraph styles cannot be chosen for the other chapters

    HI. Now I have all my "paragraph styles" determined for my ebook. Thanks again for the advice saved me after that I lost so much time.

    New > book > book1

    New > doc > click

    Add > doc > Table of contents for book1 [which is the table of contents in the print version]

    Add > doc > Chapter 1

    Click table of contents to make master and select it.

    layout > toc [add paragraph styles used in chapter1] save the style as tocbook1 [deselected replace existing toc]

    Click on + to add next chapter 2 [this is now selected and I can see all the paragraph styles]

    - but when I double click to open Chapter 2

    -only ' standard paragraph + ", 'normal' 'reference text' and 'paragraph 1' style are available."

    more information:

    as I entered in each of the chapters in this book with a good table of contents (finally)

    -I can't select text > paragraph style > and see p-styles listed in Chapter1: chapterheading, chaptersubdescription, chaptersubtitle, paragraphspacing, dialogue...

    notes that can be useful with this diagnosis:

    I came across a major messup of "loading" styles p "all".  It sounded like a good idea.  It worked again but this time I just load them all rather than things deselection.  I don't have an idea of what I've done here, but

    result: all my notes were listed in the TOC navigation panel resulting in the .epub that was readable in adobe reader digital.

    what I ended up doing:

    After experimenting a ton - I was still unable to fix this problem which postponed in each table of contents that I tried to build from scratch, so I was just remove almost all "indesign books', indesigndocs that have been tocs and epub files.

    AGAIN, any help would be greatly appreciated.  I'm ready to roll if you know what I mean.

    Thank you

    I don't understand what you're trying to do.

    You say that you did not have your paragraph styles in the rest of your chapters?

    They are like this:

    Book1

    Chapter 1 (this does have styles p)

    Chapter 2 (it doesn't)

    Chapter 3 (does not)

    If this is the case then you must synchronize all what you styles p.

    Do this, use in designating what chapter to take information from by clicking on the first chapter in the small box left in the book window and then click the drop down menu on the window of your book

    go to the stync options select styles p and c

    then book Sync, this will fill the remaining chapters with the styles that are in the first chapter.

    you will need to open each chapter separately and apply the relevant styles to the paragraphs.

  • I've updated all paragraph styles in my site, but the code is not generating of heading and paragraph tags.  Help!

    Try to increase the SEO on my site of Muse.  I didn't know I could implement paragraph styles when I first built the site.  Just went and built styles but the generated HTML map includes all the text in the img tags instead of the header/paragraph tags.  Help!

    For me it looks like you are using non-InDesign. If they are not web fonts or you've applied things like a shadow to him, then it will convert the text to a picture in which you can apply tags: for.

    Can you provide a link to the site as well as the mention of what you use the police?

  • GREP mess up at the destination of the hyperlink application

    Hey guys,.

    Came across a very strange problem with the scripts, GREP and hyperlinks into InDesign. I'm trying to write a script (js) that automates the creation of hyperlinks on a great book (e-book). I wrote a script of hyperlinks glossary successfully but this concerns chapter references. The idea is to have a GREP search finds all words that matches a heading style (stressed, 20pt in this case), then insert a destination of the hyperlink to this moment here. The oddity is that when the script runs that it messes up the GREP search results find the text in the previous line.

    var doc = app.activeDocument;
    
    doc.hyperlinkTextDestinations.everyItem().remove();
    doc.hyperlinkTextSources.everyItem().remove();
    doc.hyperlinks.everyItem().remove();
    
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.pointSize = 20;
    app.findGrepPreferences.underline = true;
    app.findGrepPreferences.findWhat = '';
    
    var results = app.activeDocument.findGrep();
    
    for (var i=0; i < results.length; i++) {
        var text = results[i].texts.firstItem();
        $.writeln(text.contents);
        doc.hyperlinkTextDestinations.add(
             text, 
             {
                 name: text.contents
             }
         ); 
        $.writeln('-----------')
    }
    

    run this script on the text following (deleted indesign style):

    A title with confidence

    a text

    Control and security

    a text

    Title

    a text

    Scripting in InDesign

    a text

    outputs follows in the console:

    A title with confidence

    -----------

    Control and security

    -----------

    Titl

    -----------

    XT

    Scripting in Undesir

    -----------

    The first 2 are correct but its last 2 messed up. If I comment out the call to the destination of the hyperlink add method I see the correct text in the console:

    A title with confidence

    -----------

    Control and security

    -----------

    Title

    -----------

    Scripting in InDesign

    -----------

    Any help is really appreciated.

    Thank you

    Andy

    Or if your addicted to curls, then you can keep and do.

    results var = app.activeDocument.findGrep (true);

    Add the real flag to reverse the results

  • InDesign iPad App with links to pages or the destination of the hyperlink OCD?

    I work for developing applications for the iPad in InDesign and it goes very well with one exception. I need to be able to essentially have a menu hand or table of contents to allow the user to type on a topic and have the application go to this page. Cliclking on the top of the screen gives me a kind of buylt cabailities navigation, so he clearly keeps track of items/pages.

    I tried naming it the text on a page (sometimes in the same document as my OCD/menu, sometimes with separate articles/documents) as well as the entire framework as a destination of the hyperlink and making a TOC/Menu point a button that goes to this destination. Looks like it should work fine. If I have everything in a single document, the TOC link system works very well in an interactive PDF. But that all doesn't work if make you an iOS app. No links don't seem to work at all.

    While some things like animations do not work in applications iOS, I know that a system TOC/Menu must be able to be done, as I've seen in other applications that are clearly made with InDeisgn. (Applications multimedia especially pro running in News Stand as a geographical Nation, etc.). In addition, only with not not able to navigate to a page, article, or document to another when you build an application based on the folio iOS would be pretty useless.

    I found a lot of examples totorial how to make apps for iOS in InDesign, but I can't find those that use a TOC/Menu System.

    Any suggestions here? This feature is not available in a folio built app done in InDeisgn?

    Thank you.

    Transferred to DPS forum.

    Use a go to the url buttone and the navto://articlename command. To access a page specific use navto://articlename#x where x is the page number. Don't forget that the first page is 0.

    Bob

  • Paragraph style with different key on the 1st and 2nd lines

    Hello

    I want to do a paragraph for a caption style. The font size is 5. the first line must have 5 pt leader and the second line must have 6 main points. Is it possible to select this as a paragraph style or I have to put the different leading to each line manually each time?

    Adrian

    Could be done, I suppose, using a style of character as a nested line Style, but why do you need to do this? The leading of the first line value does not actually affect the first base line in a block of text. Would probably be a better way to fix the first line of base to 5.

  • Search the text of paragraph style and place them in the new text block with width 50mm

    Hello

    I'm looking for voor a paragraph to find script dat styles and place them in a new text block with width 50 mm.

    Is there a solution?

    Kind regards

    Patrick

    Width: options General of the frame of the text, GBA: fixed width, then 50mm width

    Height: automatic block text size options

    (These two in the dialog box object styles)

  • How to create a paragraph style that I can change the space between the paragraphs of return?

    Sample.jpg

    Yes, and you can see the additional empty paragraphs. You must use find/replace to delete (there is an application integrated in the drop-down list in the dialog box).

    If you need space between, you'll need to have styles of paragraph two, one for the name of the company and one for the address info and hours. Apply space before the name or space after the address.

  • Destination of the hyperlink (file or URL) is sometimes title and sometimes the name of file

    I have a project.  When I add/edit hyperlinks on my desktop computer, I see the files available in the project as their file names.  When I open the same project on my laptop, I see the files available by their topic titles.  I prefer the title of the topic, but I can't understand what the setting is switch between them.

    Edited to add version: RoboHelp 7 HTML.

    Hello

    Try clicking on the menu from your view.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • Why paragraph styles did change his mind during a project?

    Using CS6 (CC), I am to convert a booklet our firm designed for Kindle. Since we would cut apart all of the text, and it has been published several times in the original, I'm cut and paste into a new document, implementation of brilliant new paragraph styles and essentially creating a clean export document.

    However, some weird things happened along the way, the following:

    1. a created paragraph style is "intro text". Based on 'no paragraph style', the black value Adobe Garamond, etc, etc. It works perfectly in all of the document except the first page. When I apply the same paragraph of its text style, the text shows quite differently (bright red, Meta). No substitution showing. Can I just retype the text and try setting up from scratch, but no idea why the same paragraph style that works on all other pages does not work here? (Screenshot showing the selected type and style that works everywhere else below.)

    2. the book is indexed by section color, so the first section has all red heads/subtitles, next heads yellow/subtitles, etc. I created the yellow subtitle based on red, the color change in the "color" box in paragraph styles. Several pages in the second section, the style of Pará yellow subtitle abruptly changed his mind and refuses to do the subtitle yellow unless I have replace manually in the text box. Even if the yellow is shown in the color of the box (see example below), and although it worked perfectly for several pages, this style now refuses to act according to its parameters. However, this works perfectly if I apply it to another type of text where I don't want it to work (see example below). If the same paragraph style works differently when applied to a different text on the same page. (aaaarrrrrgh)

    Everyone knows about this problem or questions, and what did you do to solve / them?

    Thank you!

    PS-gone-wrong.jpg

    red-not-yellow.jpg

    other-type-works.jpg

    Some of what you describe could be caused by the application of styles to characters in addition to the paragraph styles, but it also looks like there may be a few file coruption. See remove minor corruption by exporting and see if that helps.

  • How to use paragraph styles?

    Can someone explain how to use paragraph Styles? OMG! This is so difficult for me to kiss - I can't seem to understand how to create a paragraph style in a document, in the first place, then I don't seem to be able to apply it to the rest of paragraphs in the document.  Whenever I have try this I lose the track and then I lose patience!

    I do appreciate this forum and hope someone can clarify this issue for me, I am eternally grateful. I'm trying to gather some my illustrations and story in a booklet for children and I need to get out to publishers (fingers crossed!) until I forget why I started to be a student in graphic design and Illustration in the first place

    Thank you!

    aganess wrote:

    Can someone explain how to use paragraph Styles? OMG! This is so difficult for me to kiss - I can't seem to understand how to create a paragraph style in a document, in the first place, then I don't seem to be able to apply it to the rest of paragraphs in the document.  Whenever I have try this I lose the track and then I lose patience!

    I do appreciate this forum and hope someone can clarify this issue for me, I am eternally grateful. I'm trying to gather some my illustrations and story in a booklet for children and I need to get out to publishers (fingers crossed!) until I forget why I started to be a student in graphic design and Illustration in the first place

    Thank you!

    I've been there. It was a long time ago, but I still remember the confusion and despair.

    First, know that you will survive and ask what was the hang up. If you are a special person, do you promise never to forget what was the hang up, then you can help others when it is time to pay back the community.

    Think about how things work without paragraph styles. When you want a paragraph to look a certain way, regardless of the software you have used to work with text, you select ("highlight") some text and look for ways to style it (check its appearance, or 'attributes' or 'features' or 'features'.) You choose a font (Helvetica, Times, etc.) weight ("BOLD", extra bold, light), a color of text, an angle (italic, Roman), the space between the lines ("leading,") space between paragraphs (space before, space after,) and so on. Without named styles, you must select each property in a menu or a list when the text is selected. The next time that you want this same paragraph look, you can recall everything you did and repeat with newly selected text, or you can copy and paste one that looks, then change the text inside.

    However, it does take long to realize that he has to be a way to save these settings and pull them up and slap them on the other selections, with a few clicks and make sure that you don't forget to do something. Creation and registration of collection of a paragraph of the property settings are called "define a style." Software for manipulation of more modern text can save paragraph styles that apply to full paragraphs, and they can also save character styles, which apply to parts of the text in a paragraph. A paragraph of normal text can be used a style called 'body '. You can select a bunch of miscellaneously style paragraphs and apply the body style for them with a single click on the paragraph styles list.

    If you decide that you would like the body to look different style, you can redefine, and all paragraphs in the active document using the body style change to show the look of the new definition.

    In a body paragraph, you can have same bold italic bold text and italictext and so on. You can always select text in a paragraph and find a menu that offers characters bold or italic in the selected text. But you can also create a character for each of these apparitions style and apply them to music. As for paragraph styles, character styles are more controllable and more useful than simply highlight and apply a property. If, you use a character style that applies "BOLD", you can change its character style definition and all the places it is used in a document will show the change.

    Here is an example which shows the usefulness of the styles of characters named:

    According to the standard style for writing guides that have been developed before computers, scientific names, the words of the foreign language in a host as the English language, the titles of the documents, movies and poems and a few other things are supposed to be italicized. With character styles, you can create and apply styles of characters for each category of text in italics. In this forum, * sapiens, The Pentagon Papers and Gone With the Wind, all look the same, but with character styles, styles, named 'scientificName', 'bookTitle', and 'filmTitle', can distinguish between texts in italics. Sometimes, you gotta be able to treat these things differently, and styles is a way to keep them organized.

    Most writing tools can create a style named for the existing sample. So, if you have customized a paragraph for your body text, you can use InDesign to set the body of the paragraph in the example chosen style.

    Google search for terms like 'InDesign create the paragraph of the selection style,' "InDesign redefine style', 'Create a character style, InDesign' and"InDesign tutorial character and paragraph styles."

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • Automatic loading for InCopy of InDesign paragraph style?

    Once I created a new empty text box in InDesign, and then add what he for InCopy assignment, how can I get all my paragraph styles is displayed automatically in the InCopy document? at the present time, only 1 model is when open. The copywriter is to have to load for each text box.

    All versions are more recent as of yesterday, March 2.

    THX

    b

    When the InCopy user opens him InDesign file or assignment - the preferred/normal workflow - all paragraph styles are included. Then they scroll the document to find your text block empty and then check it out for editing. All styles are always at their disposal.

    Looks like you have IC users open linked InCopy stories (BCTI files) directly. It is possible to do, but as you have seen, a side effect is that then they get only the styles used in this story. (Along w / many other disadvantages.) Since there is no text in the history, there is no recorded her styles.

    AM

Maybe you are looking for

  • I have not received update iOS 10?

    I use iPad Mini 2 (retina) and I have not yet received updated iOS 10? Is not iOS 10 now? I don't understand

  • The installation disc (USB) boot camp is not found

    I'm trying to use Bootcamp to partition my hard drive and install Win10 on the partition (OS El Capitan). I followed all the instructions preparation using a blank 8 GB flash drive and bootcamp. I finished up to "Download the latest software from win

  • The modbus two registers to float data conversion

    I read a modbus data HAD two piece of the registers-40609 and 40610. The content of the register I get is an array of two elements (12458, 14019). I want to convert these numbers into a variable, the value of the point. Library modbus does have a VI

  • Any software to recover corrupted hard drive?

    Everyone knows any freeware recovery of good data to my external hard drive? Because he always wants me to format it before using my HDD is maybe damaged. I have never fallen or damaged. Simply use it as usual. Yes, there is a good data recovery free

  • ACS 5.1 - Exception permission policy assessment

    Hello I get the error "no rule has been balanced. Authentication happens; the "identity of Radius Servers" are to return the accept. Tcpdump shows that the ACS does not request such advertising as defined in the compound condition. What Miss me? Any