Automated Locate and Move .JPG Files HELP!

I am trying to locate and move all .JPG files on my MacBook running OS X 10.6. I need a Script that will locate all .JPG files no matter where they are on the hard drive and move them [not copy] to a specified folder titled "JPG PHOTOS" that is on my desktop. I am then going to move that folder with all of the images to an external hard drive.
I am very new to scripting.

You do not say how many files or duplicates are involved but here is a simple bash script which you can paste into Terminal and then hit return.
find "/Users/neville" -name "*.JPG" -exec mv -n {} "/Users/neville/All JPG Photos" \;
Notes:
Make a full backup before you do this - mv can be dangerous
A simple mistake - such as not creating the destination folder can destroy files
This is not a copy script it moves files - so original path information will be lost
Change source and destination as required
May have to do it again for jpg
The -n  ensures nothing is overwritten
Do it repeatedly with slightly different destinations to get duplicates
The script could be modified to auto-renumber duplicates - GNU bash has a 'backup' option for this
If there are a large number of JPG files a batch modification may be required

Similar Messages

  • I have downloaded a music file through a downloader . But the file is not found in the captured in music player . How can I locate the physical location and move the file . I cannot do via itunes also .

    I have downloaded a music file through a downloader . But the file is not found in the captured in music player . How can I locate the physical location and move the file . I cannot do via itunes also .

    Exactly what do you mean by a 'downloader'?
    Thanks
    Pete

  • Dreamweaver CC and .mov Quicktime files - Help Please

    I have a Mac and use Final Cut Pro with Compressor 4.1 to generate movies.  The final format is a .mov file.  Is this file type compatible with DW CC?  If so, how do I insert it into the DW CC file or should I be using a different video file format?

    .mov won't work unless your target audience has QuickTime player & required QT plugins.
    For best cross browser results, use HTML5 <video> with these 3 file types: 
    .mp4 or m4V for web
    .ogg
    .webm
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 with Video</title>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
    <body>
    <!--begin video-->
    <video controls>
    <source src="yourvideo.mp4" type="video/mp4">
    <source src="yourvideo.webm" type="video/webm">
    <source src="yourvideo.ogv" type="video/ogg">
    NOTE: If you see this, you're using an outdated browser that
    doesn't support this type of video.
    <a href="alternate.html">Click here for an alternative</a>
    </video>
    <!--end video-->
    </body>
    </html>
    Nancy O.

  • Unix Script to connect to Portal Database and move the files to XI Server

    Hi all,
    we have a requirement where the source BW system is placing files in Content Management in the link http://xxx:50100/irj/go/km/docs/documents/Public%20Documents/HFM.
    XI needs to read the files from the above location.Since the files are stored in Portal database,we cant do FTP to this location.
    So we have been asked to write a script which connect to this location and moves the files to XI directory.
    Can someone plz help me with this script?

    The concern has been discussed earlier at
    here and should be helpful to check the database size and free available space in exchange server.
    This blog has also good explained about "how to count mailbox per database in exchange 2010". Please check this :
    http://blog.powershell.no/2010/11/21/retrieve-number-of-mailboxes-per-database-in-exchange-server-2010/

  • I want to take files from my PC (using a Seagate external hard drive) then plug this Seagate External hard drive into my Mac Book Pro and move the files from the Seagate External Hard drive onto my Time Capsule. I do not want to put these files on my Mac

    I want to take files from my PC (using a Seagate external hard drive) then plug this Seagate External hard drive into my Mac Book Pro and move the files from the Seagate External Hard drive onto my Time Capsule. I do not want to put these files on my Mac. How do I do this? Where do I put these files on my Time Capsule? Will it affect the functioning of my Time Capsule?

    Mixing files with data is not always great idea.
    See info here.
    Q3 http://pondini.org/TM/Time_Capsule.html
    Why not just connect the PC directly to the TC by ethernet and copy the files over?
    It is hugely faster and much less mucking around.
    In windows load the airport utility for windows.. if you have not already as this will help you access the drive.
    There is more info here.
    http://support.apple.com/kb/HT1331

  • Using APEX to validate and move a file to directory on the network - How To

    Version 4.0.2.00.07
    Hello,
    I just received a requirement to create a screen to allow a user to upload an Excel file from their computer. The upload process would validate the columns in the file and move the file to a directory on the network where some other process would take that file and process it.
    The part I'm unsure about is the moving the file to the network directory when it passes the validation.
    Can someone help me with that part?
    What other information can I provide?
    Thanks,
    Joe

    Hello Joe,
    You can do that with UTIL_FILE API and FTP. Search PL/SQL forum with UTIL_FILE and NETWORK keywords.
    utl_file for another server, how to
    Regards,
    Hari

  • I take a .NEF file and a .JPG file with every click. When I transfer the files using a flash drive to another computer I never get all of the files to transfer. I get some of the .NEF and some of the .JPGs but not all

    I take a .NEF file and a .JPG file with every click. When I transfer the files using a flash drive to another computer I never get all of the files to transfer. I get some of the .NEF and some of the .JPGs but not all. How come?

    If you're exporting a project then you'll only get the images in that project. Also if any of the masters are referenced then you won't get those masters unless you check Consolidate masters into exported library
    It might be best if you started from the beginning and explained what it is your are trying to do and how you're going about doing it. Also a description of you're hardware/software setup would be helpful.

  • I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • I have a new computer and I want to install Itunes and move my files from my old computer to my new one. How do I do that?

    I want to install ITunes on my new computer and move my files from my old computer to my new one. How do I do that?

    See this migrate iTunes library post for background on moving your library across properly.
    tt2

  • Can Preview in Lion also combine Tiff and/or Jpg files?

    I know in Preview you can combine PDFs which I learned in Snow Leopard. In Lion, can you also combine Tiff and/or Jpg files? Or does anyone know of a program compatible with Lion that will combine Tiff files?

    I know you can do that, however, before Lion there was a program called Tiff Combiner where you could combine Tiff files. It is not compatible with Lion. The reason I want to keep the documents in Tiff is because I enlarge these files to transcribe very old records and Tiff keeps the image clear now matter how much I enlarge it. For example I have old deeds, wills etc. that I used to combine the pages so I would have them in one document. I guess I will have to keep searching for a new program to do that in Lion.

  • My iPad had to get recovered thru itunes now music and movies are lost help!!!!!

    My iPad he'd to get recovered now music and movies are gone help please

    You can either resync the lost material to your iPad via iTunes or you can restore the device from backup, assuming you have been backing up the device.
    How to restore from Backup:  http://support.apple.com/kb/ht1766

  • Script/Automator Get Filenames in Folder and Move Each File into Folder based on Filename?

    I have searched for an answer to this and I have searched through multiple file renaming apps on the app store too but alas I cannot find anything that does what I want so I ended up looking into Automator as my saviour but I am a total NOOB.
    What I want to do is point automator to a folder of my choosing
    Automator then takes each file in that folder and creates a folder with the same name as the file and then move the file into that subfolder.
    Sounds easy enough eh
    I'm totally stumped, anyone have any guidance ???

    This is a PITA to do in automator - automator does not handle loops the way it should - but in applescript it looks like so (open this in the applescript editor, select the file you want to run it on in the Finder, then run the script):
    tell application "Finder"
              set mainFolders to the selection
      -- selection returns as a list, so even if there's only one folder a loop is used
              repeat with thisFolder in mainFolders
      --get the folder's contents
                        set containedItems to every item of thisFolder
                        repeat with thisItem in containedItems
      -- get name of file, add 'ƒ' to avoid name conflicts
                                  set newFolderName to (displayed name of thisItem) & " ƒ"
      --make folder, move item
                                  set newFolder to make new folder at thisFolder with properties {name:newFolderName}
      move thisItem to newFolder
                        end repeat
              end repeat
    end tell

  • Having trouble with pse7 and opening jpg files

    I have been using pse7 for quite some time and today I have started having trouble.  It is as if the program is "not responding" for a time.  So here is what is going on . . . I can open a file or group of files (jpg images) and then when I ctrl+o to open something new I can't see what is in the folders . . . and eventually it won't even let me open anything.  I will ctrl+o and the little blue circle will move, but then go back to the arrow without going to my folders.  I'm not sure if this is making any sense, but it is REALLY frustrating me!!!  I have restarted my computer several times today and it is not helping.  Last week I did update the driver for my printer and now I'm not able to print anything from PSE . . . I don't know if this is part of the problem.  I was getting the "not enough memory (RAM)" message last week as well.  I don't know if all of this is together, but it is driving me crazy!!!  I am in the process of downloading the pse9 trial and I'm hoping that this will help.
    I am working with windows7.
    thank you!!!

    You might have opened several images of large sizes.
    You can go to Edit menu > Preferences > Performance
    Move the slider to the right to increase the memory allocated to PSE
    Also, increase the Cache level.
    Restart PSE Editor
    The problem also can be, that you have several programs running on your system. You might want to close unwanted programs while working on several images in PSE. This also reduces the available memory for PSE to work on.
    Hope this solves your problem

  • HT1449 Is there a way to "Organize Library" and *move* the files, rather than *copy* them?

    I was trying to move my iTunes Library from the old iTunes Music folder to a new-style iTunes Media folder.
    The Organize Library command wants to copy my 219 GB library. Is there any way to do the same thing but move the files instead? There's no way I'm going to be able to free enough space to make a copy of my whole library, and I would really rather not move the whole thing to an external drive, just to move it all back to the proper folder on my internal drive.

    Let's recap.
    Your iTunes media library is in an old school layout, library in the usual location of <User>/Music/iTunes containing a media folder called iTunes Music. You have updated the iTunes preference for the media folder to <User>/Music/iTunes/iTunes Media but, as expected, most if not all your media is still on the old path. And you want to rearrange your library to the current layout.
    Correct? If so then the following steps will sort out your library:
    Change the media folder preference back to <User>/Music/iTunes/iTunes Music. Close & then reopen iTunes.
    Use File (iTunes?) > Library > Organize Library > Rearrange files in the folder "iTunes Music" to get iTunes using the new internal structure for the media folder. Ignore if this option is grayed out, you've already done it.
    (Sorry, I'm a PC user so a bit hazy on precise layout of Mac menus)
    Use File (iTunes?) > Library > Organize Library > Consolidate files to pull in copies of any files that made it into the iTunes Media folder or are scattered elsewhere.
    Delete the now redundant folder iTunes Media.
    Close iTunes, rename iTunes Music as iTunes Media, start iTunes, check under iTunes > Preferences > Advanced that the media folder preference has automatically updated to .../iTunes Media, correct if required.
    (Optional). Close iTunes, rename the library file iTunes Library as iTunes Library.itl then click the icon to start iTunes and immediately press and hold down option. When prompted to choose or create a library click choose and browse to the renamed file.
    I could have suggested using Doug's script Re-locate Selected but the process above is much more efficient. You could use this however at step 3 to avoid the temporary duplication of the files from iTunes Media or housekeeping for any other files stored ourside of the iTunes Music folder.
    tt2

  • UIImage and original jpg file data

    Hi,
    i've encountered a strange behaviour in my iphone app that i didn't expect when using UIImage.
    I would really need your expert help.
    Assuming i have a jpg file (lets say.. somewhere in my app sandbox).
    I load the image to UIImage using - UIImageInitWithContentsOfFile.
    After that i use the UIImageJpegRepresentation and NSData object to write the image back as a file.
    when i compare the original jpg file to the new one i just saved i see that the images are NOT the same !
    Well, they look the same, but when i take a close look at both images i see a drastic change in the image's data (such as color space differences).
    So, my question is - every time i use the UIImage object the original jpeg file data will be replaced when i write back to disk the same image ?
    Isn't there a way to pass through the UIImage object but obtaining the EXACT same jpeg as a result ?
    will my jpeg file data will change everytime i use UIImage ?
    my app is really depended on jpg data consistency and i would like to know if that's possible..
    please... need help.
    thanks.

    Hi,
    thanks.
    i still don't understand - is it possible to hold the jpeg data as raw data of an image which was picked using the ImagePickerController (i.e an image from the photo library). as i understand, since the picker controller gives me back an UIImage, the original jpeg data of the image file (the image from the photo library) is not available anymore because the UIIMage representation of the image is a bitmap (which means the photo library image was decompressed to be held by the UIImage).
    what i really need is to hold the original jpeg raw data of the jpeg file of the image that was picked from the photo libray. it seemed to me that after i get the UIImage from the controller and save it to my sandbox as a jpeg, the original image from the photo library and the new saved image are not the same in terms of size and color space.

Maybe you are looking for

  • Backing up and restoring 4s

    What do I do if I don't want to restore my phone from a previous back up and I just wanted to sync my current phone to my iTunes?

  • Retina Kernal Panic?

    Hey guys, My Retina 15" has been freaking out recently, the screen stays black and the unit is unresponsive. Along with that, waking from sleep and when connecting and disconnecting from my thunderbolt display the screen freaks out and takes a while

  • How to patch Oracle 9i (9.2.0.1 to 9.2.0.6) in a HACMP environment (AIX 5.2

    Hello forum users I installed Oracle 9i (9.2.0.1) on AIX 5.2 ML7 in a HACMP environment. Before installing Oracle I created users & groups via "smitty hacmp - Users & groups" so I have same users on each node. On each node i installed Oracle on inter

  • To uninstall and uninstall windows

    Hi I'm a pc user and I've a 2.0GHz MacBook using Mac OS X v10.4 Tiger. I've installed Windows using boot camp beta and recently i notice that there is virus which is slowing the system and some web pages not loading. I did a search and boot camp is a

  • Problem in connect to a store

    I use JavaMail1.3.2 to connect a pop3 store and receive mails. It seemed works OK in first 1 or 8 hours, and after, the process will halt at store.connect step or store.isConnected step, For example: while(true){ Log4J.getLogger().debug("Try to conne