Need to automatically move files to another folder

I have been playing around and can't find the answer I need, please help...
I shoot photos in RAW+JPEG and, therefore, have two files for each image in folders on my memory cards. I now have AutoImporter set to automatically import all files form the card to a subfolder within Pictures called Auto Import. I would like to add a folder action or script of some sort on Auto Import that would take the JPEGs and move them to a different folder automatically after import (addition to this folder.
My goal here is to split the RAW from JPEG into separate folders so that I can have Time Machine and iDisk back up just the JPEGs, leaving the RAW only for editing in Aperture.
I am pretty new to Mac and not very familiar with scripts or folder actions but I can muddle through. I looked around Automator but could not see any action that might work.
Thanks for any help.

OK, forget everything else, here's where I am at...
Got Aperture importing and saving the files into folders just the way I want. It is creating backup copies to a second folder.
I am using Aperture to import images to specific folders as follows:
1) Imports RAW+JPEG files to folder "Import"
2) Also sends copy to backup location folder "Jpeg Files"
3) Each set of files goes into a subfolder within "Import" and "Jpeg Files" that is labeled with the shot date (so the paths would be ...pictures/"Import"/"shot date" and ...pictures/"Jpeg Files"/"shot date")
Now, the goal is to set a folder action to "Jpeg Files" that would look for the RAW files and delete them, thereby leaving just the JPEG file in the folder labeled with the shot date. Of course, folder "Import" would still have both the RAW and JPEG versions.
I worked with Automator to create a folder action for "Jpeg Files" that would include Find Finder Items and selecting Search "Jpeg Files", then Any-File Extension-Is-"NEF" (NEF is the RAW file extension). I then add Move Finder Items To Trash.
When I run from within Automator, it works perfectly and deletes just the .NEF file. As soon as I apply the action to the folder, however, and run through the steps, it deletes the subfolders containing the NEF file and the JPG file instead of just the NEF file.
What am I doing wrong?? I just want it to delete the file type, not the folders.
Thanks for your help!

Similar Messages

  • SFTP Receiver adapter - move file to another folder

    Hello Experts,
           Thanks for helping me so far.
           I have a new scenario IDoc --> PI --> SFTP (Flat File).
           The requirement is that, after the flat file is successfully placed in SFTP into a folder, the same file should move to other folder.
           Client has suggested this because to make sure that the full file need to pick up only after the successful placing.
           Please suggest your valuable thoughts.
    Thanks
    Ravi

    Hi Ravi,
    I agree with both Janus and Hareesh.
    But still if you want to do it as suggested by client then here is the way.
    Use Option "Run OS Command after Message Processing" in your SFTP channel. You would have to do following things to use it :
    1. Write a SFTP script (or get it done by someone good at it) which does the following
          creates SFTP connection between PI server to SFTP server
          Moves the file SFTP adapter placed in first directory and moves it to another directory
    2. Place the script file on the PI application somewhere
    3. Mention the script file along with full path of application server directory where script file is placed.
    Here is reference of this option
    SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
    XI: Operation system command - error catching
    Only thing which would change in your case would be that instead of batch file it would be script file which you would be using if your PI server operating system would be UNIX. If your PI application server is based on the Windows Operating system then you would have to manage using the batch file.
    Thanks,
    Amit

  • Move file in another folder don't take the parent permission

    Hello, i am seeing this support page where explain my problem
    http://support.microsoft.com/kb/310316
    i see that the "MoveSecurityAttributes" is not supported in windows 8.1 and i see that there is an hotfix for windows 7 here:
    http://support.microsoft.com/kb/2617058
    but for windows 8.1? how can fix this? It is incredible that if i want adding file at a shared folder they haven't everyone access and i need to add them manually each time.

    Please be more specific about precisely what you're doing, Atomicoz, and what you're expecting to happen that's not happening.  The kb310315 article you provided a link for just explains a behavior of the NTFS implementation in Windows 2003 and earlier,
    which (IMO) is not robust, security-wise.
    Your last sentence begins to describe what you're trying to do, but it's just not complete enough to provide specific help with.  I suspect permissions on the parent folder can be set so that you don't have to change permissions on every file you copy
    into it, but I can't quite say just based on what you've written.
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

  • Move files from one folder to another javascript?

    I am running a 3-action droplet automatically using windows task scheduler.  Here are the 3 steps:
    1.    Batch file to move files from hot folder to processing folder
    2.    Run IPP (dr brown's image processor pro) using preloaded settings to make several sizes copies of the files.
    3.    Bat file to move the files from processing folder to archive folder.
    The problem I am observing is that Step 1 works and IPP begins to run.  It only processes the first few images, and then moves on to the 3rd step where the bat file is ran to move all files from processing folder to archive folder.   The trouble is, only a few images were processes (about 10 or so), yet all of the images get moved to the archive without being processed.  Is there a way to make sure that step 2 (IPP) doesn’t begin until all files have successfully been moved from the hot folder to the processing folder?  IPP starts right away and files are still being transferred to the processing folder.
    Does anyone have a script that will move files from one folder to another? 

    I'm sure I have see a way to close down Photoshop in a Photoshop script.  I never had the need to.  It may be a simple statement like app.close(); I don't know javascript and only hack Photoshop script mostly by looking at others code.  app.close(); is a guess on my part. Let me try it. I was wrong its photoshop.quit();
    So make your MoveToArchive.jsx look something like this
    try{
       var BAT = new File(Folder.temp + "/MoveFilesToArchive.bat");
       BAT.open("w");
       BAT.writeln('Copy /Y "c:\\Process\\*.jpg" "c:\\Archive\\*.*"');
       BAT.writeln('Del "c:\Process\\*.jpg"');
       BAT.close();
       BAT.execute();   // execute the temp bat file
    }catch(e){
    alert("Bat MoveFilesToArchive  failed to execute.");
    photoshop.quit();

  • Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?

    Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?  The cut and paste function is not available and there's no "move to" function.  Am I missing something?  It was so easy with Windows.

    Drag the files, or press Option when pasting them; this accesses the Move To function.
    (124070)

  • Is there a way to automatically move mail from one folder to another?

    Is there a way to periodically, automatically, move mail from one folder to another?
    For example, I'd like to move mail from one of my IMAP/Archives folders to my MyMac/Archive folder and I'd like this to happen without intervention.
    Can this be done?

    I'll try to be more specific.
    When I'm done with an email, I archive it.
    Because I have multiple email accounts, this results in emails in multiple Archive folders (one per account). 
    I'd like to have these automatically all moved into one (on my Mac).

  • How to move files from one folder to another folder in webdynpro java for sap portal

    Dear Experts,
    I wan to move files from one folder to another folder in SAP portal 7.3 programmatically in webdynpro java.
    My requirement is in my portal 1000 transport packages is their. Now i want to move 1 to 200 TP's into Archive folder.
    Can you please help me how to do in through portal or wd java ...
    Regards
    Chakri

    Hello,
    Do you know what the difference between copying a file this way :
    ** Fast & simple file copy. */
    public static void copy(File source, File dest) throws IOException {
    FileChannel in = null, out = null;
    try {         
    in = new FileInputStream(source).getChannel();
    out = new FileOutputStream(dest).getChannel();
    long size = in.size();
    MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);
    out.write(buf);
    } finally {
    if (in != null) in.close();
    if (out != null) out.close();
    ================SECOND WAY============
    AND THIS WAY:
    // Move file (src) to File/directory dest.
    public static synchronized void move(File src, File dest) throws FileNotFoundException, IOException {
    copy(src, dest);
    src.delete();
    // Copy file (src) to File/directory dest.
    public static synchronized void copy(File src, File dest) throws IOException {
    InputStream in = new FileInputStream(src);
    OutputStream out = new FileOutputStream(dest);
    // Transfer bytes from in to out
    byte[] buf = new byte[1024];
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    in.close();
    out.close();
    And which is better? I read up on what each kind of does but still a bit unclear as to when it is good to use which.
    Thanks in advance,
    JavaGirl

  • Why can't i move files from one folder to another by sliding them?

    help. i am trying to move files from one folder to another. but i cant slide them by clicking on a file and sliding it to another place. any suggestions? thank

    Go to Finder "Go" menu hold the option key and choose Library. Then go to Preferences trash these files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then, restart, or log out and in again.
    (You will have to reset a few finder prefs the way you like them.)

  • How do I move files from one folder to another?

    On my MacBookPro I am trying to move files from one folder to a BSB drive.  I can copy, but I do not want the files left in the original location.  What do I do?
    J W

    Press the Command key while dragging them.
    (58054)

  • Applescript to move files in a folder to the parent folder.

    I've got tens of thousands of files in folders that I'd like to be automatically moved out of the folder thier in to the parent folder.
    For example:
    Summer Vacation/img/photo.jpg
    I need all of the files in the folder img to be moved out of img and into Summer Vacation.
    Monthy Report/final/report.ppt
    I need all of the files in the folder final to be moved out of final and into Monthly Report.
    So the specifics are many and varying. A script that would work without specific file and fodler names might work better.
    Any thought on this would be greatly appreciated.

    You can use launchd to run a script daily.
    The script would move files that are older than 7 days (based on the access time) from the Downloads Folder to the Desktop (edit as needed):
    #!/bin/bash
    seven_days_ago=$(date -v -168H +%s)
    for f in ~/Downloads/*
    do
              if [ -e "$f" ] ; then
                        if [ $(stat -f %Da "$f") -lt $seven_days_ago ]; then
                                  mv "$f" ~/Desktop
                        fi
              fi
    done
    Put this script in your favorite Folder (I use ~/Library/Scripts)
    Now to trigger the script daily, place this launchd plist in ~/Library/LaunchAgents/, and edit for the location of the script, and when you want it to run (I have it at 8:24pm daily).  Reboot (or log out and back in) for the launchd to take effect.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>KeepAlive</key>
              <false/>
              <key>Label</key>
              <string>com.tonyt.MoveFiles</string>
              <key>ProgramArguments</key>
              <array>
                        <string>/Users/Tony/Library/Scripts/MoveFiles.sh</string>
              </array>
              <key>StartCalendarInterval</key>
              <dict>
                        <key>Hour</key>
                        <integer>20</integer>
                        <key>Minute</key>
                        <integer>24</integer>
              </dict>
    </dict>
    </plist>

  • Can you manually move files within a folder to put them in a specific order?

    I am new to mac, I was wondering if there is an app maybe that you could move files within a folder (ie photos) to make them in a specific order and then rename them, I used to be able to do this with my windows xp..... cant seem to make it happen with my new macbook pro and from what i can gather it cant be done? can it? Thanx in advance.........

    Thomas, I have set the view to maunally but when i move the icons they return to where they were sitting..?
    In the Finder? You probably have a sort selected in the Sort By submenu in the View menu. However, the order of icons in icon view won't have any influence on the order of the images in the slideshow, I think. Use iPhoto, this is one of the things it's made for, the Finder is not.

  • I am a beginner with video. What software do I need to view .MOV files on my Dell Desktop?

    I am a beginner with video. What software do I need to view .MOV files on my Dell Desktop?

    .mov is Apple "Quicktime".  
    You should be able to download a player here:   http://apple.com/quicktime
    Tim Campbell
    5D II, 5D III, 60Da

  • Mac won't let me move files into a folder bc it THINKS there are duplicate files - but they're not

    Mac won't let me move files into a folder bc it THINKS there are duplicate files - but they're not. There are hundreds of what it thinks are duplicates. How can I get it to let me put them all into a folder and create unique names? If I do one file at a time, it gives me the option to keep both files. But not when I am moving hundreds at a time.

    A reply to an old problem, but I couldn't find this solution anywhere. I had the same problem when I moved my iTunes library to an external drive. As Apple recommends, I used File > Library > Organize Library > Consolidate Files to copy my music files from my overstuffed hard drive to the external drive. Copying went fine for a while, adding about two-thirds of my files to the new drive without incident. Then I got the big stop sign with the error message: "Copying files failed. The disk could not be read from or written to."
    This turned out to have nothing to do with either the hard drive or the external disk. I had a bad file in my music library that was shutting down the consolidation process. Unfortunately the error message says nothing about which file may be the culprit. All I could think to do was to go back to my original library in iTunes and sort by Artist, select all cuts with artists beginning with A, right click and select "Consolidate Files". Then do the same with B artists, etc. Proceeding this way, files resumed copying but when I got to the "S" selections, the consolidate process failed again. Then I selected smaller and smaller batches until the problem file was identified. Removed it from my library and then Consolidate worked fine through the rest of the library. Problem solved.
    I spent several days working through this; hope I can save someone else the time.

  • Will changing the partition of the Home Folder automatically move files from old location?

    I want to change the home folder for my users.  Currently they are saving to the C: drive and using up the space on the root drive.  There is a D:  partition that has 774 GB free, so I would like to move use directories over to a new Home
    Folder on the D: drive. 
    http://support.microsoft.com/kb/816313
    What I am unsure of is whether or not I will have to manually move their files once I change the home directory.  Will it or do I need to take an extra step to move files in order to provide a seemless experience to the users?
    I am working with Windows Small Business Server 2011 Essentials.  

    Hi,
    Did you use the group policy to set the user home folder?
    As Ahmed MALEK mentioned, a user account is moved from one location to another in AD the users home drive setting is not automatically updated as its a static configuration on the users account. You need to manually move the file to the new location.
    Maybe you could consider the folder redirection, more detail information, please refer to:
    How to “Set users home folder” via group policy in Windows 8
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • FTP-File : move file from a folder to another

    Hi experts,
    Here is the deal :
    I have a FTP folder (OS windows) where my files are stored. As I want XI to pick them one by one, I need a way to move them one by one in another folder of the FTP before message processing, folder that will be polled by XI
    How can I do that ?
    more concretly :
    I have 5 files in a folder called Standard, files are named : TEST1_hhmmss.xml, TEST2_hhmmss.xml, etc.
    I have another folder, lets say Standard_child that XI scans every 5 minutes. As I want my 5 files to get picked one by one every 5 minutes, I need a way on the FTP before message processing that moves TEST1_hhmmss.xml in folder Standard_child then XI picks up this file, and so on until all files are consumed.
    Thanks a lots for any help, ive been struggling for days... so far I tried with a script that renames file before, but did not work on FTP...
    Kind regards,
    Jamal

    Hi
    This site may be helpful
    http://www.computing.net/answers/programming/batch-to-move-file-by-sysdate/14939.html
    you can check the net for more answers
    1) make a logic & ensure that ur script works fine in your sender system (where all files will be placed)
    2) you can try it urself if you have access to the systems command prompt
    3) use scheduler, of your sender system (you said it is windows) you can check help to see how you can schedule programs - there call your script.
    4) now your script will send the files to child folder one by one as per your logic, which can be picked by XI
    Regards
    Vishnu

Maybe you are looking for

  • Applying rules manually doesn't work for multiple messages

    I've been using Mail for some time now and love rules. Love 'em. A few months ago I started having touble and have not been able to figure it out. The rules get applied to new incoming messages properly, as they should. However, I used to be able to

  • What can be done to have keynote & numbers to open in iWork '09

    Loading up a disk for iWork '09 gives the three apps Pages, Numbers, and Keynote.  However, only Pages opens properly.  Numbers partially opens, but I can't get access to files I've made in the past.  Keynote doesn't open at all.  The version of iWor

  • Condition triggers even though SY-SUBRC = 4 in the routine

    Hi Experts, I have Z condition type which triggers automatically based on the condition records. Now we have added a Requirement->Pricing->Routine in which we are making sy-subrc = 4 based on some condition. However I see still the condition is trigg

  • Create a LSMW for abumn asset transfer upload

    hi all we have a requirement form the user to upload all the existing assets to new asset shells through ABUMN, we need to create the lsmw recording for the same, iam doing the lsmw recording and each time i do the recording the system says cant save

  • Unrecognized deployment

    While deploying get a warning message in the log file: "...warning Deployer Service failed to deploy file:/D:/_ServerApps/JRun4/servers/default/temp/             * Unrecognized deployment: file:/D:/_ServerApps/JRun4/servers/default/temp/ ". I have JR