Renaming files with Automator & Apple Spript

Hi there!
I need the help of an expert in Automator & Apple Spript....
I've got to rename 500 files with the following names:
001-001 firstfilename.jpg
104-095a otherfilename.jpg
Any idea on how to get rid of the second number (that is 3 or 4 characters long, but always followed by a space) so to have something like:
001 firstfilename.jpg
104 otherfilename.jpg
Thanks in advance & Ciao!
Sergio
Black MacBook   Mac OS X (10.4.7)  

The following script should work.
IMPORTANT:
1) The files whose names you want to change must all be in the same folder. That folder must be open, and it must be the front finder window.
(Also, no other files should be in that folder)
2) Make a back-up of the files before you do this (just in case there is a problem. I hope the files are not too large)
3) This should work if the file names are consistent. I have presumed that there is always a hyphen and a space ( ) and that you wish to keep the characters before the hyphen and after the space.
4) Copy the script below into the script editor. When you have prepared 1 & 2 above then run the script. Good luck
--Start of Script
tell application "Finder"
set myFiles to every file of the front window
repeat with Cfile in myFiles
set WholeName to the name of Cfile
set AppleScript's text item delimiters to "-"
set WNlist to every text item of WholeName
set WNpart1 to first item of WNlist
set AppleScript's text item delimiters to " "
set WNlist2 to every text item of WholeName
set WNpart2 to last item of WNlist2
set NewName to WNpart1 & " " & WNpart2
set name of Cfile to NewName
end repeat
end tell
set AppleScript's text item delimiters to ""
--End of Script
MacBook   Mac OS X (10.4.7)   iMac G4 (10.3.9)

Similar Messages

  • Renaming files with invalid characters in their names on NTFS partitions, introduced by operating systems other than Windows

    Essentially, Linux created some files with colons (:) in the name on a NTFS partition where I have Windows installed. I have since uninstalled Linux, but now I can only view these files in Windows Explorer. I can't open them, I can't even rename them to
    correct the problem. It's as if they don't exist, because of the invalid search paths.
    If I try to rename them in Windows Explorer I get following message.
    The file name you specified is no valid or too long.
    Specify a different file name.
    Well isnt' that something?... isn't that nice? Windows is able to display these files, but it doesn't allow me to open them and it certainly doesn't like me to rename them. So why is it whining about it then, when I'm trying to help? It says "try a different
    file name". Yeah, right! Like I haven't tried that one already! It doesn't matter what file name I input it will never accept it.
    So what am I supposed to do now? Ditch Windows and go back to Linux? Surely, Microsoft doesn't like the sound of that. Sure, I could reinstall Linux or run a Linux live system to correct the problem. But what good is Windows then? I might as well switch to
    Linux altogether.
    After doing some research I now know by fact that it's (kind of) possible to rename files from UNIX and UNIX-like operating systems to those compliant with Windows by using something called file name character translation. To some level this is essential and
    necessary for Windows interoperability with other operating systems (Windows is not the only operating system in the world). But this seems to be very complicated and I can't get my head around it. My brain is in overload. I don't know where to start.
    Once there was a...
    There's the Windows Services for UNIX (SFU) 1.0, 2.0, 3.0, 3.5. The first two versions were based on MKS Toolkit, a package licensed by Microsoft from MKS Inc. The later versions were based on the similar Interix product, after Microsoft purchased the company
    that made it.
    Then there's the new Subsystem for UNIX-based Applications (SUA). These are services for UNIX components. They are supposed to have Client for NFS v3 included as well. But the server components from the SFU line is missing (e.g. Server for NFS). These are included
    in Server editions of Windows.
    Then there's the Microsoft Knowledge Base article
    289627: "How to Enable File Name Character Translation". This article seems to describe exactly my situation.
    Windows and UNIX operating systems have restrictions on valid characters that can be used in a file name. The list of illegal characters for each operating system, however, is different. For example, a UNIX file name can use a colon (:), but a Windows
    file name cannot use a colon (:). If a UNIX user attempts to create a file with a Windows illegal character on a Windows Services for UNIX network file system (NFS) share, the attempt is unsuccessful and the UNIX client computer receives an input or output
    error.
    It goes further than that. At first glance, this KB article also seems to offer a solution to this exact problem, with examples as shown below.
    For example, the following maps the UNIX colon (:) to a Windows dash (-):
    0x3a : 0x2d ; replace client : with - on server
    I checked these values in charmap.exe and they are correct. Except for 2D not being a "dash", it's rather a hyphen ("hyphen minus" to be exact), but these two have pretty much the same appearance and they get interchanged a lot, I'm sure
    they are used to it by now. (Yes, the characters! They don't mind.)
    Then there's this registry key.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Server For NFS\CurrentVersion\Mapping
    Well, of course, I don't have Server for NFS. So this is a dead end. Well, actually, it was a dead end from the beginning...
    1. First of all, I'm not working with a network share on a NAS or SAN storage. The files are on the local disk drive where Windows is installed, so that's a DAS for you.
    2. I don't have SFU! Well obviously, I'm on Windows Vista! So that means SUA!
    3. SUA are service components only. No server components. Can you guess what that means? Yeah... no "Server for NFS" since it's a server component.
    4. Windows Vista is a client side operating system! Server for NFS is only offered for use with Windows Server systems.
    5. Back to square one!
    So there you have it. They all lived happy for the rest of their lives...
    I'm stuck here. Can someone tell me what to do? I mean beyond the obvious option to use Linux to fixa a Windows problem? The NTFS file system itself supports colons in file names. It's Windows that doesn't, and so by default it proclaims it invalid character.
    Surely, even a Windows client operating system like Windows Vista should be able to allow the user to at least rename files with invalid characters to something more sensible (from the system point of view) and valid, if not being able to open them as they
    are. Just add some crazy voodoo code to it and it will work. If you can make it possible on Windows Server with UNIX user-mode subsystem on NT kernel, then what's stopping you from giving the Windows client system the same benefit?
    So what now? Purchase a Windows Server 2012 R2 license, copy my invalid files to a NAS share with NFS on a UNIX or Linux system, and have a go at the Windows registry and Server for NFS? Yeah... you're right, it's probably a bit over the top...
    On a second thought... I might as well install Linux again. There are countless situations where Linux has helped me solve problems related to, and more often than not caused by Windows.

    Essentially, Linux created some files with colons (:) in the name on a NTFS partition where I have Windows installed. I have since uninstalled Linux, but now I can only view these files in Windows Explorer. I can't open them, I can't even rename them to
    correct the problem. It's as if they don't exist, because of the invalid search paths.
    If I try to rename them in Windows Explorer I get following message.
    The file name you specified is no valid or too long.
    Specify a different file name.
    Well isnt' that something?... isn't that nice? Windows is able to display these files, but it doesn't allow me to open them and it certainly doesn't like me to rename them. So why is it whining about it then, when I'm trying to help? It says "try a different
    file name". Yeah, right! Like I haven't tried that one already! It doesn't matter what file name I input it will never accept it.
    So what am I supposed to do now? Ditch Windows and go back to Linux? Surely, Microsoft doesn't like the sound of that. Sure, I could reinstall Linux or run a Linux live system to correct the problem. But what good is Windows then? I might as well switch to
    Linux altogether.
    After doing some research I now know by fact that it's (kind of) possible to rename files from UNIX and UNIX-like operating systems to those compliant with Windows by using something called file name character translation. To some level this is essential and
    necessary for Windows interoperability with other operating systems (Windows is not the only operating system in the world). But this seems to be very complicated and I can't get my head around it. My brain is in overload. I don't know where to start.
    Once there was a...
    There's the Windows Services for UNIX (SFU) 1.0, 2.0, 3.0, 3.5. The first two versions were based on MKS Toolkit, a package licensed by Microsoft from MKS Inc. The later versions were based on the similar Interix product, after Microsoft purchased the company
    that made it.
    Then there's the new Subsystem for UNIX-based Applications (SUA). These are services for UNIX components. They are supposed to have Client for NFS v3 included as well. But the server components from the SFU line is missing (e.g. Server for NFS). These are included
    in Server editions of Windows.
    Then there's the Microsoft Knowledge Base article
    289627: "How to Enable File Name Character Translation". This article seems to describe exactly my situation.
    Windows and UNIX operating systems have restrictions on valid characters that can be used in a file name. The list of illegal characters for each operating system, however, is different. For example, a UNIX file name can use a colon (:), but a Windows
    file name cannot use a colon (:). If a UNIX user attempts to create a file with a Windows illegal character on a Windows Services for UNIX network file system (NFS) share, the attempt is unsuccessful and the UNIX client computer receives an input or output
    error.
    It goes further than that. At first glance, this KB article also seems to offer a solution to this exact problem, with examples as shown below.
    For example, the following maps the UNIX colon (:) to a Windows dash (-):
    0x3a : 0x2d ; replace client : with - on server
    I checked these values in charmap.exe and they are correct. Except for 2D not being a "dash", it's rather a hyphen ("hyphen minus" to be exact), but these two have pretty much the same appearance and they get interchanged a lot, I'm sure
    they are used to it by now. (Yes, the characters! They don't mind.)
    Then there's this registry key.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Server For NFS\CurrentVersion\Mapping
    Well, of course, I don't have Server for NFS. So this is a dead end. Well, actually, it was a dead end from the beginning...
    1. First of all, I'm not working with a network share on a NAS or SAN storage. The files are on the local disk drive where Windows is installed, so that's a DAS for you.
    2. I don't have SFU! Well obviously, I'm on Windows Vista! So that means SUA!
    3. SUA are service components only. No server components. Can you guess what that means? Yeah... no "Server for NFS" since it's a server component.
    4. Windows Vista is a client side operating system! Server for NFS is only offered for use with Windows Server systems.
    5. Back to square one!
    So there you have it. They all lived happy for the rest of their lives...
    I'm stuck here. Can someone tell me what to do? I mean beyond the obvious option to use Linux to fixa a Windows problem? The NTFS file system itself supports colons in file names. It's Windows that doesn't, and so by default it proclaims it invalid character.
    Surely, even a Windows client operating system like Windows Vista should be able to allow the user to at least rename files with invalid characters to something more sensible (from the system point of view) and valid, if not being able to open them as they
    are. Just add some crazy voodoo code to it and it will work. If you can make it possible on Windows Server with UNIX user-mode subsystem on NT kernel, then what's stopping you from giving the Windows client system the same benefit?
    So what now? Purchase a Windows Server 2012 R2 license, copy my invalid files to a NAS share with NFS on a UNIX or Linux system, and have a go at the Windows registry and Server for NFS? Yeah... you're right, it's probably a bit over the top...
    On a second thought... I might as well install Linux again. There are countless situations where Linux has helped me solve problems related to, and more often than not caused by Windows.

  • Custom batch rename files with Aperture 3 in the following format: IMG_0023.cr2 to Smith_YYMMDD_0023.cr2?  I cannot find a way to structure the date in Aperture as such, as well as extract only the camera file

    Please advise how to custom batch rename files with Aperture 3 in the following format: IMG_0023.cr2 to Smith_120816_0023.cr2?  I cannot find a way to structure the date in Aperture as such (YYMMDD), as well as extract only the camera file (0023, for example).  Adobe Bridge CS5 can do this, but NONE of the Adobe software is retina optimized, and is terrible to look at.

    In Aperture you are limited to renaming files by the entries in the File Naming preset window.
    At what point are you looking to rename, import or export? It might be possible to do what you are looking to do external to Aperture either via a script or other software.
    regards

  • Rename files with a given string

    Can anyone please help with the following code. I need to rename files with a given string. My code is:
    import java.io.File;
    public class RenameFile
         public RenameFile()
         void naming(File destFiles, String rename)
              System.out.println("destFiles:"+destFiles.getName());
              //output: destFiles:C:\temp\store\test.abc
              //output: destFiles:C:\temp\store\test.def
              //output: destFiles:C:\temp\store\test.ghi
              System.out.println("rename:"+rename);
              //output: rename:pmnr
              String name=destFiles.getName().toString();
              System.out.println("name:"+name);
              //output: name:test.abc
              //output: name:test.def
              //output: name:test.ghi 
              String ren="";
              ren=name.replaceAll(name,rename);
              System.out.println("ren:"+ren);
              //output: ren:pmnr
    My files I am getting from "destFiles" are:
    C:\temp\store\test.abc
    C:\temp\store\test.def
    C:\temp\store\test.ghi
    which I need to rename as:
    C:\temp\store\pmnr.abc
    C:\temp\store\pmnr.def
    C:\temp\store\pmnr.ghi

    "I seem to remember telling him this recently...
    Probably but unless the OP takes an interest in the replies we are just wasting our time. "
    Sorry, there has been a misunderstanding. I take full interest in all the replies.
    About renaming, I had got the solution from sun.com, it works fine when I am passing all the files in the source directory to the destination directory. But since I am passing only a selected few files from source to destination, I have changed my code and the previous solution is not working now.
    Anyway, below code is working and thanks a lot
    String newFileName = destFiles.getName().replaceFirst("[^.]*", rename);
    File newFile = new File(destFiles, newFileName);
    destFiles.renameTo(newFile);

  • Unlocking files with Automator

    I have an external drive containing folders and files which were loaded from CD's. All the files are locked. Is there a way I could use automator to unlock all the files in a particular folder?

    A few different ways.
    You could select all of them in the Finder and unlock (or lock) them in the Inspector, a variation of the Info window. Usually you would choose "Get Info" from the Finder's File menu. However, if you hold down the Option key, the "Get Info" changes to "Show Inspector". It's actually the same thing except you don't get a separate window for each file, but instead a single panel. (The panel will stay in view above everything else in the Finder, and will show info about whatever is currently selected.) Within that, in the General area near the top (below the Spotlight comments), there is a checkbox for locking the files. Just uncheck that to unlock.
    Another option is to use AppleScript, perhaps inside a "Run AppleScript" action in an Automator workflow. You'd probably have one of the Finder's actions first, such as "Get Selected Finder Items" for anything you currently have selected in the Finder, or perhaps "Get Specified Finder Items". You'd then add Automator's "Run AppleScript" with the following:
    <pre style='border:2px inset #99f;overflow:auto;width:500px;padding:.5em;color:#000;background:#ccf';>on run {input, parameters}
    tell application "Finder"
    repeat with theItem in input
    set locked of theItem to false as boolean
    end repeat
    end tell
    -- pass the items to the next action
    return input
    end run</pre>
    (The line beginning with "--" is just a comment, so it's ignored and you don't really need it.)
    On the other hand the above code is directly from the Automator action I made to unlock files and folders, which isn't much different than the other action I made to lock them. If you'd like to install the actions, you can download them from the Mac OS X Downloads page here:
    http://www.apple.com/downloads/macosx/automator/lockandunlockfilesandfolders.htm l
    Besides being a Universal build, I've included example workflows for locking (or unlocking) items in the Finder. They are meant to be saved as Finder plug-ins so you can right-click on an item (or group of items) and choose to lock/unlock from the Automator submenu in the Finder's contextual menu.
    The Finder's contextual menu is also available with Control-click, or with the action button (a gear on it) in the toolbar of Finder windows. If I remember correctly, I've included instructions with the download on how to install the actions and how to save Finder plug-ins, if you aren't familiar with that already. Simply put, you install actions with Automator by choosing in the File menu "Import Actions...".
    (There's also a bonus workflow I named " Edit Menu..." for easily accessing the workflows in the Automator submenu. It opens a Finder window with the location of the Finder plug-ins so you can rename them or open them for editing. Though, Spotlight can be just as good for locating them. )
    So, there you go. Three different ways. Hopefully one of those will be appropriate.

  • Automator: Impossible to rename file using automator under Mac OS X Lion

    Hi,
    Before upgrade my iMac to MAC OS X Lion 10.7.2, I had service created with automator under snow leopard in order to rename my pictures file names by blocks instead of one by one. Since I'm using Lion, this one doesn't work anymore. I have completely recreate the service under Lion and the results is the same.
    You can find below my workflow that is easy. The problem is the message error in the history of automator application. The message is "impossible to rename file "file name" because this one should create conflict with existing file". I already test a lot of times with different name where I'm sure that this one doesn't exist on my Mac but all the time without success (verify also with search function under mac)
    If somebody can help me, it would be very interesting because I already tried to find answer on internet without success too.
    Thanks in advance for your help.

    the whole automator and in particular the record action was substantially rewritten in snow leopard. and the record action is slow, unreliable and you can't trouble-shoot it. it's a wonder it works at all. the only advice i can give is to use it as little as possible. if at all possible avoid it altogether. if you do need to use it try using keyboard strokes instead of the mouse movement. for example. use command+c and command+v for copying and pasting and use tabbing to choose the correct box on the page.

  • Can't rename file with Applescript

    Hi,
    I'm a programmer but I'm new to Automator and Applescript. I am trying to rename pdf files based on a specific line of its content but I don't succeed. I created a service that exports the text from the pdf to a file. Then I use applescript to read that specific line from the file, then another applescript to rename the pdf to that string. Every step works except the rename part. When I tell Finder to rename the file it stops with the error: "The operation can't be completed because there is already an item with that name." This is not true, but I keep getting this error message no matter which file I try it with.
    The odd thing is that if I set varName to some constant like
    set varName to "METEOR CEE Kft..pdf"
    it works like a charm. So I figured maybe
    item 1 of input & ".pdf" = "METEOR CEE Kft..pdf"
    is false. But that is not the case, I tested it in the script and they are equal.
    What am I missing?

    I think that the problem is that there is a lot of invisible characters in the text file when Automator extracts a PDF to plain text (open the file in a text editor and turn on "view invisible characters", or use cat -e in Terminal)
    I've gotten around this is the past by extracting to a RTF and then using textutil to convert to txt
    Try this Automator Workflow:
    The bash script is:
         textutil -convert txt "$1"              # Convert from RTF to TXT    
         n=$( sed -n '9 p' "${1%.*}.txt" )         # extract line 9 fron text file
         mv "${1%.*}.pdf" "${1%/*}/$n.pdf"     # Rename file
         rm "$1" "${1%.*}.txt"                         # Clean-up RTF and TXT files

  • Rename Files with Data From PDF

    I have a sound effects library that I ripped from CDs and they are all named non meaningfully. ie. Track 1, Track 2 etc. The library comes with a PDF which lists all the track names and file descriptions for each sound. I would like to rename all the tracks to the track name according to the PDF and add comments to the files using the descriptions from the PDF. Any suggestions on how to do this with automator or any other program? I have never used automator...

    Were these originally from commercial sound effects CDs, or homemade ones? If commercial, can you re-burn them to CDs, or maybe use a CD-RW? Then see if iTunes can pull the track names off of the internet?
    I have been absolutely astounded at what iTunes has been able to find for track names.

  • Renaming files with alternate numbers

    I'd like to rename a large number of files with alternate numbers. For example, files 1-10 would be renamed 1,3,5,7,9,11 etc, and 2-10 would be renamed 2,4,6,8,10,12 etc.
    I'm not familiar with AppleScript but use Automator and cannot find a way to do it with actions - a script that I could run from within Automator would be wonderful. Any help would be greatly appreciated.

    There's certainly no Automator action that's going to do this directly - it's a pretty specific requirement.
    Additionally, there are some specific caveats to consider. For example, you can't rename file '2' to '3' because there's already a file '3' in the directory.
    There are two classic solutions to this: one is to work in reverse - rename file 10 -> 19, 9 -> 17, 8 -> 15, etc. so that file '3' is moved before you try to rename file 2
    The other solution is to move the files to a new directory as you rename them which ensures that no naming conflicts exist.
    Also, before anyone can show you an example, you need to be clearer on your file names. Are they really '1', '2', '3', etc., or are they "1.jpg", '2.txt', '3.png', etc. File name extensions are going to be a critical element in renaming these files correctly (e.g. you can't just rename file '2.jpg' to '3' and hope it'll work.

  • Please syntax for me :)  Re: Rename files with a given string

    From the post http://forum.java.sun.com/thread.jspa?forumID=54&threadID=5118509
    Was wondering if someone could explain how the red characters work and what it does. Thanks!
            String newFileName = destFiles.getName().replaceFirst("[^.]*", rename);
            File newFile = new File(destFiles, newFileName);
            destFiles.renameTo(newFile);

    It would serve you better to look at the API documentation.
    getName() returns a String, right? So it is invoking String.replaceFirst with those arguments. Do you know where the API documentation is?
    http://java.sun.com/j2se/1.5.0/docs/api/index.html
    (That's for version 1.5 - you can find other docs for other versions).

  • Move Files with Automator or Applescript

    I am a newbie to Applescript and Automator and I'm afraid I'm in way over my head.  I need to move a bunch of files in a single folder to several different folders based on the file name.  Is this possible?
    Specifically, several files with names "word1 word2 word3 word4.pdf" are placed in a folder then they will be moved to different folders based on word4.
    Ideally, if possible, I would then have to append to things to the file name.  At the beginning of the file name a three digit code based on word4 (or the folder) and then at the end of the file name a date stamp.  The date stamp should be in the form of four digit year, two digit month, and two digit day with no spaces in between.  Where, year is the year of current month -1, month is current month -1, and day is the last day of current month -1.
    Is there any way to do this?
    Thanks!

    your description is still underspecified, so this script probably won't work out-of-the-box, but it will get you close.
    on adding folder items to this_folder after receiving these_items
              repeat with thisItem in these_items
                        set fileName to nameWithoutExtension(thisItem)
                        set accountName to last word of fileName
                        set accountCode to codeForPerson(accountName)
                        set dateSlug to dateString()
                        set newFileName to accountCode & " " & fileName & " " & dateSlug & ".pdf"
                        tell application "System Events"
      -- you haven't specified actual file path, so I'm assuming your destination folder is inside your folder action folder
                                  set destinationFolder to folder "Statements" of folder accountName of this_folder
                                  set movedFile to move f to destinationFolder
                                  set name of movedFile to newFileName
                        end tell
              end repeat
    end adding folder items to
    on nameWithoutExtension(p)
              tell application "System Events"
                        set {n, x} to {name, name extension} of p
              end tell
              return (text 1 thru -((length of x) + 1) of n)
    end nameWithoutExtension
    on dateString()
              set d to current date
              set day of d to 1
              set {y, m, d} to {year, month, day} of (d - 1 * days)
              return (y as string) & zeroPadDigit(month * 1, 2) & zeroPadDigit(day, 2)
    end dateString
    on zeroPadDigit(d, p)
              return text -p through -1 of ("000" & d)
    end zeroPadDigit
    on codeForPerson(n)
              if n = "Smith" then
                        return "001"
              else if n = "Jones" then
                        return "002"
              else if n = "Doe" then
      -- you haven't specified how these numbers are determined
              else
      -- return default value for unspecified accounts
              end if
    end codeForPerson

  • Automator Script to rename files with the file's Comment text?

    Hello and thank you for your time!
    Summary:
    I'd like to have an Automator Script that would copy the File's Comment info and paste it to the File's name, so I can import my sound effects into iTunes and have the proper labeling.
    Breakdown:
    I have a ton of Sound Effects that I'd like to put into iTunes, but the filenames are for example, "04. Track 04.mp3".  Not the most helpful name.
    I can search by "car crash" in the finder and find THAT file ("04. Track...")  because it's in the File's metadata in the Comment info, as "Car Crash - Chevy Camaro".
    So is there a script or a way to script Automator to copy the File's Comment info and paste it to the File's name, so I can import these into iTunes and have the proper labeling?
    Thank you for reading!
    - Ben

    This should be much faster and direct....
    Source = "C:\temp" 
    Destination "C:\newTemp"
    Set objFSO = CreateObject("Scripting.FileSystemObject")     
    Set arrFiles = objFSO.GetFolder(Source).Files  
    For Each file In arrFiles  
        If InStr(LCase(file.name), ".zip.") > 0 Then 
            arrFilename = Split(lcase(file.name), ".zip.")  
            newname = arrFilename(0) & ".zip" 
            WScript.Echo file.name & " -> " & newname  
            objFSO.CopyFile file.path, Destination & "\" & newname
        End If 
    Next 

  • Rename files with random names

    Hi all -
    I have a folder of 600 images to go on a digital photo frame. The digital photo frame always plays in the same order, so I want to randomize the files before I put them on the frame.
    I tried using automator's batch rename, but that won't randomize the files.
    Anyone know of a software utility to do this easily? I am unfamilar with scripting, so any solutions i've found online that use scripting are foreign to me..
    TIA

    ok, paste the following into script editor and save it as an application.
    tell application "Finder"
    set fol1 to folder "1" of (path to desktop)
    set fol2 to folder "2" of (path to desktop)
    set theNum to number of items in fol1
    repeat with i from 1 to theNum
    set this_item to some item of fol1
    set fname to name of this_item
    set name of this_item to (i as text) & fname
    set x to (first item of fol1 whose name is (i as text) & fname)
    move x to fol2
    end repeat
    end tell
    This will work as follows. Say you have folder on the desktop named 1 with 600 images.
    make a folder named 2 on the desktop and run the script. It will move your images from folder 1 to folder 2 and add a random number between 1 and 600 to the front of their names. The script can be easily adjusted to work on other folders but since you don't know apple script I suggest you create folders 1 and 2 on your desktop, move all your images to folder 1 and run the script. You can run the script by pressing the "run" button in script editor or by double-clicking on the saved application.
    Message was edited by: V.K.

  • Renaming stills with automator

    Hello all
    I'm stumped here ...
    I have been trying to use the automator to rename a few very large image files. I'm trying to rename them in alpha numeric for importing into FCE. every time I rename the stills the automator wants to rearrange the order of the stills..
    Is there some trick of the automator trade I may be over looking ?
    James

    Here's the Leopard forum.
    http://discussions.apple.com/category.jspa?categoryID=235
    You want the Automator section in here. Nothing to do with Final Cut.

  • Finder Bug Renaming files with cover flow

    If I try to rename a file using finder with cover flow using left and right arrows for moving in the filename, it goes up and down on file selection

    A similar issue is evident in "List" view, when renaming a file inside a folder whose "disclosure triangle" is expanded. If you happen to be working a few levels down, it closes them all.
    Maddening!
    If you feel so inclined, please submit a bug report. Hopefully issues that receive a lot of complaints will be addressed.
    http://developer.apple.com/bugreporter/

Maybe you are looking for

  • Youtube can not refresh

    The Youtube in my 3rd generaion Apple TV can not refresh the content of the channels I subscribed. And the Youtube shows only 5 of my favorite videos. But the situation above does not exist in my iphone and ipad. How can I solve these problems?

  • For STO with billing how to take material in plant stock without cancelling excise duty

    Hi, Please suggest for STO with billing how to take material back in plant stock without cancelling excise duty. Scenario is Material transffered from manufacturing plant to depot,material is in transit now, but due to some reason material calls back

  • How to transfer a smartform from $temp package to my own package say "zpack" in abap?

    hi, i am sanjeev. earlier i used to save all the objects in local package only. whether it's a program or any class or any user created table. but now i have created my own package and want to transfer all of those created objects into my package "zp

  • Question on use of JMS

    I am new to JMS and I have a question on applicability of JMS. I have gone through different resources which explains the applicability of JMS. I was wondering if I can use JMS for this purpose: When the user (end-user) initiates a business transacti

  • Changing my address

    Hi! I am trying to pay for a new membership but my address was previously a UK based one and I have now moved to Sweden so that needed to be changed in order for me to pay. Well it keeps telling me that my swedish post code is incorrect when its not