Needed simple script to reset multiple images to 100%

I don't know if this is the right place to ask, but I cannot find such a script anywhere: what I want is to reset the size of multiple selected images back to 100%.
Looks like such a simple and needed function is not included in InDesign CS3...
(MacBook Pro, Indesign CS3).

"codevar" at the start oughta be just "var".
"idx[idx]." oughtta be "sel[idx]." -- twice.
Otherwise (untested) it seems it should work.
Harbs, was this sent by e-mail? I've been having flowers weird problems lately, trying to format something as quote or code with the flowers Jive web editor. Some flowers line of flowers java keeps popping up -- using IE 8, latest flowers update.

Similar Messages

  • Bridge CS6 Script to Find Multiple Images in Multiple folders.

    Is it possible to have a script to find multiple images within multiple folders that is on a external hard drive?
    For instances I have a external hard drive assuming it's for a library of pictures.
    Inside this hard drive has folders named as below
    1-1000
    1001-2000
    2001-3000
    3001-4000
    If I had a perfect csv file for example that calls out for specific pictures for example 2, 10,1500 and 2000 (remember think big, it may be a larger list than this it could be hundreds or thousands of pictures); is there a script that would allow me to find these images and save a copy of them on to my desktop so that way I don't have to hunt for them in the old fashion way? I can read scripts but writing them is a different story.

    If you want to go with Batch I would recommend creating an Action of more or less these steps:
    • set the resolution to the same as the background image’s
    • change the image from Background Layer to regular Layer if necessary
    • convert it to a Smart Object
    • add a Drop Shadow Layer Style to the image (do not use Global Angle)
    • place the background image (File > Place …)
    • move it behind the image layer
    • Image > Reveal All
    • make Selection from that layer’s transparency (cmd-click its icon in the Layers Panel) and use Image > Crop
    • select and transform the image layer to fit the intended position
    This would naturally work out best if the images had the same size and proportions.
    For the reflection on the floor duplicate the image, flip it vertically, move it in position and reduce its opacity to maybe 10%.
    Realistically you may have to hide it partially behind the pillows, a Vector Mask would be an option.

  • InDesign CS3 Scripting XML Import Multiple Images into same Text Frame

    I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out like how Microsoft Word handles inline images, i.e., laying out next image to the right of previsous image in the same line and if there is not enough space left in the line, then wrap to next line. Thanks in advance. I understand I could use JavaScript to do post import processing, e.g, calculate the image size and place each images accordingly. But I am trying to see whether there is a way to do this without scripts.

    You can apply an object style to all anchored images by script. A text frame containing main flow should be selected.
    var doc = app.activeDocument;
    var textFrame =  app.selection[0];
    var rectangles = textFrame.texts[0].rectangles;
    if (rectangles.length > 0) {
         for (var i=0; i < rectangles.length; i++) {
              rectangles[i].appliedObjectStyle = doc.objectStyles.item("Cover");
    However, there is a better approach:
    Step 1
    Create place holders for a single "Book" element and format it as needed -- apply an object style to the cover.
    Step 2
    Import the xml file -- the placeholders are replaced with data from the 1st xml element
    Step 3
    Drag & drop the element containing all "Books" elements into the main flow -- all elements are placed and formatted the same way as in step 1.
    Finally, add a new page, click the overset text icon and autoflow text to add pages so that to fit all the text.
    Hope this helps.
    Kasyan

  • How do I run a simple script that loads an image into photoshop CS - CS4?

    Hello,
    I am at a loss on how to get my simple application to work. I have a small desktop air application that simply opens Photoshop and runs an action. I used switchboard and the application ran great on PC and MAC. However it only worked for CS3, and CS4 not CS or CS2?. Plus the size of switchboard was a bit large for my small app. I am willing to live with that though . I am using Air with Flex and wanted to know if perhaps there is a beter approach? All the application does is open photoshop, loads an image, and runs an action. Can I do this for all versions of Photoshop using switchboard? Can I do this without switchboard and just use javascript. The big issue is the Air app needs to open Photoshop, and most of the examples have me open PS first and then execute a script located in the PS directory. This needs to work outside of the PS directory. Any examples are appreciated.
    I have looked at the following:
    - SwitchBoard : only works for CS3-CS4 (on my tests)
    - PatchPanel: same issue, plus seperate SDKs
    - ExtendScript: requires script to be run from PS not Air

    Hello,
    I am at a loss on how to get my simple application to work. I have a small desktop air application that simply opens Photoshop and runs an action. I used switchboard and the application ran great on PC and MAC. However it only worked for CS3, and CS4 not CS or CS2?. Plus the size of switchboard was a bit large for my small app. I am willing to live with that though . I am using Air with Flex and wanted to know if perhaps there is a beter approach? All the application does is open photoshop, loads an image, and runs an action. Can I do this for all versions of Photoshop using switchboard? Can I do this without switchboard and just use javascript. The big issue is the Air app needs to open Photoshop, and most of the examples have me open PS first and then execute a script located in the PS directory. This needs to work outside of the PS directory. Any examples are appreciated.
    I have looked at the following:
    - SwitchBoard : only works for CS3-CS4 (on my tests)
    - PatchPanel: same issue, plus seperate SDKs
    - ExtendScript: requires script to be run from PS not Air

  • I need a script that can save images in whatever directory they reside in

    I am working on a project where I have over 1500 directories that have multiple .TIF images in each one. I am looking for a solution where I can run a script (which may or may not call on actions) that allows me to save each .TIF as a .PSD and again as a .PNG (with specific optimization settings) in the same directory as the original .TIF. The main idea here is I need to be able to run the script and walk away. So I'm looking for a one press option for each directory.
    I can create an action that saves the files in the proper format but when I record the action it saves the file in "folder 1". When I run this action again on "folder 2" it saves the images in "folder 1."  I could certainly make adjustments in the "Batch" dialog box by choosing the over ride "save as" function but the goal is to not have to do that 1500 times.
    So, my question is, is there a single script out there that can save images next to the original .TIFFS regardless of what directory the reside in? I'm no scripting guru, but perhaps the code uses something with a "this" command to specify the folder to save images to? Is this even possible? If so, are there web sites I can buy this from? Is there a scripting community that can provide these services?
    Any help to point me in the right direction is much appreciated.
    Mike

    You could try my Picture Processor ...
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=3409&sid=3925f7039423a428ed082feba2c0aee 9
    Use the second download.

  • Reset multiple images' clipping paths to "None"

    In InDesign CS4, is there a way to check all images at once and reset their clipping paths to "none?" I work on catalogs that have several thousand photos (tif, Photoshop, and a few jpg files) in each one. We break the catalogs into approximately 10 sections/documents then organize them into a book file/palette, so there are only a few hundred images in each section/document. Originally a clipping path was applied to the photos (either a Photoshop clipping path or a "detect edges" path), but we now save them with transparency, so I'd like to be able to turn them all of at once (especially the "detect edges" paths).
    Any suggestions? I know basically nothing about scripting, so writing a script wouldn't work in this case.
    I appreciate any help...
    Thanks,
    Lloyd

    I'm not sure.
    Isn't it a collection up to this:
    docs[l].rectangles.everyItem().images.everyItem()
    from this point it's got a length:
    docs[l].rectangles.everyItem().images.everyItem().clippingPath
    So this works here:
    #target indesign
    function main() {
              var docs = app.documents.everyItem().getElements(),
                        l = docs.length;
              while(l--) {
                        try {
                                cPaths =  docs[l].rectangles.everyItem().images.everyItem().clippingPath;
                                pl = cPaths.length;
                                while(pl--){
                                    cPaths[pl].clippingType = ClippingPathType.NONE;
                        } catch(e) {
                                  alert(e);
                        alert('All done! You can go outside and play now!')
    app.doScript('main()', undefined, undefined, UndoModes.entireScript, 'Reset Clipping');
    Have a nice day
    Hans-gerd Claßen

  • Need simple script, I think.

    I have just created a 500+ page merged document [first time to use datamerge -- coolio] but now need to apply a swatch color to a grayscale graphic (a QR code) on each page. I could convert all the K files to CMYK, triple the file size of 2700 graphics and suffer an inelegant solution OR get someone to help me with a simple applescript to do the same thing... unless there is another way to do it that I haven't figured out.
    I have NO scripting experience and no time to learn it for this project. Anyone feeling the generosity of the season and willing to direct me along the right path?
    Many thanks in advance.
    Jessica
    [CS5 on Mac 10.5.8]

    Here you are.
    In the first line you should put your swatch name in the place of "Gray". Copy, then save as plain text (if you are using TextEdit on the Mac, select this first in the Format menu) in your Users Script folder as "MakeAllGraphicsGrey.jsx". Double-click to run and sit back.
    var swatch = app.activeDocument.swatches.item("Gray");
    for (var i=0; i<app.activeDocument.allGraphics.length; i++)
              app.activeDocument.allGraphics[i].fillColor = swatch;
    Here is a Before (left) and After (right) picture to show it axually works.
    (Jongware himself posing with his new tattoo.)

  • Multiple images on a blog

    I have a client who wishes to upload muliple images to a blog post. They are use to the ease of tumblr for uploading different quanties of images in different formats (landscape / portrait etc). Does any one have any best practice or examples of the best way to allow for clients with little html skills to achieve this. One image per post isn't going to cut it with these guys and they dont really have any photoshop skills!
    Thanks
    karl

    Hi Liam, thanks for your reply, my client is ok with the media manager and uploading multiple images. The problem however is that they are use to tumblr dynamically chaging the size and laying out their images in a nice 'thumbnail' style gallery on each different blog post.
    I am after a simple way to display multiple images via css as 'thumbnail' style gallery in a blog posts.
    If there isn't an easy way to achieve this, Is there a way to restrict the amount of css image classes in the image class name drop down so my client only see classes that are specific to laying out images?
    Thanks
    Karl

  • One script to make multiple cells call one function or vice versa

    Please help.
    I need one script to make multiple cells reference one function or one cell reference multiple functions.
    Goal: On the enter event of cell c1, I want to make cells (this, Header.c1, Example.c1, rLabel) highlighted, and this would be for every other cell that is entered into, their corresponding column header and row header will be highlighted.
    I've tried combining cells: eg
    colourControls.hdfieldLoseFocus(this, HeaderRow.c1, Example.c1, rLabel);
    and I've also tried combining some scripts in the function:
    fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";
      HeaderRow.fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";
      ExampleRow.fieldObj.ui.oneOfChild.border.fill.color.value = "255,255,200";
    But they dont work. See the link to my form.
    http://www.winstonanddavid.com/example.com
    I tried testing the function with the cell 'c1' but it doesnt work.
    Also, I want to get rid of the multiple lines of script in every other cell.
    How can I do this?

    I played around with the ExtendScript Toolkit and cutted and pasted the previous script from here until I managed to get a script that actually works like I was thinking. I then added a code from the CS4 Reference Manual to move Layer1 to the top (just to see if it worked).
    I have no idea yet if the the code includes something that does not belong, but at least I get no errors. The current code is like this now:
    //Apply to myDoc the active document
    var layerName = LayerOrderType;
    var myDoc = app.activeDocument;
    //define first character and how many layers do you need
    var layerName
    var numberOfLayers=0;
    //Create the layers
    for(var i=0; i<=numberOfLayers; i++)
    { var layerName = "Background";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = "Picture";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = "Text";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = "Guides";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    // Moves the bottom layer to become the topmost layer
    if (documents.length > 0) {
    countOfLayers = activeDocument.layers.length;
    if (countOfLayers > 1) {
    bottomLayer = activeDocument.layers[countOfLayers-1];
    bottomLayer.zOrder(ZOrderMethod.BRINGTOFRONT);
    else {
    alert("The active document only has only 1 layer")

  • Is it possible to apply an adjustment to multiple images at once?

    I'd like to be able to apply a simple Auto Enhance to multiple images. I don't see where that's possible, but maybe someone has an answer. Thanks in advance.

    I'm sorry.  I wrote wrong.  .
    Here are correct instructions:
    To create this Effect:
    - Select one Image with no adjustments.
    - Apply Auto-Enhance by clicking the magic wand icon at the top right toolbar of the Adjustments Inspector.
    - Click the Effects drop-down (to the left of the magic wand icon) and select "Save as Effect".
    - Name the Effect (suggestion: "Auto-Enhance (built-in)").

  • Multiple image upload CRASH!!! but works with simple image upload

    I'm getting MAD.
    I'm using php and GD
    While the simple image and re size works like a charm, the multiple image upload or the multiple file upload have a strange behavior.
    It opens the pop-up with flash, then eventually shows me files or thumbnails but when I try to up load I just wait and get the typical "system becoming unstable" flash error.
    As I can see the directory is always generated (I've tried also to put a static directory) but after stargin the upload the flash uploader just crashes and no result.
    Any help would be really appreciated

    Hi Fonzie,
    as the folder is getting created, the issue you´re having is not related to wrong folder permission - it´s something else...
    As I wrote before, che common upload and resize function works perfectly
    this one works perfectly, because it´s just one file to upload and to process, wheras doing that with multiple files might collide with some settings on your server
    So for sure it's not a simple issue as the max filesize
    Are you sure ? Did you check the current "max_upload_filesize" setting ? As long you don´t check it, you can´t know :-)
    As a general rule of thumb, it´s important to be aware of the fact that uploading & resizing images on the server might collide with several PHP settings -- and the more images you upload and resize in one swoop, the closer you´re getting to these limits respectively might even be exceeding them. The following "directives" are those which have an effect on whether your image/file upload & processing will work or not:
    - "max_upload_filesize" :: is sometimes set to just 8 MB on a shared hosting, sometimes 16 MB, sometimes more. This setting will affect the file upload procedure only
    - "set_time_limit" (e.g. 30 seconds) :: if the execution time of a script exceeds this limit for whatever reason, the server simply shuts it down without letting you (respectively the flash uploader) know it´s been shut down. This *might* be the reason why ADDT´s flash uploader hangs respectively returns that error message after some time, because it´s waiting for some response from the server which never comes.
    - "memory_limit" (e.g. 8 MB) :: this directive is a sort of "allocated server RAM" for your account, and it´s in particular the image resizing process which will grab more or less memory resources -- the higher the the resizing factor is, the more RAM is spent, and the more images are getting resized in one swoop, the worser it gets.
    However, all these PHP directives can be changed, and your host might even be so courteous to increase the currently defined values of those abovementioned directives for you -- and that´s what I´m suggesting at this point.
    Cheers
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Need a script for squaring images of various sizes please

    Hello, new to this group but have been using photoshop for years doing basic editing. I have never done any sripting. I have a project on my hands. I have a lot of image of various sizes with some taller or wider than others. I need to make all these images exactly square though. Currently they vary and are wider or taller etc.
    I was wondering what process I could use hopefully with batch editing but was told scripting might be the answer to automate this process as I have about 8,000 images.
    So for example one image might be 200 pixels wide and 400 pixels high and another is 100 pixels high and 600 pixels wide and so on. I would need the
    1st example to be 400 x 400 and the 2nd example 600 x 600.
    I am using photoshop 5.5
    The software for a shopping cart is using a feature that allows you to zoom in on the image but if it is not perfectly square the image doesn't appear
    well in the software. Using magento e-commerce.
    Thanks for your help and any thoughts on this project of mine.
    Dave

    Here a simple script the does what I think you want.
    // squares the canvas. uses the background color
    var doc = activeDocument;
    var maxDim = Math.max( doc.width, doc.height );
    doc.resizeCanvas( maxDim, maxDim, AnchorPosition.MIDDLECENTER );

  • Creating a simple Template for multiple images

    Hello,
    I work for an online company, and we deal with displaying multiple images on our site.  I've been just cropping sets and just droping them in a file and organizing them that way, but I was wondering if there is a faster way of doing this in Photoshop with Templates maybe? but it needs to be easier and faster than the process I'm using now. Any help would be greatly appreciated.

    When I read what you have written "we deal with displaying multiple images on our site.  I've been just cropping sets and just droping them in a file and organizing them that way, but I was wondering if there is a faster way of doing this in Photoshop with Templates maybe?" I don't comprehend what your doing now.   Photoshop is not a file editor however it can create files that have more then one image. Perhaps you could describe what you want to do.  What is a set, what is in the set, how many images in a set is that number always the same how do you want to crop do you have some layout in mind some size requirement?

  • SCRIPT TO IMPORT MULTIPLE PLACED IMAGES..AND OUTPUT MULTIPLE IMAGES TO SINGLE PDF.

    Anyone got a script to import multiple placed images into CS4? or is this possible in CS5?
    and can we output multiple layers into a single PDF in illustrator?  Or multiple layers into single JPEGS from illustrator with one command instead of individually saving out each page... would be a huge time saver for me.
    Currently I output each completed layer individually and then right click those outputted jpegs in their output folder and choose "combine supported files into acrobat..." to make a single acrobat file..
    I`d also like to be able to CTRL click multiple layers and go save as... only those layers get saved out...
    And so adding something in the Save for PDF output dialogue box to save layers to multiple pages would be a helpful time saver..

    In CS 4 and CS 5 you can drag and drop fro m the finder or the Bridge, and I guess any other similar type viewer, multiple number of image files to a document. You can configure the bridge in such a way as to allow you to see the Bridge and your document at the same time for this very purpose.
    If you just drag and drop the files are linked if you drag while holding the shift key then the files will be embedded.
    ID and PS CS 5 have a minibridge which works the sam way but is an actually panel and will stay in the front.
    I separate the images but they import one on top of another.

  • Need Help, i have an Ipad2 after 6.3.1 update, i have no cameras, or e-mail, I already reset, multiple times, but no improvment, can anyone help?

    Need Help, i have an Ipad2 after 6.3.1 update, i have no cameras, or e-mail, I already reset, multiple times, but no improvment, can anyone help?

    When you say reset, do you mean a reboot by holding both the power and home buttons until the apple logo appears, ignoring the red slider if it appears?

Maybe you are looking for

  • Error while creating Communication Channel- No SLD elements of type  SAP_XI

    Hi Experts, I am getting an error when i am tring to create an Communication channel for File Adapter . Error message: No SLD elements of type  SAP_XI Adapter Framework Found. Could you let me know how to proceed and fix the issue. Regards Kiran Kuma

  • Performance of ramjournal

    Hi, Has someone done some tests with ramjournal? What I found is that the performance of versionedPutAll gets worse when the cache size grows. Is this the case for anyone? I am using 2 nodes storage enabled and a cache in distributed-scheme. I am usi

  • Custom Reports in SQL Developer and translations files

    I try to do custom reports for our development team and I would have translated ones, like standards does. Does anyone have any informations on how to do that ? I tried with xliff file in the same directory of my custom xml but without any result. Ha

  • Problem converting PDFs to Word or Excel, does anyone know why?

    I have been converting PDFs to Word or Excel for several years but lately every time I try an error message comes up saying "an error occurred while trying to AdobeExport PDF online", does anyone know why?

  • Document for OBIEE 11g services

    Hi Gurus, I have a requirement wherein we need to run the OBIEE 11g services(Weblogic server and node manager) in background in AIX instance. If anyone has a document or step by step procedure for that, please share it. Thanks in Advance. Raghu