How can I create a header running?

Hello.

I have the following script:

textVarR is insPnts [-1].textVariableInstances.add (LocationOptions.AFTER, insPnts [-1]);.

textVarR.associatedTextVariable = myDocument.textVariables.VariableTypes.MATCH_PARAGRAPH_STYLE_TYPE (psLkHeading); running header

I'm trying to use it to create a running header that displays a paragrap style in the header. The script does not work. Am I completely off base? If my different code?

Any help is greatly appreciated.

Hi Schmaltzkopf

My answer here How to ID ME (Middle East) to display right-to-left strings? you should be able to understand this.

Because you have a block of text referred to as "SchmaltzkopfsTextFrame" and you want to insert the variable in the text to the insertion of the 3rd point, you must do the following 2 lines.

var SchmaltzkopfsTextVar = SchmaltzkopfsTextFrame.insertionPoints [2].textVariableInstances.add (LocationOptions.AFTER, SchmaltzkopfsTextFrame.insertionPoints [2]);

SchmaltzkopfsTextVar.associatedTextVariable = myVar;

In short, there are 3 or 4 steps by adding a text variable.

(1) create the var-online myVar = doc.textVariables.add ();

(2) give its properties (this and the CA step above combined)-online myVar.variableType = VariableTypes.MATCH_PARAGRAPH_STYLE_TYPE; // etc.

(3) insert an instance of text variable where you want-online var SchmaltzkopfsTextVar = SchmaltzkopfsTextFrame.insertionPoints [2].textVariableInstances.add (LocationOptions.AFTER, SchmaltzkopfsTextFrame.insertionPoints [2]);

(4) choose what variable type text that you want to use. => SchmaltzkopfsTextVar.associatedTextVariable = myVar;

I have it?

Trevor

Tags: InDesign

Similar Questions

  • How can I create another button run in vi?

    Is it possible to have a separate in my own vi execution button? I tried to disable some controls in my vi the vi runs, but when I stop running, the controls were not in the same State (always off). This is why I would like to create a housing structure to set the Boolean type of the run button. If it is stopped, my controls are enabled again.

    I hesitate to provide this link, because it is NOT the solution to your problem. But I can't resist simply because of the novelty of it. Christian post this earlier. It shows how to run a VI using a X-Control. Pay attention to its disclaimer clause - even if something is possible does not mean that it is a good idea

    Looking at your original post, it looks like the problem you are trying to overcome is that you have disabled certain controls and you want what they reactivated the next time that you run the VI. The answer is simple - turn them back on when the program starts. This is an example of how you can activate all the controls.

  • How can I create a trigger e-mail messages sets a phone when Gets an email from particulry?

    Hi team, support
    Customer email thunderbird whit, how can I create a trigger e-mail messages rule a phone dial when comes a word of the body particularly E-mail?

    Kind regards
    Alessandro.

    I don't think you can do this with ordinary Thunderbird. But this add-on

    https://addons.Mozilla.org/en-us/Thunderbird/addon/FiltaQuilla/

    allows you to run javascript or IIRC, launch an external program when a given filter condition is met. So this does not exactly provide an answer to your question, but allows a possible solution. '

  • How can I create a pause in my inspection so that I can change a setting on my DEGREE, and then resume with the rest of the inspection?

    New to Labview and NI Vision in general here.

    How can I create a pause in my inspection so that I can change a setting on my DEGREE, and then resume testing?

    I want my inspection to execute algorithms on the acquisitions of two different images, where the break to change the settings of my DUT.  I thought that the breakpoint was working well when I'm in the configuration interface and I run the State, but it seems that when I run the inspection he jumps on the breakpoint and continues on the next stage of the inspection immediately.

    Are you running Vision Builder AI on Windows or on a remote target? If you have a remote target, which?

    On Windows, you can use a step of user input in the last tab of the Vision Builder AI tool palette.

    It will display a dialog box that is paused the inspection until you click on a button.

  • How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit

    Hello

    How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit?

    I'm transferring a 32-bit application on 64-bit.  In visual Studio, I added the 64-bit project configuration.  He compiled the source very well but the reports link errors:

    error LNK2019: unresolved external symbol DAQmxReadAnalogF64 referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateAIVoltageChan referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxReadDigitalLines referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDIChan referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxWriteDigitalLines referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDOChan referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj

    These, of course, are the functions OR that I use.  The NIDAQmx.lib has been added to the Input of the link property.

    Any help would be appreciated.

    Thank you

    -Neil shore

    Hi LaserShore,

    Think you that you added the 64-bit platform settings target according to this page? : http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitcore/

    Already running 32-bit application? Have you changed references to the 64-bit version?

    You use Measurement Studio? If so some features are not supported with 64 bit.

    Also when you say that you have added the NIDAQmx.lib, did you follow this KB:http://digital.ni.com/public.nsf/allkb/38F67B28D995C6958625706E000C580C

  • How can I create a junk mail folder so I can watch the outlook express emails is filter

    Laina

    I have run outlook express for my e-mail but don't have a junk folder; That's why I don't get e-mails I want; How can I create a junk mail folder so I can watch the e-mail program's filter? Thank you!

    OE downloads the messages from the server and has no capability of blocking incipient unless you set rules for such.  So if you get any messages, they are likely in junk e-mail on the server (that OE does not have access to) and you must go to Webmail to access the server, then you can go to the Junk folder and find messages that you do not receive.  OE has no control over the filtering server - you can adjust on the server via webmail.

    Steve

  • How can I create a list of contacts on Outlook Express. I found the answer in help, but cannot locate elements, on what he asked me to click

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

    Ideas:
    How can I create a group or a list of contacts on Outlook Express.  I found the answer in help, but cannot locate elements, on what he asked me to click

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

    If you're running Vista, you have Windows Mail, not Outlook Express. These instructions for adjustment of these two programs.

    To create a group of contacts:

    You can create a single group name (or alias) to use when sending a message to several contacts at the same time. Just create a group name and add individual contacts to the group. Then just type the name of the group in the box for when you send mail.

    1. in the address book, select the folder in which you want to create a group. Click New in the toolbar, and then click New Group.
    2. the Properties dialog box opens. In the group name box, type the name of the group.
    3. There are several ways to add people to the Group:
    a. to add a person from your address book list, click Select members, and then click a name in the address book list.
    (b) to add a person directly to the group without adding the name to your address book, type the person's name and e-mail address at the bottom of the Properties dialog box and then click Add.
    to add a person to both the Group and your address book, click New Contact and enter the appropriate information.
    (d) to use a directory service, click Select members, and then click search. Select a directory service in the drop-down list at the end of the text box. After finding and selecting an address, it is automatically added to your address book.
    4. Repeat for each addition until your group is defined.

    Note

    a. to view a list of your groups separately from the list of address book in the address book on the view menu, make sure that folders and groups is selected.
     
    b. you can create multiple groups, and contacts can belong to several groups.

    If you want to send to a group without addresses are displayed for each recipient, open the address book and make a new entry. Enter the name of the group in the area of the display, but use your address. (Some Internet service providers require a legitimate address in the line to and recipients will know it's from the Group).

    Click on the button to. Enter the name of the group using your address. Enter the group in the BCC field.

    Bruce Hagen MS - MVP [Mail]

  • How can I create a multi page PDF from a multi .tif file?  On the creation of a file .pdf from a file multiple .tif, the .tif file is converted to a single page (always the first page of the .tif file) .pdf.  The rest of the document is cut off. The .tif

    How can I create a multi page PDF from a multi .tif file?  On the creation of a file .pdf from a file multiple .tif, the .tif file is converted to a single page (always the first page of the .tif file) .pdf.  The rest of the document is cut off. The .tif file comes from a document by using the fax & Scan app scanner in Windows 10.  I am running Adobe Acrobat Reader DC, which I run with my subscription 'Adobe PDF package, monthly'.  It worked fine until about a month.  I've since upgraded to Windows 10 and Acrobat Reader DC.   I would be very grateful for any help. Eoghainn

    Hello

    This problem has been reported as a bug. Our team of engineers working on this priority issue.

    Kind regards
    Nicos

  • How can I create a group through Outlook without the application Outlook email?

    How can I create a group by using Outlook without an application Outlook email?

    Sigmalambda wrote:

    How can I create a group by using Outlook without an application Outlook email?

    It is difficult to understand what you're trying to do. You can create a group and send an email to the group in any mail client. The recipients can use any e-mail provider or an e-mail client to receive e-mail. Please explain in more detail what you are trying to accomplish.

  • How can I create a new folder in Thunderbird

    How can I create a new folder in Thunderbird

    Right-click on the parent folder, a new folder option appears in the menu

  • How can I create a group in my address book?

    I am looking at the help page, and he has "contacts" in the list, but no link to something useful.

    How can I create a group? I want to send something to a group of people, but I don't want them to see all the other people who are part of the group.

    _ http://KB.mozillazine.org/Thunderbird: _FAQs_:_Create_Mailing_List

  • How can I create a separate address book? I'm not on a mailing list but an address book where addresses are not mixed with my usual address b

    How can I create a separate address book? I'm not on a mailing list but an address book where addresses are not mixed with my address book regularly. I already have three created for me by Thunderbird address books. Add all new addresses to one of those, I'm not afraid to remove the other address books, because some of their addresses are not repeated in my address book "main". So if I delete all the names in one of the existing books, I need to create a blank book that will not mix the addresses with those of an another address book. HOW CAN I CREATE AN ADDRESS BOOK EMPTY? I want to be able to create multiple mailing LISTS using the addresses in this new book, I will eventually have an address book special with a variety of mailing lists, that I can use as I want to.

    In the address book, file | New | Address book.

    No menu showing "file"? F10 or ALT.

  • How can I get Firefox to run KIOSK mode on Android phone? I'm trying to use rKiosk, but failed. I am running 10.0.3 on the phone.

    How can I get Firefox to run KIOSK mode on Android phone? I'm trying to use rKiosk, but failed. I am running 10.0.3 on the phone.

    rKiosk is not designed for mobile Firefox. You will need to do your own hacking to get what you want.

  • NB100 - How can I create a recovery on a USB CD?

    Hi friends,

    I recently got a NB100 with XP home. The operating system has been reinstalled and did not have any CD of the operating system.

    Given that I have not an external CD drive how can I create a recovery on a USB CD. I would like to see the function of USB USB just like the CD in case something really goes wrong.

    Can some help me to find a tutorial to do this?

    Thanks for your help.

    SAJ.

    Great! Thanks for sharing this with us!

  • I have problems of space on my iPhone 6. I have only 21 photos and 2 videos on my phone. However, I am on a discussion group on whatsapp. How can I create more space for my phone? I also have very few applications on my phone.

    I have problems of space on my iPhone 6, I have only 21 photos and 2 videos on my phone. However, I am part of a chart group on whatsapp. The problem now is that my storage space is almost full. How can I create more space for photos and everything?

    You cannot create more space for everything.  All you can do is remove apps, photos and especially videos to make room for other pictures and videos.

Maybe you are looking for

  • Re: TOSHIBA recovery disk burning process hangs

    Hey everybody! I wanted to create a Recoverydisk with the tool of Toshiba. The burning process hangs at 25% and I don't know why... Can someone help me or tell me, how can I burn the disc on another way?

  • Satellite A300D-205 - Fn buttons do not work with Win XP

    Hi all! I installed windows XP for my toshiba Satellite A300D-205, I found compatible drivers and all devices work properly except multimedia functions Fn and sensor-buttons next to the main keyboard! I tried to install Toshiba Value Package added, b

  • Soft shock hit cover of the Satellite L855-12N

    Hello Two days ago, I bought a Satellite L855-12n (ice blue). He kept poking my skin like light electric shocks when I hit the bottom of the left and right of the touchpad corners. It happened only when it is connected and I'm barefoot, which led me

  • dv9740us 17 "screen of flag: install vista to windows pro 8.1

    Does anyone has installed windows pro 8.1 on this machine.  I did a test of compatibility of windows 7 and has shown is not a problem.  Some drivers will need to be updated, but other that that, it should be ok.  I'm a little hestant of departure bec

  • Epson CX5800F printer does not print true colors just green

    My Epson CX5800F printer only prints the pictures which are all green. I have all the colors in the printer, but do not receive a real color in an image.