Why the tableStyle script not working, when the other two are

Hi, please can you help and thank you in advance. I'm puzzled. As you can see, I am new to scripting - a glance through the 15 pages on the forum showed me how the news - and I want a workflow in which I put the styles and then use in this case, "appliedTableStyle" to connect to the appropriate table.
My question is why this style of table script not work and appear in the palette? (when the two scripts below paragraphs and cells are) I tried the doc.tableStyles.add and the doc.tableStyle.add. Please show me where I'm wrong, or a better alternative. Thank you.
docTest = app.documents.add)
table_styles (docTest)
cell_styles (docTest)
para_styles (docTest)
function table_styles (doc)
{
with (doc)
{
//try {doc.tableStyles.add
try {doc.tableStyle.add
({
name: "tableGLOBAL."
bodyRegionCellStyle: doc.cellStyles.item ('cellGLOBAL'),
headerRegionSameAsBodyRegion: true,
bodyRowCount: 10.
headerRowCount: 1.
})
}
catch {} (_)
}
}
function cell_styles (doc)
{
with (doc)
{
try {doc.cellStyles.add
({
name: "cellGLOBAL."
appliedParagraphStyle: doc.paragraphStyles.item ('paraBodyGLOBAL'),
topInset: 0,
leftInset: 0,
bottomInset: 0,
rightInset: 0,
verticalJustification: VerticalJustification.CENTER_ALIGN,
firstBaselineOffset: FirstBaseline.LEADING_OFFSET,.
  })
}
  catch (_){}
}
}
function para_styles (doc)
{
with (doc)
{
try {doc.paragraphStyles.add
({
name: "paraBodyGLOBAL."
appliedFont: "Arial,"
firstLineIndent: 0,
justification: Justification.LEFT_JUSTIFIED,.
pointSize: "6 pt."
main: '8 '.
})
}
catch {} (_)
}
}

Your trial... construction of capture hides the real error - during the development of a script, you can not use.

When I removed it, ID has reported only with the message quite without value

"Error string: this attribute is not defined for the table styles.

Source: ts = doc.tableStyles.add({")

without saying what attribute... Try one by one, I found this particular result: you cannot initialize 'headerRegionSameAsBodyRegion '... Probably because you cannot initialize without a header first, and you don't "do" again because you always initialize the entire style.

But this workaround works:

ts = doc.tableStyles.add({
 name: 'tableGLOBAL'
 , bodyRegionCellStyle: doc.cellStyles.item( 'cellGLOBAL' )
 , headerRowCount: 1
 , bodyRowCount: 10
});
ts.headerRegionSameAsBodyRegion = true;

Tags: InDesign

Similar Questions

  • Why my scars do not work when I have the correct graphics, everything is gray

    Hey everyone I'm new to after effects and it does not work all is grey on I can not start a new project

    If the menus are dimmed so you probably started the rendering engine and not the soft:

    A Mac Finder:

    On a Windows engine, the extension will be exe.

  • Why my password does not work when you install AFP?

    I try to install the new Adobe Flash Player and my password does not work, but I can sign my Adobe account. I have reset my password and it still works for the account.

    It isn't... Adobe password, but your operating system password to install the software.

  • Why Media Player does not work when my webcam is installed?

    Everything has been working great until this evening. When I try to play a song, I get the error message that windows media player has encountered an error - relatives or wbhelp - and when you select web help, I was directed to the My Device Manager, audio video and game controller. Nothing was reported in some way. I uninstalled the camera just for the sake of curiosity, and Media Player started working properly again.
    My camera is Logitech officials Cam Pro software Quick Cam 10. This is the first issue I've had with her. I tried to reinstall and UN-installing several times, but it's the same continued. No Windows Help Update is

    Since I solved my problems of camera by re - install Windows 7. I didn't know what else to do, but it worked in the end. My camera is now installed and working properly.
    The problem I had was caused by a Windows Update... the cam comes with driver disk, but Windows Update offered an update to the "Logicool Quick Cam. I highly recommend that any user of the QUICK CAM PRO 5000 should NOT download the update for Logicool Quick Cam Pro 5000 driver. It was perhaps intended to solve the problems with the original driver, but caused a great diservice to me.
    Sorry that I don't have a less radical solution to offer besides a re - install cost of Win 7. I tried to uninstall the camera and re - install, but who has never worked. Maybe you could try to restore to a point before you tried to install the cam first. I hope this helps.

  • New Mac: Why CC and Photoshop Elements do not work when Lightroom and Reader are very good

    Last week, I changed computers (an old Mac to swap for a 13 - in MacBook Pro OSX Yosemite 10.10.3 running retina. I copied all my data on the new machine using Migration Wizard.

    All the programs work very well (including my copy of Lightroom 3 and XI player). But my CC and Photoshop Elements 10 are not. I tried to uninstall both, but every time I try to reinstall PE10 of its disk or download it stops just almost at the end I have so I "initiation failed" appears, accompanied by a request to download the app "Support Advisor" defunct!

    I can't download Adobe Application Manager or the application of Office CC is - for the first, I get a "Logon failure" message, with the app "Download Support Advisor" "message again! For the latter I get a message saying "Adobe Creative Cloud is necessary to solve this problem - but it is missing or damaged." Then I get a message and a link to download Creative Cloud. When I downloaded it and I click on the Setup... it works a little bit and then I get the message again: "Adobe Creative Cloud is necessary to solve this problem - but it is missing or damaged." And I get a prompt and link to download the app CC guess what will happen? And it continues. And so forth, in a tedious circle.

    It's incredibly annoying and frustrating that I have work to do! Someone has ideas of what's going on?

    See you soon

    K

    do not migrate to install adobe programs.

    You must uninstall and clean up everything that you did, use the CC cleaning tool to resolve installation problems. CC, CS3 - CS6

    then dl the application of cc to your new desktop computer and use it to install your programs cc adobe Download Adobe Creative Cloud apps | CC free trial Adobe

    If you have adobe without subscription programs, use the installation for them files:

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • Why my css does not work when I publish my Web site?

    When I published my site my css nor my photos appear what I am doing wrong?

    With the exception of a subfolder called contactus, nothing in the directory root. For the site of the service, you must have at least one file named index.html or similar in the root directory.

    Take a look at how you have defined the remote site in Site-> Manage Sites.

  • my memory card for my digital camera does not work when I put it in the memory card slot

    I use vista and a emachine El 1200-07w. It worked last week I just stuck the memory card and a menu pops up saying what are the options I could do (for example, open the folder, etc.) now, when I put the memory card in nothing happens, but if the memory card is in when the computer is turned on, then he will say new hardware detected but it can't find a driver for it. Why is it does not work now, but was last week and how the hell can solve this problem. I have no software for my digital camera, I always just went out the memory card it stuck in the memory card slot and it was very good. It's just a less expensive memory card (Lexar) I have a 2 GB and 128 MB and will no longer work. Thanks for any help!

    Hi, I hope you can follow this. Remove the storage card from the computer, then go to control panel
    then
    Device Manager
    Expand portable devices
    the type of memory card slots should be listed if your type is a yellow triangle in it,
    Right-click on it and choose uninstall.
    It should reinstall it automatically or when you put the memory card in the slot.
    This type of fault is often caused by not using material on the taskbar does not safely remove request.

  • VIMEO WIDGET DOES NOT WORK WHEN DISPLAYING VIDEO IN LANDSCAPE MODE WHICH JUMPS TO THE NEXT BREAKPOINT.

    Hello I had a lot of problems to make Vimeo to work with Responsories between my fluid breakpoints - I have defined it 360, 768, 1024 and 1020 breakpoints. What is happening is when using built in widget Vimeo muse and adjust the widget between breakpoints and then download the site, the widget allows to be played when the phone is held in normal use portrait video. When I'm on my iPhone 6 more, for example, the site load very well with the breakpoint 414. The fines of the video is played. However, then I tilt the phone in landscape mode, the video stops and breaks site for the next breakpoint. I managed to get one or two videos work very well on my site, but others have the same problem above.

    On the page below the first video works very well--you can tilt the phone in landscape mode and it continues to play as usual - on the other two videos - it doesn't - the video stops / site goes to the next breakpoint 768.

    http://www.dubaicorereviewapp.com/guests.html

    What I can not understand, that is why the first video work and not the other two. I tried to create pages with scaled down the content to see if I can get the video to work right and it doesn't. This used to be an issue with Muse before the new version of reagent. Because my site has lots of one type of the members of videos I need to find a way to deal with this issue? all suggestions/guidelines would be appreciated. I did the widget extend to the width of the browser in each of the stitches if that helps.


    WORKS WITH THIS VIDEO

    Screen Shot 2016-03-30 at 11.23.31.png



    BUT NOT WITH THIS


    Screen Shot 2016-03-30 at 11.22.57.png



    UPDATE!


    OK made some progress on this issue - but its not the solution I want - I think that what is happening is when you use the widget to say about 1200 downtime and scale down to each of the lower stop points - you this question - BUT if you copy the widget into the offending breakpoint and hide the original widget and then paste the widget of the memory - so it works very well in this breakpoint - I suspect that there is a bug with the widget / Muse because it works when the SAME scale inserted widget between breakpoints and will work if you paste a widget FRESH in the offending breakpoint - this should be fixed!

    Hi cheeky71,

    This is certainly a bug with Muse and we hope that it be corrected in a future release. I'm glad to hear that you have found a workaround for now.

    Anna

  • I have added a hyperlink which is a file video .mp4 but it does not work when I generate the document.

    I have added a hyperlink which is a file video .mp4 but it does not work when I generate the document.

    Hello

    Do you use the WebHelp for the CHM converter script? If so, this screenshot may seem reasonable. If this is not the case, this isn't out CHM.

  • button refresh Foxfire did not work when clicked on for the past two weeks

    button refresh Foxfire did not work when clicked on for the past two weeks

    Hi, see controls customize Firefox, buttons and toolbarsand click on restore default settings.

    If this does not help, Try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • The slide show feature does not work when I used my Apple TV new 4th gen. I have all the minimum requirements for Macbook and Macbook OSX the Airport express. The slide show starts and stops after that 7 photos are displayed on the TV. If I change the

    The slide show feature does not work when I used my Macbook with new Apple TV 4th gen. The slide show stops after that display 7 photos and display to select the options for the slide show is displayed on the screen. The selected interval was 5 seconds. If the interval is spent in 3 seconds the slide show would work for a time and then to display random images. Has worked with Apple on this issue Support Mike and he managed to reproduce the problem. Since I'm in the return period of 14 days for this product, I returned it to the Apple store

    Welcome to the Apple community.

    After returning, I'm not really clear on what your question.

  • Microsoft Pinball Arcade, everything works except the right flipper does not work when you run the game. __Keyboard is very good

    Microsoft Pinball Arcade, everything works except the right flipper does not work when you run the game.
    Keyboard is fine.  Is this a compatibility issue?

    ---------------

  • Sound does not work when it is connected to the TV with HDMI

    I have a HP Pavilion Notebook PC, DV7 - 6813EV, running windows 7 Home Premium 64-bit SP1. My problem is that I have no sound when connected to my TV HDMI connection and press. Please could someone help me? Thanks in advance

    Hello gematz,

    The sound does not work when it is connected to the TV via HDMI.

    Go to start.

    Type sound.

    Click sound

    On the playback tab, click with the right button on the HDMI interface, and then select set as default device.

    If you do not see the HDMI, right click and select devices see off, then set as default.

    I would like to know how everything goes.

  • Here's a strange. I have a HTML page with this time a wmv video. It works perfectly from a USB stick or SD card, but does not work when they are copied to the hard drive

    I have an HTML page created with web expression 4. It contains only a wmv video. It works perfectly when it is called from a USB stick or SD card, but does not work when they are copied to the hard drive. The results are the same with IE and Firefox. It don't make no difference if I use Media Player V9 or V11. He has no control on the page Media Player. Video and html files are in the same directory. Here is the code snippet:

    LIFT, DRAG, THRUST and GRAVITY










    If I run it on a machine with Win 7 there is no problem.

    Richard Grosser

    Hi Richard c. Grosser,.

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Microsoft Expression forums.

    http://social.expression.Microsoft.com/forums/en-us/categories

  • AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    Original title: computer disc drive

    Download or CD extract of music reading, record music, download CD etc... Before my hard drive had to be replaced, when a disc is inserted into my computer, a window appears, asking what you want to do... Burn music, Rip, copy in folder etc... now when I insert a disk, the window no longer appears, which gives you options and you get to this site... How can I get that back?

    Hey Big-Mack,

    Try the steps of troubleshooting mentioned in the following article and check the result.
    See the enforcement function automatic or AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    If the problem persists, run the Autoplay Repair Wizard and check the result.
    See Autoplay Repair Wizard

    Play functionality; New in Windows Media Player 12 makes it easy to listen to the music, video and photos from your computer to other computers, TVs or stereo on your home network.
    For more information, see play in

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for