How to reverse a table and his title when they are on 2 different paragraphs? ...

Hi all

Any idea?  Thanks for your comments!

1:

tables = app.documents[0].stories.everyItem().tables.everyItem().getElements();
for (i = tables.length-1; i >= 0; i--) {
  paragraph = tables[i].storyOffset.paragraphs[0];
  title = paragraph.parentStory.insertionPoints[paragraph.index-1].paragraphs[0];
  paragraph.move (LocationOptions.BEFORE, title);
}

2: you probably meant to write "do you think the process can do the reverse, placing the table before the title?

tables = app.documents[0].stories.everyItem().tables.everyItem().getElements();
for (i = tables.length-1; i >= 0; i--) {
  paragraph = tables[i].storyOffset.paragraphs[0];
  title = paragraph.insertionPoints[-1].paragraphs[0];
  paragraph.move (LocationOptions.AFTER, title);
}

Peter

Tags: InDesign

Similar Questions

  • How to stop the movieclip created in flash when they are imported to seduce?

    I created a movieclip and drag it onto the main timeline(flash cs4), the movieclip have 60 fps and I put stop(); the last image. When they are imported from the swf to Captivate, the movieclip loop play. I tried the rdcmndPause = 1; but don't know where to put it. I don't really know the idea how to proceed. (already search in the forum and read adobe help, but no step by step how to do this).

    Hello

    Maybe try to animate your Flash in the main Flash timeline. I don't know if it is possible to promote a MovieClip to the main timeline, but usually people want the animation to loop and it doesn't and it is because they have not animate in a MovieClip. They did it in the main Flash timeline.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Windows Media Player only recognizes the song titles when they are imported from itunes, imported in the form of wav files.

    Hi, I imported/ripped music in form of wav files using WMP first and imported into itunes so that I can sync w / my ipod but itunes recognized only the first words of the music info (generally the number of song, title, ect). ITunes would allow me to change the info. So I decided to import my 7 000 more songs again using itunes, in the hope of finding the songs via watched folders to WMP. Well, that was the case, but he only identified the song number and the title. Now, I have a long list of other/unknown.

    I can get information in WMP via "Find album information", one song at a time, but that would take forever. I imported 318 songs to date. I use wav files to maintain the quality of the sound.  Can someone tell me an easier way?

    Hi MarkyB13,

    You might have items in your library in Windows Media Player that have missing or incorrect media information.

    You can check out the following link and check if it helps:

    Add or edit media information

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Windows-Media-Player/11/album-info

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • There is a number at 1-800-Microsoft, but I get a recording saying they are closed and to remind when they are open, but when they are open?

    Bought a new Windows 7 Ultimate at Microsoft and it downloaded onto a laptop from Apple.  I need a phone number to get a replacement operating system to go on a new Apple computer that replaced the portable Apple which was destroyed.

    I need a phone number to get a replacement operating system

    If you need to replace the installation disc:

    How to replace Microsoft software:

    If you need activate Windows 7:

    Case online activation failed:

    Call Microsoft use the manual phone Activation

    If you have trouble activating Windows 7 you can call Microsoft to activate it by following these steps:

    1. with the operation of Windows, click Start, then in the search box type: slui.exe 4

    2. press enter on your keyboard

    3. Select your country.

    4. Select the telephone activation option, then dial the given number and hold for a real person.

    For more details: http://www.sevenforums.com/tutorials/18715-activate-windows-7-phone.html

    The American phone for activation number is 1-888-725-1047

    to go on a new Apple computer who replaced the portable Apple which was destroyed.

    Can move you to a new Windows 7 computer

    If it's a full license or upgrade retail - Yes. You can move it to another computer as long as it is installed on a single computer at a time (and if it's a Windows 7 Upgrade version the new computer must have its own XP/Vista license qualification). The previous installation of Windows 7 on the old computer must be formatted or deleted. You will have to perhaps call Microsoft and explain what happened to complete activation. Turning it on the second computer will automatically be in effect 'disable' the license for the first computer. The key works with 32 and 64 bit, but can only be installed at a time.

    If it's an OEM license - don't. OEM licenses, including Windows preinstalled on a computer before purchase and Windows purchased separately, are related to the first computer, they are installed on and cannot be transferred to another computer. To install Windows on another computer, you will need to buy another copy.

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

  • CSS: How to style a link and h2 separately when both are links?

    I am fairly new to CSS and I do not know it is an easy fix, but I don't know how to do it. I would like for the h2 which will focus the different links. But the h2 is also a link because it's a title on my blog.

    Currently I have the style applied to the links and the h2:

    a: link {color: #fb8700; text-decoration: none ;}}

    a: visited {color: #fbb100; text-decoration: none ;}}

    a: hover {color: #636363 ;}}  / * mouse ove * /.

    a: active {color: #fb8700; text-decoration: none ;}}

    H2

    {

    do-family: Arial, without serif.

    font size: 28px;

    color: #fbb100;

    }

    body

    {

    do-family: Georgia, serif;

    text-align: left;

    do-size: 16px;

    line-height: 1.2;

    dressing: break-Word;

    Text-rendering: optimizeLegibility; / * the kerning, pr * /.

    }

    I would like for the title (h2) to have a different color and the police that the General links. How can I do this?

    #anotherLink a {}

    color: #whatever;

    }

    #anotherLink a: hover {}

    color: #whatever;

    }

    You can use the class if you intend to use the link more than once on a page:

    .anotherLink a {}

    color: #whatever;

    }

    .anotherLink a: hover {}

    color: #whatever;

    }

    Or if you want to only have the tag h2 on your page as a link:

    A link

    H2 a {}

    color: #whatever;

    }

    H2 a: hover {}

    color: #whatever;

    }

  • New podcast show love talk with Nicola Beer was launched 2 days ago. I sent my friends and coaching clients to review and rate and they don't have the rate or subscribe and check option when they are connected. Why it works for them?

    Podcast support, help notes and review, access different places podcast - all rating and comments really appreciated

    I see the option ratings and reviews and could write a review, so I don't know why everyone has to be problems.

    However I do not know how it works on the application of iOS Podcasts that I can't verify that.

  • 15 - ay013nr: how to tell which USB 3.0 port when they are not blue?

    How am I supposed to say which USB port is my port 3.0? I thought they were supposed to be blue?

    Laptop model # 15 - ay013nr

    Thank you

    Hello:

    See Chapter 2, page 6 of the laptop user's guide for the location of the port usb3.

    http://h10032.www1.HP.com/CTG/manual/c05114176

  • How to get the coordinates of the screen when they are hit.

    Hi all!

    I am a beginner on the development of blackberry, also a beginner in programming in general ^^

    I've done some app using just QML and take some C++ tutorials

    I try to get the coordinate of the screen when the user touches, I wasn't able to do that you use just QML, I found the source TouchEvent and tried to make it work on C++, to get the windowX and windowY coordinates of the touch.

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__touchevent.html

    I use the image on background to try to get contact with the event.
    So far, we have:

    PPS:

    class LostInSpace : public QObject
    {
        Q_OBJECT
    public:
        LostInSpace(bb::cascades::Application *app);
        virtual  ~LostInSpace() {}
    public slots:
    Q_INVOKABLE float screentouchY(bb::cascades::TouchEvent* event);
    Q_INVOKABLE float screentouchX(bb::cascades::TouchEvent* event);
    
    private:
    QPointer fundo;
    
    };
    

    CPP:

    LostInSpace::LostInSpace(bb::cascades::Application *app)
    
    {
    
        QmlDocument *qml =
    QmlDocument::create("asset:///main.qml").parent(this);
        qml->setContextProperty("app", this);
        AbstractPane *root = qml->createRootObject();
    
        app->setScene(root);
    
        fundo = root->findChild("fundo");
        bool res = QObject::connect(fundo, SIGNAL(touch(bb::cascades::TouchEvent*)),this, SLOT(screentouchY(bb::cascades::TouchEvent*)));
        Q_ASSERT(res);
        res = QObject::connect(fundo, SIGNAL(touch(bb::cascades::TouchEvent*)),
    this, SLOT(screentouchX(bb::cascades::TouchEvent*)));
        Q_ASSERT(res);
    
    }
    
    float LostInSpace::screentouchY(bb::cascades::TouchEvent* event) {
        return event->windowY();
    }
    float LostInSpace::screentouchX(bb::cascades::TouchEvent* event) {
        return event->windowX();
    }
    

    QML: (I'll do later animations, it's just to see if it works. I mean a "unknown simbol app" the Notecard, I thought I just had to put "qml-> setContextProperty ("app", this);  in the constructor)

    ImageView {
                    objectName: "fundo"
                    imageSource: "images/fundo1.png"
                    touchPropagationMode: TouchPropagationMode.Full
                    onTouch: {
                        tiro.translationX = app.screentouchX();
                        tiro.translationY = app.screentouchY();
                    }
                }
    

    Any help will be very appreciated!

    Thank you!

    Hey there,

    You don't need to do... You can access the 'event' TouchEvent object in the notecard: {} area QML...

    ImageView {
                    objectName: "fundo"
                    imageSource: "images/fundo1.png"
                    touchPropagationMode: TouchPropagationMode.Full
                    onTouch: {
                        tiro.translationX = event.windowX
                        tiro.translationY = event.windowY
                    }
                }
    
  • Channels in the Panel layers appear reversed when they are not

    My layers in Photoshop CC Panel have suddenly started to display all reverse channels, when they are selected and reused for example in the form of mask in the layers panel, they appear correctly. Maybe I've changed inadvertently in some settings to make this odd behavior, but I really want that back in a useful way. Any ideas appreciated. Below you can see a screen shot of how the alpha even looks in the channels of the panels and layers.

    invertedchannels.jpg

    When you double-click on the channel in the Panel layers, what are the Options of channel parameters?

  • I get two appearant virus JS/Crypted.A1.gen and asoupdate.exe what they are

    I get two appearant virus JS/Crypted.A1.gen and asoupdate.exe what they are

    Go through these stages of systematically General malware removal:
    http://www.elephantboycomputers.com/page2.html#Removing_Malware

    Include analysis with David Lipman's Multi_AV of and follow the instructions to do all scans in Mode without failure. Read the Special Notes about the use of Multi_AV in Vista.

    http://www.elephantboycomputers.com/page2.html#Multi-AV - instructions
    http://tinyurl.com/yoeru3 - download link and further instructions

    When it failed, download Guided Help. Choose one of the specialty forums listed on the first link. Save and read his FAQ display. PLEASE DO NOT DISTRIBUTE NEWSPAPERS IN MS FORUMS

    If you can't do the work yourself (and there is no shame in admitting this isn't your cup of tea), take the machine to a professional computer repair shop (not your local equivalent of BigComputerStore/GeekSquad). Please be aware that not all shops are skilled at removing malware, and even if they are, your computer may be so infested that Windows will have to be properly installed. If possible, have all your data backed up before taking the machine into a shop. MS - MVP - Elephant Boy computers - don't panic!

  • Windows7-how can I get my photos to allow me to move the individual to the neighbourhoods, in a file, picture when they are in a thumbnail view? __

    Windows7-how can I get my photos to allow me to move the individual to the neighbourhoods, in a file, picture when they are in a thumbnail view?
    XP has allowed this and then handed over to the correct order seen again in list format

    Thank you for visiting the Microsoft answers community.

    You can organize is more manually the files in the folders - Windows 7 change is design, but if you think this is something that you want changed, please submit your suggestion on the Microsoft Connect site for your comments.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • does anyone know how to number the photos when they are exported so someone can choose the peak of number

    Anyone know how to number the photos when they are exported from LR, so someone can choose the photo they like with a number

    Sorry took with the last answer.

    More simple form used something like-Sequence_Filename number suffix

    If an image as _ABC0987.nef will become 0001_0987.nef and 0002_0988.nef, etc.

    Ask your customer to give you the full file name. The suffix indicates the original file.

    (I hope that you only need to search in a folder and do not have a bunch of images named the same that would cause problems!)

  • How can I link to R3D files when they are multiple (long resumes 4Gbs).

    Hello guys,.

    I'm transcoding (SOUL) my red images to the H.264 format for easy/fast mounting in another machine slow (the film's Director). But he comes to files with multiple R3D files, long takes over from 4Gbs, it creates several mp4 files, and they are all exactly the same.

    -Can I actually use an mp4 for my editing file and replace with originals later?

    -I should only transcode the first R3D file?

    -How can I connect back once the editing is done? Ive tried but do not know what R3D file should link to and does not after trying it. The mp4 file is take it all, but the R3D are not taking it together since they are separated in different R3D files.

    I work with first CC 2015.

    Thank you so much, I have spent days watching the tutorials but can't find my answer, I would greatly appreciate your help.

    I'd probably transcode to prores proxy, or something that does not have the long form, GOP, as Mp4.   Then, a test and make sure your guard to transcode the original code term when you bind again, there is no problem.

    do a test run w / a clip as not to lose time and when you do a couple of edits in a timeline w / as a clip, click with the right button on the clip in the project bin and select 'replace the clip', point to the original file then who must fill out your edited clip w / new source footage.

    you will then need to change the codec of your timeline should match that of your source.    hope that helps.    Certainly test first to make sure that you have the workflow down before you begin your session.

    This also works when there are tons of clips in your tray of sequences that need to be replace.

    When we work w / R3D files, usually created proxies on the fly for this reason (I think).   I'm sure that simply point to the first R3D file in this order if you make your own proxies, although I have not tested.   the first R3D file will usually connect automatic for the rest.

    This isn't the way we usually work but seems it should work.      Good luck.

  • file .avi and .mov on iMac changed in .m4v when they are copied to the external hard drive. I will be able to open these files on other devices like a Windows PC?

    file .avi and .mov on iMac changed in .m4v when they are copied to the external hard drive. I will be able to open these files on other devices like a Windows PC?

    FWIW, do not change the extensions of file simply by copying the files to an external drive.

  • 12.4.1.6 iTunes will not display my iPhone and iPad over wifi when they are plugged in

    Since I updated iTunes to 12.4.1.6 none of my devices, iPhones and iPads appear in iTunes when they are connected and the setting is correct, to synchronize this device via wifi. Any help would be great.

    Thank you

    iOS: device not recognized in iTunes

    see: http://support.Apple.com/kb/TS1591

Maybe you are looking for