Rename files in multiple subfolders

Hello,
I am looking for a way to do the following:
I have different files in various folders and subfolders that I wish to rename.
So I need automator to search for files in all folders and subfolders of my external drive and find all files ending in .doc.
Then I need each file to be renamed as "report.doc". (there is only one file per subfolder so there is no danger of having two files with the same name.)
Can someone show me how to do that? I found similar posts but it was not what I was looking for. I've even posted a similar question to applescript discussions in case automator doesn't have this possibility.
Thank you very much for your time.

It can get very confusing for people helping when you post the same question in multiple forums.  I have already posted some suggestions in your other thread:
https://discussions.apple.com/thread/3882697

Similar Messages

  • Rename files in different subfolders

    Hello,
    I am looking for a script to do the following:
    I have different files in various folders and subfolders that I wish to rename.
    So I need a script to search for files in all folders and subfolders of my external drive and find all files ending in .doc.
    Then I need each file to be renamed as "report.doc". (there is only one file per subfolder so there is no danger of having two files with the same name.)
    Can someone show me how to do that? I found similar posts but it was not what I was looking for.
    Thank you very much for your time.

    This is an old document I have so some may no longer exist or work with Lion, but you can probably find utilities that will do this for you.  I use Renamer4Mac from back when it was free.
    *Renaming Utilities*
    NameChanger [http://www.mrrsoftware.com/MRRSoftware/NameChanger.html]
    Renamer4Mac [http://renamer4mac.com/batch-rename-files-on-mac-osx.html] - now shareware but older versions may still be free.
    psrenamer [http://www.powersurgepub.com/downloads.html#psrenamer] - Java based (=slightly slow) free utility.
    Name Mangler [http://www.manytricks.com/namemangler/] - requires OS 10.5+, but File List [http://www.manytricks.com/download/filelist] is an older version for pre-10.5.
    [http://www.publicspace.net/ABetterFinderRename/] - $20

  • How can I bulk sort by capture time and  bulk rename files off multiple cameras?

    I have found many renaming utilities, including bridge, but I have not run across any that allows bulk / batch capture time sort and rename?
    I can sort by capture time in Lightroom 3, but when I export it puts the files back in original order....maybe I am doing something wrong....that would not surprise me. 
    I just tried sorting by Capture Time in LR3 and then exporting and renaming.... renamed but not in the capture time sort order....    
    so I am open to any suggestions... I shoot 2 cameras 99% of the time so I do not need to change lenses.
    Thanx in advance.

    How can I bulk rename music files in reverse order from artist - song name to songname - artist.
    I actually dont need to rename the actual files.
    Its just i have a huge txt list of 100,000 music names that are listed as so.
    I wonder if we haven't misunderstood what you were asking for. Could it be that you have not a huge file, but just a huge list of names in many small files. If that's the case, you should rather use the following script instead of the previous one.
    Since this script does not rename the files, make a backup of your files before running it.
    set theFolder to choose folder -- the folder containing your text files
    tell application "Finder"
        set theNames to name of files of theFolder whose name extension is "txt"
    end tell
    set theTextFiles to {}
    set theFolderPath to POSIX path of theFolder
    repeat with thisName in theNames
        copy theFolderPath & thisName to the end of theTextFiles
    end repeat
    repeat with thisFile in theTextFiles
        set F1 to open for access thisFile
        set theText to read F1
        close access F1
        set theParagraphs to paragraphs of theText
        set bigList to (a reference to theParagraphs)
        set theNewParagraphs to {}
        set bigNewList to (a reference to theNewParagraphs)
        repeat with X in bigList
            set P to offset of " - " in X
            if P = 0 then
                set Y to X
            else
                set Y to text (P + 3) through -1 of X & " - " & text 1 through (P - 1) of X
            end if
            copy Y & return to the end of bigNewList
        end repeat
        set theNewText to text 1 through -2 of (bigNewList as text)
        set F2 to open for access thisFile with write permission
        set eof F2 to 0
        write theNewText to F2
        close access F2
    end repeat
    display dialog "Done!" buttons {"OK"} default button 1 with icon 1
    Message was edited by: Pierre L.

  • How can I convert JPG files in multiple subfolders into PDFs with a batch?

    So here's the situation. I'm sitting on 400+ files, each in its own individual subfolder which also contains 4-10 other files. Those files I don't care about, only the .jpg file. I want to be able to take all of those .jpg files and convert them into PDFs, saving them in the same original folder. I've tried making an action to do this but it selects all the files in the folder and converts them as well.

    Should be, yes... It's one of the options of the batch processes. I believe
    it's under the first step, the one where you select which folder/files to
    process. There should be a window there to select which file types to
    process as well. Untick everything except for JPG and it should work...

  • How to rename files that appear in multiple .book files?

    I have about 50 .fm files, and 4 .book files, each of which includes about 20 of the .fm files.
    I want to rename some of the files.
    If I open all four .book files at once, and I go to First.book and rename file Q, I want it to be renamed in all the other .book files in which it happens to be included.
    How can I do that?
    Thanks.

    You have to rename the file in each book that it is included in. After the first re-name, the other books will treat the old filename as a missing one.

  • Need a script to do the following... rename files based on folder name...

    Hi. Macophile just starting to tread the waters of Applescript, trying to use Automator but don't think it will do what I need.
    I have many images stored with-in folders that I would like to extrapolate a given number of characters from the folder name and Add Text to the files within those given folders.
    Basically...
    Folder name is C00100_Descriptive
    Files within folder are just Descriptive_01, Descriptive_02
    Would like to make all files within a given folder take the first 7 characters from the folder and Add that text to all files and files within subfolders of that folder to make the resulting files shown as...
    C00100Descriptive01
    C00100Descriptive02
    Along with this I would also like to incorporate into the script, an added step to create Thumbnail jpegs of the image files in a Subfolder under C00100_Descriptive folder.
    I can see how to do that in automator but not specifying parameters such as taking a certain number of characters from the folder the file resides in and adding that selected text to the files.
    Ideally I would like a droplet or something that I could take a bunch of folders and drop them on the droplet to perform these actions.
    Any advice, help or guidance would be really helpful! Thanks in advance.

    Awesome, you're quite welcome, glad to hear it worked for ya!! Here's another version of the script that will rename the thumb files as jpg...
    <pre style="width:630px;height:auto;overflow-x:auto;overflow-y:hidden;"
    title="Copy this code and paste it into your Script Editor application.">on run
    set theItems to choose folder with multiple selections allowed
    open (theItems)
    end run
    on open (itemList)
    repeat with anItem in itemList
    set theInfo to info for anItem
    --VERIFY THAT THE OPENED ITEM IS A FOLDER
    if folder of theInfo and not package folder of theInfo then
    --SET PATH TO THE FOLDER
    set theFolder to POSIX path of anItem
    --GET FIRST PART OF FOLDER NAME
    set folderNameStart to do shell script "echo " & ¬
    quoted form of (name of theInfo) & "|awk -F'_' '{print $1}'"
    --GET ALL FILE NAMES
    set fileList to list folder anItem without invisibles
    --PROCEED IF FOLDER NOT EMPTY
    if fileList is not {} then
    --SET PATH TO THUMBNAIL FOLDER
    set thumbFolder to theFolder & "_thumbs/"
    --CREATE FOLDER IF IT DOESN'T ALREADY EXIST
    try
    do shell script "mkdir " & quoted form of thumbFolder
    end try
    --PROCESS FILES
    repeat with fileName in fileList
    --SET PATH TO CURRENT FILE
    set oldFile to theFolder & fileName
    --PROCEED IF FILE IS NOT A FOLDER
    set oldFileInfo to info for POSIX file oldFile
    if not folder of oldFileInfo then
    --SET NEW FILE AND THUMB FILE PATHS
    set newFileName to folderNameStart & "_" & fileName
    set newFile to theFolder & newFileName
    set theExt to name extension of oldFileInfo
    set thumbName to text 1 through -((length of theExt) + 1) of newFileName & "jpg"
    set thumbFile to thumbFolder & "thumb_" & thumbName
    --RENAME FILE
    do shell script "mv " & quoted form of oldFile & space & ¬
    quoted form of newFile
    --CREATE THUMBNAIL
    --REPLACE '128' WITH MAX HEIGHT OR WIDTH OF THUMB
    try
    do shell script "sips -s format jpeg -s dpiHeight 72 -s dpiWidth 72 -Z 128 " & ¬
    quoted form of newFile & " --out " & quoted form of thumbFile
    end try
    end if
    end repeat
    end if
    end if
    end repeat
    end open</pre>

  • Relinking files in many subfolders

    Does anyone know how to relink files that are in multiple folders at once?
    My scenario.
    I was linked to a hard drive that died. But like a good girl I have backed up my indesign files, images and graphics. My problem is that they are in multiple folders with multiple subfolders. So all links come up missing and when I relink I only get the additional 2-3 images that are in that folder. I have 600+ images to relink. Is there anyway for indesign to relink to a parent folder and ask it to relink to all the subfolders included? I can't rename the server to my hard drive name to fool it either.
    Thanks for any help on this.

    If the folder structure is identical, but the volume name is different, they yes, you can do it. Re-link just one file, and note its name. Now export to .idml (or .inx if using CS3 or lower). Open that file in a text editor and find the links by searching for the name of both the file you fixed and any other file, Note the difference in the paths and use Search and Replace in your text editor. Save, then open that file back into InDesign.
    Here I have opened an .inx file in TextEdit and highlighted the path and filename of one of the links.

  • Deleting & renaming files - is there a shortcut to finder?

    I am a recent convert from PC to Mac. So far so good. However, one thing starts to drive me up the wall which is deleting/renaming files in programs such as photoshop, word, excel etc.etc.
    As far as I can tell, this is only possible in the finder menu. Is this Correct? I am using a lot of folders and subfolders - sometimes 3-4 levels deep. Every time I need to change/delete a file or filename - lets say while in photoshop, I have to go to finder and click my way through several levels of folders to the actual file I need to change. This is somewhat annoying and timeconsuming.
    Question 1: is there a way to do these operations in - lets say photoshop directly?
    Question 2: If not, is there a shortcut key that would point me automatically to the file in finder where I can make the changes?
    Your input would be very helpful and save me some aggravation.
    fupe

    Hi Greg,
    Thanks for your input. You are correct as far as "save" and "save as" is concerned. Windows and Mac work the same way.
    However, as far as I can tell, in Mac you can only "delete" or "rename" a file in "finder" which forces you to open up finder and locate the file in order to delete or change it.
    In windows you can do these 2 functions directly in the program (such as photoshop, excel or words). You do not have to go to "explorer or root directory" to make these changes which I believe would be the equivalent of "finder".
    In any case, Terence solved the problem. By command clicking the name (title) of the file in any program, it opens up the directory in "finder". This way makes it easy to select the file and do the changes.
    fupe

  • How to open renamed files?

    Hi
    I rename selected files and after that want to open them.
    For my purpose renaming works well like this:
    tell application "Finder"
    set FilesToRENAME to selection
    display dialog "Change what?" default answer ""
    set ChangeFROM to text returned of the result
    display dialog "Change to?" default answer ""
    set ChangeTO to text returned of the result
    set AppleScript's text item delimiters to {ChangeFROM}
    set theCount to count of FilesToRENAME
    repeat with x from 1 to theCount
    try
    set theName to name of item x of FilesToRENAME
    set FirstNamePart to first text item of theName
    set LastNamePart to second text item of theName
    set newName to FirstNamePart & ChangeTO & LastNamePart
    set name of item x of FilesToRENAME to newName
    on error errStr number theNumber
    activate
    display dialog "Error in changing the Name " & theNumber & return & errStr ¬
    & return & "Step " & x
    end try
    end repeat
    set AppleScript's text item delimiters to ""
    end tell
    Now newly renamed files don't belong anymore to FilesToRENAME. So how to point to those files now (how to make a new list from those renamed files)? I was thinking to get a path to each file inside the repeat loop and replace the name, but couldn't do it.
    Thank you for any help.
    Vera

    Pierre's method is pretty clever, but if you don't happen to be using a Finder selection (choose file for example), you can also use the interesting fact that an alias keeps track of an item even if it is moved or renamed.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- tell application "Finder" to set filesToRename to selection as alias list
    set filesToRename to (choose file with multiple selections allowed)
    set changeFrom to text returned of (display dialog "Change what?" default answer "")
    set changeTo to text returned of (display dialog "Change to?" default answer "")
    set renamedFiles to {} -- this will be the renamed files
    repeat with aFile in filesToRename
    set aFile to the contents of aFile
    tell application "Finder" to set theName to name of aFile
    try
    set tempTID to AppleScript's text item delimiters
    set AppleScript's text item delimiters to {changeFrom}
    set firstNamePart to first text item of theName
    set lastNamePart to second text item of theName
    set AppleScript's text item delimiters to tempTID
    set newName to firstNamePart & changeTo & lastNamePart
    tell application "Finder"
    set name of aFile to newName -- aFile points to the original file
    update aFile -- give Finder a chance to catch up
    set the end of renamedFiles to aFile -- aFile now points to the renamed file
    end tell
    on error errStr number theNumber
    activate me
    display alert "Error " & theNumber & " in changing the Name" message errStr
    end try
    end repeat
    renamedFiles --> aliases to the renamed files
    </pre>

  • Renaming files/folders on desktop: weird.

    Hi
    Since I have OSX Lion, and I want to rename files/folders on my desktop nothing happens.
    Or at least not what is suppose to happen. Pressing enter in a finder window works perfect, like always.
    But when I hit enter on a file or folder on my desktop it go's blank.
    I can't see what i'm doing, but the name will change if I typ a new one. Quit confusing and realy difficult to work with. Any idea's how to fix this?

    This has been driving me nuts but I accidentally found the cause...but not the solution.  It is a Lion thing as spaces did not have this issue.
    I am assuming you are using multiple screens (mission control, formerly spaces).  If you go to screen 1 and try to rename the file you CAN see the name as you rename it.  If you go to any other screen and try to rename it you get the blank space. 
    In my case I never rename files on my main screen.  I always rename them on which ever screen I am working (word is screen 5, so docx saved to the desktop are renamed on screen 5).

  • Sedname - Batch rename files using sed

    Renaming files using sed is nothing new, but this script makes the process a little more friendly and adds a few features, including insertion of sequential numbers and a simulation mode.  The output of any find command can also be piped through sedname.
    sedname version 1.0.0
    Batch-renames files using a sed script
    Usage: sedname [OPTIONS] SEDSCRIPT FILE ...
    Usage: find [...] | sedname [OPTIONS] SEDSCRIPT
    Example: sedname 's/\(.*\)\.jpg/\1.jpeg/' *.jpg
    Example: find /mypics | sedname 's/\(.*\)\.jpg/\1.jpeg/'
    OPTIONS:
    --sim simulate only
    --dir rename directories too
    Use #D to insert a number with D digits forming a unique filename
    Example: sedname 's/thisname.*/thatname#3/' *
    ( changes thisname* to thatname001, thatname002, ... )
    Use #0 in replacement name to insert a number if needed
    Example: sedname 's/thisname.*/thatname#0/' *
    ( changes thisname* to thatname, thatname1, thatname2, ... )
    http://igurublog.wordpress.com/download … t-sedname/
    http://aur.archlinux.org/packages.php?ID=37707

    What does it have over zsh's zmv:
    # Remove illegal characters in a fat32 file system. Illegal characters are
    # / : ; * ? " < > |
    # NOTE: ``-Q'' and (D) is to include hidden files.
    $ unwanted='[:;*?\"<>|]'
    $ zmv -Q "(**/)(*$~unwanted*)(D)" '$1${2//$~unwanted/}'
    # Changing part of a filename (i. e. "file-hell.name" -> "file-heaven.name")
    $ zmv '(*)hell(*)' '${1}heaven${2}'
    # or
    $ zmv '*' '$f:s/hell/heaven/'
    # remove round bracket within filenames
    # i. e. foo-(bar).avi -> foo-bar.avi
    $ zmv '*' '${f//[()]/}'
    # serially all files (foo.foo > 1.foo, fnord.foo > 2.foo, ..)
    $ ls *
    1.c asd.foo bla.foo fnord.foo foo.fnord foo.foo
    $ c=1 zmv '*.foo' '$((c++)).foo'
    $ ls *
    1.c 1.foo 2.foo 3.foo 4.foo foo.fnord
    # Rename "file.with.many.dots.txt" by substituting dots (exept for the last
    # one!) with a space
    $ touch {1..20}-file.with.many.dots.txt
    $ zmv '(*.*)(.*)' '${1//./ }$2'
    # Remove the first 4 chars from a filename
    $ zmv -n '*' '$f[5,-1]' # NOTE: The "5" is NOT a mistake in writing!
    # Rename names of all files under the current Dir to lower case, but keep
    # dirnames as-is.
    $ zmv -Qv '(**/)(*)(.D)' '$1${(L)2}'
    # replace all 4th character, which is "1", with "2" and so on
    $ zmv '(???)1(???[1-4].txt)' '${1}2${2}'
    # Remove the first 15 characters from a string
    $ touch 111111111111111{a-z}
    $ zmv '*' '$f[16,-1]'
    # Replace spaces (any number of them) with a single dash in file names
    $ zmv -n '(**/)(* *)' '$1${2//( #-## #| ##)/-}'
    # or - with Bash
    $ find . -depth -name '* *' -exec bash -c '
    > shopt -s extglob
    > file=$1
    > dir=${file%/*}
    > name=${file##*/}
    > newname=${name//*([ -]) *([ -])/-}
    > mv -i -- "$file" "$Dir/$newname"' {} {} \;
    # Clean up file names and remove special characters
    $ zmv -n '(**/)(*)' '$1${2//[^A-Za-z0-9._]/_}'
    # Add *.py to a bunch of python scripts in a directory (some of them end
    # in *.py and give them all a proper extension
    $ zmv -n '(**/)(con*)(#qe,file $REPLY | grep "python script",)' '$1$2.py'
    # lowercase all extensions (i. e. *.JPG) incl. subfolders
    $ zmv '(**/)(*).(#i)jpg' '$1$2.jpg'
    # Or - without Zsh
    $ find Dir -name '*.[jJ][pP][gG]' -print | while read f
    > do
    > case $f in
    > *.jpg) ;
    > *) mv "$f" "${f%.*}.jpg" ;
    > esac
    > done
    # remove leading zeros from file extension
    $ ls
    filename.001 filename.003 filename.005 filename.007 filename.009
    filename.002 filename.004 filename.006 filename.008 filename.010
    $ zmv '(filename.)0##(?*)' '$1$2'
    $ ls
    filename.1 filename.10 filename.2 filename.3 filename.4 filename.5 ..
    # renumber files.
    $ ls *
    foo_10.jpg foo_2.jpg foo_3.jpg foo_4.jpg foo_5.jpg foo_6.jpg ..
    $ zmv -fQ 'foo_(<0->).jpg(.nOn)' 'foo_$(($1 + 1)).jpg'
    $ ls *
    foo_10.jpg foo_11.jpg foo_3.jpg foo_4.jpg foo_5.jpg ...
    # adding leading zeros to a filename (1.jpg -> 001.jpg, ..
    $ zmv '(<1->).jpg' '${(l:3::0:)1}.jpg'
    # See above, but now only files with a filename >= 30 chars
    $ c=1 zmv "${(l:30-4::?:)}*.foo" '$((c++)).foo'
    # Replace spaces in filenames with a underline
    $ zmv '* *' '$f:gs/ /_'
    # Change the suffix from *.sh to *.pl
    $ zmv -W '*.sh' '*.pl'
    # Add a "".txt" extension to all the files within ${HOME}
    # ``-.'' is to only rename regular files or symlinks to regular files,
    # ``D'' is to also rename hidden files (dotfiles))
    $ zmv -Q '/home/**/*(D-.)' '$f.txt'
    # Or to only rename files that don't have an extension:
    $ zmv -Q '/home/**/^?*.*(D-.)' '$f.txt'
    # Recursively change filenames with characters ? [ ] / = + < > ; : " , - *
    $ chars='[][?=+<>;",*-]'
    $ zmv '(**/)(*)' '$1${2//$~chars/%}'
    # Removing single quote from filenames (recursively)
    $ zmv -Q "(**/)(*'*)(D)" "\$1\${2//'/}"
    # When a new file arrives (named file.txt) rename all files in order to
    # get (e. g. file119.txt becomes file120.txt, file118.txt becomes
    # file119.txt and so on ending with file.txt becoming file1.txt
    $ zmv -fQ 'file([0-9]##).txt(On)' 'file$(($1 + 1)).txt'
    # lowercase/uppercase all files/directories
    $ zmv '(*)' '${(L)1}' # lowercase
    $ zmv '(*)' '${(U)1}' # uppercase
    # Remove the suffix *.c from all C-Files
    $ zmv '(*).c' '$1'
    # Uppercase only the first letter of all *.mp3 - files
    $ zmv '([a-z])(*).mp3' '${(C)1}$2.mp3'
    # Copy the target `README' in same directory as each `Makefile'
    $ zmv -C '(**/)Makefile' '${1}README'
    # Removing single quote from filenames (recursively)
    $ zmv -Q "(**/)(*'*)(D)" "\$1\${2//'/}"
    # Rename pic1.jpg, pic2.jpg, .. to pic0001.jpg, pic0002.jpg, ..
    $ zmv 'pic(*).jpg' 'pic${(l:4::0:)1}.jpg'
    $ zmv '(**/)pic(*).jpg' '$1/pic${(l:4::0:)2}.jpg' # recursively
    (from zsh-lovers)
    Edit: tried it now, and had to remove this silly block to make it let me use alternate delimiters:
    if [ "${sedscript:0:2}" != "s/" ]; then
    echo "Invalid sed script: $sedscript" > /dev/stderr
    exit 1
    fi
    Last edited by JohannesSM64 (2010-05-31 15:29:44)

  • Unable to move or rename files on WebDAV shares

    I have not been able to get WebDAV shares to work properly on Lion.
    Let's say I have a "User" that has given ownership to a WebDAV folder named "Share". I can connect to my WebDAV share using Finder at "https://website.com/webdav" and I can successfully read files and folders in "Share". I can also delete and create files in "Share". But whenever I try to move or rename a file or folder I get a dialog with error code -43, complaining the "item required cannot be found". I got the same error on machines running both 10.6.8 and 10.7.2.
    I tried login with "User" with SSH and confirmed that I was indeed able to move/rename folder in the "Share" directory but just unable to do so using WebDAV. Any ideas? Thanks!

    @A
    Is it a normal behavior in the Web-DAV protocoll?
    @ctrld
    As I read you aliased the folder to a folder inside the user folder "/Users/username/Sync"?
    How can i realize it with a shared folder for uploading and downloading file with multiple users?

  • Rename files and retain portions of the original filename

    I posted a thread about this a while ago, but no solution was given:
    http://discussions.info.apple.com/thread.jspa?threadID=2564646
    The issue is this: I can't figure out how to rename imported files while also retaining part of the original filename. The images come off of the camera like this:
    DSC_3497.nef
    I need to do the following:
    +- Retain the unique number that the image already has. I don't want to rename the files by date, location, lunar phase, or some other esoteric identifier. I think having a unique ID for each image (one that shows up in standard OS-level searches on both Mac and PC systems) is useful.+
    +- Replace "DSC" with the camera model (D3X), since I use multiple cameras with different resolutions and also need to be able to search for images from a certain camera outside of Aperture (i.e. tags/keywords would not help).+
    +- Add a digit prior to the four-digit string to indicate the true numeric sequence of the file. Since Nikon cameras reset the number sequence every 10,000 files, I want to indicate the true sequence number directly in the filename. This will also avoid filename overlaps. It also lets me know how many images I've shot with each camera.+
    The intended final result would look like this:
    D3X_63497.nef
    Showing the 63,497th image taken with my D3X.
    In Aperture's "File Naming" dialog, I don't see a way to split the existing filename in this way. It looks like I can only append or prepend a Custom Name to the Version/Master name. I don't see a way to split the existing filename at the underscore, for example, so that portions of the original filename can be selectively replaced.
    This is not about finding a workable naming scheme for Aperture and then renaming all existing files. I spend time on the PC side for various things and also work with a number of people who don't use Aperture but need access to my image library. I also have hundreds of references to existing filenames in various print and web design projects, as well as my Flickr account with 3000+ photos.
    Going back and updating all that stuff is not going to happen. But using a System Service to rename files after every import is also pretty tedious.
    Any solutions that meet the three criteria outlined above would be greatly appreciated.

    sempervirent,
    You're asking for some pretty advanced file naming. Most people aren't going to need that sort of function, so I doubt there will be a hook into Aperture to do such a thing. I suggest using a shell script or Applescript along with EXIFTool to rename files before you import them into Aperture. http://www.sno.phy.queensu.ca/~phil/exiftool/
    Retain the unique number that the image already has
    If you're not afraid of the command line, it's easy enough to use a tool like awk or maybe perl to parse that sequence number from a well-formatted string like the picture name
    Replace "DSC" with the camera model (D3X)
    You can use EXIFTool to extract the camera model from the EXIF dat ain the photos
    Add a digit prior to the four-digit string to indicate the true numeric sequence of the file.
    Good luck with this one. You'll have to do a filename search through all of your previous files to find out what 10,000 you're on. It's possible, but you'd have to do some specialized coding in AppleScript or shell script.
    nathan

  • Rename files recursively

    Hi Expert,
    I am having a hard time renaming files within subfolders, i have this script:
    Get-ChildItem  -Recurse | where {$_.name -match "^(_2014-|2014-)"} | % { rename-item $_ "_000000$($_.name)"}
    it does rename the files on the current folder but in the subfolders keeps throwing this error;
    Rename-Item : Cannot rename because item at filename  does not exist. much appreciated
    Regards

    I have upgarde to powershell 4 but none of the scripts works,
    1-  the first script there were no error msgs,  i had executed the script as it is just changed the path of the folder, 
    Set-Location -Path "C:\test"
    2- Rename-Item : Illegal characters in path.
    At C:\rename1\test.ps1:3 char:9
    +         Rename-Item $_.Fullname ('{0}\"_000000{1}' -f $_.Directory.Fullname,$_.n ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Rename-Item], ArgumentException
        + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.RenameItemComman
    Rename-Item : Illegal characters in path.
    At C:\rename1\test.ps1:3 char:9
    +         Rename-Item $_.Fullname ('{0}\"_000000{1}' -f $_.Directory.Fullname,$_.n ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Rename-Item], ArgumentException
        + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.RenameItemComman

  • OSB is throwing java.io.IOException: Failed to rename file

    Hi,
    I'm getting the below error when I try to deploy the OSB code changes via OEPE:
    +<Error> <ConfigFwk> <D---00146903> <AdminServer> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <admin> <> <d71c3b335fa8baa2:39d72cb4:13951f6b38f:-8000-00000000000000bf> <1345702069308> <BEA-000000> <Failed to commit changes to file D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159\_binary\SessionData\singleton+
    java.io.IOException: Failed to rename file 'D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159\_binary\SessionData\singleton.gz.upd~' to 'D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159\_binary\SessionData\singleton'
    +     at com.bea.wli.config.transaction.TransactionalFileManager._renameFile(TransactionalFileManager.java:1660)+
    +     at com.bea.wli.config.transaction.TransactionalFileManager.commitFile(TransactionalFileManager.java:448)+
    +     at com.bea.wli.config.transaction.TransactionalFileManager.commit(TransactionalFileManager.java:320)+
    +     at com.bea.wli.config.transaction.TransactionalFileManager.commit(TransactionalFileManager.java:298)+
    +     at com.bea.wli.config.transaction.TransactionManager.commit(TransactionManager.java:1495)+
    +     at com.bea.wli.config.transaction.TransactionManager._endTransaction(TransactionManager.java:842)+
    +     at com.bea.wli.config.transaction.TransactionManager.endTransaction(TransactionManager.java:783)+
    +     at com.bea.wli.config.deployment.server.ServerDeploymentReceiver$2.run(ServerDeploymentReceiver.java:275)+
    +     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)+
    +     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)+
    +     at com.bea.wli.config.deployment.server.ServerDeploymentReceiver.commit(ServerDeploymentReceiver.java:260)+
    +     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)+
    +     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)+
    +     at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)+
    +     at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)+
    +     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)+
    +     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)+
    +>+
    OSB version: 11.1.1.5
    Please help me to resolve this issue.
    Thanks,
    Hari

    Hari,
    If it is multi user environment then ask all users to close their sessions using change center. If it is a single user environment then please rename the sessions folder (D:\Oracle\Middleware\user_projects\domains\base_domain\osb\config\sessions\ALSB_IDE_Internal_PublishOp_1345525-4159) and restart all the servers. It should solve the problem.
    Also check whether the OS user who started the servers, has full access to the complete domain folder and permission to create directories/files into the domain folder and it's subfolders.
    Regards,
    Anuj

Maybe you are looking for

  • Problem with Safari crashing every time I try to print.

    Hello Support, I currently have a MacBook Pro 2.4Ghz  Mac OS x 10.7.4 I have uninstalled all plugins in Safari. "Everytime I try to print my Safari will crash". The report log is shown below. Please can you help me to resolve this matter. or Advise m

  • Can a spool file be sent as an attachment in the decision step?

    Hi, I have z program that runs in background and produces a spool file. Normally, I can use tcode SP01 to display this file. At the end of this z program, I call SWW_WI_START_SIMPLE to send a workflow into SAP inbox. I want to know if I somhow can se

  • I cannot attach files in Gmail within Firefox. I can attach files in Gmail from Chrome and IE.

    I know it has been mentioned elsewhere too ( https://support.mozilla.org/en-US/questions/999383 ), but I cannot reply to that message... so, here it is again, with full details of the testing we have performed so far.... ALL users or our organization

  • NW2004 Sneak Preview installation

    I am trying to install NW2004-SP16-Sneak-Preview on a 2 GB laptop with {Windows XP-MediaCenter Edition-Version 2002-SP2). The installation finished successfully.The database and java instances have started successfully. When we try to login like http

  • SAPINST 'space' error on Solaris 10 Zone

    Hi All, I am attempting to install a 4.7E X 110 system on Oracle 9 and Solaris 10. I am in the CI phase of the installation and am getting an error in phase "Check/Adapt Filesystem". I'm not sure where - it does not say exactly. But the 3 main areas