Trying to write an Automator program to find files with same time created and change file names to matching source folder names

I am failrly green when it comes to automator.
I am trying to write an Automator program:
Not sure where to post this
trying to write an Automator program to find files and alter their names
I have a source folder with correct named master files in it.
eg. A0001_1234.mpeg
time created 14:02:03
date 07/07/2012
Another folder where there will be copies of the master files in a different format with different names but created at the same time as a file in the source directory.
they are created with a seperate device but they are
A0000001.mp4
time created 14:02:03
date 07/07/2012
I need it to then take the name from the source fies and apply the correct name to the matching file based on the time it was created.
I can't seem to find actions in automator that reference time crated.
Is this something I will be able to Do in automator?
Any help would be great
Thanks
R

Hi,
It's impossible to do this without any script in Automator.
Use this AppleScript script :
set source to choose folder with prompt "Select the source folder"
set anotherfolder to choose folder with prompt "Choose the another folder"
tell application "Finder"
    repeat with tfile in (get files of source)
        set cDate to creation date of tfile
        set findFiles to (files of anotherfolder whose creation date is cDate)
        if findFiles is not {} then
            set tName to name of tfile
            set name of item 1 of findFiles to tName
        end if
    end repeat
end tell

Similar Messages

  • Delete photos in both iPhoto and Finder at the same time??

    Is there any way I can delete photos in iPhoto AND at the same time delete them permanently in the finder?
    We all take too many pictures with out digital cameras and we can't say for sure which once are good with just looking at the camera... so we have to import ALL of them to iPhoto. When we do that, they also get saved in the Finder. When you delete the bad photos in iPhoto you still sit on the bad photos in Finder...
    Does anyone know an easy way to delete BOTH at the same time?
    Thank you

    I'm not sure I understand your set up:
    And I wanted to let you know that under Preferences the box "copy items to the iPhoto Library" is checked.
    So, all your pics are copied into the iPhoto Library. BUT you also have copies in the Pictures Folder. Why do you have two copies? They don't count as a back up because they aren't on a different volume, all they are doing is wasting disk space.
    If you let iPhoto manage the files then you have no need to access them in the Finder. With iPhoto 7 (iLife 08) the old iPhoto Library Folder is now a Unix Style Package File. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    There are many, many ways to access your files in iPhoto:
    For 10.5 users: You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use THIS
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    I'm not sure I understand your problem.
    Regards
    TD

  • I have CS2. I shot RAW files with my Nikon D90 and now cannot open them in PS.  I heard there was a plug-in to download for this, but cannot find it. Help?

    I have CS2. I shot RAW files with my Nikon D90 and now cannot open them in PS.  I heard there was a plug-in to download for this, but cannot find it. Help?

    You would need at least CS3 with ACR 4.6 to natively edit NEFs from a D90 in PS:
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    It might also work to use the DNG Converter 4.6 or newer to convert the NEF files to DNGs and then those might open in your older CS2 ACR, but I’m not sure, since it’s a 9 year old program I haven’t used in years.
    The DNG Converter can be found, here:
    http://www.adobe.com/downloads/updates.html

  • Script to find files with same names with in a folder and it sub folders.

    Looking for script to find files with same names with in a folder and it sub folders.

    Are you just looking to find if any two files underneath a folder have the same name?
    If you just want to know that a file named "whatever" exists in two folders, that's not too difficult, but you probably want to know the full path names.
    Here's one attempt:
    $ perl -MFile::Find -le 'find(\&w, "."); while (($n,$p)=each %file) {if(@{$p}>1){print join(" ",@{$p})}} sub w{push @{$file{$_}},$File::Find::name;}'That will print the pathnames on the same line of any files with the same name that appear anywhere underneath your current directory.
    It's a bit long for a "one-liner", but functional.
    Darren

  • I am trying to write a heartbeat program which takes the current time and writes

    I am trying to write a VI that gets the current time and writes it to an XML file in this format.  YYYY-MM-DDThh:mm:ss[.s][Z|(+|-)hh:mm]
    I cant seem to get the operators on the format date/time string vi to work for concatenating the "-" between the year and month
    Anybody know how to do this one?

    You should not need to use special operaors for the format date/time string, the format should simply be"%Y-%m-%d"

  • Is there a way to rename multiple files in finder at the same time?

    for example, I have a group of pictures that I want to all start with the word "start" and be listed as "start1, start2, etc" Is this possible to do as a group versus having to individaully renaming every picture?

    There are some third-party renamers, or you can use an Automator Workflow.
    Start Automator and create a new Workflow.
    Drag in a Get Selected Finder Items Action.
    Drag in a Rename Finder Items Action. It will ask if you want to copy the items so that you don't alter the originals. Since you want to actually rename the originals, don't add that action.
    Set the parameters for the Rename. If you want to be able to reuse that workflow for different things, click the Options button and set it to show the action when the workflow runs. From your example, choose Make Sequential. Start with a new name and number it after the name.
    Save it so you can recall it when needed.
    Select your files and Run the workflow.
    You could also create it as a Service so that you can select files, then ctrl-click to select the workflow from the contextual menu. If you want that, set the Service to receive Files and Fodlers in the Finder.
    Skip step 1 (or delete it if you are converting it to a Service), but do the rest above. Save it with a short name so you can easily find it. It will appear in the Services submenu of the contextual menu.

  • File adapter(write files with same extension as we read them)

    Hello
    I am trying to read file as an attachment using file adapter (it can be of any extension .pdf,.txt,.xml)
    I want to write this file using file adapter with the same extension i.e. whatever is read as it is....I am least bothered for reading the content inside the file so am reading it as an attachment..
    Please if anyone knows the answer..reply....

    I ran into a similar issue. As a workaround we ended up just using java to write the files out. When the File Adapter attempts to write out a file it first writes that file to a temp file and then copies that to the appropriate directory.
    I believe that when two or more threads were attempting to write at the same time the write was failing for one (but appearing to work in the console logs). I think a race condition may be created when two threads attempt to write using the File Adapter for access to the temp file. I contacted my oracle rep about it but they are always pretty worthless so I havent ever heard anything back concerning the issue.

  • How do I write / copy text in 2 cells at the same time

    Hi, I'm new to spreadsheets, macs and this forum.
    I want to write the same text in 2 or 3 different cells at the same time, so when I write details in 1 cell it automatically copies it into another.
    I can't find any easy way to do this and cannot find any formula, though T may be able to if I knew how to incorporate it.
    Anyone else done this?

    arthur,
    Welcome to Numbers. You'll quickly get the hang of using it.
    As to you question - If your info to be updated is in cell B2, place the formula =B2 in any cells you want to have the same information.
    pw

  • Background job - programs all running at the same time...

    Hi experts,
    i have an issue regarding background job.i have to run multple programs in background one after another in one program.so i am using function modules job_open,submit and job_close.
    my problem all the jobs are statrting at same time .but i want to run after completion of first job second job should start.
    please guide me
    Thanks
    sai
    Edited by: Julius Bussche on Feb 19, 2009 9:36 AM
    Please use meaningfull subject titles

    Try something like
    LOOP AT it_filenames INTO ts_filenames.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname  = jobname
           IMPORTING
                jobcount = jobcount.
      SUBMIT program
        WITH p_file1 = ts_filenames-zzfname
        VIA JOB jobname NUMBER jobcount
        AND RETURN.
      IF sy-tabix EQ 1.
        CLEAR: pred_jobcount,
               pred_jobname.
        GET TIME.
        IF sy-uzeit LT '235950'.
          sdlsstrttm = sy-uzeit + 10.
          sdlstrtdt = sy-datum.
        ELSE.
          sdlsstrttm = '000010'.
          sdlstrtdt = sy-datum + 1.
        ENDIF.
      ELSE.
        sdlsstrttm = '      '. " no_time from LBTCHTOP
        sdlstrtdt = '        '. " no_date from LBTCHTOP
      ENDIF.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = jobcount
                jobname              = jobname
                predjob_checkstat    = ' '
                pred_jobcount        = pred_jobcount
                pred_jobname         = pred_jobname
                sdlstrtdt            = sdlstrtdt
                sdlstrttm            = sdlstrttm
           EXCEPTIONS
                cant_start_immediate = 1
                invalid_startdate    = 2
                jobname_missing      = 3
                job_close_failed     = 4
                job_nosteps          = 5
                job_notex            = 6
                lock_failed          = 7
                OTHERS               = 8.
      pred_jobcount = jobcount.
      pred_jobname = jobname.
    ENDLOOP.
    I removed the checkstat, cause if you want to check the status you only have to submit one job with multiple steps. (Put JOB_OPEN and JOB_CLOSE out of the loop)
    CALL FUNCTION 'JOB_OPEN'
         EXPORTING
              jobname  = jobname
         IMPORTING
              jobcount = jobcount.
    LOOP AT it_filenames INTO ts_filenames.
      SUBMIT program
        WITH p_file1 = ts_filenames-zzfname
        VIA JOB jobname NUMBER jobcount
        AND RETURN.
    ENDLOOP.
    CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
              jobcount  = jobcount
              jobname   = jobname
              strtimmed = 'X'.
    Regards

  • Hard disk in mums macbook failed, bought a new one, formatted it first. Have tried starting it with every possible key and I either get flashing question mark folder or a cursor.

    Hard disk in mums macbook failed, bought a new one, used sata adapter cable to format it for mac first. Connected it and have tried starting it with every possible key combination and I either get flashing question mark folder or a cursor. A disk is stuck in it so I can't boot from OSX, and yes I have tried every option of starting to try and eject disk but none work. HELP ME!

    Five ways to eject a stuck CD or DVD from the optical drive
    Ejecting the stuck disc can usually be done in one of the following ways:
      1. Restart the computer and after the chime press and hold down the
          left mouse button until the disc ejects.
      2. Press the Eject button on your keyboard.
      3. Click on the Eject button in the menubar.
      4. Press COMMAND-E.
      5. If none of the above work try this: Open the Terminal application in
          your Utilities folder. At the prompt enter or paste the following:
            /usr/bin/drutil eject
    If this fails then try this:
    Boot the computer into Single-user Mode. At the prompt enter the same command as used above. To restart the computer enter "reboot" at the prompt without quotes.
    If you have a 2010 MBP or later, then you can use Internet Recovery. Start by rebooting the computer. At the chime press and hold down the COMMAND-OPTION-R keys until a Globe appears in the upper part of the screen. This process can take upwards of 15 minutes to get connected to the Apple network servers. You should eventually see the utility screen of the Recovery HD. You may now go about the process to install Mountain Lion:
    Install Lion/Mountain Lion on a New HDD/SDD
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    1. Select Disk Utility from the main menu and click on the Continue button.
    2. After DU loads select your external hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • How can I do the same as Windows Explorer with datemodified:11/6/2013 .. 11/13/2013 showing only changed files with path in tree and NOT every folder along the way as Finder seems to do by default? Thanks!

    I'm an Apple newbie.
    I'd like to be able to list each file in the "Desktop" tree (ie; on the desktop, or in any folder on the desktop, etc.), along with its path, that has been modified since a certain date.
    When I use Finder to do a similar search, I get tons of output including every folder in the path to the modified file, etc. Although I can view the path to the individual files in the output, I can't for example, order the output by path, etc.  Very difficult to sort through. I'd love to have output like the example above - just the filename and path for each changed file.  Possible?  Thanks in advance!
    Wayne

    The file structure is a little complex. I will use inbox as an example.
    Inbox (a large file with no file extension)
    Inbox.msf ( An index of inbox with tags etc. Can be deleted with only loss of tags)
    Inbox.sdb (a folder, indicating that the folder within Thunderbird has a sub folder.
    POP mail is stored in
    Appdata/Roaming/Thunderbird/Profiles/*.default/Mail/[Server name]/
    Local folder is stored in
    Appdata/Roaming/Thunderbird/Profiles/*.default/Mail/Local Folders/
    As long as you do not overwrite, you can copy and paste whole folder trees into local folders (stuff on your old computer under a mail account is best relocated to local folder and then sorted as necessary afterwards.
    Note that you should delete foldertree.json after making those sorts of copies (it forces a full refresh of the folder tree, no cache) and under no circumstances copy data with Thunderbird running. It can irrevocably corrupt things

  • I recently tried to upgrade my itunes on my dell laptop with 64bit Windows 7 and it stopped working completely. So I tried deleting and installing all over again and haven't been able to reinstall it since. I've tried numerous things i've read in forums

    I recently tried to upgrade my itunes on my dell laptop with 64 bit windows 7. It stopped working so I deleted all files and tried to reinstall and haven't been able to since. I've tried numerous things i've read in forums and nothing seems to work. The installation will not move past the "publishing product information" point. After being stuck there for a while this error message appears:
    An error occurred during the installation of assembly 'Microsoft.VC80.CRT,version="8.0.50727.4053",type="win32",publicKeyToken="1fc8b 3b9a1e18e3b",process or Architecture="x86"', Please refer to Help and Support for more information. HRESULT: 0x800736FD
    I hope someone is able to help me with this.

    Did you already try what bnoir suggested in this post about error 0x800736FD:
    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? Are they also 800736FD, or some other number? (If they're another number, what number are you getting?
    This thread might help as well, suggestion provided by bnoir:
    In general, these ones tend to be caused by underlying problems on the PC that can prevent Windows Updates from installing. So my main strategy with them is to try to fix the Windows Update issues. If we can get Windows Updates flowing again, that generally clears up the iTunes install errors +en passant.+
    Head into your Windows Update, and check for any new updates. Do any fail? If so, open your Update History and doubleclick on the failure entries to bring up a small box with alphanumeric error message codes. Are you getting 8000FFFFs? (They often seem to be associated with an iTunes-install 0x800736FD.)
    If you're getting 8000FFFFs, try the following Microsoft document:
    [Windows Update Error 8000FFFF|http://windows.microsoft.com/en-US/windows-vista/Windows-Update-Error- 8000FFFF]
    Head back to Windows Update, and stock up on any updates you're behind on. Once you're completely up to date in that regard, try another iTunes install. Does it go through properly this time?
    Message was edited by: Ingo2711

  • Cannot find class in same package but in different file

    I have following two source files. Both the file has same package statement as below
    package java.buron.doeacc ;
    But whenever i try to compile File: shoepolish.java ( mainfram.java compiled succesfully before)
    following error message appear
    ..\..\buron\doeacc\shoepolish.java:12: cannot resolve symbol
    symbol : class MainFrame
    location: class java.buron.doeacc.shoepolish
              MainFrame mainFrame = new MainFrame();
    ^
    ..\..\buron\doeacc\shoepolish.java:12: cannot resolve symbol
    symbol : class MainFrame
    location: class java.buron.doeacc.shoepolish
              MainFrame mainFrame = new MainFrame();
    ^
    Please tell me What is the problem and how it can be solved.
    why cannot find the class that are in same package.
    I have JDK 1.3
    FOLLOWING ARE THE TWO FILES
    File: mainframe.java/////////////////////////////////////////////////////////////////////
    package java.buron.doeacc ;
    import javax.swing.* ;
    import java.awt.*;
    import java.awt.event.* ;
    class MainFrame extends JFrame
         private final String APP_NAME = "Shoe Polish";
         // constructor
         public MainFrame()
              super("Shoe Polish");
              setSize(500, 500);
              setVisible(true);
    File : shoepolish.java
    package java.buron.doeacc ;
    import java.io.* ;
    import java.buron.doeacc.* ;
    class shoepolish
         public static void main(String args[])
              MainFrame mainFrame = new MainFrame();

    The javac compiler uses the Classpath to find classes. If your directory structure is c:\myjava\buron\doeacc (for example) then you need to have c:\myjava in the Classpath when you compile. For example javac -classpath c:\myjava MainFrame.java

  • Spotlight/Finder Doesn't Search In ASP and other file types?

    .asp and .c file types are nothing more than .txt files with different extentions..
    Am I correct in thinking that Spotlight doesn't search inside these files? I have a folder full of asp files and spotlight doesn't seem to find anything when I type text that I know is inside one (as a test)
    It does appear to search INSIDE .html files in the same folder.. Can you add different file extentions that spotlight will search into?
    If not, then "Spotlight" is much ado about nothing as google desktop search, X1 and the msn desktop search (Windows) released years ago search inside ALL files..
    Signed,
    Curious Switcher
    Wayne Bienek
    Mac Pro 3Ghz / 4GB Ram Mac OS X (10.4.8) 30" Cinema Display + 20 " Cinema Display

    Spotlight makes a content index for files using mdimporter, and that process depends on mdimporter modules for the specific file type. Thus in /Library/Spotlight you will see a collection, such as Microsoft Office.mdimporter, of "extras" for special file types. There are also the built-in ones in /System/Library/Spotlight. If you installed Xcode/Developer Tools, there should be a SourceCode.mdimporter, which I imagine would index the asp and c files. If not, some people have modified it to also index php files, see this discussion:
    http://www.macosxhints.com/article.php?story=20050514182520714&query=spotlight%2 Bphp%2Bfiles
    at MacOSXHints. I think you could do something similar (at your own risk of course) for other pure text based files. Be sure to expand the the replies and read them.
    Francine
    Francine
    Schwieder

  • Tried to download the file "How to Adjust Perspective" and the file will not download.

    I get various error messages when I try to download the file; including but not only.. File is truncated, cannot download.  JPEG marker segment is too short.  Not the proper program.
    I don't know what to make of the various error messages.  Help, anyone?

    Can you provide the file's url?

Maybe you are looking for

  • Outlook 2013 mail/cal item crash

    Hello, hope someone can help. We have recently updated our standard Outlook mail accounts to Exchange. With the change my outlook has been upgraded from 2010 to 2013. Anyway, after a great deal of kafuffle in configuring exchange, downloading clients

  • OIM 11g using too much memory and not releasing it when shutting down

    Hello, we have a problem with OIM 11g using too much memory (about 5gb) and it's not releasing it at shutdown (4gb still used). We are using a VM with RedHat Linux 5.6. Originally we had 4gb RAM + 2gb swap file. We installed Admin Server, OAM, OIM an

  • IBook G3 getting very bad signal when near the router

    Hi my iBook G3 has been giving me problems. when i'm next to my server which is an iBook G4 that has an ethernet cable going to it because it gets the internet off the wire and sends a unsecure connection for my 802.11.b iBook G3. which it gets about

  • Accidentally installed WinXP 64Bit...

    Hey guys, So I basically installed XP64bit without considering compatability with Bootcamp and am now stuck. The computer doesn't recognize the drivers on the OSX install CD and I can't switch back to OSX. All I have is an XP64 that doesn't work beca

  • Properties Panel Focus / Mac?

    I upgraded to CS4 yesterday in hopes Adobe had improved the Usability Features of Flash. Not so. Is it really true that you can't put FOCUS on the Property Inspector Panel in Flash CS4 with a keyboard command on the Mac? Seriously? Is there another w