Insert the list of names of link on the current page to the current text insertion point?

Hello

I need to automate the insertion of a list of the names of the links located on the page current / active to the blinker current text. (I forgot the technical name of the thing of blinking text line).

Thank you!

That would be "cursor" (apparently taken from Latin, 'Messenger', not a person who cursed a lot).

This javascript does the trick. He first tries to determine the page, which is a bit awkward because the text blocks can be nested, on a master page, or on the pasteboard. If the script "does nothing, then closes" (quite a common mistake) or error, this would be a place likely to fail.

If he has found its own page, it's a simple case of iterating over all the graphics on this page, which is fortunately a property 'Page '.

theStoriesPage = app.selection[0].parentTextFrames[0];
while (1)
{
 theStoriesPage = theStoriesPage.parent;
 if (theStoriesPage.constructor.name == "Page")
  break;
 if (theStoriesPage.constructor.name == "Character")
  theStoriesPage = theStoriesPage.parentTextFrames[0];
 if (theStoriesPage.constructor.name == "Spread" || theStoriesPage.constructor.name == "MasterSpread")
  exit(0);
}
for (all=0; all 
         

Tags: InDesign

Similar Questions

  • When I click on address book I no longer get the slot to insert a name, instead a long list of names/addresses

    I sent this way new emails (not responses): click on address book. Place comes the space to insert a name. I do, find the name (among some close to it), select it and then click on "write". The result is an email address, which I proceed to write and send. But since there is one day, when I click on the address book, what appears is a long list of names and email addresses. It fills most of the screen of the iMac. And there is no space to insert a name.
    Without doubt, I did something stupid to get there. What have I done? And how I turn the tide?
    Thank you.
    Arthur

    This isn't answering your question on what is wrong.

    I think that the address book is a pretty lame place to start.

    Click on write or reply or forward and window of writing messages appears. pre-populated with the text of the previous message if it is a reply or forward.

    If you select the To: box and start typing, it will feature names in the address book corresponding to what you typed.

    If you really prefer to choose from a list, you can open a Contacts Sidebar which lists one of your address books. There are buttons to add Contacts selected to your message. You can drag and drop and use right click too. On a PC, F9 opens this sidebar, or you can use alt + v to get the view menu and choose the Contacts Sidebar in the submenu. I don't know how much it works on Mac.

    It is so easy to add multiple addresses. You can set them as Cc or BCC.

    Your method allows you to send a new message, but does not support the answer or transfer. It penetrates into all recipients regarding: and you have to change one by one, if that is not appropriate.

    You see why I think that the address book is a bad place to start from?

    If this alternative approach does not work then I suggest that corrupted address book. You have a recent backup to restore from?

  • How can I copy the list of names of files in the finder and set the Clipboard filenames separated by commas?

    Hi guys, I was wonder if anyone can give me a hand with a script.

    I need to be able to paste a list of file names of the files as follows:

    0001.jpg 0002.jpg 0003.jpg 0004.jpg

    At the moment, if I select the files in the Finder, copy to the Clipboard and paste them in TextEdit, they are like this:

    0001.jpg

    0002.jpg

    0003.jpg

    0004.jpg

    I found a similar but slightly different script and I don't know how to change it. Here it is:

    Define extension_list to {"jpg", "" JPG","jpeg","JPEG"}

    the value cbNames (Clipboard text) paragraphs

    Set csvNames to {}

    the tid value delimiters to point to the text of the AppleScript

    the text value of the AppleScript point delimiters ".»

    -now, make a list of names without extensions

    Repeat with the names in cbNames

    If the point 2 of the text names is extension_list then

    copy of text 1 of names at the end of csvNames

    end if

    end repeat

    Journal csvNames

    -now the filenames as comma CONCATENATE string separated

    the text value of the point delimiters AppleScript «»

    csvNames value cross-as text

    the text value of the point AppleScript delimiters tid

    There is an easier way. Open a TextEdit document and paste the list in. Place the cursor at the end of the first item and drag it to the start of the second.

    Press on + command + c to copy and then command + f to bring up find it. Press command + v (do not click in the first search field). Check the 'Replace' box, click in the field replace, and then type a comma and a space.

    Click 'All' and then 'done '.

  • Clean the list of names

    Hello

    When I want to assign a name to a face, pictures offer a list of names, some of them are obsolete (they are missing the names of my contacts, and no face is affected).
    How can I clean the list?

    Thank you

    How can I clean the list?

    You can't clean up the list.  The list of the names of the faces is stored in the photo library.

    You will get an empty face names list, if start you with a photo library empty, but it would be a bit drastic.

  • When you send an Email to someone not in my contact list "Check names" appears and says not in the contacts list, and are not sent.

    original title: sending Emails

    When you send an Email to someone not in my contact list "Check names" appears and says not in the contacts list, and are not sent.

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    If you use a POP3 Protocol account, please post on the forum network, e-mail and put online:

    http://social.answers.Microsoft.com/forums/en-us/vistanetworking/threads

    If you use Hotmail, please report it to Windows Live Solution Center, son of Hotmail:
    http://www.windowslivehelp.com/forums.aspx?ProductID=1 . for the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • InDesign - prevent breaks between the first and last names in a very long list of names?

    Is there a quick way to do?  Having the list 800 names in a text box and want to prevent the first & last names being split at the end of the line.  Other than choosing each name and apply the rule "no break" (a lot of time).  Any other suggestions?

    This is a more elegant solution:

    (?<=[\l\u]) (?="">

    Apply style: no pause

    It detects all single space between two letters

  • I also have a .csv file with the name of a jpeg file in a column and a text description of each jpeg format in a second column. Is it possible to automatically insert a jpeg (picture) and its corresponding text, each pair on one page, in an Indesign docum

    I also have a .csv file with the name of a jpeg file in a column and a text description of each jpeg format in a second column. Is it possible to automatically insert a jpeg (picture) and its corresponding text, each pair on one page, in an Indesign document?

    Read about to merge data in the help files.

  • List of names

    As a scripter no (I can change the existing scripts) I need help with this question: I'm looking for a javascript that allows me to add one or more titles (e.g., Defence Minister, Finance Minister) to a particular style of Pará (Minister + 30mm) at the cursor insertion point.

    What I need: a list of titles (I thought about 15 titles but t can be more or less) to select from (one or more) and this list should be placed at the cursor insertion point but in the order it was selected. It may be at this title 3 comes before Heading1 (issue of importance).

    We run on win7 with CC. Note: the script must be run twice, once on the Dutch side and the side once French.

    thnakx for any suggestion, Gert

    Hello

    I suggest using "palette" type of window and listBox instead of dropDownList (with scroll bar).

    In a code below doubleClick is to insert text and "remove the last" button deletes the last line in the text box.

    The "Finish" button closes a palette window

    #target indesign
    #targetengine mDialog
    var
      mTitles = ["TitleOne","TitleTwo","Title3","Title4","Title5","Title6","Title7","Title8", "Title9"],
      w = new Window ("palette","Title multiselector", undefined);
    
    w.alignChildren = "left";
    w.add("staticText", undefined, "Doubleclick to choose and add. \r'Delete' button removes last added", {align:"left",multiline: true,closeButton: false});
    
    var
      body = w.add("group"),
      mList = body.add("listbox",undefined,mTitles,{scrollbar: true}),
      mButt = body.add("group");
      mButt.orientation = "column";
      mButt.alignment = "bottom";
      mButt.add("button", undefined, "Delete last");
      mButt.add("button", undefined, "Finish");
    
      mList.preferredSize = [200,150];
    
      mList.onDoubleClick = function() {
         app.selection[0].contents = mList.selection.text + "\r";
         }
      mButt.children[1].onClick = function() {
         w.close();
         }
      mButt.children[0].onClick = function() {
         app.selection[0].parentStory.lines[-1].remove();
         }
      if (app.selection[0].constructor.name == "InsertionPoint") w.show();
      else {
         alert("Make a cursor active inside desired text box");  exit();
         }
    

    dropDownList could be used however choose element is easier in the listBox, in my opinion.

    Jarek

  • List of names of attribute in XSL

    Someone at - it a list of attribute names and what not for XSL? I am trying to encode some BI Publisher things... like the underscore and double points out, etc., but finds it difficult to find this information. If anyone has a list of all those names that could be extremely useful. Thank you.

    Take a look at this thread. There is a link cited in this thread that may be useful for you...

    Formatting in XMLP model

    Thank you
    Bipuser

  • List of names by sticking in a Multipage PDF control

    Hello

    I am a graphic designer in a University and create page 40 InDesign documents that are basically a certificate by page I can easily paste a list of names in. I'm trying to shift the responsibility to add the name of the student and printing of certificates to certain members of staff who do not InDesign, but use instead Acrobat.

    How can I set up a 40-page PDF model that has a field name of student on each page, but with different domain names so that each name is unique who gets entry. Also, is it possible to paste a list of names circulating in the 40 pages, as it does in InDesign or a method to fill the 40 pages with names without entering them one at a time?

    For the first part to get the 40 PDF document page, I'm better export a document from InDesign 40 pages in PDF format and then manually adjusting all fields if necessary or can I create 40 pages in Acrobat based on a model of a page. How can I create 40 pages on the same model of a page and create unique domain names in Acrobat?

    Thank you

    Mike

    OK, here's how you can set up the document.

    Page 1: A page with a single button and the unique multi-line text field. I'll assume a name text field of the "names".

    Page 2. A page that is the certificate with a text field for the name. This page should be turned into a model and then hide the model. I'll take a 'certificate' model name and a name of text field 'name '.

    For the button on page 1, the mouse upward script could be:

    Script mouse upwards to button field

    A list of the names of text field

    var sNames = getField("names").valueAsString;

    Split string to transport returns in an array of names of

    aNames var = sNames.split ("\r");

    Get a reference to the model

    model var = getTemplate ("certificate");

    Object to store model xObject

    oXO var;

    Loop in the table...

    for (var i = 0; i)< anames.length;="" i="" +="1)">

    .. .and reproduce the model name is not empty

    If (aNames [i]) {}

    Set the value of the name field on the hidden template

    getField("name").value = aNames [i];

    If {(oXO)

    Template.Spawn ({nPage: numPages, bRename: true, bOverlay: false, oXObject: oXO});

    } else {}

    oXO = template.spawn ({nPage: numPages, bRename: true, bOverlay: false});

    }

    }

    }

    It's really the script intended to demonstrate the basic principles, minimum. It could be improved in a number of ways, but it should help you get started. Post again if you get stuck. If you don't know how to do a page of a model and hide it, let us know which version of Acrobat you are using - the specific steps are different depending on the version.

  • How can I insert the insertion point in each first paragraph

    Hi all

    Please find the script, below this script will place the insertion point to the end of each paragraph, but I need to place the insertion point in the first letter of each paragraph. Help, please.

    var myDoc = app.documents.item (0)

    var myLib = app.libraries.item (0)

    app.findTextPreferences = null;

    app.changeTextPreferences = null;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = false;

    app.findTextPreferences.appliedParagraphStyle = "TX"

    app.findTextPreferences.findWhat = "" ^ p ""

    var myFinds = myDoc.findText)

    for (i = 0; i < myFinds.length; i ++)

    {

    var myIcon = myLib.assets.item ("Para").placeAsset(myFinds[i].insertionPoints[0]) [0]

    myIcon.appliedObjectStyle = myDoc.objectStyles.item ("Para No")

    }

    Thanks and greetings

    Nithin

    Hi Nithin,

    Try this,

    var doc = app.activeDocument,
        myLib=app.libraries.item(0),
        _paragraphs = doc.stories.everyItem().paragraphs.everyItem().getElements(), i;
    
    for(i =_paragraphs.length-1;i>=0;i--)
    {
            if(_paragraphs[i].appliedParagraphStyle.name == "TX")
            {
                    var myIcon=myLib.assets.item("Para").placeAsset(_paragraphs[i].insertionPoints[0])[0];
                    myIcon.appliedObjectStyle=doc.objectStyles.item("Para No")
                }
        }
    

    Kind regards

    Cognet

  • How to display a list of names by category

    I am creating a Setup for a web site of Airshow where volunteers can apply online and specify their favorite activity. The airport manager will then assign volunteers to an activity and we would like a list of people devoted to each activity, per day - as aerospace will run for 3 days. There are about 10 activities.

    I know I could create about 30 recordsets (10 for each day) and then you view the list of names for each activity in a table, but it seems to me that there should be a more elegant way. I think that I could create 3 sets of records, one for each day and then view a list sorted by name of volunteer activity. Basically, I would like to have something that looks like this for each day:

    Activity 1

    -Name 1

    -Name 2

    -appoint the 3

    Activity 2

    -name 4

    -quote 5

    Activity 3

    -name 6

    etc.

    I use DW CS4 with PHP/MySQL.

    Thanks a lot for any assistance before you begin creating recordsets from 30.

    <>
    initialize a variable to store a history of activities
    $previous = ' ';

    {? >}
              <>
    If ($row_rsVolunteersFriday ['assignedactivity']! = $previous)
    {echo "'." "} $row_rsVolunteersFriday ["assignedactivity"]. »
    ";
    echo $row_rsVolunteersFriday ["firstname"]. » ";
    echo $row_rsVolunteersFriday ["lastname"]. »
    ";
    keep the current name in the variable $previous
    $previous = $row_rsVolunteersFriday ["assignedactivity"];
    }

    on the other
    {echo $row_rsVolunteersFriday ["firstname"]. » ";
    echo $row_rsVolunteersFriday ["lastname"]. »
    ";
    }
    ?>

  • Is there a way to generate a list of names of files in an album?

    I want to generate a list of the contents in an album (photos in the album are spread over various issues). I need the full path names, such as:

    C:\ThisFolder\Thatpic.jpg

    C:\ThatFolder\Thispic.jpg

    etc.

    Is there a way to do it or should I go through the tedious process of manually check the location of the file for each photo in the album?

    function() {return A.apply (null, [this] .concat ($A (arguments)))}

    Is the "file_albums.csv" file... contain data that lookes like it (give a full path to the file name):

    Yes.

    The file "file.csv" includes a column of Album name for each file?

    He did a 'Albums' column, giving the list of albums that each file is current.  And it has a 'Positions of the Album' column, giving to the corresponding locations of the file to each of these albums.

    I have attached sample output for a 4-photo catalog with two albums.

  • How to get the name of the instance of button to display in the dynamic text box

    first of all, thank God for you people. Laughing out loud.

    Here is my scenario, I am the designer of consumate and learning coding by leaps and bounds, today its been a lot of stumbling blocks however.

    I have a site I designed that contains buttons that navigate the user at various points on the timeline using image tags. When they arrive at the appropriate image tag, they are presented with a movieclip containing two layers. The bottom layer is a card, and the top layer is a collection of buttons printer having a component tooltip on them showing you the information on detailed mouse printer on and takes you to the Remote UI printer on release. each button has a name of unique queue for the printer appropriate under its name of the instance (e.g. itm100_btn). Here's the jist... I want to be able to place a dynamic text box near the printer and using action script button it display printer queue name automatically simply based on the button, targeting, or even place the dynamic txt area inside the printer button mc. See, on some pages, there are like 24 printers... I'm AFRAID to have to put all these names in manually because there are total 150 printers! OUCH...

    Oh it is AS2.0 with Flash cs4

    In short... God bless you people... for the love of God someone help me? Laughing out loud.

    Thank you so much peoples!

    "I make things look purdy, but do not know why the sky is blue".

    to create a movieclip button:

    create a (insert/new symbol/movieclip) movieclip and attach a stop() to its first image and etiquette 'up '.  create any graphic you want for the up state button movieclip.  create a 'more' and, if necessary, a "low" setting

    When you place this button movieclip on stage give an instance name (for example, printer1) and use:

    {Printer1.onRollOver = Function ()}

    this.gotoAndStop ("over");

    }

    {Printer1.onRollOut = Printer1.onDragOut = Function ()}

    this.gotoAndStop ("up");

    }

    {Printer1.onPress = Function ()}

    this.gotoAndStop ("down");

    }

    and add your onRelease to do all that.

    If you also wanted to add a textfield that displays the instance name of the button when the button is postponed, place a textfield on the framework of the "over" and give it a name instance (say tf) and associated to the MovieClip "over" frame that uses:

    TF. Text = This._name;

  • Just updated to Sierra and updated Pages at the same time. Now when I try to select a line of text I find myself with an insertion point where I stopped by selecting

    Today, I updated for Sierra and updated to the latest version of the Pages. Now I find that I am more able to select a line of text. When I try to do, I find myself with an insertion point where I stopped by selecting, but nothing is selected. This is a bug in the new version of pages or get my wrong settings?

    You use a Wacom tablet by chance?

    Solution: Press the shift key, just before stop selection. And Yes, that sounds like trouble in the Sierra.

Maybe you are looking for

  • How to hide the brackets and tuplet numbers?

    Hi all. Is available to hide completely the support numbers?  When I click on the support of the Tuplet window opens. I click on support to hide and hide the numbers. and I can see on the photo right tuplet with nothing. But after clicking OK, I stil

  • Is it possible to lock the files against concurrent access on Windows Server?

    Basically, I'm looking for a way to reproduce the functionality of Microsoft Office for concurrency (notification that another user is currently using the file and the ability to open a read only copy) for another type of file. Is there a setting in

  • Compaq presario c714 nr

    I want to the hard drive of 320 GB installation of ti in my laptop and install additional 1 GB of ddr2 memory Comaq presario C714NR will support this? I have windows vista 32 bit operating system I want to switch to windows7 My notebook sl no is {del

  • Full updates from windows computer

    I reset my computer to original settings after I had filled the hard drives. Since the reset of all this I ran is updates of windows and drives are 80% full just with the Windows updates. The system is Vista, and readers are 80 GB each. My question i

  • Task Manager did not start when I try to do, says it disabled by the administrator.

    on the adminaster profile on my computer Task Manager did not start when I try to make said it disabled by the adminasterhow that correct?