'Save a copy' script

Hello world

I'm looking for how to make 'Save a copy' script.

All the variations I've ever met (script or examples from the internet guide), were based on the copy of the existing file.

And they should not be.

Why "save a copy?

Because you can save your file in a different directory (for example, dropbox),

and your original with cancellation options file will stay open (unlike 'increment and save').

You can subscribe on behalf of the command in this...

This is not 100% reliable, if you do a search here or aeenhancers, but gets the job done in most cases...

function exectuteCommandID (theCommand) {}

app.executeCommand (app.findMenuCommandId (theCommand));

}

executeCommandID ("Save A Copy or what the menu exactly command.");

Tags: After Effects

Similar Questions

  • How to save a copy of the file? (simple javascript needed)

    I'm a noob, so need a Javascript/installation for InDesign CC script, which runs automatically when a file is openand saves a copy of the document to a specific folder, to the present time (i.e. "c:/file/filename_COPY_6_MAY_2014_23_59_59").

    This code is just for this work? :

    var dmd = app.activeDocument;
    var oldDocName = dmd.name;
    //make new file
    var newDocName = oldDocName.substring(0,oldDocName.length-5); //removes ".indd"
    var dd = new Date;
    var NewFile = new File("/c/backups_folder/" + newDocName + dd.getDate() + "_" + dd.getMonth() +  "_" + dd.getHours() + "-" + dd.getMinutes() + "-" + dd.getSeconds() +".indd");
    //copy
    oldDocName.copy(NewFile);
    
    
    
    
    
    
    
    
    
    

    Hi all

    I don't think that the link you have provided on stackflow meets your problem and certainly not the best way.

    Hopkins response for sure does not seem be correct (sorry)

    I think that my script below is the best method.  Don't lead to annoying delays in file open.

    Put it in your startup script file

    Trevor

    // https://forums.adobe.com/message/6363852#6363852
    // By Trevor
    #targetengine document_copy
    (function () {
        if (app.eventListeners.itemByName ("saveCopy").isValid) app.eventListeners.itemByName ("saveCopy").remove(); // makes debugging easier and prevents multiple eventListener creations
        var mySaveCopyEventListener = app.eventListeners.add("afterOpen", saveCopy);
        mySaveCopyEventListener.name = "saveCopy";
    }) ();
    
    function saveCopy(ev)  {
        if (ev.target.constructor.name !== 'Document') return;
        saveCopy.Folder = "C:/backups_folder/"; // Change as needed
        if (!Folder (saveCopy.Folder).exists) {
            Folder (saveCopy.Folder).create();
            $.sleep(300);
        }
        if (!ev.fullName.copy (new File (
            saveCopy.Folder + // folder name
            ev.fullName.name.replace(/.[^.]*$/,"") + // file name without suffix
            (" " + new Date).replace (/:/g,"\xB7").replace(/\s\S+$/,"") + // date Change format as desired
            (ev.fullName.name.match(/\..+$/) ? ev.fullName.name.match(/\..+$/).toString() : ".indd") // suffix could be idml or who know what
            ))) alert ("Something messed up, a copy was not made");
    }  
    
  • Save a copy

    I found the save() command and have resorted to a workaround where I save my current project, save as the copy that I want, and then reopen the original file. But it's stupid. How can I save a copy with scripts?

    Here is an example of using the project file object and the copy() function to make a copy using the file system.

    Discover Adobe Javascript Tools Guide PDF for more information on access to the system files.

    App.Project.Save ();

    var app.project = proj;

    var name = proj.file.name;

    var newName;

    If (name.indexOf (".aep")! = 0) {}

    newName = name.substring (0, name.length - 4) + "COPY.aep";

    } else {}

    newName = name + "COPY."

    }

    newPath = proj.file.path var + ' / ' + newName;

    proj.file.Copy (NewPath);

  • "Save as copy"?

    I still play with the scripts in illustrator, and I was hoping there was a way to effectively emulate the command "file > save a copy. Right now, all I can figure out how to do is ' save under.

    There are no save as copy,.

    You must save the file, do a save as, then you must close the saved in the file and open the original file

    or

    Save the file, and then make a copy of the file by file object.

  • Disable "save a copy"?

    Disable CanI 'save a copy' in a distributed pdf form?

    I don't want users to accidentally delete extended features in Adobe Reader, that is, when the user selects "Save A Copy" (after the opening in their email) they get invited with a warning that they will remove extended functionality (saving of rights), they never read it, complete the form, then can't save it!

    I want to disable it in Reader and Acrobat Pro and set a password in order to proceed to the registration of the rights.

    I add instructions in bright red flashing letters of warning e-mail users NOT to SAVE a COPY, but it adds a step more boring to my process and a potential point of failre for the data collection process...

    'Save a copy' is only available in Acrobat format. Adobe Reader users can save extended PDF files after that comments or form fields have been applied, but cannot disable rights making.

    It is not possible to disable the option menu to save a copy in Adobe Acrobat format by using scripts or security settings in the PDF file.

  • EVERYTIME I OPEN A FF OF OUTLOOK E-MAIL WANTS TO SAVE A COPY OF THE FILE IN A TEMPORARY FOLDER, HDI MAKE STOP

    in outlook, click to open a new email. FF opens and a tab appears with a string in a folder:
    file:///C:/users/tymn/APPDATA/local/Temp/%7B3586F5EB-854A-4DA8-B2F7-8C764B716CEA%7d.html

    It seems to be trying to save a copy of the email from outlook to a drive. I do not have this, it's boring. even when I click on the box to not show it, it always does...

    I had the same problem with outlook 2010 and firefox 8.x in WinXP.
    The problem seems to lie between Firefox and outlook.
    Problem only appears when Firefox is the default browser. My vision is not no matter what plugin/add/market.

    Workaround solutions:
    1 use IE as default browser.
    2 backup Firefox BookMark. Then the latest version of Firefox uninstall, delete all settings in the Firefox UN-installing. Turn it back on. Finally, reinstall Firefox and restore the bookmark, and then make as default browser.

    Problem always appear after you apply this workaround solution.

  • Cannot save a copy under? help please?

    I can't save a copy as. I am trying to send a draft to a friend and I can't figure out how. I saw the option ' save a copy under "before and now I can't find it.

    It's under file... as long as you have enabled ALL the advanced tools in the main Logic preferences > advanced tools.

    Note: actually you need not to all light to see this feature, just the top one... but light them ALL in any case as at the time the features of Logic Pro X are enabled for you to use, rather than having to work in a much more limited 'Garageband Pro' mode...

  • With Win XP support expiring how save a copy of my XP operating system WITH all current updates.

    With Win XP support expiring how save a copy of my XP operating system WITH all current updates.

    Just follow the links provided by PML to get the software to make a clone of your current drive.

    Or created an installation disk of Windows XP slipstreamed by using your original CD-ROM of MS Winxp Home

    http://winsupersite.com/article/Windows-XP2/slipstreaming-Windows-XP-with-Service-Pack-3-SP3-128464

    NB you will probably be impossible to use them on new hardware (i.e. a Pc designed for win7 or win8 as this new hardware manufacturer will probably have Windows XP drivers available)

  • How to save a copy of Windows XP that has been created by an image?

    I used 'Image for Linux' to create an image of a PC with Windows XP, SP3.  With that done, I can copy the image to a new PC and it works fine (assuming that I stay within the limits of the PC HAL).

    My problem is that I don't have to enter a new key of Windows XP when I installed the image on another PC. for example, I use a license of Windows XP on two PCs.  Since I want to be legitimate on my software license, I tried to activate Windows XP license to new PC - but the computer says that the license is already activated.  So it is logical that the new PC would react like that - I put the picture of an activated copy of Windows on a new PC, the new copy of Windows must also think that it is enabled.

    All this brings me to my original question: how to save a copy of Windows XP that has been created by an image?

    Hi RichardMatt,
     
    I recommend you contact the customer service of Microsoft for queries on activation for clarity.
     
    See the following article to do the same thing:
  • Save a copy of the emails opened on the Server POP3 format

    I have POP3 format on windows email. I want to save a copy of the emails opened on the server, so I can access it later from a distance (with my phone). How can I do this?   Thanks in advance.

    I have POP3 format on windows email. I want to save a copy of the emails opened on the server, so I can access it later from a distance (with my phone). How can I do this?   Thanks in advance.

    Open Windows mail > tools > accounts > click your account > properties > Advanced tab > under delivery, check ' leave a copy of messages on the server ' > OK for the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Help blackBerry Smartphones! Cannot stop my camera to save the copy of the messages of the snet

    Whenever I send an email from my account, my BB or my e-mail service, it saves a copy of this email on my BB.  I upgraded to 4.5 and am following the directions to disable this feature.  I'll list-options-email message settings, but I don't have the 'send an email to Pocket"here to change to 'no '.  I don't know what to do, and it is very annoying to get a copy of your message will alert you whenever you send one. Can someone please?

    -is a gmail account, Yes?

    Here's your resolution: http://www.blackberry.com/btsc/KB10332

  • Photos app says "Save as" instead of "Save a Copy".

    Previously, I could 'Save a copy' when editing photos from my SD card. He would then store the picture on the SD card. Now, it only let's me "save under" and I have to name the file, so there is an extra step. The edited photo IS NOT store on the SD card, it only stores the picture in the photos on the computer application.

    This change has occurred in a few hours. I used the app to edit pictures and when I came back from dinner to make more that she had changed.

    Hi Ali,

    Thanks for the reply. Sorry, t know that the problem persists.

    Are you having the same problem on all the other apps?

    I suggest you try the other steps in the link below (steps of uninstall and others) and check if it helps.

    A problem of an application:

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    For reference:

    Photos app using Windows

    http://Windows.Microsoft.com/en-us/Windows-8/photos-app-FAQ

    I hope this helps to solve the issue. If the problem persists, get back to us. We will be happy to help you.

  • Try to find a solution/Forum for task to save a copy of Acrobat 9

    I have plus 3,000 PDF I need to Remove the 'extended rights' of. I searched, and the only solution I've found suggest opening one by one using 'Save a Copy' that is in me forever! Are there no other option available for this task?

    Thanks in advance for all the more effective resources that you can direct me to solve this problem.

    I think you will find that there is no automation for it in Acrobat, just as there is no automation to add extended rights. Sell the Adobe LiveCycle Reader Extensions to add extensions, and it could also have an option of withdrawal.

    It's too late for that matter, but I would recommend considering what follows under the FINAL title:

    -signature

    -security implementation

    -extending drive

    Final, because the withdrawal is not always possible or practical. Therefore, I recommend that you check systematically the files 'before' in all cases.

  • I bought a version student Adobe 3 years... my computer has recently had to be reconfigured, I want to save my copy again, but cannot locate the registration key! How can I get a key please.

    I bought a version student Adobe 3 years... my computer has recently had to be reconfigured, I want to save my copy again, but cannot locate the registration key! How can I get a key please.

    Please refer to find the serial number of your product Adobe quickly

    Hope this will help you.

    Kind regards

    Hervé Khare

  • Cannot "save a copy under CS6" in After Effects CC

    Hi all!

    My after effects CC doesn't have the "Save A Copy as CS6" function available in the Save menu. Can someone help me? Another project, I'm a CS6, but can not open files created by one of the options listed in the attached screenshot.

    Thank you!

    Mike

    Screen Shot 2014-07-09 at 9.11.19 AM.png

    As Rick says, some other posters are asking what happened to register as cs6?

    If the researchers of the future forum find this post instead of only one, 2014 CC's After Effects version 13. It is all too different from CC (version 12) as CS6 (version 11) was of CC. Each new version uses the new features that are not supported in previous versions. It takes a lot of development and testing (test for the most part) to make sure that save-back features work. I would rather they develop faster management, made faster, more stable release than for them to spend the hours of work to give us a feature 'save the return of two versions'.

    CS6 and CC are available in the creative application of cloud, so you can save some Wikipedias back!

    You can save the return 2014 CC to CC, and CC to CS6 and CS6 to CS5.5, if you wanted to.

    And don't forget that, until a few years ago, there has never been a version previous backup feature.  CS5 (version 10) and earlier, you could not save backward at all.

Maybe you are looking for