Using Automator for photography file needs

I've been looking on here but can't find a way to do what I need done exactly.
I shoot in both raw and jpeg and I want to be able to run one action on a folder to do the following.
Arrange the files in a folder by name and in ascending order.
Create 2 folders in the input folder. 1 called RAW and copy all the raw files (.nef) to that folder and the other called JPEG and copy all the jpeg files to that folder.
Rename the files fro _dsc4356.jpg to macshoot0001.jpg and in the raw folder rename all the files as well.
Is this possible using the automator?
Thanks.

Hi,
In Automator :
add action "*Run Shell Script*"
Select "/bin/bash" in Shell popup menu
Select "*as arguments*" in pass input: popup menu
Paste this text in the action.
baseName="macshoot"
padding=0000 ## 3 zero pad
for f in "$@"; do
if [ -d "$f" ]; then ## is a directory
i=0
cd "$f"; /bin/mkdir -p "$f"/{RAW,JPEG}
for aJPG in "$f/"*.jpg ; do
if [ -f "$aJPG" ]; then
((i++)); index=${padding:${#i}}$i;
/bin/mv "$aJPG" "JPEG/$baseName$index.jpg"
fi
done
i=0
for aNEF in "$f/"*.nef ; do
if [ -f "$aNEF" ]; then
((i++)); index=${padding:${#i}}$i;
/bin/mv "$aNEF" "RAW/$baseName$index.nef"
fi
done
fi
done
That's all.
This shell proceed folder(s) only, if the input is file(s), it do nothing
Message was edited by: Jacques Rioux

Similar Messages

  • Sender file adapter - Can I use *.xml for the file name

    Hi Gurus,
    I have some interfaces where I need to pick the file from a directory. The name of the file will have Data<i>time stamp</i> as the naming convention. Can I use *.xml to pick up my files from this directory?
    The help.sap.com documentation says that we can use this naming convention.
    <b>
    &#9679;      File Name
    Specify the name of the file that you want to process. The name can contain placeholders (*, ? (placeholders for exactly one character)) so that you can select a list of files for processing.
    </b>
    I tried using *.xml for my file name in the communication channel, XI is not picking up this file.
    Please let me know if you have the solution.
    Thanks
    Kalyan

    Murthy,
    Thanks for the reply.
    I am using GuildFTP tool as my FTP server. In this tool, all the permissions were given for the file to pick up.
    The status of the file is good.
    Where in the file adapter configuration I have to select 'Read-only'?
    The file adapter is working perfect with the exact name of the file.
    Thanks
    Kalyan

  • Framemaker uses $filename for short file name, can we edit this to change appearance? We do not want the short file name of long filename to include the .fm extension can this be removed or modified to make this happen?

    Framemaker uses <$filename> for short file name, can we edit this to change appearance? We do not want the short file name of long filename to include the .fm extension can this be removed or modified to make this happen? In compiling our books it would be helpful to not have this extension appear as it then requires us to create extra files without them.

    See: System Variables

  • Using Log4j for writing files

    Hello,
    Is possible to use log4j for writing files?
    For example:
    I have an application that produce several report txt files is possible at runtime produce them using log4j features?
    Thanks

    Did you ever got an answer for this??? I'm starting a new project with ORACLE 9i and the site have a NAS. It will be very helpfull to know if it's possible and how can it be done.
    Thank you,
    Ulises Feliciano Troche
    GIS Analyst
    GMT

  • Using Automator for File Sharing, including 1Password Question

    I'm using 1Password (http://agilewebsolutions.com/products/1Password) on three computers at my shop and instead of using three separate library files I just want one main file/directory/database that all three computers can use, share and update.
    So far I've accomplished this by using File Sharing.
    It's working fine though when I shut off all three computers and restart I have to reconnect all computers (selecting a 'SHARED' computer on the left of an open window menu and clicking on 'Connect As...' on the top right) to reestablish the linked file.
    Is there anyway I can set up a macro using Automator to do this when I turn on my computers?

    you don't need automator for this. go to finder preferences->general and check the box to show connected servers on the desktop. then just connect to the remote computers and then drag the mounted volumes from the desktop to your login items in system preferences->accounts->login items. then when you log in the remote computers will be automatically mounted. you can also use a cloud storage solution like Mobileme or DropBox and store the password database file in a central online location.

  • Using Automator to "cat" files

    Hi all-
    I was wondering if someone could help me with an Automator workflow. I've never used Automator... but I'm pretty sure it can do what I'm looking for.
    I need it to "cat" .MTS (AVCHD) files for me. I'd like it to order them alphabetically, then cat and output to a single file.
    Is this possible?
    Thanks!

    Yea, I figured out that much. My end goal is to take two .MTS (video) files and drop them onto an automator app and have it cat the files. I just don't know how to get there.
    I'm not good with scripting, and I've never written an Applescirpt, but I know I'm missing something here. Just having the "cat" command in the "Run Shell Script" action isn't working. I'm thinking I have to specify somehow for it to "use the two files I just gave you and run the cat command on them, then output".
    Does that make sense?
    Here is what I have so far in Automator:
    1. App recieves files or folders as input
    2. Sort Finder Items   
         -by Name in Ascending order
    3. Run Shell Script
         -cat
    4. Move Finder Items
         -to Desktop.
    Thanks!

  • Using Automator for Social Media

    Hi,
    I would like to use Automator to schedule social media posts (links/articles) on a daily basis on 4 different platforms. Is this possible?
    If you have tried or are using this method, or would like to please get back to me.
    Would be a great way to avoid external software permissions and do it all privately and all for FREE.
    With reports and metrics. This may require some Apple Script. I am trying to do what Hootsuite does.
    I can probably execute 50%, but would need an Apple developer's expertise to seal it all.
    Thank you for your time and effort.
    Kind regards,
    Brigitte.

    you don't need automator for this. go to finder preferences->general and check the box to show connected servers on the desktop. then just connect to the remote computers and then drag the mounted volumes from the desktop to your login items in system preferences->accounts->login items. then when you log in the remote computers will be automatically mounted. you can also use a cloud storage solution like Mobileme or DropBox and store the password database file in a central online location.

  • Use Automator to move files and folder structure to another folder, retaining destination contents

    I have been struggling trying to setup Automator to move files and folder structure to another folder, retaining the destination contents.  Basically, I need to add files at the destination, within the same folder structure that exists at the source.  Here's some details about the scenario:
    -I have PDF files that I create on a seperate computer than I my daily use machine
    -For security reasons, the source computer doesn't have access to any shares on the destination computer
    -The destination computer has access to shares on the source computer
    -I want to delete the original PDFs at the source after they are moved or copied
    I haven't been able to get Automator to move or copy the folder contents (files and subfolders) without dropping everything copied at the top level of the destination, resulting in many duplicate folders and a broken folder structure.
    So far I've only had luck getting this to work at the command line, but I'd really like to have this setup in Automator so that I could have either a service or application that I could use for any folder, prompting for the source and destination folders.  I'm a relatively new Mac user with limited Linux experience, so this is the command that I've cobbled together and currently accomplishes what I'm looking for:
    ditto /Volumes/SMB_Temp/SOURCE ~/Desktop/Documents/DESTINATION
    cd /Volumes/SMB_Temp/SOURCE
    find . -type f -name "*.pdf" -exec rm -f {} \;
    Thanks for any ideas!

    If you have a command-line syntax that works, why not just create an Automator workflow with a single 'Utilities -> Run Shell Script' action, where that action has your (working) shell commands?
    Seems way, way simpler to me than trying to reinvent the wheel and transcribe shell commands into individual Automator actions

  • Using automator to delete files with out moving them to the trash

    My boss and I work for a school district and we have been fight the ever losing battle of keeping kids from using usb drives and ipods on the computers. We have it fixed on the server accounts so they can't. But the local accounts they can do as they please. So we have found the files that we need to remove Example ( IOUSBMassStorageClass.kext, IPodDriver.kext, ITunesPhoneDriver.kext ) I have tried to use automator to delete these files by creating an application. Well it can't remove them because its need sudo access. So no im trying to figure out how to create a apple script to do so. I know once the files are removed the machines needs to restarted. So im not sure how to include a restart command too.
    Any help on how to get this working would greatly appreciated. We have over a 600 machines to do this to. I know that there maybe mixed feeling about removing these functions but we have to fallow our board digital computer policy Primarily ever since the RIAA has been cracking down.

    Hi Northridge, and a warm welcome to the forums!
    I'd use the Terminal...
    In Terminal type man mv & man reboot
    You can execute those commands preceded by sudo, like...
    sudo mv /Library/Extensions/IOUSBMassStorageClass.kext /Library/Extensions/IOUSBMassStorageClass.kext.old
    This one just renames it, but you could move it wherever you want.

  • Using Automator for software updates

    Hi all. I apologize in advance if this has been asked and answered numerous times; I did several searches using different terms and did not find my answer.
    Can I use Automator to do all my software updates completely automatically? Including doing the restarts? I know this is a very basic question for most all of you; I can use my computer but really don't know a lot about using it to the max. I would like to be able to have all the software updates done during the night, while the computer is unattended.
    Thanks.

    If you are not too keen on running those commands you might want to try http://www.igetter.net/iGetter.html This download manager seems to allow the scheduled downloading that you need. I think you would have to go to the Apple site and find the url for the standalone updaters to find the link after Software Update identifies them. Then use this program to schedule the downloads. Sometimes those seem more stable anyway.
    The program us shareware. It appears from the description that the program remains fully functional but puts up a nag screen if the program has not been registered.

  • Anyone using DropBox for LRCAT file?

    It seems that when I use my laptop to add keywords to LRCAT, I wind up with a conflicted copy in my dropbox folder...
    Is there some way to reconcile or combine the regular lrcat and the conflicted one? Or do I have to just start using the conflicted one?
    I know this all has something to do with waiting for all the files to upload and download to DropBox, and I usually don't have a problem since the 2 machines are rarely in use at once...but sometimes I need to shut down quickly or perhaps I miss part of the transfer, so I'm really just checking to see if there is some way to reconcile when I blow it.
    Thanks
    Tom

    I use Dropbox for my personal catalog.  The key is to ensure it's finished fully uploading and downloading before you switch machines, otherwise you end up with conflicted catalogs, as you've found.
    There are ways and means of merging the catalogs (export as catalog then import from catalog) or just picking the latest (i.e. delete one copy and rename the conflicted one) but they really do create a lot of extra work, so I'd strongly recommend avoiding that situation.
    Also just bear in mind that it's not officially supported by Adobe, so keep regular catalog backups.

  • Using an * for all file extensions in a class selection parser

    Using iFS 1.1.9....
    I have successfully gotten a custom document class created using
    xml. I have used the following code to set up the parser, etc.
    If I use a specific file extension like txt the parser will
    upload the file as my custom class. However, if I use * for all
    file extensions the parser uploads all files as Document class.
    Here is what I am using:
    <?xml version='1.0' standalone = 'yes'?>
    <!--RegisterQualParser-->
    <PropertyBundle>
    <Update
    Reftype='ValueDefault'>ParserLookupbyfileExtension</Update>
    <Properties>
    <Property Action = 'add'>
    <Name>*</Name>
    <Value Datatyupe = 'String'>
    oracle.ifs.beans.parsers.ClassSelectionParser
    </Value>
    </Property>
    </Properties>
    </Propertybundle>
    When the above is uploaded I can go into iFS Manager and see
    that the parser has been registered with * as the file extention.
    I then upload this:
    <?xml version='1.0' standalone = 'yes'?>
    <!--RegisterCustomClass-->
    <PropertyBundle>
    <Update
    Reftype='ValueDefault'>IFS.PARSER.ObjectTypeLookpByFileExtension
    </Update>
    <Properties>
    <Property Action = 'add'>
    <Name>*</Name>
    <Value Datatype='String'>QualDocument</Value>
    </Property>
    </Properties>
    </PropertyBundle>
    If I have txt or some other extension for the Name in place of
    the * and upload a document it will put the class as
    QualDocument. If I have the * it defaults to Document.
    Is there a way to have the parser make all uploaded documents
    QualDocument instead of Document without doing this for each and
    every possible file extension?
    Thanks.

    Using iFS 1.1.9....
    I have successfully gotten a custom document class created using
    xml. I have used the following code to set up the parser, etc.
    If I use a specific file extension like txt the parser will
    upload the file as my custom class. However, if I use * for all
    file extensions the parser uploads all files as Document class.
    Here is what I am using:
    <?xml version='1.0' standalone = 'yes'?>
    <!--RegisterQualParser-->
    <PropertyBundle>
    <Update
    Reftype='ValueDefault'>ParserLookupbyfileExtension</Update>
    <Properties>
    <Property Action = 'add'>
    <Name>*</Name>
    <Value Datatyupe = 'String'>
    oracle.ifs.beans.parsers.ClassSelectionParser
    </Value>
    </Property>
    </Properties>
    </Propertybundle>
    When the above is uploaded I can go into iFS Manager and see
    that the parser has been registered with * as the file extention.
    I then upload this:
    <?xml version='1.0' standalone = 'yes'?>
    <!--RegisterCustomClass-->
    <PropertyBundle>
    <Update
    Reftype='ValueDefault'>IFS.PARSER.ObjectTypeLookpByFileExtension
    </Update>
    <Properties>
    <Property Action = 'add'>
    <Name>*</Name>
    <Value Datatype='String'>QualDocument</Value>
    </Property>
    </Properties>
    </PropertyBundle>
    If I have txt or some other extension for the Name in place of
    the * and upload a document it will put the class as
    QualDocument. If I have the * it defaults to Document.
    Is there a way to have the parser make all uploaded documents
    QualDocument instead of Document without doing this for each and
    every possible file extension?
    Thanks.

  • Using Automator for Aperture Export?

    Hi everyone,
    I'd like to use Automator to export different versions of photos from aperture 3.5 (different exposure -2, -1, 0, +1, +2)
    I've seen in automator the different action : "export photo" "change exposure to -x" but I have absolutely no idea of how make it works in Aperture...
    If anyone can help me, it would be amazing!
    Thanks in advance,
    Julien

    mm strange, I'm running 10.9.2 also and I don't get that message. Ok try this one
    I remove the reference actions (both the set and get) and replaced it with a second Get selected images. Note I have the new Get Selected Images action ignoring its input.
    If you add more for more adjustments make sure you have all those set to ignore input also.
    Also you might be able to remove the Reset all Adjustments action and use the Replace existing adjustments checkbox in the Apply action. Seems right but I didn't try it.

  • I have a passport external hard. previously, I used it on windows, then I changed my laptop to mac. Now, It's only read. How can I use it for copying files on it on mac? I don wanna use it on windows again.

    I have a passport external hard. previously, I used it on windows, then I changed my laptop to mac. Now, It's only read. How can I use it on my mac for copying files on my passport? I don wanna use it on windows again.

    If you're not going to use the drive on a Windows machine, you should use Disk Utility (Applications>Utilities folder) to erase the drive and format it as "Mac OS Extended (Journaled)" with a single GUID partition (default):
    Good luck,
    Clinton

  • How to use automator to duplicate files into separate folder?

    i am running the latest version of Yosemite just to clarify.
    My question is, is it possible to use automator to automatically copy a file thats added to a folder to a separate folder?
    to clarify, i have a drive account that has all my university work stored in a folder called university, i also have a folder on my HD called university.
    When i work on something i open it from the university folder on my HD, and when im done working i have to copy the file manually into the drive folder.
    Is there any way that i can use automator to detect when a file gets saved in a folder on my hard drive and automatically copy it to my drive folder?

    Hello,
    I really don't have much of an idea, but since no one has replied yet, I'll offer this...
    I wonder if it's a matter of having to clear browser caches & reloading the page?

Maybe you are looking for