written with a specific paragraph style can I transfer data

In a document in each block of text, there are short texts written in the paragraph style

the data in this paragraph style can transfer into a new text frame

I'm doing this process with table of contents

Is this possible with a script

If possible specified in the data (1. and 7.), we can transfer the characters with grep

image 021.JPG

Try this,

app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = ".+";
app.findGrepPreferences.appliedParagraphStyle = "test"; //mention your paragraph style name
var mySearch = app.activeDocument.findGrep();
myFrame = myDoc.textFrames.add ({geometricBounds:[".5in",".5in","5.5in","5.5in"]});//textframe will created in the first page of your InDesign document
myFrame.insertionPoints[-1].contents = "CONTENTS\r";
for(i=0; i

Vandy

Tags: InDesign

Similar Questions

  • Can I transfer data between a new MacBook (USB - C) to my iPad Pro?

    I have an iPad Pro.  I also have a new MacBook on command.  The new MacBook uses USB - C to 'universal' and data transfer.  Can I transfer data to/from my iPad Pro with a lightning bolt - cable USB - C?

    Thank you

    What kind of data you want to transfer?

    Files you can transfer with iCloud, Dropbox, box or Google Drive.

    You can transfer from your iPad to MacBook Pro by plugging the photos. They can be imported to the Photos for Mac.

  • Can I transfer data from my Tungsten E2 to a HP Tablet?

    Can I transfer data from my Tungsten E2 to a HP Tablet?

    millershrink wrote:

    Hi WyreNut, thanks a lot for your answer to my problem.  I bought DbFixIt but am not sure how to install it on my machine, then how difficult my callender.

    Copy the program on a SD card, put the card in the E2 and run the program.

    WyreNut

  • Problems with character and paragraph styles!

    Hello

    I have a problem to inDesign that I don't normally.

    (I work on a macbook pro)

    I'm adding a text in a template document. I have two character styles and the paragraphstyles.

    This is how I work:

    I place my text I have the text box. (placing a word document) First I get all of the italicized words in the text placed and they give a character style: italic. Then, I want to give a definition to the whole text. It is a 'regular' from the same font of type version. When I do that, all of the text get this pink-ish marking meens that the text has not been completely changed the style AND a little plus (+) next to the paragraph style accurs. Normally I just press alternative (alt) as I click the paragraph style and thus cancels the problem. BUT when I do that now all the text becomes italic - witch is not in the selected paragraph style. Why?

    I'm really lost how can I solve this problem - I don't want to create a new document because it is a model that I use each month for a magazine and normally it works.

    Would be - this code in the word document? Or what?

    Thank you!

    best,

    Sara

    Create your paragraph style

    Paste your text

    Run the Script PrepText

    http://InDesignSecrets.com/free-scripts-help-fix-Word-formatting.php

    This will apply/create character styles etc. italic, bold in all the text that you pasted in this text.

    Select all of your text - and click the clear button the replacements at the bottom of the paragraph Style Panel.

    Simple and fast

  • How do I know where a specific paragraph style is applied?

    Maybe is for the forum script, but I want to find where in my document is applied to a paragraph Style or a tank.

    Clues?

    Thank you!

    You can also use find/replace to browse the file and find all instances of any style.

  • [FM11] Print the link to the Image and the markers of Index with the specific character Style

    Hello

    I'm new with scripts for Framemaker. I want to export FM docs to RTF, so I can import into InDesign. For placed images I want to insert a line of text that shows the link to the image (reference). In addition, I want to show the Index markers at the insertion location of brand with a different character Style. Can someone help me with this?

    Best regards, Sjoerd

    Sjoerd Hello,

    A note on your method to retrieve all related graphics: this will also deal with graphics that could be linked in master pages and reference. Just to be safe against unwanted side effects, you should limit your list of charts to those in the main flow of your document.

    On the tLoc: looking for really the cornerstone of the anchored frame that contains the chart. It's a little confusing that FM called the anchored frame and any graph of the same name. Even if you add a framework anchored in the text to an equation or a text box in your document, the anchored frame will appear in the list of the chart in the document. If you have a framework anchored containing an imported graphic file, you have a list of graphic objects inside the anchored frame, who himself appears in the list of graphical objects in the document.

    This function should do what you want to do:

    function ListGraphics (doc)

    {

    var had is doc. FirstGraphicInDoc;

    While (had. {ObjectValid()})

    If (aframe.constructor.name == "Eu") {}

    image = had. FirstGraphicInFrame;

    If (graphic.type is Constants.FO_Inset)

    doc. AddText (had. TextLoc, graphic. InsetFile);

    }

    had had =. NextGraphicInDoc;

    }

    }

    I suppose you also want to remove the anchored frames (imported image files) the text. This can be done in the same routine, but you first have to catch the next element in the linked list graphics in the doc before deleting the current. If you do not delete the first and end up with an object not valid. The method simpler and more secure to do is to create an array of items to delete. After the while loop, you delete these objects. Get the complete code looks like this:

    function ListGraphics (doc)

    {

    var toDelete = [];

    var had is doc. FirstGraphicInDoc;

    While (had. {ObjectValid()})

    If (aframe.constructor.name == "Eu") {}

    image = had. FirstGraphicInFrame;

    If (graphic.type == Constants.FO_Inset) {}

    doc. AddText (had. TextLoc, graphic. InsetFile);

    toDelete.push (had);

    }

    }

    had had =. NextGraphicInDoc;

    }

    for (i = 0; i< todelete.length;="" i++="" )="">

    toDelete [i]. Delete();

    }

    }

    This works on a small test file created. If you are in need of more support, do not hesitate to contact me: jang to jang dot nl

  • A paragraph style can be applied to paragraphs replacing?

    Is it possible to apply a paragraph style to all paragraphs in a text block?  I tried to do over the years, but have not thought about it.  I try to check the appearance of the tractor paper green-Bar - memory that seems like decades ago.

    My current project is a directory of the long staff which contains several pieces of data in lines (each line is a paragraph).  I know how to apply a paragraph style that applies at a glance 'green bar' to a paragraph.  My goal now is to understand how to apply it to other paragraphs or lines in my document.

    I ended up apply styles manually in a sort of mind-numbing trance of repeated key strokes.  Certainly not the right answer, but the work is done and my boss is happy.

    I really like to be in this state of trance. Sick, I know. Unfortunately, I discovered that I could select a bunch of text with the text tool, and then right-click on a style and choose "Apply Style, then next Style." As a result, I found myself with fewer opportunities to make 10-key style-application meditation.

  • bought 2 products with different emails! How can I transfer my product so they are under the same account?

    Hello!

    Accidentally, I bought the plan of photography on an email and InDesign on another email...

    How can I transfer the purchase on an account?

    Help!

    Please refer to the Contact Customer Service

    Thank you

    Varun

  • Can I transfer data from Windows 7 to Vista

    I have 3 computers vista I want to upgrade I need another computer I can transfer data from Windows 7 to Vista, I'm more concerned with Quicken

    You cannot transfer programs.

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • Convert numbering to text: how to do that in a specific paragraph style?

    There are several styles of numbered paragraphs, but this conversion is needed in a single style; and select the entire document will change other styles that should keep the auto-numbering.

    Thank you.

    AHA! I am cool!

    Here are 3 screenshots!

  • Two Microsoft Accounts - can I transfer data or merge accounts (and then remove one of them)?

    Bought Compaq laptop windows 8 months... There is setup with the microsoft account.  Then created another account to microsoft and I don't need another, but both are run separately on my laptop.  And data, skydrive, e-mail are separated by Microsoft account.  Don't need thre original Microsoft account by I want all data under this one and access the skydrive created in one.

    Hello

    It's something to do with Microsoft and the answer is No, you cannot merge Mocrosoft accounts:

    http://social.Microsoft.com/forums/en-us/19893900-4192-4153-8C18-210161b7a2e1/merge-accounts

    and:

    "Please note that we do not have a feature of the"fusion"of accounts. Reading your post, I realized that you want to just create your outlook account as an alias to your account to edu for a shorter address. Unfortunately, you can just create aliases that are not existing or registered in the system. You can delete your outlook account, but you will have to wait a year to make it available for use (as an alias) once you have deleted the account. "

    Source: http://answers.Microsoft.com/en-us/outlook_com/Forum/oaccount-omyinfo/i-need-to-merge-two-Microsoft-accounts-one-is/399be630-f0ee-43b3-8132-c08c68fce41e?msgId=66627bdb-2817-4ED5-BC60-d02b7df2dd53

    Kind regards.

  • How can I transfer data from a dead laptop

    I have a laptop medion dead that took Vista. How can I access the data and transfer it on an Asus running windows 7 64 bit

    If the Medion no will power, you can test the drive with the disk manufacturer utility.

    If the Medion does not supply power to the top, the only way is to remove the disc, put it in an envelope and see if it works.

    If it's an old record, you will probably need a powered external envelope. Older readers need too to work a single USB connection.

  • How can I transfer data without HotSync?

    I've just updated to Vista and my Zire 31 don't HotSync with Palm Desktop.  How do I get my contacts and memos on my new computer?  There must be some files that I can copy disk and paste in the new software, right?

    Hello and thank you for using the Palm Help Forums!

    Unfortunately Vista software that Palm provides (Palm Desktop version 6.2) saves files differently from previous versions. Copy of files and pasting will not help. However, there is another thing you can do.

    You can do what is called and export / import your data. To do this in Palm Desktop, highlight all records of contacts and then click on "file" and then "export". I recommend placing this file somewhere you won't forget (i.e. desktop computer). Do the same for the calendar, and other PIM data. You can then take these exported files and put them on a disk or portable drive (USB key, Flash DRIVE, etc.).

    Once you have the disc (or other) inserted into your new PC. Move the files to your desktop or somewhere where you'll remember them. Open Palm Desktop software, click on 'File' then click 'import '. Locate the files that you exported and double click it. This should restore your data to your new PC.

    I hope this helps.

    -Pat

    Message is about: Treo 800w (Sprint)

  • I have a new computer with windows 8.1 and need to transfer data from lightroom 4 on my old computer

    How to make the transfer to a new computer with a new version of lightroom? I tried to use windows simple transfer all data and found that it has failed to transfer from vista to windows 8.1. Apparently, it worked in windows 8, but not 8.1. No experience? I would like to make the backup of the catalog that I can put on an external hard drive and the two computers are on a network.

    Try http://members.lightroomqueen.com/index.php?/Knowledgebase/Article/View/1165/187/how-do-i-move-my-catalog-photos-and-other-lightroom-files-to-a-new-computer

  • How can I transfer data from the database in a variable (or array)?

    I made my request according to the example (http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/). Everything works fine. I changed a single function to query the database - add two parameters and get the value from the table to a string format. A test operation shows that everything is ok. If I want to display this value in the text box, I just do drag and drop off service to this element in Design view

    (< s:TextArea = "153" x = "435" id = "nameText" text = "{getDataMeanResult.lastResult [0] .name}" width = "296" height = "89" / > ").

    Also, it works fine, just a warning and encouraged to use ArrayCollection.getItemAt ().

    Now, I want to send the value to a variable or an array, but in both cases, I get an error: TypeError: Error #1010: a term is undefined and has no property..

    How can I pass a value to the database in a variable? Thank you.

    public var nameTemp:String;

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [0], dir_id);

    nameTemp = getDataMeanResult.lastResult [0] .name;

    public var nameArray:Array = new Array();

    for (var i: uint = o; i < 3; i ++) {}

    getDataMeanResult.token = authors.getDataMean (arrayOfNumber [i], dir_id);

    NomTableau [i] = getDataMeanResult.lastResult [0] .name;

    }

    And how do I use syntax highlighting in this forum?

    Astraport2012 wrote:

    Thank you.

    Then this simple question: How can I place a mySQL database data in a variable using the wizards FB4 (connect with PHP)?

    If you can show examples please.

    I couldn't find examples. Send data to a field text or DataGrid - much, but no variable.

    the use of assistants? not sure... it is generally a bad idea to rely on them, because they will never fully what you want anyway. I would recommend learning abit of PHP and manage by yourself, because it allows you to manage everything exactly as you wish.

    small example of communicating with a database using PHP + FB4:

    mount a database

    write you a small script that will access your database, get a value, for example:

    ";
    
        while($row = mysql_fetch_array($result))
        {
            if($row['messageID'] == "3")
            {
                print $row['message'];
            }
        }
        print "\n";
    ?>
    

    This will get the message with ID '3 '.

    make an HTTPService in FB4 app to call this Script, as follows:

    
    
        
            
    
            
        
    
        
            
        
        
    
    
    

    and the value must be picked up by the Script and properly stored in a variable

Maybe you are looking for

  • 13D-4100cto: migration of oem software

    I had on my old HP dv4 OEM of Cyberlink media suite 10.  I just bought a x 360 Sepectre and tried to install Cyberlink and he couldn't because it can be installed on a HP computer.  Why he thinks that my HP is not an HP computer?  What can I do to in

  • Favorites widget

    Why are there two sets of bookmarks on the widgets tab? Is it possible to delete bookmarks that accompanies the 7 Slate on the widgets tab (e.g. New York Times, Yahoo, etc.)?

  • iOS not downloaded songs from musicals

    Can someone tell me why iOS ever-present music (and play!) music I've NOT downloaded on my iPhone in my list of songs? These are songs that I have purchased through iTunes, this isn't music streaming service Apple. In the first picture, the music wil

  • DM1 3040 ca: HP DM1 3040 ca Unknown Device driver missing after 10 Windows Installer ACPI\HPQ0004\2 &amp; DABA3FF &amp; 0

    Hello I used Windows 7 64 bit Home Premium edition on my laptop 3040 CA DM1. I have recently installed Windows 10 64-bit Home Premium edition. Now, in Device Manager, under other devices, I show this unknown device is missing a driver.    Under detai

  • Cannot open disk Defragmentar. Have never had this problem before.

    I can't open Disk Defragmenter. The computer is 6 years old and have never had this problem before.  I'm afraid that this is something that I've made or changed everything trying to "clean up" the computer.  What can I do so that it can start working