[JS][CS3] Pasting an image

Hi All
I have no idea if this is possible, but i am trying to script a way to paste into an image frame a new picture from the clipboard (CMD+V) while retaining the scale and possition of the original. (I actually thought InDesign did this, but cannot find it).
I have written the following to get the co-ordinates I need, but need help pasting the image.
Once the image is in place, I can re-apply the co-ordinates.
myFrame = app.selection[0];
myImage = myFrame.graphics[0];
myHorScale = myImage.horizontalScale;
myVerScale = myImage.verticalScale;
myGeo=myImage.geometricBounds;
this is the bit that doesn't work....
myUpdateImage = myImage.paste()
or
myImage.paste();
or other variations.  I get the message 'paste is not a function'
Any guidance would be cool as usual.
Cheers
Roy

OK!  I am there.  If any one has an alternative solution, please let me know.
myFrame = app.selection[0];
myImage = myFrame.graphics[0];
myHorScale = myImage.horizontalScale;
myVerScale = myImage.verticalScale;
myGeo=myImage.geometricBounds;
//New image Pasted
myUpdateImage = app.paste();
//getting all images on the page
myDocFrames = myDoc.allPageItems;
//finding the last image placed
myNewFrame=myDocFrames[0]
//getting path to new image
myPath = myNewFrame.graphics[0].itemLink.filePath;
//importing new image into selected frame
myImage.place(myPath);
//applying original settings
myImage.horizontalScale= myHorScale;
myImage.verticalScale=myVerScale;
myImage.geometricBounds=myGeo;
//getting rid of the temporary placed image
myNewFrame.remove();
Hopefully this can be usefull to others.
Cheers
Roy

Similar Messages

  • Lately, I'm unable to paste any image into the body of any email I compose. I did not have this issue before today. Please help.

    Could this issue with not being able to copy and paste any image within the email body, be virus or malware related?
    Though I don't think I have any virus problems. Also I have all the latest updates for Thunderbird.
    I read some suggestions posted elsewhere and tried those but none of these worked :
    DID NOT WORK #1 :
    (If your Thunderbird email message is displaying strange-looking code (tags) after each link, images are missing (it looks like images have been stripped out), and the font appears different, or bold, then you’ve most likely changed the message body view inadvertently. To switch it back, simply:
    Browse to View -> Message Body As -> and select Original HTML.)
    DID NOT WORK #2 :
    Email message looks fine, but doesn’t contain images
    If the rest of your Thunderbird email message looks okay, but is missing images, or they appear to have been stripped out, it’s very possible that you’ve changed a setting that won’t let attachments (ie. pictures) appear inline (within the message body). To change this back, simply:
    Browse to View -> and select Display Attachments Inline. )
    DID NOT WORK #3 :
    If you made the above changes to your Thunderbird settings and images still aren’t appearing in some of your messages, it may be that Thunderbird is blocking them because it thinks they are spam. To adjust your privacy settings and prevent the images from being stripped out, or not displaying at all (ie. being blocked), simply:
    Click on the button to the above right of the email message asking you whether you would like to load images.
    If the email message is from a trusted sender, you can click the link above the message specifying you would always like to load images in messages from this particular sender.
    DID NOT WORK #4 :
    If you’re still having troubles, or your changes aren’t being saved (ie. next time you open Thunderbird the images won’t display again) you can directly specify the default format Thunderbird should display email messages as in the config editor. To access it, simply:
    Browse to Tools -> Options -> Advanced tab -> Config Editor
    Search for mail.default_html_action and make sure it is set to 3 (allow original HTML). If you would like messages to open as text only (more secure, but you won’t see images, change the setting to 1).
    Could you please suggest what possibly has caused this issue? Thank you for your time.

    Thank you for your response.
    After searching around for any pointers to my problem, the above fixes I listed were the things that came closest to maybe addressing the issue, that I was able to locate. But since none worked, and as you pointed out, it is now clear they will only help towards viewing sent images rather than helping with inserting any images in the body of the email, which is the problem I suddenly started facing today.
    Coming to your suggestion, on opening the Write window, the Insert choice on the menu bar is indeed available. And I had already tried using that, by clicking on the '''Insert ----> Image''' option listed. That opens
    up the "Image Properties" box but using that has not resolved the matter either. It results in an image box getting inserted within the email but without the actual image itself.
    Plus, normally I am able to use the '''Paste''' function in the Edit menu or through right-click, but today the (Cut/Copy/Paste) functions have gone inactive, thereby disallowing me to use that to place an image within the email.

  • Images I move from one folder into another are disappearing, at first it was occurring immediately if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location.

    Images I move from one folder into another are disappearing, at first it was occurring immediately and only if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location. A few of these images had copies in another folder that remained and the ones I couldn't find may or may not have ever had copies. I had backed up my system with time machine recently as well, so I went into the backup to retreive the lost images. When I searched and found the backup copies I got the error "the file alias cannot be opened because the original cannot be located". The crazy thing is that the images that remained on my computer did not give me the same error and opened like they should.
    In short images that I am creating, saving, and using are disapearing so epically that even time machine versions are affected when retrieval is attempted. Any suggestions as to what I could be doing wrong without realizing it? Or perhaps other people have had similar bugs that are software related and have a solution?

    Hi Kevin,
    I understand what you tried to do but it doesn't work that way. Swapping drive names will just mess things up.
    You should be able to reconnect the files though: in the Locate Referenced Files dialog make sure you click the Show Reconnect Options button — this will give you access to all the connected drives. Locate one of the files and hit Reconnect All. Should do the trick.
    Best

  • How do I copy and paste an image form the internet to Keynote. I have done this successfully in the past by selecting copy and then paste by using the right click function and now am unable to do so. I am thinking it is an outdate OS problem...not sure.

    How do I copy and paste an image from the internet to Keynote. I have done so successfully in the paste by using the copy and paste right click functions but am unable to do so now. That was about a year ago that I attempted that I was able to do this. Thank you for your help.

    Some images are copy-protected.
    If all else fails, you can make a screen shot of the image: 
    With the image visible in your browser, press CMD-Shift-4 and your cursor will change to crosshairs.
    Position the cross hairs at one of the corners of what you want to copy and drag to the opposite corner, then release the mouse. An copy of the image will be saved to your desktop.
    You can now edit and use this image.
    Be sure to respect copyrights.
    Message was edited by: bwfromspring hill

  • How can i copy and paste an image from 1page to another on iPad

    i have been trying all afternoon to get copy and past to work on images from 1 page to another, are shortly going on holiday and thought i would keep in contact with a website that i belong to, to be able to go on the forum and take part in the quiz's that i do now, but are not able to copy and paste an image from 1 page to another, i click on the pic, save image and copy comes up,i press copy, then go the the other page,click on the box, paste comes up but no image what am i doing wrong
    any help would be most appreciated as i have been trying for the last 4 hours
    margaret

    Copy and paste? What app are you using?
    When you tap on an image and select copy that usually copies the URL of the image.
    Save image copies the image to your Camera Roll.
    Most apps have an Insert choice that inserts an image from your Camera Roll into the document you are working on.
    But if you tell us which app you are using, we should be able to provide more exact info on how to get done what you want.

  • Pages 5.0 : impossible to paste an image in the header

    hi, with the previous version of Pages, you can paste an image in the header to get it on every page. Now it seems to be impossible. Does anyone found a solution ? Thanks.

    Images in headers & footers is just one of the many, many features that have been eliminated or changed. Leave feedback for the Pages team using the link in the Pages menu.

  • I make greetings cards and use images downloaded from cardmaking websites eg - cently I find I cannot copy and paste an image from adobe reader which is the how the images are downloaded. Why is this and how do I copy and paste an image on a  adobe reader

    copying and pasting images from adobe.     I make greetings cards and use images downloaded from cardmaking websites eg - printable heaven. Recently I find I am unable to copy and paste the images which are opened in adobe reader. Why ?  How can I overcome this problem.

    Check the document properties; is copying allowed?

  • How do I convert specific images on my clipboard to text once pasting the image onto my .pdf document?

    Hey Adobe experts, I could really use your help.
    I have a couple screen shots from school lectures that I pasted onto OneNote. These screenshots have substantial amount of text I could use. I have created a big .pDF document where I have been saving my notes and text. Now - how do I convert the SPECIFIC images I paste onto the document into text? I'm using the word "Specific" here because I know I can run OCR on a blank page without any text. But how do I run OCR on an image
    It automatically happened a couple times when I tried saving the document immediately after I pasted the image - when I was under "edit PDF" I was able to edit and change fonts of the text. But how do I do this at will? Is there a special button somewhere?
    P.S. I already tried OCR - but this is only limited to pages without already "renderable text".
    I'm using Adobe Acrobat Pro DC; Windows 8.1 machine

    Hi SinNombre,
    If you are referring to running OCR on a page with image and renderable text, it is not supported. However, you could use the following workaround for the same:
    1. Print the PDF document to Microsoft XPS Document Writer or go to File->Export to...->Image-> (Any format example TIFF or PNG)
    2. Convert the output created to PDF. This PDF will contain all text and images as images.
    3. Run OCR on this PDF.
    This should resolve your problem

  • I have used Image Capture to scan images/documents and then saved them as either PDFs or PNG files.  For some reason, just this past week Image Capture will no longer save the file.  It scans, and the Scan Results window pops up, but it won't save file.

    I have used Image Capture to scan images/documents and then saved them as either PDFs or PNG files.  For some reason, just this past week, Image Capture will no longer save the file.  It scans, and the Scan Results window pops up, but it won't save file.
    The file name has no special character in it, just letters and no spaces.
    I have done this in the past and it has worked, but now it will not.
    I have not upgraded any software, that I am aware of.
    After scanning, the Image Capture pops up the Scan Results with the file name in the window, but neither the Scan Results nor the Image Capture window responds to inputs.  The Image Capture window is frozen, with only the "Overview" and "Cancel" buttons active (but non-responsive).
    Is this a software issue or a scanner hardware issue?  I am using a HP Photosmart C6200 series printer/scanner on a network using a Time Capsule airport.
    Thanks.

    I had the same problem.
    Got a 90% fix.  Apparently the Mavericks preferences won't work with Yosemite, so I just deleted the Image Capture preferences.
    Unfortunately, the "Scan to" folder seems to be permanently set to the Pictures folder.
    1.  Quit Image Capture
    2.  Go to Finder > Go > Home, which opens up your home folder (named after your user name)
    3.  Open Library > Preferences > com.apple.ImageCapture.plist - Drag this file to the Trash
    4.  Start "Image Capture", click "Details" and change all your settings as you prefer
    5.  Quit and restart "Image Capture".   Notice it remembers all your settings except "Scan to" folder.  It insists on saving to "Pictures".
    That's as far as I was successful.  I tried changing the "Scan to" folder to "Desktop", but on launch, Image Capture always sets it back to "Pictures".
    This is what I tried:
    6.  Download and install "Pref Setter" from http://www.nightproductions.net/prefsetter.html
    7.  Quit "Image Capture".  Right-click on "com.apple.ImageCapture.plist" and open with Pref Setter.
    8.  Search for "Pictures", which finds "~/Pictures" (the tilde character at the start means your home directory).
    9.  Double-click on "~/Pictures" and change it to the folder you prefer.  I like "~/Desktop"
    10. Choose File > Save then Quit from Pref Setter.  Note that re-opening the plist file still shows "~/Desktop"
    11. Start up "Image Capture" -- on startup, "Image Capture" sets "Scan to" folder to "Pictures"
    I consider this a bug.

  • How to copy/paste texts/images from webpages in iBooks Author?

    Hi,
    I want to copy/paste text/image contents from webpages with iBooks Author, somehow images can't be copied, only texts can be copied with copy/paste editing. Wonder if there are any ways to include images with simple copy/paste?
    Tried to search iBooks Author help, could not find answers. Please help.
    Thanks

    Perhaps the people who spent a lot of time and money to produce the websites.....and who own copyright ...don't want anybody using their work without payment or credits. Have you contacted the websites owners to ask permission? 
    IF any person(s)  use anything from websites without permission apart from being to lazy to email to request permission....could face a legal action if and when the sites owners fins out. 
    There is another her misconception that "free" websites and content on "social media" such as the dreaded FaceBook....can be used without consequence. Almost all "free" websites are common licence material - which requires permission and those who give permission do so only for personal or none profit reproduction.
    i Use a blocking script on my websites which apart from preventing a right click...those who try are whisked off  my website to the the UK copyright website page which explains my rights! 
    You may wish to check out your iBooks contract with Apple and read their warnings on use of others copyright material. 
    You could ..and should contact the websites...explain what you want to use and why....and ask them if they can supply media.

  • How to paste an image from the database by creating a new page?

    Hai,
    i'm trying to paste more than 6 images in two pages...
    The condition is that i want to paste only 3 images in a page.
    When the first 3 images were pasted... i want a new page to be automatically created and the next or 4th image will be pasted on the
    next page...
    i have codings for creating a new page and for pasting the image...
    But how shall shall i paste the 4th image in the next page...
    Can any one plzz explain me...

    >
    Hi, I'd like to display a dynamic image from the web inside a JLabel or any other swing component it could work in. I've been looking on the Swing tutorials and others forums, all I can have is that a JLabel can load an Icon object, defined by an image URL, but can this URL be like "http://xxxxx/image.jpg" somehow or can it only be a local image URL?>
    I do not know why you start talking about an image on the web then go on to show concerns about whether it will work for a 'local' URL.
    But perhaps this answer will cover the possibilities.
    So long as you can from an URL to the image, and the bytes are available for download (e.g. some web sites wrap a direct call to an image in HTML that embeds the image), the URL based icon constructors will successfully load it.
    It does not matter if that URL points to
    - a web site,
    - a local server ('localhost'),
    - an URL representation of a File on the local file system, or
    - it is inside a Jar file that is on the application's run-time classpath.
    How you go about forming a valid URL to a 'local resources' (or indeed what you regard as local resources) is another matter, depending on the form of the project, and how the resources are stored (see list above).
    Probably the main reason that examples use images at a hard coded URL on the net is that it makes an 'image example' self contained. As soon as we compile and run it, we can see the result. I have posted a few examples like that on these forums.
    Edit 1:
    BTW - Welcome to the Sun forums
    Edited by: AndrewThompson64 on Apr 21, 2009 12:15 PM

  • How to select copy and paste an image that has a layer mask

    Hi,
    when I select, copy and paste the image it still has the content that I removed using the layer mask.
    I want to paste it over another psd whilst maintaing the transparency.
    Any help would be much appreciated.
    PSD is at
    http://sdrv.ms/16DoRft
    The small jpg is because I don't know what you will see in the skydrive psd
    Michael

    Wow that was so easy!
    Thanks!
    I spent at least half and hour trying to figure out why it wouldn't work.
    Michael

  • Is it possible to paste two images into one layer?

    I'm having some issues pasting two images into one layer. Every time I paste the second image, it automatically creates a new layer...is there anyway to prevent that from happening? I'm making an animation on photoshop and I want there to be more than image in some of the frames. Please let me know if you have any suggestions! Thanks!

    You can merge the two layers together once they're position. Select the top layer and choose merge down or select both and choose merge layers (from the layers menu).
    http://help.adobe.com/en_US/Photoshop/11.0/WSfd1234e1c4b69f30ea53e41001031ab64-78b2a.html

  • Copy and paste a image to the clipboard

    Hi,
    Is there anybody who knows how to copy and paste an image to the clipboard in jdk 1.3.0.
    I want make a image copy of my app like this (Panel):
    Image image = (Image)this.createImage(this.getWidth(), this.getHeight());
    Graphics g = image.getGraphics();
    this.paint(g);
    BufferedImage bufImage = (BufferedImage)image;
    Now i will send this bufImage or the image to the clipboard.
    How will it works?
    Thanks a lot.

    Hi,
    I m having similar type of problem but with JPanel not with image. i m able to copy paste a JPanel using same clipboard but i want some more operations like after zoomin my JPanel , i want that now if i copy the image of Jpanel it should be the copy of original size of JPanel not the zoomed one but in my application it is showing the blank picture
    for zoom fit size of JPanel its working ok.
    please advice me what should i do

  • Copy and Paste "Chops" Images Up

    Hi! I opened up Photoshop earlier and did something I do all the time - remove backgrounds from high-res images to make collages. Every time I try to use my Quick Selection Tool tonight, it won't keep the selection. The moment I take my finger off of the (Option) key, the selection changes and then when I press Delete, it eats away at the image outside of the aforementioned selection area.
    Furthermore, I try just pasting an image into a blank, transparent canvas and it gets "chopped" up... Why is this happening?
    I appreciate any help you can give and I apologize if this explanation is a bit nonsense!

    Man. Resetting the tool and updating worked with my first image.
    Then, I tried working with the second pretzel bag and the same thing happened tenfold :-/
    I made a selection on the left. And this is what happens after I take my finger off of the Option key. The selection broke up into these little quadrants.
    And then when I press delete, this is what I get

Maybe you are looking for