Place Image Error

I've created a script that grabs a JPG, places it so I can get the dimensions, then creates a batch file for some other software to make it into a TIF packshot. I then place the TIF in place of the JPG (I know that this could be more streamlined). It also makes a couple of visits to some Photoshop droplets in the batch file too.
However,every so often - maybe every 30 images or so, it throws up a placing error when placing the TIF, stating "Error: Either the file does not exist, you do not have permission, or the file may be in use by another application." I put a loop in to wait a second then try again, and I still get the same error so it's not down to Photoshop not releasing the file quickly enough - I've also tried it on a 10 second delay. It occurs sporadically, and if I kill the script and place the file manually, it places fine. I've even tried putting in a break point in the catch function, cycling through the code manually, closing Photoshop completely (which is the last program to access the file), and it still won't place. My link is correct, there's nothing accessing the file, there is seemingly no problem with it at all. I've even tried modifying the file in Photoshop and it saves fine proving that it is not open elsewhere, but the file still won't place. It's almost like InDesign has made a decision that it doesn't like the file on this occasion. If I kill the script and re-run, it will place fine the next time around and another image will go wrong.
The code I'm using to place is:
                           for(counter = 0; counter < 10; counter++)
                                try
                                    imageToPlace = new File(fileLocation+"//images//"+tempEAN+".tif");
                                    gbImage[0].place(imageToPlace);
                                    counter = 10;
                                catch(error)
                                    $.writeln(imageToPlace.modified)
                                    $.writeln(error);
                                    $.sleep(1000);
If it's helpful, I'm running this on the company network, on a windows share from a windows 8.1 machine using InDesign CC 64 bit. It is definitely the place that is throwing the error as the "new File()" bit is working fine. I get the modified date of the file in the catch fine too.
Any help here would be very much appreciated.

Thanks for the response Harbs,
The for loop is only in place because I thought that Photoshop was being tardy releasing file. The exception throws the first time I try to place the TIF.
However, your comment about previews seems to be bearing some fruit. I realized that I have always had a Windows Explorer window of the image folder open, so I think that it is the thumbnail generation there that is causing the problem. I've closed the window and I'm quite deep into the batch of images now and so far I'm error free :-) Thanks for the hint.
However, it doesn't answer why Javascript still thought the file was being accessed, long after Explorer had released it - As I say, I could manipulate the file name and edit the image in Photoshop when I had the explorer window open, which I wouldn't be able to do if the horrid Windows 7/8 Explorer preview system was still using it. Does Javascript need to refresh somehow? I'm trying to make this script restriction free for my colleagues, and I really don't want them coming across errors because they have left the folder they are working in open in explorer.

Similar Messages

  • CS4 unable to place image ERROR: The file is not readable

    Hi All,
    I have been experiencing big issues with Illustrator CS4 and placing images into a document.
    Basically I will be working on say a packaging project and after about the 4th image being placed I will get the error message The file is not readable I select OK (the only option available)
    RESULT: no file placed no where to go?
    I then have to save the document, close Illustrator, re-open, open the document and then the image will usually place (not always first time though and sometimes I will have to reboot the whole system!) but then the 5th, 6th, 7th image after that I have to follow the same procedure!... The image files are fine, 300ppi, 20-30MB max, PSD, TIFF, JPG dose not matter all follow the same issue... but eventually after a lot of rebooting and loading the so called un-readable files will go into the document.
    Also the image will place sometimes but the same error message will appear on attempting to embed the image!
    All very annoying and massively time consuming!!!
    To top it off since the above, random AI files when loading up will crash Illustrator out... again after a reboot the same file will open fine with no problems???
    My system:
    OS: Windows 7 Ultimate (64bit)
    Processor: Intel Core i7 CPU 920 @ 2.67GHz (quad core)
    RAM: 6GB
    GRAPHICS: NVIDIA Quadro FX 570 (3GB) (Dual monitor)
    DVD/CDR
    PRIMARY: ATA 500MB
    SECONDARY: ATA 1Tb
    Im desperate to get this sorted... other wise its back to my old system... slow but reliable!!
    Many Thanks!!

    Well, I just encountered the same issue using Illustrator CS5...getting the "The File Is Not Readable" error message...first time that's happened in the 14 years of using the program. It seems the file size was too large for Illustrator (or one of my computers) to handle. So I opened the file using one of my other computers and deleted the unused layers to reduce the file size. Originally, there were 6 layers with 3 different versions of the artwork and what I ended up having to do is create 3 separate files rather than having it all in 1.
    Hope this helps!

  • When Place Image in Photoshop, error msg: 'Problem with Photoshop CS6 caused program to stop working

    When I 'Place Image' in Photoshop, the following error msg comes up: 'A Problem with Photoshop CS6 has caused the program to stop working, close programme?'
    Do I need to adjust my set-up to run this? The PC operates on a 32-bit  system/Windows 6.

    You need to provide much more info: What files are you trying to place into what document? What are the document sizes, resolution, color mode etc.? Anything else we should know about? This could be a million things from color profile issues to color space mismatches to the files to be placed being damaged or badly structured or a importer module being broken. Also provide exact system info and crash logs:
    Working with your Operating System’s Tools
    Mylenium

  • Place image on canvas

    Hi.
    I am trying to place image on canvas.
    However the image doesn't show!!!!!!!!!!!!! :(
    no error and compiles well....
    private void AddTile(String image, int startx, int starty, int endx, int endy)
    try{
    tiles = ImageIO.read(new File(image));
    catch(Exception e)
    System.out.println("Image not Found");
    Graphics2D a =(Graphics2D)tiles.getGraphics();
    a.drawImage(tiles, 20,20,20,20,TileCanvas);
    if the above function is called the image should be placed on canvas right?
    TileCanvas is a canvas, and tiles is BufferedImage.
    just in case I'll put my source code followed by this
    * MapEditor.java
    * Created on 2006�� 7�� 20�� (��), ���� 11:48
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.imageio.*;
    import java.io.*;
    * @author SeiKwon
    public class EditorComponent extends javax.swing.JFrame
    private java.awt.Button AddTile;
    private java.awt.Button DeleteTile;
    private javax.swing.JMenu FileMenu;
    private javax.swing.JMenuItem LoadFile;
    private javax.swing.JPanel ManageTilePanel;
    private java.awt.Canvas MapCanvas;
    private javax.swing.JMenuBar MenuBar;
    private javax.swing.JMenuItem SaveFile;
    private javax.swing.JScrollPane ShowMapScroll;
    private java.awt.Canvas TileCanvas;
    private javax.swing.JScrollPane TileScroll;
    private BufferedImage tiles;
    private int tilecount = 0;
    /** Creates new form MapEditor */
    public EditorComponent()
    initComponents();
    AddTile("test.jpg", 0, 0, 10, 10);
    private void initComponents()
    ManageTilePanel = new javax.swing.JPanel();
    TileScroll = new javax.swing.JScrollPane();
    TileCanvas = new java.awt.Canvas();
    AddTile = new java.awt.Button();
    DeleteTile = new java.awt.Button();
    ShowMapScroll = new javax.swing.JScrollPane();
    MapCanvas = new java.awt.Canvas();
    MenuBar = new javax.swing.JMenuBar();
    FileMenu = new javax.swing.JMenu();
    SaveFile = new javax.swing.JMenuItem();
    LoadFile = new javax.swing.JMenuItem();
    getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    ManageTilePanel.setLayout(null);
    ManageTilePanel.setBorder(new javax.swing.border.TitledBorder("Tiles"));
    TileCanvas.setBackground(new java.awt.Color(255, 255, 255));
    TileScroll.setViewportView(TileCanvas);
    ManageTilePanel.add(TileScroll);
    TileScroll.setBounds(10, 22, 100, 230);
    AddTile.setLabel("Add");
    ManageTilePanel.add(AddTile);
    AddTile.setBounds(10, 260, 50, 26);
    DeleteTile.setLabel("Delete");
    ManageTilePanel.add(DeleteTile);
    DeleteTile.setBounds(60, 260, 50, 26);
    getContentPane().add(ManageTilePanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 10, 119, 290));
    ManageTilePanel.getAccessibleContext().setAccessibleName("TilesPanel");
    MapCanvas.setBackground(new java.awt.Color(255, 255, 255));
    MapCanvas.addMouseListener(new java.awt.event.MouseAdapter()
    public void mouseEntered(java.awt.event.MouseEvent evt)
    MapCanvasMouseEntered(evt);
    ShowMapScroll.setViewportView(MapCanvas);
    getContentPane().add(ShowMapScroll, new org.netbeans.lib.awtextra.AbsoluteConstraints(12, 10, 290, 290));
    FileMenu.setText("File");
    FileMenu.setContentAreaFilled(false);
    SaveFile.setIcon(new javax.swing.ImageIcon("D:\\java\\MapEditor\\Image\\Save16.gif"));
    SaveFile.setText("Save");
    SaveFile.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    SaveFileActionPerformed(evt);
    FileMenu.add(SaveFile);
    LoadFile.setIcon(new javax.swing.ImageIcon("D:\\java\\MapEditor\\Image\\Open16.gif"));
    LoadFile.setText("Load");
    LoadFile.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    LoadFileActionPerformed(evt);
    FileMenu.add(LoadFile);
    MenuBar.add(FileMenu);
    setJMenuBar(MenuBar);
    pack();
    private void MapCanvasMouseEntered(java.awt.event.MouseEvent evt)
    Cursor cursorshape = MapCanvas.getCursor();
    MapCanvas.setCursor(cursorshape.getPredefinedCursor(CROSSHAIR_CURSOR));
    private void AddTile(String image, int startx, int starty, int endx, int endy)
    try{
    tiles = ImageIO.read(new File(image));
    catch(Exception e)
    System.out.println("Image not Found");
    Graphics2D a =(Graphics2D)tiles.getGraphics();
    a.drawImage(tiles, 20,20,20,20,TileCanvas);
    private void LoadFileActionPerformed(java.awt.event.ActionEvent evt)
    FileDialog fd = new FileDialog(this, "Open", FileDialog.LOAD);
    //fd.setFile("*.map");
    fd.setDirectory(".");
    fd.setVisible(true);
    String filename = fd.getFile();
    System.out.println(filename);
    private void SaveFileActionPerformed(java.awt.event.ActionEvent evt)
    FileDialog fd = new FileDialog(this, "Save", FileDialog.SAVE);
    //fd.setFile("*.map");
    //fd.setFilenameFilter("*.map"); // HOW TO USE?????????????
    fd.setDirectory(".");
    fd.setVisible(true);
    String filename = fd.getFile();
    System.out.println(filename);
    public static void main(String args[])
    java.awt.EventQueue.invokeLater(new Runnable()
    public void run()
    new EditorComponent().setVisible(true);
    }

    You have at least two problems.
    1) You are mixing AWT and Swing. Instead of using a Canvas you should use either a JComponent or a JPanel.
    2) In Swing, drawing such are you are doing should be done within the paintComponent(Graphics g) method using the Graphics provided as an argument to the method.
    P.S. I can't test you code because for some reason you feal the need to use a NetBeans specific layout manager.

  • Unable to place images in Illustrator

    (Illustrator CS2)
    Hi, Im still learning the program but this is an error that hasn't occurred before under the same circumstances. I am working on Macs at uni (as I dont have Illustrator at home) and with images from my USB drive. I want to get the images into my ai document and trace them to make a logo, but Illustrator is preventing me from doing this in any way I try.
    * I try to 'place' (file>place...) a jpg from the USB into the ai document and one of three things happens:
    1. It appears as though nothing has happened so I 'select all' and this highlights an empty box where my image should be. This always happens on the first try after I open the document.
    2. I delete the box and try again. This time not even the invisible box is placed. The computer processes and then acts as if I commanded it to do nothing.
    3. Irregularly, if I try again it seems like it's about to happen (with a preview showing and asking me to approve) and then I get the message "the operation cannot complete because of an unknown error".
    * I tried opening the jpg in Photoshop and copying and pasting from there and got the same "unknown error" message, followed by the empty invisible box.
    * The images place in photoshop with no problem.
    * The images cant be dragged and dropped into Illustrator.
    * I tried opening the image with Illustrator and get the message "insufficient memory was available to complete the operation". The image is only small - less than 1MB.
    * I tried changing the file to a tiff and a pdf. I tried uploading the jpg to internet and saving and placing from there but this is unsuccessful. I tried other images saved both from my computer and the uni computer and they dont work.
    * SOMETHING WORKS: I tried with random images from the internet and some (usually around 4kb) saved to Documents and placed are done so successfully. But this is no use to me.
    I have done this in the past and there have been no problems placing or pasting images whatsoever. I dont think uninstalling is really an option as they are the uni's computers and that would probably be an ordeal.. I really need this to be fixed quickly as I have no other access to Illustrator and it's part of a job. It happens with all the computers in the lab. I cant even start making the logo until this is overcome. I would really appreciate some help! your ideas on what the problem could be and what needs to be done to fix it.
    Thanks for your time,
    Simon.

    One causes of this error I've encountered has to do with the volume size of the disk the user's home folder is stored on.
    I'm guessing that Simon Manion is logged onto the Mac at his university using a networked home folder that is stored on a volume larger than Illustrator scratch disk management routines can handle. (2TB is the limit I think.)
    The workaround that I've been using is to create a 500MB disk image with Disk Utility, mounting the image, and using it as the only scratch disk. You may need to make your disk image larger. (Remember to restart Illustrator for the new scratch settings to take effect.)
    Even though the actual local volumes are under 2TB, they don't seem to work as scratch disks if the user's home folder lives on a large server. For some reason, setting the scratch disk to a virtual volume gets thing working correctly.
    This has solved the place image problem for me in Illustrator CS, CS2, and CS3.

  • Cannot place image on contact in Address Book

    Hello,
    When trying to place an image by either dragging and dropping, editing and double clicking on the image placeholder the image does not stay.
    I have opened console and found the following when trying to drop an image (it can be any image, jpg, gif, png of any size)
    28/09/11 6:49:52.640 AM Address Book: Error deleting large image: Error Domain=NSCocoaErrorDomain Code=513 "“10DB0044-275C-49E1-9070-C7E7A9715E8F-e2acd380.tiff” couldn’t be moved because you don’t have permission to access “Images”." UserInfo=0x7f90deaf4580 {NSUserStringVariant=(
       Move
    ), NSDestinationFilePath=/Users/rachealleeb/Library/Application Support/AddressBook/Images/10DB0044-275C-49E1-9070-C7E7A9715E8F.jpeg, NSFilePath=/Users/rachealleeb/Library/Caches/com.apple.AddressBook/10DB0044-275 C-49E1-9070-C7E7A9715E8F-e2acd380.tiff, NSUnderlyingError=0x7f90e230bdb0 "The operation couldn’t be completed. Permission denied"}
    I have repaired disk permissions but it has made no difference and I am an administrator of the computer
    Please help

    I worked it out.
    The Images folder within: /Users/rachealleeb/Library/Application Support/AddressBook/ had no access. Gave myself Read write. all is good.

  • Find text place image

    Hello
    I have a script that find text and replaced it with a image, but it makes a new document and i want it in the same document that i have open.
    Can somebody help me with this problem. See script below. I work with Indesign CS 5 mac.
    Kinde regards,
    Patrick
    #target indesign
    var myDialogResult = CreateDialog();
    if (myDialogResult == undefined) exit();
    CheckIfChosenFoldersExist();
    var myIndFiles = [];
    var mySubFolders = [];
    CheckFolder(myDialogResult.indFolder);
    if (myIndFiles.length == 0) err("No InDesign files have been found in the selected folder and its subfolders.");
    var myStartFolder = myDialogResult.imagesFolder.parent;
    mySubFolders = getSubFolders(myStartFolder);
    WriteToFile("\r--------------------- Script started -- " + GetDate() + "---------------------\n");
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
    for (f = 0; f < myIndFiles.length; f++) {
              ProcessIndFile(myIndFiles[f]);
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    app.findGrepPreferences = app.changeGrepPreferences = null;
    WriteToFile("--------------------- Script finished -- " + GetDate() + "---------------------\r\r");
    alert("All done!");
    // ------------------------------------------------- FUNCTIONS -------------------------------------------------
    function PlaceImages() {
              app.findGrepPreferences = app.changeGrepPreferences = null;
              app.findGrepPreferences.findWhat = '@.+?@';
              var myFoundItems = app.activeDocument.findGrep();
              for (i = 0; i < myFoundItems.length; i++) {
                        var myName = myFoundItems[i].contents.replace (/@/g, "");
                        var myFile = new File(myDialogResult.imagesFolder + "/" + myName);
                        var myFrame = myFoundItems[i].parentTextFrames[0];
                        if (myFile.exists) {
                                  PlaceIntoFrame(myFrame, myFile);
                                  continue;
                        if (!SearchInSubfolders(myName, myFrame)) {
                                  WriteToFile("\tNOT FOUND  -- " + myFile.fsName + "\n");
    function SearchInSubfolders(myName, myFrame) {
              for (j = 0; j < mySubFolders.length; j++) {
                        var myFolder = mySubFolders[j];
                        var myFile = new File(myFolder + "/" + myName);
                        if (myFile.exists) {
                                  PlaceIntoFrame(myFrame, myFile);
                                  return true;
              return false;
    function PlaceIntoFrame(myFrame, myFile) {
              try {
                        if (myFrame.characters.length < 100) {
                                  myFrame.getElements()[0].place(myFile);
                                  switch(myDialogResult.myRadSelected)          {
                                            case 2:
                                                      myFrame.fit(FitOptions.CENTER_CONTENT);
                                            break;
                                            case 3:
                                                      myFrame.fit(FitOptions.FRAME_TO_CONTENT);
                                            break;
                                            case 4:
                                                      myFrame.fit(FitOptions.PROPORTIONALLY);
                                            break;
                                            default:
                                            // do nothing
                        WriteToFile("\tPlaced -- " + myFile.fsName+ "\n");
              catch(e) {
                        WriteToFile("\tSome error occured while placing -- " + myFile.fsName + "\n");
    function CheckFolder(folder) {
              var fileList = folder.getFiles()
              for (var i = 0; i < fileList.length; i++) {
                        var file = fileList[i];
                        if (file instanceof File && file.name.match(/\.indd$/i)) {
                                  myIndFiles.push(file);
                        else if (file instanceof Folder) {
                                  CheckFolder(file);
    function getSubFolders(theFolder) {
              var myFileList = theFolder.getFiles();
              for (var i = 0; i < myFileList.length; i++) {
                        var myFile = myFileList[i];
                        if (myFile instanceof Folder){
                                  mySubFolders.push(myFile.absoluteURI);
                                  getSubFolders(myFile);
              return mySubFolders;
    function err(e, icon){
              alert(e, "Place Images Script", icon);
              exit();
    function ProcessIndFile(myFile) {
              try {
                        var myDoc = app.open(myFile);
                        WriteToFile(myDoc.name + "\n");
                        var myNewFile = new File(myFile.fsName.replace(/\.indd$/i, "_Backup.indd"));
                        myFile.copy(myNewFile);
              catch(e) {
                        WriteToFile("Cannot open file -- " + myFile.fsName + "\nError: " + e.message + " (Error# " + e.number  + ")\n");
              PlaceImages();
              myDoc = myDoc.save();
              myDoc.close();
    function CreateDialog() {
              var myIndFolder, myImagesFolder;
              if (app.extractLabel("Kas_PlaceImages_IndFolderPath") != "") {
                        var myIndFolderPath = app.extractLabel("Kas_PlaceImages_IndFolderPath");
              else {
                        var myIndFolderPath = "No folder has been selected";
              if (app.extractLabel("Kas_PlaceImages_ImageFolderPath") != "") {
                        var myImageFolderPath = app.extractLabel("Kas_PlaceImages_ImageFolderPath");
              else {
                        var myImageFolderPath = "No folder has been selected";
              var myDialog = new Window('dialog', 'Place Images');
              myDialog.orientation = 'row';
              myDialog.alignChildren = 'top';
              var myPanel = myDialog.add('panel', undefined, 'Choose folders for:');
              var myIndFolderStTxt = myPanel.add('statictext', undefined, myIndFolderPath);
              var myButtonInd = myPanel.add('button', undefined, 'InDesign files', {name:'indd'});
              var myImagesFolderStTxt = myPanel.add('statictext', undefined, myImageFolderPath);
              var myButtonImages = myPanel.add('button', undefined, 'Image files', {name:'images'});
              var myGroup = myDialog.add('group');
              myGroup.orientation = 'column';
              var myRadioPanel = myGroup.add('panel', undefined, 'After placing:');
              myRadioPanel.alignChildren = 'left';
              var myRadioBtn1 = myRadioPanel.add('radiobutton', undefined, 'do nothing');
              var myRadioBtn2 = myRadioPanel.add('radiobutton', undefined, 'center content');
              var myRadioBtn3 = myRadioPanel.add('radiobutton', undefined, 'fit frame to content');
              var myRadioBtn4 = myRadioPanel.add('radiobutton', undefined, 'fit content proportionally');
              if (app.extractLabel("Kas_PlaceImages_RadioSelected") != "") {
                        eval("myRadioBtn" + app.extractLabel("Kas_PlaceImages_RadioSelected") + ".value= true");
              else {
                        myRadioBtn1.value = true;
              var myOkCancelGroup = myGroup.add('group');
              myOkCancelGroup.orientation = 'row';
              var myOkBtn = myOkCancelGroup.add('button', undefined, 'Place', {name:'ok'});
              var myCancelBtn = myOkCancelGroup.add('button', undefined, 'Quit', {name:'cancel'});
              myButtonInd.onClick = function() {
                        myIndFolder = Folder.selectDialog ('Chose a folder for InDesign documents');
                        if (myIndFolder != null) {
                                  myIndFolderStTxt.text = myIndFolder.fsName;
              myButtonImages.onClick = function() {
                        myImagesFolder = Folder.selectDialog ('Chose a folder for Images');
                        if (myImagesFolder != null) {
                                  myImagesFolderStTxt.text = myImagesFolder.fsName;
              var myShowDialog = myDialog.show();
              if (myIndFolder == undefined) {
                        if (myIndFolderStTxt.text == "No folder has been selected") {
                                  myIndFolder = null;
                        else {
                                  myIndFolder = new Folder(myIndFolderStTxt.text);
              if (myImagesFolder == undefined) {
                        if (myImagesFolderStTxt.text == "No folder has been selected") {
                                  myImagesFolder = null;
                        else {
                                  myImagesFolder = new Folder(myImagesFolderStTxt.text);
              var myRadSelected;
              if (myRadioBtn1.value) {
                        myRadSelected = 1;
              else if(myRadioBtn2.value) {
                        myRadSelected = 2;
              else if(myRadioBtn3.value) {
                        myRadSelected = 3;
              else if(myRadioBtn4.value) {
                        myRadSelected = 4;
              app.insertLabel("Kas_PlaceImages_RadioSelected", myRadSelected + "");
              app.insertLabel("Kas_PlaceImages_IndFolderPath", myIndFolderStTxt.text);
              app.insertLabel("Kas_PlaceImages_ImageFolderPath", myImagesFolderStTxt.text);
              if (myShowDialog== 1) {
                        var myResult = {};
                        myResult.indFolder = myIndFolder;
                        myResult.imagesFolder = myImagesFolder;
                        myResult.myRadSelected = myRadSelected;
              return myResult;
    function WriteToFile(myText) {
              myFile = new File("~/Desktop/Place Images Report.txt");
              if ( myFile.exists ) {
                        myFile.open("e");
                        myFile.seek(0, 2);
              else {
                        myFile.open("w");
              myFile.write(myText);
              myFile.close();
    function GetDate() {
              var myDate = new Date();
              if ((myDate.getYear() - 100) < 10) {
                        var myYear = "0" + new String((myDate.getYear() - 100));
              } else {
                        var myYear = new String ((myDate.getYear() - 100));
              var myDateString = (myDate.getMonth() + 1) + "/" + myDate.getDate() + "/" + myYear + " " + myDate.getHours() + ":" + myDate.getMinutes() + ":" + myDate.getSeconds();
              return myDateString;
    function CheckIfChosenFoldersExist() {
               if (myDialogResult.indFolder == null) {
                        err("No folder has been chosen for InDesign files.", true);
              else if (myDialogResult.indFolder.constructor.name == "Folder") {
                        if (!myDialogResult.indFolder.exists) {
                                  err("Folder \"" + myDialogResult.indFolder.fsName + "\" chosen for InDesign files does not exist.", true);
              if (myDialogResult.imagesFolder == null) {
                        err("No folder has been chosen for pictures.", true);
              else if (myDialogResult.imagesFolder.constructor.name == "Folder") {
                        if (!myDialogResult.imagesFolder.exists) {
                                  err("Folder \"" + myDialogResult.imagesFolder.fsName + "\" chosen for images does not exist.", true);

    Try this, I use it every day
    /*******************ImagePlacer***************************
        this script will addimages to the document by
        substituting them with the name of the image file
        between @s (file format included[@mypic.bmp@]),
        selecting them from a specified file (see below)
        and applying object styles to them, as well as
        applying the right tab i necesary.
        It then looks for overflows in the document. If an
        overset is found, it will resize to margin size the
        text frame and if overset continues, it will add a
        new page and frame, which then will be linked
        to the previous frame, allowing the story flow.
        Questo file deve essere copiato nella cartella Script di InDesign
    //Creates a new document using the specified document preset.
    //Replace "myDocumentPreset" in the following line with the name
    //of the document preset you want to use.
    var myDocument = app.documents.add(true,app.documentPresets.item("MyPreset"));
    //If the active document has not been saved (ever), save it.
    if(app.activeDocument.saved == false){
    //If you do not provide a file name, InDesign displays the Save dialog box.
    app.activeDocument.save(new File("/Users/paolbot/Desktop/Document.indd"));
    function main()
    var myDocument = app.documents.item(0);
    var myPage = myDocument.pages.item(0);
    var myTextFrame = myPage.textFrames.add({geometricBounds:myGetBounds(myDocument,myPage)});
    myTextFrame.textFramePreferences.textColumnCount = 7;
    myTextFrame.place(File("/Users/paolbot/Desktop/text.txt"));
    //Place a text file in the text frame.
    //Parameters for TextFrame.place():
    //File as File object,
    //[ShowingOptions as Boolean = False]
    //You'll have to fill in your own file path.
    //Define GREP search
    var grepFind ="@@@.+@@@";
    //Name of the folder where pdf are
    var myFiguresFolder = "pictures";
    // Stile Paragrafo applicato
    var myPStyle = myDocument.paragraphStyles.item("Normal");
    var NextPStyleCS = myDocument.paragraphStyles.item("Par_Style");
    var NextPStyleEN = myDocument.paragraphStyles.item("Par_Style_en");
    var NextPStyleDE = myDocument.paragraphStyles.item("Par_Style_de");
    // Text style applied
    var myCStyle = myDocument.characterStyles.item("text");
    //Object style applyed
    var myOStyle = "";
    var oStyle_1 = myDocument.objectStyles.item("Pictures");
    var oStyle_2 = myDocument.objectStyles.item("Pictures");
    var oStyle_3 = myDocument.objectStyles.item("Pictures");
    //MEASUREMENTS
    var maxWidth = 467; //Maximum width of an image
    var maxHeight = 666; //Maximum Height of an image
    var colWidth = 468; //Width of the main columb (340pt) + maximum Tab (128pt)
    var maxTab = 0;
    var xTab;
    var xtTab;
    var minTWidth = 340; //any image with a width below this will have the maximum Tab (maxTab) applied.
    var PWidth; //Width of the Picture
    var PHeight;//Picture Height
    var myTotal;

  • Need help to trace the place where error occuring in Web UI of type System

    Hi All,
    Need help to trace the place where error occurring in Web UI of type System error,
    this error coming while saving the corporate account creation,
    error message description : - System error: Interruption in Routine READ TABLE GT_CHAR_VAL, CHAR_NAME = PVTLTD_CLEAN_SEGMENT
    System error: Interruption in Routine READ TABLE GT_CHAR_VAL, CHAR_NAME = PVTLTD_CLEAN_CLASS-CP
    thanking you.
    Best Regards,
    VijHyd

    Hi Nagaraj,
    See that the mandatory SICF setting are enabled or Active in the SICF Services.  Follow the steps as below:-
    Enter the TCode SICF
    Execute the same for Hierarchy Type SICF.
    Check the following SAP Note 1295006.
    If every thing is Active then, the IC Agent role will open.
    Still if it is not opening Let me know.
    regards,
    Sarangamath

  • How do i place image instead of text  in swing button  ?

    Hi
    I need to place image in place of text in button i.e in place of button name i need to display image.
    Please tell me how to do this.......

    You'll need to use CSS floats.
    .floatLt {
         float:left;
         width:auto;
    HTML:
    <div class="floatLt">
    YOUR LOGO IMG HERE
    </div>
    <ul id="MenuBar1" class="MenuBarHorizontal floatLt">
    YOUR MENU GOES HERE
    </ul>
    Coding skills are essential to using DW.  Learn HTML & CSS first.  DW will be much easier.
    HTML, CSS & Web Design Theory Tutorials -
    http://w3schools.com/
    http://www.csstutorial.net/
    http://phrogz.net/css/HowToDevelopWithCSS.html
    http://webdesign.tutsplus.com/sessions/web-design-theory/
    Nancy O.

  • Place Image option is missing in Acrobat 9

    I'm trying to add an image object (jpg image) into a document.  Following the instructions to use Advanced Editing>Touchup Object tool, the right clicking, there are no options displayed.  The option to "place image" is absent.
    This previously functioned, but now it'g gone.  Any help??

    Security Restrictions of the document are unknown.
    The problem was
    resolved following an Adobe "repair" procedure, then I re-created the
    pdf file by printing it to pdf (the document had a few "typewriter"
    objects on it). Starting again from this point, the insert image options
    were present upon right click.
    My guess is that if there are
    typewriter objects on the document, this provides some conflict with the
    advanced editing tools. IF this is the case, the "help" sections on
    inserting images needs some more helpful info of this nature. Thanks for
    the response.
    On 2012-10-17 10:51, George Johnson wrote:
    RE: PLACE
    IMAGE OPTION IS MISSING IN ACROBAT 9
    created by George Johnson
    in Creating, Editing & Exporting PDFs - View the full discussion

  • Adobe Standard 9.5.2 after update I get "Insufficient data for an image" error

    After updating to Acrobat Standard and Readre 9.5.2, some (but not all) of my pdf files are now opening with the error "Insufficient data for an image." The files open, but they are fuzzy, pixelated and are missing the bates stamp I applied earlier (using a utility from LexisNexis Casemap). I can open the files fine on another computer with Acrobat Standard 9.5.1.
    How can I uninstall the 9.5.2, or get it to work again?

    Windows 7 64-bit with Samsung SSD on an i5 Lenovo laptop. Yes, I have both Acrobat Standard and Reader 9.5.2 on the machine. Both give the same error when opening the attached file.
    -Dan-
    [email protected]
    Date: Thu, 16 Aug 2012 23:06:52 -0600
    From: [email protected]
    To: [email protected]
    Subject: Adobe Standard 9.5.2 after update I get "Insufficient data for an image" error
        Re: Adobe Standard 9.5.2 after update I get "Insufficient data for an image" error
        created by vamalik in Acrobat Installation & Update Issues - View the full discussion
    Hi osieko,Can you share across any such sample pdf file? Also, what OS are you working upon?You have both Acrobat Standard 9.5.2 and Reader 9.5.2 installed on your machine. Right? One option that you can try is to repair your Acrobat/Reader from Programs in Control Panel and see if that resolves the issue.Otherwise kindly attach a screenshot of the error you are receiving along with any sample pdf file.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4627764#4627764
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4627764#4627764. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Acrobat Installation & Update Issues by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Can't save image, error message ???

    Hi, I'm trying to save a pdf image in photoshop, as I always do, hitting command S, or going to file-save. I keep getting an error message saying "could not save "x" file because the file is already in use or was left open". Well duh, of course it's in use, I'm working on it.
    Anybody know what's going on here? Am I missing something?
    Thanks!!
    Eric

    Thank you! I'll give it a try!
    Date: Sun, 16 Aug 2009 15:31:32 -0600
    From: [email protected]
    To: [email protected]
    Subject: can't save image, error message ???
    happens once in a while not sure why try a save as and over write the file now make changes and do a save and see if it works.
    If does not I would reset the preferences or trash the settings folder.
    >

  • Place images to a specific spot in a template

    I am trying to create an action that will drop images into a specific spot in another document and save it with a certain file name. After the first image is dropped in and saved, I want my next image to do the same and so on. I have all my images cropped to the correct ratio and being pulled from a folder on my desktop. I have my template open in Photoshop where I want my images from that folder to be dropped into. Is this possible?
    Any help is greatly appreciated!!
    Melissa

    Melissa
    What you want to do can be done but it is complex and actions have some limitations and can not use logic without using a script or two. File saving  can be tricky for an action will always save the same file name or use the current document name saved either overwriting the file or saving it to some other particular folder. Action that populate a template can be created but it will always populate the same number of images because an action can not use logic to find out how many spots there are to populate. There are different ways to drop an image into the active document you can paste into an area or just past in the image in as a new layer.  You can also Place images in as smart objects. Each method has some advantages and disadvantages. Layers can also be aligned with selections and layers can be transformed in size.  Your best off creating rule for creating a template and have a plan as to how your going to populate these templates that follow your rules. To protect the template from alteration you may want to dupe the template close the original and work on the duped version. When you dupe the template you can give the dupe a name if you do not name it the new document will have the same name with copy appended.
    Scripting is more powerful then Action but they are programs that are written in a scripting language. Photoshop supports three languages. VBS, Applescript and Javascript. Only Javascript is supported on both the MAC and PC platforms.  Even using Javascript you may need to code the script to work on both platforms for I'm sure there are some differences in the OS and file system the may need special handling to work on both platform.  From you description of you work-flow it is hard to tell exactly what you are doing.   If you trying simple create a photo Collage.  You may want to have a look at my free Package for Photoshop called "Photo Collage Toolkit" . I have been told this package works on a MAC but I created it and tested it on widows and got it To work with CS2, CS3, CS4 and CS5.
    Photo Collage Toolkit UPDATED Sept 24, 2011 added a script to replace a Populated Layered Collage Smart Object Image with an other image with resizing.
    Photoshop scripting is powerful and I believe this package demonstrates this.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are eight scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    Note: Rags Gardner www.rags-int-inc.com Photoshop Collage Template Builder script Copyright (c) 2006 builds layered Photo Collage Template psd files. Rags's has given me permission to include a modified version of his script in my package. The modification converts Rags's layered image template document into a flattened template compatible with Photoshop "Photo Collage Toolkit" package. There is also an option that will instead create a layered image stack like Rags's templates are these are also produced if you attempt to create a template with more then 53 images.
    Photoshop only supports up to 53 Alpha channels therefore with its design the Photo Collage Toolkit can only support collages with 1 to 53 images. I do not feel this is a big limitation for if you put 53 3:2 aspect ratio images on a large 16" x 20" paper they would need to be less then 1.9" x 2.86" in size if you wanted a frame around each and less then .95" x 1.43" on a 8" x 10" year book page size.
    While the maximum number of images in a collage is 53 you can actually create larger collages by populating a large number of images into several collages and then populate yet an other collage template with these populated collages. Each will be placed into the collage of collages as a single smart object layer. You may want to save the populates PSD file as Jpeg files first to cut down on the overhead of having large PSD file smart object layers in the collage of collages.
    Documentation and Examples

  • Most efficient way to place images

    I am composing a Catalog with a lot of images along with the text.  The source images are often not square (perfectly vertical, portrait).  I also want to add a thin line frame around each one in InDesign to spurce up the look.  I'm spending a lot of time in Photoshop straightening images, because rotating in Indesign to get the image straight results in a non-straight frame.
    Should I create a small library of frames that I place, then place non-straight images in them (and how do I do that) and rotate in InDesign?  Etc?
    What would be the most efficient way to do this?
    Thanks

    To tag onto what Peter said, when you click on the image with the Direct Selection tool you can also use the up and down arrow in the rotation Dialog (where you enter the angle, at the top) to easily change the rotation.
    Also, when you place images in InDesign you can select a number of images at once and continually click the document (or image frame) and place all the images you selected to import. To clarify, you can have a whole bunch of empty image frames on the page then go to file > place and select all your images, then continually click and place them inside each empty frame.

  • Which is better way to place images ?

    I'm making huge catalog with a lot of products.
    Which way is the proper way or better way to do?
    Make individual product image paste on photoshop and bring in to InDesign and lay images (re-sizing smaller, not bigger) and text out.
    or
    Make multiple product images paste on one photoshop document which size to catalog size already, then place into InDesign.
    My thought is, if you don't make images bigger in InDesign, it's easier to make individual images and bring to InDesign and playing around for layout.

    placing many images can go fast, select all (or a part) images you like to import, before placing the first image, hold down COMMAND-SHIFT key, now you can draw a grid for the images, when you are drawing that grid, you can use the UP, DOWN, LEFT or RIGHT keys to increase or decrease the number of collums and/or rows. That way you can place images at high speed.

Maybe you are looking for

  • Spry Menu Invisible in IE

    Hey there folks.  For help in the past I'm grateful.  My website (and that I've done for a friend) looks great. I am trying to put a "Country List" vertical spry menu on my site (within a table).  I am using DW CS5.  In Firefox it appears just fine (

  • Moving user files from one server to another.

    Hi everyone I would need your help to help me migrate the user files of around 300 persons to a new server. Is there a tool that could help me doing that? Here is the situation: I have an old 2003 server with all the user accounts. We are using the s

  • Using Charm with CTS+

    Hi experts, I would know if it's possibile configure the change request management to manage non-abap transport. I have a PI landascape (abapjava) where I configure the CTS. I would know if I can implement CHARM in my solutionmanager in order to mana

  • Having trouble pulling/cloning with git

    Hi there, I am experiencing troubles pulling or cloning from any given git repository using SSH. I can just fine do it over HTTPS, but I would much rather use SSH so I don't have to type in my password. My error is this [mads@Adria temp]$ git clone g

  • Copy Rows From (Table1 in Database1) to (Table1 in Database2)

    I have 2 Copy's of the database Db1 location c:\Db1.accdb  Db2 location c:\Db2.accdb I connect to Db1 and returns data into DataTable from Tabel1 , then I connect to Db2 and try to insert That Datatable to the table1 in Db2 , it's not working , I try