Make a New Folder from the search field

Tried searching all over, can't find the answer to this simple question.
How can I use Automator to make a new folder with the same name as what I am searching for in Find Finder items?
Basically I am working with large image sequences that are all being rendered in one folder, but then need to be sorted based on their Prefixes before an underscore. I'd love to not have to copy what I'm searching for into the New Folder field, too.

I would particularly like to organize downloads by renaming them, and then they automatically get filed away in the correct folder.
You might achieve something similar by using AppleScript. The example script below, while not meant to be a definitive solution, might provide a guide for you to work with.
The script specifies paths to various existing folders, in this case Music Downloads and Movie Downloads. Once files passed to the script meet the required criteria ("if characters 1 through 5 of theName...") then the files get moved to their appropriate destination folders.
To run this script as written you would first need to create a Music Downloads and a Movie Downloads folder, making sure to specify the exact paths to these folders, and replacing "username" in their paths with your actual short name. You would also want to rename your files so that they meet the required criteria: music files might be renamed music_1, music_2, and so on, while movie files could be named movie_1, movie_2, etc.
The script below can be copied and then pasted into your AppleScript Script Editor to be saved as an application droplet. Once saved, you can drag and drop single or multiple renamed music or movie files, separately or in combination, onto the the saved droplet's icon. If all goes as expected, the music files will be moved to the Music Downloads folder while movie files get moved to the Movie Downloads folder.
The script was written so that a warning dialog is issued if files passed to it don't meet the renaming criteria. Also, if any duplicate files exist in any of the destination folders, a dialog will appear offering the option to a) replace the item, b) don't replace but continue moving non-duplcates, or c) quit altogether.
My preference would be for the AppleScript-only droplet approach. But if you'd like to use Automator and have the script available through a right-click contextual menu, you can create this single-action Automator workflow: *Run AppleScript* (from the Automator library). Simply remove the script from its "on open" command handler and insert the remaining code between the Run AppleScript action's default "on run" command handler. Then, from Automator's File menu choose "Save As Plug-in" > Plug-in for: Finder, with a name such as "Put Away" and you should be set.
+The script:+
*on open*
*tell application "Finder"*
*set theseItems to selection*
*repeat with i from 1 to the count of theseItems*
try
*set thisItem to item i of theseItems as alias*
*set theName to name of thisItem*
*if characters 1 through 5 of theName is {"m", "u", "s", "i", "c"} then*
*move thisItem to "Macintosh HD:Users:username:desktop:music downloads" -- Specify exact path; replace 'username' with your short name.*
*else if characters 1 through 5 of theName is {"m", "o", "v", "i", "e"} then*
*move thisItem to "Macintosh HD:Users:username:desktop:movie downloads" -- Specify exact path; replace 'username' with your short name.*
else
*display dialog "Only items which meet the criteria can be moved." & return & return & "The item " & (ASCII character 34) & theName & (ASCII character 34) & " cannot be moved" with icon caution buttons {"OK"} default button "OK"*
*end if*
*on error*
*tell me to activate*
*display dialog "An item named " & (ASCII character 34) & theName & (ASCII character 34) & " already exists in its destination folder. Would you like to replace it with the one you are moving?" & return & return & "Replacing the existing item will overwrite its current contents." with icon caution buttons {"Quit", "Don't Replace And Continue", "Replace Item"} cancel button "Quit" default button "Don't Replace And Continue"*
*if button returned of result is "Replace Item" then*
*tell application "Finder"*
*if characters 1 through 5 of theName is {"m", "u", "s", "i", "c"} then*
*move thisItem to "Macintosh HD:Users:username:desktop:music downloads" replacing yes -- Specify path and replace 'username' as above.*
*else if characters 1 through 5 of theName is {"m", "o", "v", "i", "e"} then*
*move thisItem to "Macintosh HD:Users:username:desktop:movie downloads" replacing yes -- Specify path and replace 'username' as above.*
*end if*
*end tell*
*end if*
*end try*
*end repeat*
*end tell*
*end open*
The above script worked for me in testing. Good luck.

Similar Messages

  • How can I make a new folder from the save as window in photoshop cc?

    Did I set something wrong in my preferences? There used to be a box in the lower left had corner to make new folder?

    cmd-shift-N gives me a new layer on a Mac  OS 10.10.2

  • Could not make a new layer from the selection because the selected area is empty

    I have Photoshop CS5 and I'm trying to do a selection on a new layer and when I copy it this message appears: "could not make a new layer from the selection because the selected area is empty"..
    The new layer is selected, no other layer is selected. What the hell am I doing wrong???....Yes I'm a beginner.. ....please help?

    Hi There,
    So just to clarify you have made a new blank layer, made a selection on that layer and then done a Layer > New > Layer via Copy (or cmd J).
    The reason that you would get this error message is you have made a selection on a blank layer (effectively selecting nothing) and tried to duplicate it and Photoshop won't let you do that.
    When doing New Layer via Copy or New Layer via cut you selection needs to include some painted (coloured) pixels.
    Regards
    Paul
    PS. Maybe you could explain what you are trying to achieve by copying the layer and I could help a little more.

  • I don't know what I downloaded that caused the problem, but now when I try to make a new folder on the desktop of my new Windows 7 computer, I have only the fol

    I don't know what I downloaded that caused the problem, but now when I try to make a new folder on the desktop of my new Windows 7 computer, I have only the following choices: Shortcut, Bitmap Image, Contact, Microsoft Word Document, Journal Document, Microsoft Powerpoint Presentation, Text Document, Microsoft Excel Worksheet, and Briefcase. No new folder choice. Anyone have any ideas how I can correct the problem?

    This support forum is for Firefox related issues. The volunteers on this forum can only help with Firefox issues.
    Please consider contacting another support service like [http://www.ask.com/answers/browse?o=0&l=dir&qsrc=321 Ask.com].
    Sorry.

  • I have ipod touch 4g and I was wondering how I could make a new folder on the desktop?

    Well, I have too much games and applications and I would like to put them in one folder.

    Hello E. Dodge
    Folders are explained on page 28 of the user manual which can be downloaded/viewed via the following link :
    http://manuals.info.apple.com/en_US/iPod_touch_iOS4_User_Guide.pdf
    Thanks AF

  • How do I make a new folder on Pages in iCloud?

    My Pages in iCloud has many documents which I uploaded one at a time.  How do I create new folders and move the documents into them?  I don't see an option to create new folders anywhere.

    Pages can create a new folder from the Save.../Save As... dialog. By default there is a button in the toolbar with a  ▲. Click this button and the dialog expands. At the bottom, you will see a button labeled, “New Folder.” You should have an idea where you want this new folder to be placed.
    There is no mechanism within Pages that will permit folder deletion. That is the purview of the Finder.
    The simplest way to remove a folder is to drag it to the Trash (and empty the Trash). You should be absolutely certain that the folder contents are expendable or archived before you do this.
    The alternative method is to control-click the folder destined for removal. A contextual menu will appear. Choose the “Move to Trash” menu item.

  • How can I get a query in the search field to open in a new tab or new window from the current window?

    How can I get a query in the search field to open in a new tab or new window from the current window?

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • System crashing when I make a new folder, do I have the correct advice?

    Hi all, I'd greatly appreciate any help if anyone can offer any advice about the issues I'm having? I'll try and be as clear as possible about what is happening, but I'm not 100% sure myself!
    I'm on an iMac running the original OS X 10.4.11 which the machine came with. A few days ago I had my Nikon camera hooked up with a USB (which I do regularly), and I created a new folder on the desktop to drop some images in. As soon as I named my new folder and clicked away all of the icons on my desktop disappeared. I can't remember exactly what happened at that point but the screen was flicking from all blue, to my desktop again, to all blue, to desktop again. Sometimes the desktop had a loading animation on it too, no icons, just the dock, my background and the loading animation. It stayed like this for ages and eventually I had to switch off at the back as my cursor wouldn't show.
    So when I restarted I got the start-up sound as normal, then when my desktop and dock appeared the whole process started again. No icons showing, just the flicking from blue screen to desktop, then eventually settling on the loading animation over my desktop for a long time.
    At this point I call Apple support and describe what's above. They have told me that if I use the disk that came with my iMac and do the following my problem should be solved.
    Apparently I should:
    - Insert the disc while the machine is on.
    - Shutdown and reboot.
    - When I hear the chime hold down C for 2/3 minutes, then follow the reinstall operation.
    However after leaving my machine on for several hours with the empty desktop and loading animation I came back into the room to find my desktop back to normal with all the icons there! I worked frantically trying to get some emails done and to back up some files, then after some time created a new folder on the desktop again and as I feared everything I described above happened again!
    To cut a long story short all of the problems above occurred again, and the desktop eventually went back to normal again. Now I'm using the machine and it's working fine, but I'm not going to try making another folder again just yet!
    I would have tried the reinstall already, but the disk is at another address so I'm waiting for it to be mailed to me. In the mean time I thought I would ask if anyone else had experienced this issue, or knew what it was?
    I'm also concerned about doing the reinstall, will the contents of my hard drive be safe? I would back up, but don't have the storage for everything. One of the reasons I want to get everything running smoothly is so I can install my new copy of Snow Leopard and hook up Time Capsule.
    Hope you can offer some advice, apologies for the lengthy post!
    Many thanks.

    Cough up the money for a backup drive.
    If it isn't backed up ... you do not have it.
    Here are two utilities for making a complete backup of your internal hard drive. I've recommend using one of these so that you can create a bootable system on your external hard drive. ( PPC require a firewire connected drive. ) Once created, you can run your system from the external drive. Hold down the option key on your keyboard then power on your machine. This will bring you in startup manager click on the drive image you wish to boot then click on the arrow key to the right.
    "Clone, synchronize, backup. Schedule and forget it."
    http://www.bombich.com/software/ccc.html
    "SuperDuper is the wildly acclaimed program that makes recovery painless, because it makes creating a fully bootable backup painless."
    http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html
    You need an external Firewire drive to boot a PowerPC Mac computer.
    I recommend you do a google search on any external harddrive you are looking at.
    I bought a low cost external drive enclosure. When I started having trouble with it, I did a google search and found a lot of complaints about the drive enclosure. I ended up buying a new drive enclosure. On my second go around, I decided to buy a drive enclosure with a good history of working with Macs. The chip set seems to be the key ingredient. The Oxford line of chips seems to be good. I got the Oxford 911.
    The latest the hard drive enclosures support the newer serial ata drives. The drive and closure that I list supports only older parallel ata.
    Has everything interface:
    FireWire 800/400 + USB2, + eSATA 'Quad Interface'
    save a little money interface:
    FireWire 400 + USB 2.0
    This web page lists both external harddrive types. You may need to scroll to the right to see both.
    http://eshop.macsales.com/shop/firewire/1394/USB/EliteAL/eSATAFW800_FW400USB
    Here is an external hd enclosure.
    http://eshop.macsales.com/item/Other%20World%20Computing/MEFW91UAL1K/
    Here is what one contributor recommended:
    http://discussions.apple.com/message.jspa?messageID=10452917#10452917
    Folks in these Mac forums recommend LaCie, OWC or G-Tech.
    Here is a list of recommended drives:
    http://discussions.apple.com/thread.jspa?messageID=5564509#5564509
    FireWire compared to USB. You will find that FireWire 400 is faster than USB 2.0 when used for a external harddrive connection.
    http://en.wikipedia.org/wiki/UniversalSerial_Bus#USB_compared_toFireWire
    http://www23.tomshardware.com/storageexternal.html
    How to format an external harddrive:
    http://discussions.apple.com/message.jspa?messageID=11095144#11095144

  • New itunes is destroying my life. It won't allow me to search. As soon as I type a single key in the search field. It freezes, then crashes. WHY??????

    It won't allow me to search. As soon as I type a single key in the search field. It freezes, then crashes. WHY??????

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Enter the name of the crashed application or process in the Filter text field. Post the messages from the time of the last crash, if any — the text, please, not a screenshot. 
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into a message.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.
    Step 2
    Still in the Console window, look under User Diagnostic Reports for crash reports related to the process. The report name starts with the name of the crashed process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • When creating a new window in safari, using command T, the marker have not activated the search field. It means you have to click there every time. Changed after upgrading to Mavericks. Anyone knows how to change this?

    When creating a new window in safari, using command T, the marker have not activated the search field. It means you have to click there every time. Changed after upgrading to Mavericks. Anyone knows how to change this?

    Yes, you can do something like that. What you would do is create a button for each image and then hide them. When I do this type of thing I place all of the buttons on a template page and then hide the template.
    You can then use JavaScript to copy the icon from any of the hidden buttons to the main button that you've set up to display the image. For example, suppose you set up 10 buttons named b1, b2, b3, ...b10. The code to copy the icon from one of them to the button used to display the image (b0) would be something like this:
    // Get the icon from the b3 button
    var oIcon = getField("b3").buttonGetIcon();
    // Get  reference to the b0 button
    var f = getField("b0");
    // Set the icon of the b0 button to the icon retrieved from the hidden button
    f.buttonSetIcon(oIcon);
    // Show the b0 button
    f.display = display.visible;
    This code would go in the Mouse Up event of the smaller button.

  • In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?

    I create a new index on column2, (INDEX_N3)
    and change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    This time INDEX_N3 will be used.
    but change SQL to
    select 1 from table T1 where
    T1.COLUMN_002 = '848K 36892'
    and T1.COLUMN_004 = '1000'
    The explain plan will show full scan.
    Why?
    Thanks.

  • New tabs highlight the URL field; not the search field.

    My homepage is Duckduckgo. I often use ctrl+t to open a new tab and immediately proceed to the search bar. As of yesterday (and a massive headache for me), no longer when I push ctrl+t does it go to the search area, but rather occupies the URL area! I wondered if this was Duckduckgo, so I changed my homepage to other search providers, specifically Yahoo and Google. A new tab still focuses on the URL field, not the search field. I wondered if this was my add-on "New Tab Homepage", so I disabled it and went into about:config, changing the value of the new tab from about:newtab to Duckduckgo. It failed to solve the issue. This is a huge issue for me and I need to find a solution immediately.

    Well, I just got it fixed. I ticked the box that said to place focus in the URL bar and saved, then unticked it. Now it loads back in the search bar. Thanks!

  • Opening a new tab in Firefox 16.0.1 the focus is on the address bar but then moves to the search field

    When I open a new tab in Firefox 16.0.1 the focus is on the address bar for a second or so then the focus moves to the search input field. If I start typing something the first character fills in the address bar then the rest is typed into the search field.
    How do I get the focus to remain in the address bar as per previous versions please?
    MacBook Pro OS X 10.8.2
    Firefox 16.0.1
    Thanks.

    Hello surfersteve1970,
    check it in [https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Safe Mode], select "''Start in Safe Mode''" and see if this happen again, if not see: [https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

  • I just got the new 5s and when i downloaded my contacts from iCloud a lot of them are missing!!!! i tired to make a new backup from my old iphone but it didn´t worked, what can i do to get all my contacts

    i just got the new 5s and when i downloaded my contacts from iCloud a lot of them were missing!!!! i tired to make a new backup from my old iphone but it didn´t worked, what can i do to get all my contacts?

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

Maybe you are looking for

  • Photoshop crashing with 2 different display adapters

    I am having trouble with Photoshop CC. My laptop is a Sony Vaio Z Series model SVZ131190X.  The internal display adapter is an Intel HD Graphics 4000, this is the Driver Node Strong Name from the device properties: oem6.inf:ATI.Mfg.NTamd64.6.1:iIVBM1

  • Special characters in CLOB are making report fail

    Hi- I am working on a report which is refering CLOB column from database. If the CLOB had special characters like & or <, the report is returning error 'Expected name instead of .' I created a view and stored CLOB as varchar2 and refered the view in

  • Deletion of Document templates not possible - 'Ok' 'Cancel' not displayed

    Hello, I want to delete a few Document templates. I use the business role 'SALESPRO', I go to 'Document Templates', choose a template, press the button 'Delete' (icon garbage bin) and a I get a pop-up window but without the buttons 'OK', 'Cancel' . T

  • GTK2 theme: Dustry

    Dustry is a GTK2 theme which uses the best parts of the Industrial, Mist and Clearlooks theme engines. Dustry uses the awesome stock icons by RoberTO and Jimmac Steiner. Dustry is also the first theme about to include a shell script, which you, the u

  • Premiere Pro CS3  Vs Premiere Element  (latest version)

    Hi there, I need need help on whether to buy Premiere Pro CS3 or Premiere Element (latest version) ? 1. Can the Element run multiple videos at the same time ? For example, I wanted to run say 4 videos at the same time on different part of the screen.