I need to flip, move and duplicate a group in InDesign CS4 JS

Hi,
I need fo flip, move and duplicate grouped objects in InDesign. So far I have those lines from OMV:
var myGroup2 = myGroup.duplicate ([".0625 in", myPageHeight/2]);
myGroup.flip (Flip.HORIZONTAL, AnchorPoint.CENTER_ANCHOR);
or
myGroup.flipItem (Flip.HORIZONTAL, AnchorPoint.CENTER_ANCHOR);
myGroup.move ([".0625 in", myPageHeight/2]);
Those lines work for single object, and what I see in OMV, it should be the same for a group(?), but they don't work.
Your help is highly appreciated.
Yulia.

I got it. The lines are correct, mistake was before the lines - in the group definition. Here what I got and it's working:
var myArray = new Array;
//Add the items to the array.
myArray.push(myWhiteLine);
myArray.push(myGreenLine);
//Group the items.
var myPage = app.activeDocument.pages [0];
myLineGroup = myPage.groups.add(myArray);
var myLineGroup2 = myLineGroup.duplicate ();
myLineGroup2.flipItem(Flip.VERTICAL, AnchorPoint.TOP_RIGHT_ANCHOR);
Thank you.
Yulia

Similar Messages

  • Creating a button that flips back and forth on iPad in InDesign through DPS

    How do I create a button that flips back and forth on iPad in InDesign through DPS. I saw it on a food magzine on an ipad ... it's just a circle with text it in, when you click it the whole circle flips to the other side and there is a different color with different text. The circle does not change position, it just flips. Again, I want to do this so it shows up on the ipad through DPS.
    Thanks,
    Jay

    You need to create a Web overlay. There's an HTML example you can download and repurpose in this article:
    http://blogs.adobe.com/indesigndocs/2013/02/dps-tips-html5-examples.html

  • Need DVD with movie and interative quiz...how?

    I'm getting frustrated.  I already have iMovie, iDVD, Final Cut Express. I already made educational dvds and it worked beautifually.  However, now I want to create a interactive quiz at the end of the movie and can play in stand alone DVD player with the movie.  I want to create several mulitple choice questions with the movie and if they pick the correct one, it will go to the next question, if picked the wrong question, it will go back and replay to help them review and study.  Is there a way can do it with my current program or do I need another program that is currently available somewhere?  I tried to google "interactive quiz in DVD" and not seem to get a clear cut answer.  thank you for anyone who is able to assist me.

    You might be able to do a real simple version of this in iDVD, but everytime you attempted to loop back to a previously seen video, you would need a new instance of that video on the DVD. Clearly not optimal and limits what you can do.
    Apple used to make a product called DVD Studio Pro. It came bundled with Final Cut Studio (Final Cut Pro Version 7). It would do this. Apple no longer sells this product but you might be able to find some copies of Final Cut Studio on Amazon or eBay. To see DVD Studio Pro in action, see this podcast of MacBreak Studio with the guy from BoxWrench. http://www.pixelcorps.tv/macbreak18
    Adobe Encore CS5 is a currently supported professional DVD authoring software. I have no personal experience with it so I do not know if it will do what you need.

  • Help! Can someone open and save a file in InDesign CS4 for me?? (idml to inx)

    I need one file as .inx ... I have it as .idml. Does someone have Adobe InDesign CS4, so that I could e-mail it and you could e-mail it back as .inx? I would really appreciate that

    I'm sending you an upload link by private message....

  • Copying and pasting Arabic text in InDesign CS4 ME

    We have an arabic document in pdf and word formats and we have InDesign CS4 ME and we are trying to copy and paste text from the pdf/word document but the font isn't transferring, there is nothing only boxes. We have turned on the arabic keyboard and that didnt help either. Working on a mac.
    Can anyone help us? What is the solution?

    function(){return A.apply(null,[this].concat($A(arguments)))}
    We have turned on the arabic keyboard and that didnt help either.
    Well, why should it. Unless you are typing Arabic, that won't do anything at all. Copy-and-paste is not typing.
    If copy-and-paste does not copy the font along so you get the pinky squares in InDesign, it only means that your default InDesign font does not support those characters. Select your text and then choose another font -- one you are sure of contains Arabic.
    If you still get pink squares, it's more likely the text in the PDF is not encoded properly, and in that case no-one can't help you -- but it ought to work directly from Word.

  • Apple tv asks for authorization on movies and tv shows

    What authorization does apple tv need to show movies and tv shows? I keep getting "not authorized on your appletv"

    just got off the phone with apple support. got escalated 3 times (pass the buck sort of thing), but after several attempts it looks like movies and youtube are working. I still have some music that isn't authorized, so the problem isn't completely solved, but it looks like I'm making progress.
    Here's what we did:
    - deauthorize, reauthorize - tried this several times, didn't do anything
    - reset appletv to factory default - no difference
    - rebuild itunes library - didn't help
    - reset appletv again - seems to be working, except for about 60 songs.
    I'll add more content and see if otherfiles work or not.

  • Premiere Pro CS4 Codecs: MOV and MTS

    I am looking for codecs for Mov and MTS file types for Premiere CS4.  Anything I can find on the Adobe site?
    Hendrik
    =========================
    Thread moved by moderator to Premiere Pro CS4 & Earlier

    Also, CS4 has a different forum http://forums.adobe.com/community/premiere/premierepro_previous?view=discussions

  • Photoshop layer move and layer duplicate event ids

    I am running PSCC 2014 on a mac. I work with a wacom table and keyboard shortcuts. I work fast without looking look at the keyboard. Often end up moving layers, duplicating layers inadvertently by pressing the wrong keys.
    I have identified the keyboard shortcuts responsible for the layer shift/duplication and was able to record an action.
    The idea is to setup a Javascript alert when the layer moves or duplicates using the Scripts Events Manager Photoshop Event dialog.
    I have not been able to successfully add the Photoshop Event using the Event ID code 'copy' and ‘move’ listed in the Adobe Photoshop CC 2014 Javascript Scripting Reference guide. 
    The Adobe scripting listener plugin does not record the layer movement and layer duplication events.
    When I replicate the problem the History pallet registers both, the layer copy and layer move events as a ‘move’ history state.
    Other than Javascript Scripting Reference guide Is there a way to find out the exact event Id for a layer move and layer duplicate events?

    sorry, I wasn't aware you're using a mac. I know that in Windows, you can run additional software that will send you an alert every time you accidentally press those keys. It can even block the layer shift/duplication if you choose. I've just tried a sample here on my system and it works perfectly - every time cmd (in my case ctrl) is pressed, a tooltip at the mouse cursor will pop up, saying "CTRL is pressed". Additionally, whenever I press ctrl+option+drag, the tooltip instead says "Layer has been moved". I'm positive this can also be done on the mac.
    you should look into a key remapping program for the mac that resembles AutoHotKey for Windows (which is what I'm using). It will allow you to send alerts every time you press those key/mousebutton combinations by accident. This is a solution I bet you can take care of outside of Photoshop, meaning that you won't need to rely on javascripting or anything.
    Here's a webpage that gives a full list of mac software which are similar to AutoHotKey:
    AutoHotkey Alternatives for Mac OS X - AlternativeTo.net
    Keyboard Maestro seems to be the best bet but I wouldn't know for sure. Your solution will be in one of those programs for sure.
    By the way - I tried BCM's panel and it works perfectly! 

  • When I first attached a cable from iphone6 to hdmi on tv, I was able to read kindle on tv. After watching movies and playing Pandora from iphone to tv through the cable, I can no longer read kindle through it. What settings do I need to change?

    When I first attached a cable from iphone6 to hdmi on tv, I was able to read kindle on tv. After watching movies and playing Pandora from iphone to tv through the cable, I can no longer read kindle through it. What settings do I need to change?

    Hi,
    Already mentioned on the following post:
       http://h30434.www3.hp.com/t5/Other-Notebook-PC-Que​stions/VGA-on-laptop-HDMI-on-TV-needs-connected/m-​...
    You need a CONVERTER, not ADAPTER The setup:
    The following list may help:
         http://www.ebay.com.au/sch/sis.html?_kw=HDMI+To+VG​A+COMPONENT+Adaptor+A+V+Digital+Converter
    Laptop (VGA) ---- Converter from VGA to HDMI ------ TV
    You also need sound, you can buy a converter with sound OR connect sound directly from laptop to TV.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Need to convert music videos that are tagged as "Movies" and re-rag them as "Music Videos" to get them out of my movies library and into the Music Video folder. Likewise, I ha e some educational videos that belong in "Podcasts." Help?

    Need to convert music videos that are tagged as "Movies" and re-rag them as "Music Videos" to get them out of my movies library and into the Music Video folder. Likewise, I have some educational videos that belong in "Podcasts." Help?

    Select/highlight the ones that you want to change in your iTunes library, do Get-Info (control-I) and change their Media Kind on their Options tab to 'Music Video' - and then similarly for the podcasts.

  • Need help making ball move and bounce off of sides of JPanel

    I'm currently working on a program that creates a ball of random color. I'm trying to make the ball move around the JPanel it is contained in and if it hits a wall it should bounce off of it. I have been able to draw the ball and make it fill with a random color. However, I cannot get it to move around and bounce off the walls. Below is the code for the class that creates the ball. Should I possible be using multithreads? As part of the project requirements I will need to utilizes threads and include a runnable. However, I wanted to get it working with one first and than add to it as the final product needs to include new balls being added with each mouse click. Any help would be appreciated.
    Thanks
    import java.awt.Color;
    import java.awt.Graphics;
    import javax.swing.JPanel;
    public class Ball extends JPanel{
        Graphics g;
        int rval; // red color value
        int gval; // green color value
        int bval; // blue color value
        private int x = 1;
        private int y = 1;
        private int dx = 2;
        private int dy = 2;
        public void paintComponent(Graphics g){
            for(int counter = 0; counter < 100; counter++){
                // randomly chooses red, green and blue values changing color of ball each time
                rval = (int)Math.floor(Math.random() * 256);
                gval = (int)Math.floor(Math.random() * 256);
                bval = (int)Math.floor(Math.random() * 256);
                super.paintComponent(g);
                g.drawOval(0,0,30,30);   // draws circle
                g.setColor(new Color(rval,gval,bval)); // takes random numbers from above and creates RGB color value to be displayed
                g.fillOval(x,y,30,30); // adds color to circle
                move(g);
        } // end paintComponent
        public void move(Graphics g){
            g.fillOval(x, y, 30, 30);
            x += dx;
            y += dy;
            if(x < 0){
                x = 0;
                dx = -dx;
            if (x + 30 >= 400) {
                x = 400 - 30;
                dx = -dx;
            if (y < 0) {
                y = 0;
                dy = -dy;
            if (y + 30 >= 400) {
                y = 400 - 30;
                dy = -dy;
            g.fillOval(x, y, 30, 30);
            g.dispose();
    } // end Ball class

    Create a bounding box using the size of the panel. Each time you move the ball, check that it's still inside the box. If it isn't, then change it's direction. You know where the ball is, (x, y), so just compare those values to the boundary values.

  • No computer just iPad and need help watching movies on apple tv

    My computer crashed while back and I only use an iPad.  Just hooked up apple tv and rented a movie and it looks like you need to watch the movie from your iTunes. Is there anyway to use apple tv so it recognizes your iTunes from your iPad or  iPhone for that matter?

    Welcome to the Apple Community.
    That article remains valid, the iPad 1 can AirPlay too, it just can't mirror.
    Also, you don't need to watch rented movies from iTunes on your iPad, you can rent and download them straight to your Apple TV.

  • I downloaded quick time becausei tried watching a movie i purchased on itunes and and have watched it before on my laptop but paused and continued. i tried opening it today and it said i needed to download quicktime and i did. it still says i need to

    I downloaded quick time because i tried watching a movie i purchased on itunes and and have watched it before on my laptop but paused and continued. i tried opening it today and it said i needed to download quicktime and i did. it still says i need to download it, what do I do

    Hi morgangang,
    Although that message is not listed in the following article, I would still go through it for help.  Things like installing in safe mode may help.
    QuickTime: Windows troubleshooting tips
    Troubleshooting Tips
    Make sure your computer meets the system requirements.
    Try running ScanDisk to verify that the directory is OK. This is an important step to take before installing any software.
    Try running the stand-alone version of the QuickTime installer in "Safe Mode." It is available here. This can help to isolate issues with background applications, and some driver conflicts.
    Make certain you have installed the most recent drivers for your sound and video cards. Even if you have a "brand new" computer, it is not guaranteed to have the most recent software installed. Contact the manufacturer of your sound and video cards for additional information.
    Make certain you have installed a recent version of DirectX.
    Errors are usually related to software conflicts, unusable files, or incompatibilities. They can also be related to specific hardware combinations, and sometimes the way in which the hardware is configured. Keep in mind that an error message does not necessarily point to a particular cause or solution. Since there can be many different causes for a particular symptom, some suggestions may not work, and you may need to discover a solution on your own.
    Note: Please contact Microsoft Corporation or your computer vendor for help configuring Microsoft Windows.
    Thank you for visiting Apple Support Communities.
    Nubz

  • HT1657 Once a rented movie is downloaded do I need an Internet connection to view it?  For example can I download a movie and watch it on a flight?

    Once a rented movie is downloaded do I need an Internet connection to view it?  For example can I download a movie and watch it on a flight?

    Please be aware of the movie rental's time limitation that you have 30 days from the time of rental to watch your movie, and once you start watching it, you have 24 hours to finish watching it. You may watch it as many times as you like during those 24 hours. It may be helpful to make sure the download completes successfully before you begin watching the movie.
    Once the download is complete you can watch it without an Internet connection. However, an Internet connection to the iTunes Store is required to authorize playback or activate the 24 hours time-limit of movie rentals. This means, only during the starting of the movie. Once you have started playing the movie rental, internet connection is not required. You can play anywhere without internet connection.
    For more information on movie rentals, you can visit:
    iTunes Store: Movie rental frequently asked questions (FAQ)
    http://support.apple.com/kb/HT1657
    Note: 24 hours time limit is for United States customer only, while 48 hours for other countries.

  • Just bought Photoshop Elements 13...I'm trying to make a slideshow but can't figure out how to alter duration time that the slide is on the screen.  They presently move from one to another way too quickly...also need a different pan and zoom option.  Wher

    Just bought Photoshop Elements 13...I'm trying to make a slideshow but can't figure out how to alter duration time that the slide is on the screen.  They presently move from one to another way too quickly...also need a different pan and zoom option.  Where are all the options I had in PS10?  Also...Can I burn this to a DVD?

    The changes have brought improvements but also drawbacks compared with the old slideshow editor.
    The templates are now fairly fixed but I find the “Classic Dark” gives reasonable results with some panning and you can click the audio button and browse you PC for any track. Unfortunately there are only three speed choices linked to the music track. The improvement for most people is that you can now export to your hard drive at 720p or 1080p and upload to sites like YouTube and Vimeo.

Maybe you are looking for