How to move an image?

Hey guys,
I just started learning how to script and I'm already here with a problem.
At work I sometimes need to place some PDF files (+/- 30 pages) into an Indesign document for further work. So now I wanted to write a script that moves the (already placed) PDFs to x=0; y=0 on every Page.
And here's the problem: The script isn't moving the PDFs, it only moves the image frames.
Thanks in advance, Michael
#target InDesign
var _dok = app.activeDocument;
var _allPages= _dok.pages;
for (i = 0; i < _allPages.length; i++)
    var _page = _allPages[i];
        for (k = 0; k < _page.pageItems.length; k++)
            var _kasten = _page.pageItems[k];
            var _koordinaten =_kasten.geometricBounds;
            var _breite = _koordinaten[3] - _koordinaten[1];
            var _hoehe = _koordinaten[2] - _koordinaten[0];
            _koordinaten[0] = 0;
            _koordinaten[1] = 0;
            _koordinaten[2] = _hoehe;
            _koordinaten[3] = _breite;
            _kasten.geometricBounds = _koordinaten;

@Michael – what specific book on InDesign scripting do you read?
If you want to get a full documentation see:
http://www.jongware.com/idjshelp.html
Uwe

Similar Messages

  • How to move multiple images in applet

    Hi,how to move multiple images in applet or random images in applet .
    Means moving images.gif around the applet with different starting point ,help me to create that move method ..

    why don't you check the tumbling duke applet as provided free in this site? :-)

  • How to move original images to another datastore?

    Hello,
    I have all my original images on a USB external drive. I want to move these images to a new harddisk but I do not know how to update my libraries. I know how to manually set the new path for each images, but I want A3 to make it automatically as I have thousand of RAW files.
    Thanks in advance.

    Select target images that you want to move the masters for and use - File->Relocate Masters.
    There is a bunch of stuff on my site about this. Check it out.
    RB

  • How to move referenced images to a new Hard Drive

    All my Aperture referenced images (about 80.000) are stored at a 300gb firewire HD. That's not enough and I plan to move all my photos to a new HD, 1Tb probably.
    I understand that I can't move the images directly from one drive to another. So what's the easiest and painless way to upgrade and still maintain the integrity of Aperture Library ?

    {quote:title=Bauhausler wrote:}I understand that I can't move the images directly from one drive to another.{quote}
    Well, that's exactly what you can (and should) do. Then use the "Manage Referenced Files..." command.
    Take a look at my answers in this recent thread:
    http://discussions.apple.com/thread.jspa?threadID=1721897
    Regards
    Paul K

  • How to move all images in a version set

    I have found need to re-arrange some of the pictures in my Organizer (PSE 3.01, Windows). I have found that if I move an image that is the top of a version set, only that top image is moved. All the older versions remain in the old folder.
    Of course one can get around this by opening the version set and moving all the pictures from there, but I was moving a bunch of images, some of them version sets. This meant that I had to treat all the version sets a bit different. Would have been nice if everything went as a package to the new destination folder.
    Any suggestions?

    Sorry Larry, but I also found that in PSE 3.0.1 the only thing that worked for me was to expand each version set (one at a time), select all of the photos in that version set and do the Move.
    Before starting my Moves, I had done a test (with an insignficant photo version set) of moving with Windows Explorer and then doing Reconnect. My moves were to a different physical hard drive and Reconnect was not automatically finding the new location. So I decided that expanding each of the version sets was the lesser evil for moving and updating the Catalog.
    >Would have been nice if everything went as a package to the new destination folder.
    Definitely agree.
    Does anyone have feedback on what happens in Elements 4 for doing a
    b Move
    to a different physical hard drive when
    b Version Sets
    are involved?
    Barb O

  • How to move multiple images in lr at one time from one subfolder to the next?

    How would i accomplish this procedure in lr5. I know you can click on an image  and drag it to the target folder.  But for multiple images this is the ? Thanks!!

    Same as you would do it in your operating system.
    You select multiple images (click, ctrl-click, ctrl-click, etc., or click on one image and then shift-click on another image to select the entire sequence) and then drag.
    Of course, you might also want to simplify your life and develop a workflow where you don't have to move photos from here to there by using keywords instead of folders to organize.

  • How to move all images from a site to a new folder and not lose links?

    I have always wondered this.....tried a few things with no success..Whenever I take over a site from someone, a lot of time the previous designer did not make folders for ANYTHING including images.....so in thier main directory they have 20 html pages, 200 images and css files etc.....I can not think this way.....I want to just make a folder for images...put all the images there.....a css folder....etc. Once I do this all my links are lost and it is to much work to replace each one with the broken link finder in Dreamweaver......In some other applications like Logic Studio ( a music production application as an example ) it is very similar. Your main song file is pointing to linked audio files all over your hard drive....If you decide you want to move that drive it will search for the linked audio files and when it can not find them it asks you to specify the new folder or search manually for them.....if I had moved 200 audio files it comes in quite handy because I can just point to that new folder and im done.......finally, my question is what would you guys recommend for doing this? Moving hundreds of image files so that I can organize things...........any help would be GREATLY appreciated...I have googled but found no great technique...

    I'm having the same or similar issue...  I think...  trying to do a little house cleaning in the file structure.  For example, in our events folder I'm creating archive folders (i.e. - 2004, 2005, ect...) and when I use the Files Panel to drag and drop the past event pages into the newly created archive folder, the pages loose all their links.
    Image link prior to and after moving are the same (../images/logo1.gif)
    It does ask me to confirm that I want to move the file but nothing about updating the links.  Is it due to the way the files are linked in the original files?
    Thanks in advance for any help!!!

  • How to move an image to backGROUND? Flower(Back) to behind?

    Image is me and wife.
    I want to take some flower and add them BEHIND us, some will appear right beside me, the other side of it should appear as it is behind my shoulder.
    Lost as I haven't done this in a long time.
    Thanks

    Lots of ways of doing that - here's one.
    Draw a selection around the subjects (you and wife), select inverse on the selection, and then take the flowers and do a "paste into".
    This will put the flowers behind the people because they (flowers) will be masked out by the selection

  • How can I move an image/file around inside a document with text already in it?

    I'm learning In Design on the job, and it's a real challenge.  One big problem I'm having is, after I've placed an image inside a document with text in it, how do I place it precisely where I want it?  Sometimes I need the image flush to the left, and sometimes I need to center it.  When I place it, it doesn't land where I need it to be.  Things I've tried work sometimes but not other times.  I've tried going to Paragraph and reducing the setting to zero to move an image flush to the left of the text frame/column (I'm working with a three-column page).  Sometimes that works, and sometimes it does not.  When it doesn't, I've tried using the Selection tool to drag the image, but it doesn't respond.  Could someone give me an idea of what I'm overlooking?  I'm finding that InDesign has many settings, and all it takes is for one setting to be what it shouldn't be for things to go badly wrong.  I'm having other issues too, but in this discussion I'll stick to this.

    Sounds like you are anchoring the images in the text flow. That's fine if you need them to move along with text during editing, but is usually not required and often counter productive. If you place your images as separate objects in their own independent frames they can be positioned anywhere and moved at will. If they need to be anchored, consider using Custom Positioned instead of inline.

  • How to have multiple images on the same screen? like in the movies where you see several actions at

    how to have multiple images on the same screen? like in the movies where you see several actions at the same time ....
    i don't find  a tutorial in adobe tv....
    thanks !!

    The short answer is that you'll put the source clip(s) for each inset on a different video track, all stacked up. Then use the Scale and Position effects (under "Motion" on the Effect Controls panel) to reduce their size and place them where you want.
    If the content of an inset will involve edited content (where you're cutting among various clips or just trimming out unwanted content from a single clip), then you'll probably find it easier to do all those edits in one sequence, then nest that sequence in the master sequence, where you apply the Scale and Positioning effects. That will save the step of applying the scale and position effects to each edited track item.

  • How do you move an image in pages?

    How do i move an image in pages? I copied and pasted it onto the document but when I try to drag it, it just jumps back to where it was.

    All you have to do is command click out side the text zone and make sure there is no clicking line to wright text, and then just go insert/choose/ and then choose the image you want. It should then let you move it around. Hope this helped.

  • How can I move some image on JPanel ?

    How can I move some image on JPanel ?
    I want to move it with my arrow keys.
    Plees, give me example code

    1) Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html]Using Layout Managers. You would need to use Absolute Positioning so you can control the position of the image
    2) Add the image to a JLabel and the label to the panel
    3) Read the tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to Use Key Bindings. Then you just assign an Action to each of the arrow keys and use setLocation(...) to move the label.

  • How to move a page number in front of an image

    how to move a page number in front of an image on pages??

    Hello albertlini,
    This can be done by chosing to move the image to the back via the Arrange tab.
    Move an object to the very top or bottom of the stack: Click Front, or click Back.
    Pages Help - Layer, group, and lock objects
    http://help.apple.com/pages/mac/5.5/#/tan5eab46568
    Cheers,
    Allen

  • How to move images, presets, and catalog now in Lightroom 5.7 on my old windows computer to my new windows computer. Need detailed instructions.

    I recently purchased a new computer which is running windows 8.1.  My old computer is running windows 7 with lightroom 5.7 on it.  I have installed the software for Lightroom 5.7.1 on my new computer.  How do I transfer or move my images, presets, and catalog from my old computer to the new one?  I need detailed instructions.

    http://tv.adobe.com/watch/the-complete-picture-with-julieanne-kost/how-to-migrate-lr-to-an other-computer/

  • My hard drive is full. How do I move my images to an external drive without 'losing' them in Lightroom?

    I am a recent convert to Lightroom 5. I currently have a single catalog stored on my hard drive. All the images in the catalog (about 20,000) are stored on the same hard drive. This hard drive is now full. I need to move the images to an 2tb external drive but don't want to lose them in Lightroom. (I am keen to keep the catalog on the existing hard drive and back it up to the external hard drive). I have tried to work this out for myself in Adobe help etc but I am uncertain and mildly worried at the prospect of messing this up. Can anyone help?
    Thanks
    Damian Bailey

    http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm

Maybe you are looking for