Help - Using Auto. to move/copy/sort jpegs saved on desktop to folders

I have, daily, between 20 and 100 images saved on my desktop (mostly net images). I apply Spotlight comments to each of them, based on a dozen categories.
What I want Automator to do, is to look at all of the jpeg/jpgs on my Desktop, read the Spotlight comments, and place a COPY of each in a specified folder. (I don't mind running it 12 times)
So, there are 100 images, 40 have the Spotlight comment "Apple" - I want Automator to look at the 100, find the 40 that have "Apple" and place a copy of each image into a Folder in my Pictures category called "Apple Images".
PowerMac G5 2x2 Mac OS X (10.4.5)

This will do it if you perform the action immediately after the file is selected (if not, just save the filename to an Automator variable, then get the variable before the action).
In Run Shell Script, you must: Pass input [as arguments]
The Run Shell Script Action is:
n=${1##*_}
n=${n%%-*}
if [ ! -d "$HOME/Desktop/$n" ]; then
  mkdir "$HOME/Desktop/$n"
fi
mv "$1" "$HOME/Desktop/$n"
Note: With this, you do not need the Action you used to "strip out the prefix of Schedule_ or MDAlarm_" as n=${1##*_} strips everything before: _ and n=${n%%-*} after: -

Similar Messages

  • Need help, used to play .mov but won't now, how do i fix this??

    I was havin problems with .mov, the screen is all white, but i can hear sound, the videos played before but now they won't and i have no idea how this happened or how to fix this, can someone please help or direct me to someone or somewhere that can??

    A white playback area means you're missing the proper video codec.
    Use the Movie Inspector window to find out what's used and a Google search to find that codec right your your machine.

  • I have many hours of home movies copied years ago to DVDs. Can I edit them using iMovie? All the Help instructions assume that you will be transferring info from cameras.

    I have many hours of home movies copied years ago to DVDs. Can I edit them using iMovie? All the Help instructions assume that you will be transferring info from cameras not from DVDs.

    See my User Tip here.
    https://discussions.apple.com/docs/DOC-3951

  • I have itunes set up on a PC with all my music, apps, etc. I want to stop using PC and move my iTunes and files to a Mac I bought and synch my iPhone with the Mac. Can I just synch iPhone with Mac iTunes and will it copy all my stuff onto Mac, or will I h

    I have itunes set up on a PC with all my music, apps, etc. I want to stop using PC and move my iTunes and files to a Mac I bought and synch my iPhone with the Mac. Can I just synch iPhone with Mac iTunes and will it copy all my stuff onto Mac, or will I have to copy files from PC onto Mac?

    Here are some of the links to get you started.
    https://discussions.apple.com/thread/3727530?start=0&tstart=0
    http://support.apple.com/kb/HT4527
    http://www.macworld.com/article/1146958/move_itunes_windows_mac.html

  • I just put a solid state hard drive in my mac book pro and used super duper to copy the hard drive and move the data over to thew new ssd, but most of my music isn't in iTunes when I turned it on? How do I get my music to show up in my new drive?

    I just put a solid state hard drive in my mac book pro and used super duper to copy the hard drive and move the data over to thew new ssd, but most of my music isn't in iTunes when I turned it on? How do I get my music to show up in my new drive?

    Many thanks lllaass,
    The Touch Copy third party software for PC's is the way to go it seems and although the demo is free, if you have over 100 songs then it costs £15 to buy the software which seems not a lot to pay for peace of mind. and restoring your iTunes library back to how it was.
    Cheers
    http://www.wideanglesoftware.com/touchcopy/index.php?gclid=CODH8dK46bsCFUbKtAod8 VcAQg

  • Not sure if anyone can help but I have a copy of Photoshop CS5.1. Ever since it was installed, every now and again when I try do something simple like save a file or scale something using the Transform tool, in fact anything at all it comes up with "Could

    Not sure if anyone can help but I have a copy of Photoshop CS5.1. Ever since it was installed, every now and again when I try do something simple like save a file or scale something using the Transform tool, in fact anything at all it comes up with "Could not complete your request because of a program error". Have thought about re-installing  it but I have lost my serial number.  I'm living in Ireland and trying to get to talk to someone in tech support is a complete joke. Any ideas what to do ? Thanks

    Ianp69549740 have you tried reinstalling Photoshop CS5.1?  If so do you receive any specific errors?  What operating system are you using?

  • Can't use Command+C to copy HELP!

    I can't use Command+C to copy but I can do Command+V to paste. I have to right click everything to copy. It just does not do anything when I press Command+C. It been like this for 2 days. I did not do anything to my computer at all. Please help me! It getting really annoying.

    Open the Speech pane of System Preferences and check whether either the listening key or the speech key has become set to that keystroke; if so, change the setting.
    (55095)

  • Had to wipe my drive so I could do a clean install of snow leopard Now I look every where on how to move bookmarks, address book and I cal settings.  I have them back up on a external drive with Time machine but can not move, copy or restore my old sett d

    Had to wipe my drive so I could do a clean install of snow leopard.   Now I have look every where on how to move bookmarks, address book and I cal settings.  I have them back up on a external drive with Time machine but can not move, copy or restore my old settings.  The instructions I have found or no help or needs more clarafication on what to do.

    Use migration assistant to move your files.  http://support.apple.com/kb/HT4889

  • Using Disc Utility to copy my hard drive to a brand new external drive and am having the error "Unable to create...(Cannot allocate memory)".

    I'm not very tech savvy but am trying my best to use Disc Utility to copy my hard drive to a brand new external drive and am having the error "Unable to create...(Cannot allocate memory)".
    Last night no problems, woke this morning and it was freezing so I forced a restart and got the grey screen with the folder and question mark. Ran off to best buy to get an external drive... Please help! Thank you!

    I have done both. When I hold down the "C" key it pauses for a few seconds while the cd spins and then the flashing folder icon appears.
    Could be you have the wrong cd/dvd.  The mac will only boot a supported cd/dvd for your machine. The flashing question mark indicdates your machine could not find a valid os.
    When I hold down the "option" key for the startup manager the cursor comes up and moves but the actually manager doesn't come up no matter how long I leave the laptop on.
    Not sure.  Could be your machine does not support the startup manager. You would think the machine would ignore the key.
    Where did you get the dvd?  What is the number on the DVD?
    What machine do you have anyway?
    This site provides more information, but lacks security.
    "A serial number is a unique, identifying number or group of numbers and letters assigned to an individual piece of hardware or software. It's used for various things depending on the product / brand but what is your Mac's serial number for and more importantly... what is it hiding and what can it do for you ?"
    http://www.appleserialnumberinfo.com/Desktop/index.php
    or
    This site provides more information, but lacks security too.
    "A serial number is a unique, identifying number or group of numbers and letters assigned to an individual piece of hardware or software. It's used for various things depending on the product / brand but what is your Mac's serial number for and more importantly... what is it hiding and what can it do for you ?"
    http://www.appleserialnumberinfo.com/Desktop/index.php
    http://www.chipmunk.nl/klantenservice/applemodel.html
        ( hint by K Shaffer  )

  • Help, i am trying to print my JPEG file that i created in photoshop at a photo lab but it is coming out like an X-ray. I have printed these files before so i have no idea what i am doing wrong.

    Help, i am trying to print my JPEG file that i created in photoshop at a photo lab but it is coming out like an X-ray. I have printed these files before so i have no idea what i am doing wrong.
    Could it be something i have done in my settings?
    or when i am saving the file to JPEG?

    Basically you're approaching this the wrong way around. What you need is the extreme sections to be quieter, not louder. The problem with moving the lower end of the audio is that you'll move the noise floor too, and get what's generally referred to as a 'pumping' effect. So what you do is to use a compressor to tame the peaks, and leave the lower level sound alone. When you've done that, you amplify (or normalize to a level you can determine) the whole signal. So the noise floor will be higher, but constant and not pumping. 'Match Volume' is a completely different tool for setting the overall levels of different tracks so that they sound approximately the same - it doesn't even begin to do what you want.
    If it's music you are treating, then I'd almost certainly use the multiband compressor, because you get less artefacts with this. You need to experiment with the threshold levels, and almost certainly not use a massive compression ratio - 3:1 or 4:1 should be sufficient (although it's hard to tell without actually hearing the audio). You can tell what it's doing at any given point because the downward meter indicates how hard it's working. In theory you can apply make-up gain with it as well, but personally I leave that until everything's treated and use the 'Normalize' tool to set an absolute max level.

  • How can I move/copy scanned photos that were sent to my gmail account? I have not been able to move or copy to iPhoto.

    How can I move/copy scanned photos that were sent to my gmail account? I have not been able to move or copy to iPhoto.

    Hello SusieMacBook,
    Welcome to the Apple Support Communities! 
    You can definitely get these photos into iPhoto if they are the correct file type (JPEG, GIF, TIFF, and PNG).  The way you import the photo attachments depends on where you check your e-mail.  The following article is for iPhoto 11 (but should work for previous versions as well).  It outlines how to import photos from Mac Mail, other e-mail applications, and web browsers, so just look at the section that applies to you. 
    iPhoto '11: Import a photo sent in email
    http://support.apple.com/kb/PH2354
    I hope this helps! 
    Best,
    Sheila M.

  • What setting should I use for exporting movies?

    Hi
    I've read quite a lot of posts on these forums - I am getting
    the dreaded whitespace instead of the movie I want to see on my
    webpage.
    I created an flv from Premier Pro, put it in Flash CS3 +
    exported a SWF. the SWF plays fine in Flashplayer 9 and when I
    select 'play' in the properties bit in Dreamweaver CS3.
    I used the 'insert movie' option (just using the flv) at
    first in DW but could not get it to work - despite making sure the
    Scripts file was uploaded. So I went with the old fashioned bit of
    script and used a Flash created SWF.
    I uploaded a swf i didn't create to test and that did display
    correctly in IE etc. This makes me wonder if I am doing something
    wrong in Flash. should it be as simple as file>export>export
    movie>OK?
    Grateful of you help. The morning has just disappeared trying
    to figure this one out...

    I still had a copy of Flash MX 2004 installed, so i created a
    swf that i was able to publish successfully from - well - the
    output ran slow. This suggests i am still doing something wrong at
    the publishing stage.

  • Converting M-peg 2 files for use in i-movie

    What is the best (easiest and cheapest) to use programme when trying to convert M-peg 2 files for use in i-movie? I have just bought my i-mac and was assured by seller in Apple store that it would be 'really easy' to upload files from existing camcorder. How wrong he was!
    Help appreciated. Thanks.

    Never had to do this myself. However, if your Windows PC and the Mac have the same version of PM such as PM7.xx, then you should be okay. You'll need to sort out your fonts though as I think the Mac can open PC TrueType founts but Windows cannot handle Mac TrueType. OpenType are cross platform. Hope this helps.
    Ian

  • Error 36 when trying to move copy or compress a .mpg file

    Error 36 when trying to move, copy or compress a large .mpg file (32gb!)
    please help I have tried everything on Google (dot_clean/safe mode etc) need help!

    BDAqua wrote:
    I hear 3rd Party, or HW Raid 0/1/5/10 are OK, but 6 months is the absolute most I got out of my many screaming RAID setups before they completely lost it!
    Bummer. I'm not really doing this for speed though, just for total storage volume and constant, worry-free, no-brainer back-up. I guess RIAD in general is something I need to study up on. Would a simple mirror of one 500GB drive to another (back-up) - and do that twice - be a better, more reliable way to go?
    I've used Tri-Backup3/4 for years for Backups, it's fast, automatic, reliable, works in the background if you wish...
    Back-up software always seemed to have some kind of a hiccup to it, but I'll certainly look into Tri-Backup3/4. I used to Retrospect years ago, a rather fussy thing if I recall.
    Now, on the Safe Mode boot - not a success BUT a different result!
    I got the -36 again, but this time it was the external drive FILE that errored, not the OS-resident drive.
    In other words, pre-Safe Mode the error said "...because some data in "ZillaHAL" could not be read or written." (ZillaHAL is my OS-X drive).
    In Safe, it read, "...because some data in "WinXP Pro.vmem" could not be read or written."
    "WinXP Pro.vmem" is the virtual machine file - which basically is a simple Mac volume (folder) containing all of the files to run my XP virtual machine.
    Also, this time, a file* did manage to remain on the external drive whereas before, after the error, no file at all remained.
    * a generic icon appears, but it shows a size of 16+GBs. The actual file is 18.13GB - I did manage to shrink it down the other day (from it's previous 25GB).
    Well, that's it for now. I'll be away for three days, so don't mind me if I cannot reply back for a spell.
    Thanks BD,
    mp

  • LR 3 move/copy image to a new catalogue

    I need to move/copy images from the master catalogue to a new catalogue. when I select the image and in File/export LR asks for a catalogue name and then proceeds to copy the entire folder I am in.  How do I copy JUST ONE image? the instructions on the help don't do anygood becuase it indicates options which don't show up.

    Thank you, but the problem arises from the LR Help file..What I really want to do is to create a new catalogue of selected images. The Help file says exactly what I want to do BUT:
    Export as Catalog
    "You can export one or multiple photos as a new catalog.
    To export individual images into a new catalog, they
    must first be selected. Then, from the File menu, choose Export as Catalog. Also, if
    you press Option or Alt, you’ll see the standard Import and Export buttons (bottom
    left, Library) change to Import Catalog and Export Catalog; see Figure 9–14.
    In the resulting dialog box you must type a name for the new catalog. A folder
    will be created using that name. Inside the folder will be the catalog and preview
    package, using the same base name. In the Export as Catalog window you also
    have the following options:
    Export selected photos only: when this is checked, only selected photos will be
    exported to the new catalog. Otherwise, all photos from the currently selected source
    will go into the new catalog. A text display above the checkboxes indicates this.
    Figure 9-14
    373
    ADVANCED TECHNIQUES
    9 Export negative files: in this case, “negative” simply means the image files on disk.
    When this is checked, Lightroom will make copies of the files and the new catalog
    will link to those files, not the originals. If this is left unchecked, the new catalog
    will remain linked to the original files on disk.
    Include available previews: when this option is checked, Lightroom will also copy
    the previews from the old preview package into the new one.
    You can also export entire collections and folders as catalogs. Right-click or
    Ctrl+click the folder or collection and from the popup menu select “Export [folder
    or collection] as catalog”. For the export, you will have the same options described
    above.
    Export catalogs to share them
    Exporting catalogs is a great way to share work between different people, multiple
    computers, etc."
    Nothing likes this actually appears. So what to do??

Maybe you are looking for

  • My as yet unresolved appalling customer experience

    This message presents my appalling BT experience to date. As yet, it remains unresolved and - of course - I cannot reach anyone who can actually do anything about this. On 19JUL13, I placed an order for BT Infinity 2, Phone, and Vision to be connecte

  • Module pool programming - supressing display of some fields

    Moderator message: better to start a new thread. Hi i have similar requirement to this. module pool programming - supressing display of some fields suppose i am displying BUKRS    0001 Sales org  0001 KUNNR    1000 i dont want todisplay  if the field

  • Oracle10g AppSer..Lookup error: javax.naming.AuthenticationException

    Please help .. I have a working EAR on weblogic app server and deployed it on oracle 10g app server release 2 .. the application is developed in struts .. the following error is shown on the console .. 06/09/22 10:34:28 Start process 06/09/22 10:34:3

  • RV_BELEG depending on: fiscal year, sales organization, month

    Hi everyone. We are facing an issue involving SD invoices numbering: we are currently using 3 numberings: one for receipts, one for invoices, and another one for cancelling invoices. The request is: this numbering should depend on fiscal year AND sal

  • Advance with Special GL Indiactor

    Hi All, My Client wants to post travel advance with special GL Indicator (Advance). I have assigned GL Account (100000) with special GL indicator to advance symbolic account. When i try to post the document in T code PRRW it is giving error message