Using the folder path, save images using script

Hi friends,

How can I copy the image all the file and save in different folders.

Thank you

[nav]

Hello

var destFolder = '~/Desktop/myDest/'; // your 'my Folder'
var picNames = []; //array of names of copied images

var path_Name = '~/Desktop/mySource/';
var myPics = Folder(path_Name).getFiles('*.*'); //list files in folder

var countFiles = myPics.length;

while(countFiles--){
    picName = myPics[countFiles].name;
    picNames.push(picName);
    myPics[countFiles].copy(File(destFolder + picName))
        }

Hope this will work

Tags: InDesign

Similar Questions

  • STEAM will not install. Fatal Error 1324; The folder path ' Program Files (x 86) contains an invalid character. How to fix this?

    I can't play any of my games, because STEAM refused to install... I have used their Web Site and my records... the results are the same... the same fatal error pops up...

    From the other thread: http://answers.microsoft.com/en-us/windows/forum/windows_7-gaming/error-1324-when-installing-steam/d9515071-2fc1-405c-875a-8fd6bca91930

    Title: ERROR 1324 When STEAM plant

    I tried to install STEAM via the WEB and game discs (games include Civilization V, Napoleon - Total War & EMPIER - Total War)

    Program runs until the WIZARD of INSTALLATION of STEAM... as soon as I received an ERROR 1324. The fold path ' Program Files (x 86) contains an invalid character. It does not specify which file or which character is not valid. I tried several registry cleaners... no luck. There is nowhere any folder on the computer for the Valve or STEAM...

    I disable the security & firewall and still get the same results... The installer of Steam does not work... Help?

    Hello

    Have you contacted https://support.steampowered.com/newticket.php to help?

    Thank you!

  • Show the folder path in the title bar of Windows Explorer

    How can I show the folder path in the title bar of Windows Explorer? I tried to switch to Classic view and check the "display full path" option under "Folder Options", but that did not work.
    If there are no built in parameter to do this, anyone know of a good third-party plugin that will accomplish this?

    Heh, after playing with my Google in terms of search, I found the answer to my own question!
    There's a small utility called Aerobar that you can download here. It puts the full folder path in the title bar of Solution Explorer.

  • How to add the external library in the folder path of class for use in Java outgoing call?

    Hello

    I work with the OSB 12 c under Jdeveloper Java legend item.

    Thing is pot I use to perform the conversion from json to xml that use external libraries.

    When I give my jar to java legend project reference it doen't find external libraries.

    Could you please tell me how to add external libraries in the class path folder or use to add it via web logic Server?

    Thank you

    Pavan

    Hello

    Thanks, I solved a problem.

    We can add the following in windows pc path:

    C:\Users\your_usename\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\lib

    We add your external lib here and restart the weblogic server instance.

    Now you have this external lib or jar in use.

    Cool!

  • in firefox 4, I don't have the option to save image then right click on a photo in facebook. my friends say they do. Why can I not?

    I have windows xp and start using firefox, I'm very happy with firefox but in IE I always pick up pictures of family and friends on facebook. That is to say all I do is right click on the image and choose Save image as in firefox, but that I don't have that option when I right click on a photo. My friends who use firefox say they do. What should I do to fix this? also when I've upgraded to firefox 4 I no longer get a list of friends farmville and other games to send gifts. I use IE to get photos and if I want to give something in games.

    It's a Facebook problem - because they changed during the display of the slideshow of pictures you can save.

    Easy answer, open a photo as usual, when the photo appears in the black slide show, click the Refresh button on the toolbar at the top of the FF - the photos back to the old FB style show pictures - then do a right click and "save image option is there...

  • Setting the folder for imported images

    Hi all

    I use the newest Lightroom on my German computer Win10 and the right at the beginning, I put the import folder to D:/AdobeData. Which was fine for a few weeks.

    This time.

    Today I put in my SD card, start the import and suddenly noticed that the files don't land in the D:/AdobeData folder as always, but rather somewhere in my "my pictures" (= Meine Bilder) on my C: drive.

    1 how Lightroom decided for me to change the folder?

    2. How can I change it back, because I searched the menu several times already and I do not find this option.

    PLEASE HELP ME!

    Because I hate this piece of $% & § $% & software already :-(

    Kind regards

    Theo

    PS: Excuse my English, but there is no support for German customers option, I was redirected to this forum.

    It must be because the 'Add' option is selected.

    The ability to change 'To' appears when you select copy, copy as Move or DNG and which is useful when you import from sd card.

    If the images are already on your hard drive and you want they are transferred to folder D:\AdobeData, then you must select 'Move' [these options rise up in import window Center]

    And make sure you're not duplicating. You may have to "do not import duplicates alleged" checked.

  • I still go home screen that says SCREEN AUTOMATIC of THE FOLDER of SAVE, AND I'm SICK OF IT HOW CAN I GET RID OF THIS AUTOMATIC SAVE FILE SCREEN?

    DITTO ABOVE AUTOMATIC SAVE FOLDER SCREEEN KEEPS POPING UP INSTEAD OF THE HOME SCREEN HOW CAN I GET RID OF IT

    This isn't a good solution if I still make use of the plugin.

  • List vm name, IP address, and the folder path

    Hello

    DOE anyone at - it a script that will list the following?

    VM name, IP address, path to folder.

    Thank you

    Try the attached script

  • Some colors are suddenly the wide path in images and text after upgrade.

    Ubuntu auto upgrade to 50.0 FF this morning. Text and images are off color. Since upgrading, text which should be blue renders in red. A link to a site with a wheel of color shows several colors have changed (pictures in typical stories are weird in this color change). Problem appears only if you use FF through (xrdp on XFCE) remote desktop. Viewing at the console of Ubuntu system shows normal color. A temporary copy of FF 49 regression confirms the problem is present in FF50.0. I have to live with sallets FF 50.0 until some sort of correction can be made.

    Off-color FF 50 printing is correct

    A bug has been introduced this (1319554). Until someone comes up with a fix, consider changing the value of gfx.xrender.enabled to TRUE in topic: config.

  • How to on windows 8.1 PRO create the new partition, save image system on it and restore it from this image

    HP pavilion model - 17-e054ca

    After upgrading to PRO 8.1 window I see
    C:\ 932 GB
    D:\ 28 GB-sized recovery

    I want to save system image backup
    Currently, to create the system image backup, I have only one option to create the image on the external drive or on D:\

    1 is it possible without having to reinstall windows create new partion E:\ in order of the system backup images that him?
    If yes how to create new partition in win.8.1?
    2. If the partion E:\ will contain system images can I boot from usb drive recovery and choose one of the system located on E:\ restoration images
    3. If for some reason I want to reinstall the operating system from the recovery set DVD (s) factory setting of what is going to happen with partion E:\
    4. What is-locations of D:\ marked as recovery?

    1 is it possible without having to reinstall windows create new partion E:\ in order of the system backup images that him? If yes how to create new partition in win.8.1?

    (1) YES. Please see Computers HP - partitioning and naming (Windows 8) readers for the instructions titled "create a new partition.

    2. If the partion E:\ will contain system images can I boot from usb drive recovery and choose one of the system located on E:\ restoration images

    (2) YES, provided that you mean a 'repair Windows USB drive '.

    3. If for some reason I want to reinstall the operating system from the recovery set DVD (s) factory setting of what is going to happen with partion E:\

    (3) If you "reinstall OS" a set of recovery discs HP or an HP Recovery USB Flash drive, partition 'E:\. "is erased as support for HP recovery returns the computer to a factory State. I suggest that you store your "Backup of System Image" windows on an external hard drive for best results.

    4. What is-locations of D:\ marked as recovery?

    (4) the purpose of the "D:\". "HP recovery partition is to create your recovery HP personal media, return the computer to a factory State and restore the originally installed drivers and software.

    If you have any other questions, feel free to ask.

     

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • The difficulty to save images with CS2 since the upgrade to Windows 10.

    Working in CS2 is substantially the same, but when I go to save my work as a .png as usual, the colors are shifted (looks a little more green, more precisely). Same thing happens with .jpgs. I'm not saving for the web, just do the same things, I'm always done before with the same color except all of a sudden, the colors, the profiles are saving all wobbly. Open one of these files in photoshop displays the correct colors, but sends the file or open it in the green version Windows Photo Viewer. What has changed?

    c390f043225d28f3bc40f01a71bf19c0.png

    This is a screenshot showing the difference. Left is open in photoshop, the right is open in Photo Viewer (and is the same color as the image I sent via Skype to someone, proving that it is not just me).

    There's a utlity calibration that comes with CS2. He called Adobe Gamma. Have you tried to run and make a fresh profile?

    I start with an sRGB profile and when you are finished, I add the date to the it.

    Then in Windows Color Management settings, not the default monitor profile.  Gamma is still 2.2, point white is D6500

    See if you get results.that best way.

  • Qosmio F20-149: I accidently deleted the folder Power Saver

    Hello

    I have problems with the energy saver, but I could not uninstall and reinstall so I deleted the whole directory... an error! So can someone download me its Repertory Powersaver so I uninstall etc still files once and I can uninstall correctly it!

    I have a Qosmio F20-149, but with luck another Qosmio Version will do as well, too!

    thx for the help

    I don't think it's a good idea to install files to watch foreign power on your operating system.
    I recommend you to download the energy saver (if you have it t n), and then install it again.
    If the installation does not start because of missing files, so you must first enter in the registry, and then delete all entries of power gain.
    And repeat the installation procedure.

  • Is it possible to save an image as one. PSD document and as one. PNG file in the folders specified when running a script?

    I have several folders full of images that must be a watermark. I created an action that watermarks images and I ran a script that draws images in the folder and saves the most accomplished in another folder. The problem is that I need these images to be saved as both. Png and PSD files. I need of the. PSD files and the. PNG files to go into separate folders based on file types, however. Is this possible? I tried looking around for answers and I was not able to find the information I need.

    I'd appreciate any help I can get with that! Thank you.

    You can see if Image Processor Pro can do what you want:

    PS-scripts-browse/Image Processor Pro / Betas on SourceForge.net

  • Choose/Create folder path

    So far, I am able to choose a path, but not the back. I use LV2010. Is there some vi that I did not find which allows you to access a folder instead of choosing a file?

    I want the user to choose the folder to save the files to the beginning of the program, and then the program will create a file with a time stamp and the data read. So the first part is missing

    Hi Livermor,

    Thanks for the quick response.

    On the "userid_path_subvi.vi" go to the block diagram.

    If you click on the 'Record' control that you have created--> properties--> select "files" under "selection Mode".

    Hope that helps!

  • Impossible to rename the files in the folder "" downloads ".

    I can not rename all the files in the folder "downloads" on my computer Windows 7 ". I don't get an error message, it just does not get renamed. Happens with new records and old folder that already could be renamed. Sometimes with the right click 'Rename' way and Captain F2. It happens also if I press 'Enter' or if I just click outside the folder after renaming it.

    This is the kind of annoying to have three folders called "New folder (2)" etc. may not be renamed.
    I saw 1 post this topic on another forum, but no solution, so I thought I'd ask. It has been like this for a long time, and I don't remember if a special event or a well triggered it.

    Well, it happened to me and I just thought about it.


    See if you use a shortcut to the folder. If you are, try to enter the folder path (usually C:\Users\*Name of the user\Downloads) and see if you can rename the things out there. If you can, just press Backspace and create a shortcut from there.
    In my case, this problem happened because I accidentally deleted the shortcut I used for this folder, and to make the shortcut again once I used the fuction 'Search' to find and create the .encre. But when I did, the Windows 7 created the shortcut with the search path, being % search % downloads and so on. What is the fuction 'Rename' to stop working.]
    Weird, for sure. But okay, I worked here. Heh

Maybe you are looking for

  • my previous session restore crashed

    my previous session restore crashed because I opened firefox and he did not answer, so I ended its process through the Task Manager, how to restore cache.trashxxxx file in the cache folder so next time I open the Fire Fox my last session opens again?

  • Coursera does not of course. Don't have No-script or ghostery.

    Tried all the things mentioned previously as empty cache, java script checking, etc. I have scientific linux OS.

  • Pavilion 500 - 200 t: the proccessor upgrade

    I just upgraded memory of my desktop HP pavilion 500-200 t CTO at max (16 GB), I was wondering if I could upgrade my processor or is it 'fixed' to the motherboard?

  • X 230 how to identify models with IPS?

    Hello world! I'm looking these days for X 230 computers laptops equipped of IPS panels. I just wanted to ask, is it an easy identification (without easy ON laptop) to determine what IPS Panel or otherwise has the laptop? Some special stickers, the pa

  • Windows Vista - August 2010 update

    Windows Vista - August 2010 update. Stuck at 17 of 18 updates. Hard drive is occupied after 17 hours of update.