How to back up and replace the file

Hi experts

I had this script:

//======================================================================================== =========

var MyFolderWithFiles is Folder.selectDialog ("select a file");.
var myFiles = MyFolderWithFiles.getFiles ("*.indd");
for (i = 0; i < myFiles.length; i ++) {}
Dittos = myFiles [i];
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
var targetDoc = app.open (dittos, true);
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
targetDoc.close (SaveOptions.YES.WITH_OVERWRITE);
}

//======================================================================================== =========

are intended to save and overwrite the files.

but error, could someone help me to fix it.

Thank you

Respect of

John

You need to better explain what you mean by crush!

You have indd files created in a previous version of indesign that you are trying to record?
In this case:

targetDoc.save (autogrow);

targetDoc.close ();

Tags: InDesign

Similar Questions

  • Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: I get the 0x80073AFC error code when I try to use the system restore then, how can I find and replace this file missing MUI?

    • I am running Windows 7 for packs SP 1 or SP 2 does NOT solve my problem since neither one works with Windows 7.  Is there a way to search for this MUI (Multiple User Interface) missing file? The every thing must have himself installed in the first place. I took my mom (she died in June) and my brother on this PC as users so even if they do not use this PC supports multiple users. Maybe if I deleted as a reboot and additional users it will solve my problems. My updates install OK but I can't run at all system restore. It creates a restoration point OK but when I try to sr back to a restore point before I get the error 0x80073AFC topic of the missing MUI file. Then, when I spear SR it is said that he could not and no files have been changed because of the error 0x8000FFFF error, unspecified catastrophic failure and could not retrieve the file several times when system restore is attempted.

      I'm running Windows 7 on a HP Pavilion with browser Firefox 3.6.8 browser Opera 10.60, IE8 and Google Chrome 5.0.375.125 browser browser.

      Can you tell me what I try next? Thnks a lot and sayonara for now the guy-Jack McElwee / keimanzero the Scion of the Anime in Brookhaven PA - USA

      OK I tried everything and nothing works! Only added beginners are updated browser Opera 10.63; IE9 (Beta); Firefox 3.6.12 and Google Chrome 7.0.517.41 and Java 22. Of course like everyone else in the world, I had to uninstall/enable and disable/download again and reinstall new Adobe Flash 10 and 11 of the shock wave and they keep crashing too! Hello 4 keep screwing browsers and now I get connection network problems. I run Comcast doctor and did everything it said to do, but nothing works. Oh and I added 7-Zip and WinZip also. Likewise, they will not work! Help! Thanks - K & K

    keimanzero,

    Comcast of Norton Security Suite version is installed? If Yes, who and perhaps malware is most likely to cause questions you have published, in particular the failure of the restoration of the system.
    First, configure the system to boot - How to solve a problem by performing a boot in Windows Vista or in Windows 7
    NOTE: Start-up mode minimum state all the 3rd party firewalls will be disabled. Open Control Panel > Windows Firewall to make sure that the native firewall of Windows 7 is now on.

    Download and Save the update system (or CheckSUR) tool. You will need to download the specific Version of CheckSUR corresponding to the architecture of the system to Windows 7. If you do not know the architecture of the system, and then click the link that says "Click here to show or hide the instructions step by step with images" under method 2: download the update directly system preparation tool from Microsoft Download Center .
    Description of the preparation tool system update for Windows Vista for Windows Server 2008, for Windows 7 and for Windows Server 2008 R2

    Once the download is complete, close all open programs and browsers. Now, run CheckSUR with the system connected to the internet because it will download the .cab for system files. Reboot once CheckSUR is complete.

    Secondly, I suggest that you run the File Checker system while in the same clean boot state.
    To run the System File Checker tool, follow these steps:

    1. Click Start and type cmd in the field search programs and files .
    2. Right click on cmd.exe in the programs of list, and then choose 'run as administrator '.
      If you are prompted for an administrator password or a confirmation, type your password or click on continue.
    3. At the command prompt, enter the following line exactly as written including the space between thec and the/and then press ENTER:
      sfc/scannow

    When the analysis is complete, test to see if the problems facing the system have been resolved.

    If they are not, you will need to contact Norton support for the version of Norton Internet Security Comcast to get help, or just uninstall NIS, run the Norton removal tool (right click Norton_Removal_Tool.exe, choose "Run as Administrator"), reboot and then check to see if the problems are still occurring.

    Expert MowGreen Windows IT Pro - consumer safety

  • How can I download and replace the fonts directory in the folder Windows for Vista

    Separated from this thread.

    How can I download and replace the fonts directory in the folder Windows for Vista?

    I think I have a corrupted font file, but I don't know which.

    Thank you

    George Criffield

    Oh sorry, you will need to obtain from another computer Windows Vista or your install disc (if you have one, these instructions are here).  I have just the zip and give you a complete file of fonts, but it's against the license (and technically to the United States law) for them to be distributed.

  • How to back up and restore the unit VCO (Postgres)

    Hello

    Is there an official KB on how to back up and restore the VCO device using the Postgres?  How similar to save the VCSA (http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 2034505)

    Thank you

    WARNING: what follows is not a KB official and is totally not supported! Use it at your own risk!

    Backing up/restoring the Postgres database in vCO device 5.1 is similar to the backup/restore of VCSA as described in the article above, with the following differences:

    • location of the database->/var/lib/pgsql/data
    • EMB_DB_INSTANCE,EMB_DB_USER, EMB_DB_PASSWORD-> take a look at the /opt/vmo/appliance/dbd/create_db.sql file

    Hope this helps,

    Ilian

  • How to back up and restore the system and program files to install new OS

    Hey all,.

    I recently bought a new Toshiba 1 TB HARD drive. My old WD 1 TB HARD drive was giving me the end. occasionally, I get the BSOD. In addition, on occasion, when I restart the computer it automatically runs chkdsk program and reported several bad clusters. However the chkdsk program never seems to report the bad clusters, so periodically, when I restart, it runs and bring back them again.

    I would like to the image or to back up all the files on my HARD drive problem, then do a fresh install of Win 7 Ultimate 64 bit (my current operating system) to the new HARD disk, and then restore the clone or image system and program files on the new HARD drive. I don't want to go through the process of reinstall all again, when everything seems to work very well. Given that the image of Win 7 program makes and accurate picture of the HARD drive, then use this program would cause the new installation of Win 7 Ultimate 64 bit to be replaced by the restoration of the image. Therefore, if there should be corrupted data under a bad cluster of old HARD drive, that data would not be transferred and my existing problem would be transferred to the new HARD drive.

    On the other hand, if I do a clone of disc, I'm not sure that existing programs would continue to operate on the new HARD drive and would require a new install of each program based on the new installation of the operating system Win 7! I would have then lost my time to make a transfer of program/data files to my newly formatted and freshly installed OS.

    Anyone know of any program (Acronis True Image, Paragon, Norton Ghost, Macrium Reflect, etc) that will allow you to image or clone the program and data (including the operational needs of the files such as: Win32 system files, files of activation, etc.) so that they will work properly on the new installation of the operating system?

    Any help would be greatly appreciated. Have a great day.

    Ed Wood

    "Questionable" disk formatting can hide bad sectors or replaces the original format.  It is not known if / when bad sectors could / will reappear.

    If you have a player that you suspect problems, find advanced manufacturer of the car diagnostic tools.  Go to WD wdc.com website and get their diagnostic tools Data LifeGuard, to 'really' to test your drive.

  • How do you get and replace the hp pavilion 3CR3050D6K LCD flat screen 20-b010

    Pavilion 20-B010 screen has been damaged and is cracked. I would like to get a replacement manual or instructions on execution of Assembly and disassembly.

    Hello @VB_Richard,

    I understand that you need to replace the LCD screen on your desktop HP Pavilion 20 - b010 all-in-One PC and you would like a manual or instructions on how to perform the installation.  The number of product of the screen, you'll need is 652255-001, which is the 20 "TN N-glare W - LED Non - ZBD Sam 250nits. With regard to the steps needed to install it I am you provide those below:

    Before you begin: remove the back cover and bezel.

    Removal of LCD Panel Kit

    1. place the entire middle frame on a smooth flat surface.

    2 detach the connector from the LCD backlight to the LCD.

    3. remove the four screws that attach the LCD Panel to the Central frame - the screws will be on the high or low or the sides of the Board according to the manufacturer of Panel. Each manufacturer will have its own stencils for the location of the screw holes.

    4. partially lift the bottom of the middle frame off the LCD screen.

    5. unplug the LVDS cable from the Control Panel before completely up the average frame off the LCD screen.

    Replacement LCD Panel Kit

    1. to install a new LCD Panel, align the top of the middle frame on the LCD Panel.

    2. connect the LVDS cable to the LCD screen.

    3. lower the average frame completely on the LCD screen.

    4. replace the four screws on the sides or the top and bottom of the Panel to fix the Panel on the Central frame. Use the location of the screws to the stencil for the manufacturer of the Panel that you are installing.

    5. replace the backlight of the LCD screen connector.

    If the new LCD Panel comes from a different manufacturer that the old LCD Panel, remove old backlight converter card connector and install the new connector on the card. The jury has stencils indicating the location of the connector backlight by manufacturer.  Configure the jumpers on the card of converter to match the Panel manufacturers. Painted stencil on the chassis of the Middle table configuration of rider by the manufacturer.

    I hope that I have answered your question to your satisfaction. Thanks for posting on the HP Forums. Have a great day!

  • How can I find and replace the xml tags?

    Hi, I am using xml in my workflow and want to be able to remove some tags if they contained particular text.

    Here is an example of the xml struct...

    < Entry >

    < name > DEFAULT < / name >

    < such > default < / such >

    DEFAULT < address > < / address >

    < / Entry >

    I use this initial structure to define paragraph styles to follow when you import the xml data.

    This leaves DEFAULT in place everywhere where an entry is not any content of this field.

    I want to be able to import my XML and then run a script that deletes tags that include by DEFAULT, - I need to the xml tag to remove not only the text, if I do a normal find and replace will remove only the text not the tags that is causing problems with style. I also want to remove the end of para/return (^ p) that I placed at the end of the line. So it would be the same opening editor mode and removing content, tags + hard back in there, but I want to automate the process...

    So I think that's what I'm looking for in each case

    "< name > DEFAULT < / name > ^ p.

    and I want to replace it with nothing.

    Is this possible in a script (ideally javascript)?

    I have a little knowledge of javascript, but don't know how to search for and target this kind of string in indesign...

    using indesign cs5

    Thank you very much

    Hello

    Script should do it in two steps:

    1 find all occurrences of that is ' > by DEFAULT.<>

    2 delete the whole paragraph which is a found_text container.

    For example, in this way - JS - (a textFrame filled your text must be selected):

    var mStory = app.selection[0].parentStory;
    app.findTextPreferences =  null;
    app.findTextPreferences.findWhat = ">DEFAULT<";
    var myF = mStory.findText();
    var count = myF.length;
    while (count--)
         myF[count].paragraphs[0].remove();
    

    Rgds

  • My laptop crashed. I have the disc (intact). How can I find and move the files to the Inbox (not local folders) of my three accounts to the new pop3 computer laptop?

    Old laptop had Thunderbird. The laptop no longer works, so I took the drive C (SATA drive) and and which plugged into a USB port.

    New laptop has installed Thunderbird local folders have been restored. The contents of the Inbox is missing (I use the option ' download server ", so the recent correspondence is here.)

    I have three POP3 accounts, so I will try to identify the location of three separate "inbox" and "Sent" folders and add them to the new facility.

    Where the files are stored, and what would be the easy way to get back them on the new laptop?

    It would be great if there is a more fluid way for disaster recovery.

    You could have copied the whole profile and do with it.
    To create backups, you should also back up the entire profile.

  • How to back up and restore the ESXi settings regularly?

    People,

    Can someone please let me know how and what is the best way to save the existing running 5.1 U3 regularly ESXi servers so that when the host has failed, I can restore of plain vanilla install of the ESXi server without having to worry about reconfiguring the Distributed Switch Settings & storage?

    If the process can be automated which would be awesome as well.

    Thank you.

    If you are running Enterprise vCenter Server so your best bet is probably using Host Profiles. You can create a profile to join a whole cluster (if your hosts are cookie-cutter) or create one for each host (if they are quite unique). You can export the profiles from the host to the files somewhere else for backup if you are afraid of losing the vCenter.

    These allow you to build a new host from scratch, attach to vCenter and configure everything (up to the vDS, domain join, politics of security/firewall, etc.). Very useful feature IMO.

  • How to back up and restore the database of Virtual Center?

    Hi all

    I have to prepare a document on how to save and restore the different types of database Vitrual Center.

    But I can't find information are contiguous with this topic.

    Could you please help me

    It will be useful as well

    http://www.VMware.com/files/PDF/vc_microsoft_sql_server.PDF

  • back up and delete the file of flashback

    Hello
    in 10g R2, I use the following script to backup my database by RMAN.
    run
    {
         allocate channel t1 type disk;
         backup as compressed backupset format 'D:\Backup\df_%d_%T_%s_%p' database;
         sql 'alter system switch logfile';
         backup as compressed backupset format 'D:\Backup\al_%d_%T_%s_%p' archivelog all delete input;
         backup as compressed backupset format 'D:\Backup\ctl_%d_%T_%s_%p' current controlfile;
    }
    What should I add to backup and remove the Flashback files in the recovery area?

    I searched in the User Guide of the Advanced Recovery and backup of Oracle® database, but did not.

    Thank you.

    Hello

    as far as I know the only way of flashback backup files is to write on the tape. This is probably done to make sure that the recovery files will not be stored on a disk device.

    The procedure should look like:

    RMAN> Configure channel device type parms '...';
    RMAN> backup device type sbt recovery files:
    

    See you soon,.
    David

    OCP 9i
    http://www.oratoolkit.ch/knowledge/HOWTO/installation/OTN.php

  • [Cisco FAQ] - how to back UP and RESTORE the configuration of the RFGW1?

    I want Backup and restore my RFGW1

    Go to the SYSTEM tab, and then choose the CONFIGURATION of the BACKUP or RESTORE the CONFIGURATION

    The chassis settings backup is also written to the FTP server préfixons. The backup file is generated and consists of the IP address of the chassis and the date.  Below is an example of the name of the backup file.

    cfg_10_90_140_15_07_06_2012.gz

    Settings for the FTP server are located at the bottom of the page. Click on 'display the FTP settings '.

  • How can I copy and rename the file that I copied to another folder

    I have a file in a source file and I want to copy in a different folder.
    all these files from source have the same name and I put them in a folder which is the destination
    and I want to rename it to 1_1.txt 1_2.txt and so on.

    Here is my copy fuction

    UTL_FILE.fcopy ("FLX_SIGNATURES",
    filesource, - image source that I get using a loop above
    "DELTA_SIGNATURES,"
    filesource - destination image that I want torename
    );


    the foregoing is in a loop
    so for each filesoure, the name will be 1_1.txt for all files that have the same file name and I want to change the name of any time I copy can help you

    Dear kama021!

    Please take a look at the following link. It shows UTL_FILE. FRENAME. This should be the procuedure that fits your needs.

    [http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#i1003641]

    Yours sincerely

    Florian W.

  • How can I repair and replace the sound on "lonely spider"?

    Sometimes I hear the snap of card movement and sometimes it is silent.

    THANKS - THE PROBLEM HAS BEEN SOLVED

  • How to back up and restore the registry in Vista?

    I think I have to change something in the registry.  So I should do a backup and get instructions from restore in case something goes wrong.

    I know it's risky, so would appreciate any help.

    Hello Shirley,

    Check out this link from my Web site: http://vistasupport.mvps.org/backup_the_registry.htm

    To restore the backup registry hive (s) follow the instructions as in the link above, but in step 6, select import instead of export.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk |  vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

Maybe you are looking for