Copy foldername and specific indd files.

Hello guys


I need a function,

first of all, there is a dialog window that appears, from the window of dialogue I select indd files and pressed ok. () what should not not all indd file)

appear a new dialogue window, so I can choose a target to copy the selected files in also, copy the foldername of the location of the files selected indd and create this folder and put the files when I chose a target.


Finally, create a text file to save all the names of the indd files in / or if its possible to label another way, so I got them.

I know, in the finder on your mac, you can put a color on the files.

Could someone help me?

Thanks in advance

All members of Adobe


See you soon!

Hello

Try this.

var _files = File.openDialog("Select indesign files","*.indd",true),
    tarFolder = Folder.selectDialog("Select the target folder"),
    _parent = _files[0].parent.toString().replace(_files[0].parent.parent,"");
new Folder(tarFolder + _parent).create();
var filenames = "";
var txtfile = new File(tarFolder + _parent + "/FileName.txt");
for(var i=0;i<_files.length;i++)
{
        _files[i].copy(new File(tarFolder + _parent + "/" + _files[i].name));
        filenames +=_files[i].name + "\r";
    }
txtfile.open('w');
txtfile.write(filenames);
txtfile.close();
txtfile.execute();

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • Keeping nice and clean .indd files

    Hello

    I'm curious to know if there is a way to tell if the .indd files contain all the redundant files of earlier imports?

    As in Flash, if I import, say an image in a .fla file, then delete it again, it is still ongoing in the .fla library. So over time files .fla to a lot of people tend to jump in size without them really knowing why. Something similar happens in InDesign?

    Flash also has a function 'Save and Compact' who seem to really cut its files by a longshot. InDesign does she got something similar to that?

    Thank you guys!

    Yes, ID acts of the same - although it is not a 'library' explicit (with access to its content). If you insert a large graphic and let the automatic backup file, the file grows by the size of the graph. If you delete thereafter, the file will not get anything smaller. Save as will throw the (now unused) graphics.

  • InDesign crashes when opening a specific .indd file

    Hello

    This morning, I added some finishing touches to a little book. Then I split the file into the cover and the inside of the book. Suddenly, InDesign crashed and maintains the plant after that I open the file with the content inside. Also, it crashes in InCopy. I tried several suggested solutions on the internet as the deletion of fonts the user, start in safe mode, but none of them worked.

    I pasted the file of report here:
    Process: Adobe InDesign CC 2014 [1451] path: / AP - Pastebin.com

    Thank you

    The script here can help: community Adobe: InDesign 6 crashes when you try to open a specific document. All others are open OK.

  • How to create a duplicate of a book and all its indd files completely separte associated.

    What is the best way to create a copy of a book about InDesign (.indb), including all associated indd files? I need to keep a copy of the book for printing and another copy to the EPUB export, which will require formatting changes that are not suitable for printing.

    I already copied all applicable indd files in a new folder and then copied the file indb, then "Replace Document selected" to change the applicable path for all indd files in the copied book. However, I fear that all references can still point to the old files of the book. Unfortunately, there is no easy way to say because when I discovered "Divert Options" a reference, it does not show the path of the file to the Document, just the name of the document. I also fear that there could be a few other connections between the old and the files indd or indb duplicate in another way that I'm not aware.

    To clarify, I like two completely different file folders with the same indb and several indd files in to start them with, such as all cross-references in the newly duplicated ebook and indd files are compared to the new ebook and new indd files. Is there an easy way to check the path, not only the file name for the reference document a crossroads?

    I suspect that the problem is the use of. in folder names.

  • Copy all indd files in a specific location

    Hello guys I do not know why my script does not work as I want.

    I want my script to work in this way, when I choose a folder in the my script dialog box to choose all the .indd files

    and put them in a specific location

    See code below

    var myFolder = Folder.selectDialog ('Choose a Folder');
    $.writeln('-------------------------------\r' + myFolder.displayName + '\r-------------------------------\r');
    if(myFolder != null){
      var myFiles = myFolder.getFiles('*.indd');
      for (i = 0; i < myFiles.length; i++)
      {
      var myFile = myFiles[i];
      // myTargetFolder = "/Kommuni/LaRe/LareAUTO/341542" // put files here
    
    
    
    myFiles[i].copy ("/Kommuni/LaRe/LareAUTO/341542/");
    
    
    // $.writeln(myFile.displayName);  // just for write the data in console
      }
    }
    
    
    
    

    Can someone help me put a correct code here

    Thanks in advance

    Congratulations to all members

    Hello

    You must use a valid path to a file or a folder, so:

    //....
    destFile = new File("/Kommuni/LaRe/LareAUTO/341542/" + mFile.name);      // to create an object
    $.writeln( destFile.name + " - " + destFile.exists);    //  to check if your path exists
    myFiles[i].copy (destFile);    //    to copy file
    //.....
    

    Jarek

  • I want to download a file and do a "save under" directly in my working folder. Instead, it seems to save it somewhere as a generic term should I then copy, paste, and rename manually. Is there a way to rationalize this?

    I want to download a file and do a "save under" directly in the folder of my work. Instead, Firefox downloads somewhere with a generic name I have to copy, paste, and then rename the file. Is there a way to streamline this process simple?

    Options > general downloads section

    • If "Save files" is selected, all files will save the location shown without the intervention of the user.
    • If 'Always ask me where to save files' is selected, the user can choose the location and change the name of the saved file.
    • See-> window Options - general Board

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • Windows XP SP3: Unable to start, System Restore cannot drag and drop ALL the files/folders on the desktop and applications, many unable to start, services cannot search, cannot copy or transfer the any files folders...

    After a recent power outage, my system has restarted with a weird and very common Windows problems range. The system boots fine, all my personal files/folders/apps are intact, have suddenly stopped almost all functions of applications, but many crucial functions of the Windows kernel. Everything seems to point to several Windows Services are unable to start (administrative tools on the start menu). I am running Win XP SP3 and that he was going to upgrade to Windows 7, but I wanted to backup everything in advance. As I have 29 000 hours on my C: drive and a lot of time invested in my system, files, and applications, I am extremely reluctant to risk losing my files and applications by performing any type of reinstalling Windows. Strangely, begin to almost all my apps and all my files are accessible for the most part, but I've lost the ability to drag and drop files, folders or items in a list within the applications COMPLETELY. I can't copy or paste anything, can't move the desktop icons (although I can create new files and folders). So at the moment I can't save anything or even a single file transfer to a hard drive on another storage medium. Immediate reaction: try safe mode and try the system restore safe mode has the same problems (likely due to the large number of system services that inexplicably refuses to start) and the system restore says an error window saying "system restore is not able to protect your computer at this time. try restoring the system running and restart again", which of course NEVER changes. It's the equivalent of getting a tire on your car in the middle of nowhere to find the spare tire flat and the missing Jack. I have used to be fanatical about the definition of the regular restore points, but now can not access them. I have backups of most of my personal files, but over years have lost most of the original installation CD for many of my applications (there are over 100 applications on my system) and I don't want to lose the file associations and architecture of directory tree that it took my so long to implement. I started with Win XP media center edition of first (circa 2004 or almost) and have migrated twice more of 3 hard disks and 2 computers. All this time (5 years of daily use), I have NEVER known so many malfunctions for as many Windows basic and vital functions at the same time. I tried a lot of 3rd party "windows fix - it / registry repair" apps, all have no effect. Everything I can speculate is there was some serious damage to the registry and have no idea how/why so many Services refuse to start. In MMC, more than half of the services actually start and run, the rest all give the error message "the service or dependencies is not start (error 1068).» In addition, very oddly, no. APPS or windows appear in the toolbar AT ALL, but the Quick Launch toolbar works very well, just like the tray button and start tasks (?! )!). If I reduce a window, it "disappears" (Nothing on the task bar), but I can restore it using the alt - tab keyboard shortcut to switch apps, so all applications/windows appear on the list of the Task Manager. A few apps is paralyzed bad, as the player windows media, itunes, etc. (I guess because the service windows audio can not not start), some won't start at all, but 90% of them work fine, except to try to copy or back up all files. I can create new files, however. I'm desperate to find a solution to repair XP3 Win WITHOUT losing my installed applications and files, before I try and switch to WIndows 7. Any help/suggestions/links/advice would be much appreciated. I'm an experienced user, but I've never met so many malfunctions based on the OS at a time. I, however, very painfully learned (years before that my system so complex) it's been almost a re-installation of Windows guarantees to lose my installed apps and files, the directory tree architecture associations.

    Help, please!

    I'll be honest with you - your message is so difficult to read that I don't bother to go through all that. Next time consider using white space, ball or points numbered, etc. to make your message more readable. I stopped reading after your first sentence and only scanned the rest quickly. I do not mean to hurt your feelings; just trying to help you get targeted answers you need for the future.

    The blackout has corrupted your Windows installation. Back up your data now. Since you have problems so much, it would be probably best is to remove the hard drive, put it in a USB drive enclosure and attach it to another computer to copy the data OR start the target with Linux Livecd such as Knoppix system and copy the data to an external hard drive. IOW, do not use the damaged windows to try to get your data.

    You can try a repair that will leave your programs and facility data intact, but with this widespread bribery, it is unlikely to work. However, it takes only a few minutes and is so worth a try. If the repair facility does not work there is nothing to do, but a clean install. And Yes, it will mean that over again.

    Consider buying a UPS to help prevent future damage by power outages. For a single computer, you should look for one in the area of $60 to 80. A more expensive UPS is not necessary. Another good disaster recovery strategy is to buy an external hard drive and Acronis True Image. You can image your system (and can make an incremental backup image so that your image is still current). You can apply your image and be back running that you were in relatively few minutes after a hard drive or Windows to fail.

    http://www.michaelstevenstech.com/XPrepairinstall.htm - repair install how-to
    http://michaelstevenstech.com/cleanxpinstall.html - Clean install - how-to
    http://www.elephantboycomputers.com/page2.html#Reinstalling_Windows - you will need at hand MS - MVP - Elephant Boy computers - Don ' t Panic!

  • Copy or removed specific files

    I like to photograph in RAW format and jpg, I copy all photos to a file, it can be 1000 or more in a day, I would like an easy way to copy only the jpg file in my wifes computer, I could do it in DOS by typing copy *.jpg

    There must be a way to do this in windows but I can not wotk how.

    Concerning

    Mike

    Hi Mike,.

    Sorry for the delay in response.

    Have you tried using Robocopy. Please, take a look at the provided link and check if it helps you.

    Please let us know if you need more assistance. We will be happy to help you.

  • I would like to know if Windows Backup and Restore will copy a new set of files and adding to what is there in the previous backup folder

    On my old computer (XP), I used app fast backup protection to back up my files to an external drive, Iomega hosted Media Network Hard (2 TB).  I have a new Dell PC with Windows 7 (64 bit) OS.  With the help of a cable I copied all the files from my XP to Windows 7 computer.  All the files on the external hard drive, copied to a "network".  I am able to view all the folders of the Iomega file, but I can't back up my files to protect fast has not been improved to work w/Win 7.  Quick protect is divided into 6 different discs (photo-U, V-ActiveFolders, W-Music, X-backups, Public-Y, Z-movies), Iomega recommends using backup Windows and restore.  "Before you start this process, I would like to know if Windows Backup and Restore will copy a new set of files and adding to what is there in the folder backup previous Player X or if it will start a"new"backup" folder on drive X.

    Original title: BACKUP AND RESTORE

    New.

    Probably in a completely different format than you are accustomed to and accessible in a different way.

    Although I suppose you could create separate jobs for each of the existing partitions, if you wish.  But I would like to backup these partitions to something else before you start. Heh

  • Security How can I remove the copy and paste the files I used?

    Security How can I remove the copy and paste the files I used?

    I can't get rid of all the e-mail addresses I have copied and pasted.  No matter what I will always appear if I hit paste again.  This is a shared computer and I would rather not have my copy and paste the files stored on the computer, after that I quit.

    Thank you

    Hi Ron,

    You can copy or move information (for example, text and pictures) between files and programs using temporary storage called the Clipboard. The Clipboard is not visible, so even if you use it to copy and paste information, you never actually see the Clipboard when you do this.

    The Clipboard contains a block of information at a time. Whenever you copy information to the Clipboard, the old contents of the Clipboard is replaced by the new information.

    When you shut down the computer everything is stuck in the memory of the Clipboard is cleared.

    Please click the below mentioned link to get an overview of the clip board memory.

    http://Windows.Microsoft.com/en-in/Windows7/copy-information-between-files

    Answer please if you have any questions.

  • How you copy mp3 files from the my music for a cd drive folder and keep the files in mp3 format, format it with windows 8

    in the past with previous versions of windows, you can easily copy MP3s to a cd and keep the files in format mp3, format thus creating an mp3 disc, you made by selecting the songs you want to copy on disk, you must select the songs of the my folder music and make a click right then on the song selected or songs , you would then select send, and then select the drive that contains the blank cd in it to send the songs to, you choose then to a standard audio CD or data cd, you must select the option data cd and the drive will keep the songs in mp3 format, it was all done using windows Explorer. I would like to do the same thing to do these discs mp3 on my computer windows 8, however I can not understand how do, can help a whole me with that?

    Hello

    I would ask you to check out the link and follow the steps in the article.

    Burn a CD or DVD in Windows Media Player

    http://Windows.Microsoft.com/en-in/Windows-8/burn-CD-or-DVD-Media-Player

    Hope that answers your query. You can write back to us for other queries/problems related to windows and we will be happy to help you further.

  • Default indd file missing and open with no. Para new documents. styles

    Hello

    When you create a new indd file in ID CS6, a set of tags para etc have been automatically loaded in the new doc. Today, I open a new file and it opened with only a database para tag. I know some years ago, I created a sort of default file that included all the settings I wanted as a default value for any new project, backed up where Adobe me and baptized what Adobe me ID will look for when creating new documents.

    I thought that it would be default.indd but without SOAP.

    Can someone tell me the exact name and the folder where this file should be kept.

    Thank you very much

    Jon

    Create a file with all the styles that you want, save and close. With no file open in the Panel switch paragraph and Styles from the dropdown choose load all styles... Choose the file that you saved with your styles and load them, then close the ID and relaunch. All new files from the file > new... should have these styles.

    You can also save files empty (or non-empty) with any configuration page and the selection of styles predefined as InDesign templates. You access those via file > open...

  • How can I copy 2 pages and turn them into a new pdf document? I can highlight pages, export and then combine files into new pdf, but it's very heavy. Acrobat DC, I cannot open 2 files acrobat side by side.

    I have a 600-page adobe document. How can I copy 2 pages and turn them into a new document? I can highlight pages, export and then combine files into new pdf, but it's very heavy. Acrobat DC, I cannot open 2 files acrobat side by side. In the past, I could take two pages and copy and insert into the document opened adjacent... Thank you

    I'm not what you mean... Start by describing what tools or methods that you use to extract these pages.

    What you write in the first sentence is not true, however. In the dialogue window extract Pages, you can choose whether or not to delete the extracted pages of the original file and extract them as individual pages or not. If you UN-select both options, you will get a single file that contains the pages you have checked out, and they will not be deleted from the original file.

  • Mac Mavericks. Camera raw 9.1. Camera Nikon D810. How to set the default settings of the camera profile standard (now available after downloading the camera profile and copy it into the appropriate file)? Is it possible to apply also in the pictures showe

    Oops... did not write the question where I... How to set the default settings of the camera profile standard (now available after downloading the camera profile and copy it into the appropriate file)? Is it possible to apply too in images showed in the bridge? I'm a newbie in the forums and I'm not sure how to proceed.

    You can right click and copy the settings on an image that has the right profile. Then highlight all the images that you want to edit, right click and paste the settings. On the list that is displayed, simply choose the camera calibration.

  • Product that works well to choose Select the pages to an existing PDF and copy to a new PDF file?

    Product that works well to choose Select the pages to an existing PDF and copy to a new PDF file?

    Hi Gregh65396892,

    You must use Acrobat, you can download a free trial of 30 days from the following link: https://www.acrobat.com/en_us/free-trial-download.html

    After downloading and installing Acrobat, you can open both files in acrobat with enabled page thumbnails view, select the pages in a PDF document, then drag them to the pane "thumbnail" file pdf of another, and these pages will be copied in the second file.

    Kind regards
    Rahul

Maybe you are looking for