Save a copy in the specific folder and edit original

Is it possible to bridge to make a script that:

  1. Copy a picture of the original to a particular folder another folder
  2. Give the original photo, a keyword, a label or a field of metadata with today's date?

I've been using PHP and VBA and have just started to learn JavaScript, so I might be able to understand something of my own if you point me in the right direction. If you could give me the script ready to use, I will be very grateful.

Our location:

We publish photos in a weekly news journal and online. We have pictures in one folder, ready for use. When put us a picture in production copy us to another folder, but we would like to know if and when a picture has been used, so we are not using the same photo over and over again. It would be great if we can mark the original somehow "used" and "date".

Thank you!

Bridge CC 6.3.1.186 using x 64

Here is an example of adding 'Used' and the date in the title field also copy the file to a selected folder.

#target bridge
   if( BridgeTalk.appName == "bridge" ) {
copyAndDate = MenuElement.create("command", "Copy and Date files", "at the end of Tools");
}
copyAndDate.onSelect = function () {
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
var copyFolder = Folder.selectDialog("Please select folder to copy files to...",Folder(app.document.presentationPath));
var sels = app.document.selections;
for(var a in sels){
var thumb = sels[a];
thumb.copyTo(copyFolder);
var md = thumb.synchronousMetadata;
md.namespace =  "http://purl.org/dc/elements/1.1/";
md.title = '';
md.title = "Used " +  new XMPDateTime(new Date());
    }
};

Tags: Bridge

Similar Questions

  • Can I save Firefox by copying the Mozilla folder and all its contents?

    I'm currently back up Thunderbird by copying its folder in appdata/roaming. I can do the same thing to back up Firefox by copying the Mozilla folder and all its subfolders?

    Yes.

    See also:

  • 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.

  • Copy a single file to the new folder and remain in multiple versions

    Hello. I am looking for assistance in the next issue. I have a script that helps me to look for a file name and rename it and I have a script that looks like a file and moves it to a new folder. I need one that will combine the two aspects in one based on the example as follows:

    I have a picture but need to rename the same file in several versions. (i.e. original image name 7HABLH.jpg to be copied to a new location and renamed with several different names 6HABLH_01.jpg, 6HABLH_02.jpg, 6HABLH_03.jpg, etc...). This produces even a lot of pictures and are all contained in a CSV file that is configured as below

    My end result would be the image in the folder/column 'OldImageName' is copied into a new folder and renamed the folder/column "NewImageName." Hope my request is logical that I am a poster the first time also trying to learn the script but I don't have a lot of time to achieve and could use as much help as possible.

    Hope that someone out there may be able to help.

    Windows or OS X?

    TT2

  • 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");
    }  
    
  • Files that are opened in a bound iCloud application are instantly copied to the application folder in iCloud.

    When I open a file in any folder in the finder, in an application that is linked to iCloud, i.e. 'Expert PDF' or 'Preview', I opened, the file will be copied to the application folder instantly. This only happens on Mac.

    On Mac, the file appears in the folder something like a shortened (as in the picture):

    If I open the mobile application (i.e. PDF Expert) there is a copy of the file in the application folder.

    I first thought that would happen only with Expert PDF, but I discovered that it happens with any application that is enabled in the settings of the iCloud drive. It's really annoying to remove them, every time that you open the. That this feature was actually supposed to do, is create a folder in iCloud drive that is assigned to the application on any device to iCloud.

    Maybe someone knows how to turn it off, or maybe it's just a bug.

    It looks like a feature and not a bug.

    iCloud is not really duplicate files in the files collection of application.  It looks like a file duplicate of the same size as the original, that you have opened, but iCloud is record storage by creating symbolic links. .

    I checked several of apparent duplicates in the Terminal, and if I list the file with the Terminal command

    LS - li somefileoniclouddrive

    I see that the inodes are identical to the original and the duplicate.  So no additional storage is required.

  • installed my windows 7 Home Premium on a new hard drive, but it says my key is invalid. I bought this copy of the microsoft store and have retained the email with the key.

    installed my windows 7 Home Premium on a new hard drive, but it says my key is invalid. I bought this copy of the microsoft store and have retained the email with the key.

    To analyze and solve problems for Activation and Validation, we need to see a full copy of the report produced by the MGADiag (download and save to the desktop - http://go.microsoft.com/fwlink/?linkid=52012 ) tool
    Once saved, run the tool.
    Click on the button continue, which will produce the report.
    To copy the report in your response, click the button copy in the tool (ignore the error at this stage), and then paste (using r-click and paste or Ctrl + V) in your response.
    -* in your own thread *, please

    What is an upgrade?

    If so, you must install and activate a qualifying operating system before you perform the upgrade.

    For which version and edition of Windows the computer is allowed according to the COA sticker on the case?

  • I open a powerpoint file to edit it, then save it again in the same folder. Then I close the application. Now the Explorer window will not respond.

    Original title:

    I have a folder on my desktop and added 5 PPTX files.  I open the folder so I can see all the files, double-click on one to change, and then save it again in the same folder.  Then I close the Powerpoint application.  Now the Explorer window of window (which I opened before) will not respond.  It clicks when I click it.  I can't close or access any of the files inside.  Any ideas?  My computer still respond as usual.

    64 bit OS

    Hello

    You did changes to the computer, before the show?

    Method 1:

    Step 1: Safe Mode

    Start your computer in safe mode and check the number.

    Start your computer in safe mode

    Step 2: Clean boot

    If you are not facing the problem in safe mode, and then put your computer in a clean boot and search for the question.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    Note: Once you are done with the boot, follow step 7 of article to reset your computer to normal startup.

    Method 2:

    Refer to this link.

    Error: Windows Explorer has stopped working

    Note: Please skip the step that offers to perform a upgrade in Place, for now.

    Method 3:

    Change the location of the folder and check.

  • Can Media Encoder take a sequence of images in the watch folder and turn it into a video file?

    I use OSX and Media Encoder 6 (6 pm) and does not know how the spyware file take a .jpeg or .dpi sequence and turn it into a single video file.

    I tried to copy all photos in the folder of the watch, who made 60 video files individual (one for each image).

    I tried to make a subfolder in the watch folder and copy images in there... to which Media Encoder did nothing.

    What Miss me? Media Encoder will take image sequences and make out like an audio-less video for me?

    Thanks for any imput.

    Hi action_packed,

    This is the documentation: http://helpx.adobe.com/media-encoder/using/add-items-encoding-queue.html

    Still image sequences are not supported as a source through spyware records footage. If a set of still images is placed in the watched folder, each individual file will be added under a separate item in the queue rather than the entire sequence as a single piece of film.

    Make a feature request for it here: http://adobe.ly/feature_request

    Thank you

    Kevin

  • What is the file deleted the files in the main folder, and can / should I remove it?

    What is the file deleted the files in the main folder, and can / should I remove it? Is it too much room, I could use?

    This file stores a list of files from previous version of Firefox that are no longer needed or supported in the current version of Firefox. This file is only a few KB and it is best not to delete files in the Firefox program folder to avoid update problems. If the required files are missing or modified with a update Firefox will download the full version (approximately 10 MB) instead of a small incremental update which is usually only a few hundred KB.

  • 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.

  • How to disable the button create and edit button in IMPORT environment for all the modules of 6.1.1.1?

    Hi all

    I am trying to disable some built-in options for all modules as well as all users in paragraph 6.1.1.1.

    How to disable the button create and edit button in IMPORT environment for all the modules of 6.1.1.1.?

    Please help me solve this problem.

    Thank you

    Nefertari

    Thank you Ivy, Yes.

    I made some changes more in environment settings that helped me to turn off the button the user create a user/edit.

    Thank you

    Nefertari

  • Please how can I create a page based on template and save in the specific folder.

    Please, I spent two days trying to solve this problem.  Here's the situation.  I'm trying to create a Web site for our school.  I created a master template which I intend to use as a base for each teacher's webpage.  I also created folders for each teacher, teachers had to send me their weekly updates what duties inlude, photos and downloads.

    Here's the problem: whenever I have to create a page based on the template of the page is created in the root folder.  There is no way to create pages in the files of specific teachers.  I save the page and try to drag to the respective folder.  When I try to save the file, Dreamweaver he re-recorded in the root folder.  If I try to view the html file in the folder of the teacher that the overview does not load.  I have three books of refernce DW, including the Missing Manual and no of them don't address this problem.  Neither is Adobe.

    Surely someone here created a page based on a template and placed in a folder without breaking all the paths.  Why DW does not provide a way to save a page template based in a specific folder.

    Thank you all for responding.  The problem was that I was using DW on my macbook.  To access save as function I finally understood that you must click on the small triangle next to the name. not the Favorites or recent locations triangle.  Lost two days trying to understand cela.  Incredible.

  • Measure the number of Vm for a specific folder and its subfolders in a Vcenter

    Hello

        I am try to create a script that tit I am creating a powercli script that will count the number of VMS in all subfolders that is mapped to a specific folder (like I have a folder name 'guests', according to which several customers subfolders (cus01, cuso2, cus03...) will show all customers folder. )

    For example-, we have several files in the vcenter, whereby I need to point to allows specific folder say "All customers" and count of the VM of each subfolders.

    VMcount folder

    All clients 60 - this total count of the main folder, including subfolders.

    Cus01                                   10

    cus02                                    20

    cus03                                    30

    ANY IDEA? do this in simple oneliner or a simple loop.

    Thanks in advance!

    -Philippe.

    Try something like this

    $folderName = "all customers".

    $rootFolder = get-file-name $folderName

    $folder = @($rootFolder) + (get-file-location $rootFolder)

    $folder | Select Name,

    @{N = "VMCount"; E={($_ | Get - VM | Measure - Object). County}}

  • Why Thunderbird adds an A at the end of sentences when I save an email that I work on the drafts folder and then open it to work on it at a later date?

    Twice now I work on one e-mail then saved in the drafts folder to finish later and I supported then out of Thunderbird. From the opening of Thunderbird once more and goes to the open drafts folder and to work on the new Thunderbird email, the first time had added an A or an EA at the end of each sentence. I then had to go through the entire email to remove these letters. Today I saved a mail to the drafts folder, as before, and this time when I opened the e-mail again an A had been placed randomly at the end of some sentences, but not all. Yet once I had to go through the entire email and delete adding A I have not had a problem with Thunderbird that in the past. This has been the case during the past two weeks. I received a laptop computer and downloaded the latest version of Thunderbird on it, and it is the version that this happens with. I do not understand why the addition or the letters are added to the email. They are not something I typed in the email.

    I guess right, but sometimes, you can see an A type character when instead of an ordinary space, there is a space specially coded (and it is not decoding in a space of ugly).

    You type a space between sentences? If you type several spaces, it is possible that all but one of them could get specially coded because otherwise HTML will collapse into a single space.

Maybe you are looking for