Sort files automatically to specified folders...?

I am trying to find a way in which I can drag and drop a file onto a folder so that upon doing so, the file is automatically placed within a sub-folder of that folder based on its file type...To clarify, I have a folder on my desktop called 'Misc Stuff'...inside this folder are about 8 or so folders name for the type of content within them (i.e. Video, Images, Audio, Documents, Links, etc...) As an example, I would like to be able to take a random PDF file I have laying around on my desktop and drag it onto this folder, which would subsequently move this PDF file to the 'Documents' folder that I have created within this folder. Does anyone know of an application, applescript, automator utility, QuicKeys/iKey Shortcut, or some other way of doing this? Please let me know. Thanks!

What I think will work is a Folder Action script. The details are in /Library/Scripts/ look at the supplied folder actiions and folder action scripts. For more details you need an Applescript book, probably The Definitive Guide by Matt Neuburg.

Similar Messages

  • Using AppleScript to sort files Into Specified Folders based on Extension

    Hi All!
    Here is what I am trying to figure out. I would love some help with this script if anyone can lend a helping hand. I am currently using Hazel to do this but I think AppleScript will be alot more effective.
    Situation:
    - I have a folder with 4 different file types inside - the extensions are (.cop, .cof, .cos, .cr2)
    - These files need to be organized in this folder structure  Captureone > Cache > Proxies
                                                                                                                  > Settings50
    - The .cop & .cof files both need to be put in the "Proxies" folder
    - The .cos needs to be put in the "Settings50" folder
    - The .cr2 can stay where it is.
    I'm already using an AppleScript application where it automatically creates the folder structure in the current finder location, which works great. I use a program named Hazel to sort the files automatically into the folders where they need to go. Unfortunately all my computers at work don't have Hazel and I would like help to make a script. Any thoughts to add to my existing script?
    #  define a list of folders - items will need to be quoted if they contain spaces, etc.
    property theFolders : {"Captureone/Cache/Proxies", "Captureone/Settings50"} -- can also nest, e.g. "Inside/One"
    try
              tell application "Finder" to set targetFolder to (target of the front window) as alias
    on error -- no window
              set targetFolder to (choose folder)
    end try
    # build a parameter string from the folder list
    set {tempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, space}
    set {theFolders, AppleScript's text item delimiters} to {theFolders as text, tempTID}
    do shell script "cd " & quoted form of POSIX path of targetFolder & "; mkdir -p " & theFolders

    Hi,
    applescript_problems wrote:
    for example:
    master folder name: 1
    sub folder path: 1>2>3>4>5
    insdie folder 5 theirs 3 folders: 5a, 5b, 5c
    i want to name my files like so: "name_5a" "name_5b" "name_5c
    i want the scrip to pick up all the files that ends with the name "_5a" and place them in folder 5a
    I presume that the files are in the master folder not in the subFolders, that the files has an name extension.
    This script take the first two characters after the last underscore.
    It will move the file in the subfolder, according to the two characters found.
    set targetFolder to (POSIX file "") as alias --<-- drop the master folder between the double quotes
    tell application "Finder"
          repeat with tFile in (get files of targetFolder)
                set tName to name of tFile
                set subname to my getChar_1_2AfterLastUnderscore(tName)
                -- example : subname = "5c" -->  folder "5c" of folder "5" of targetFolder
                if subname is not "" then
                      tell folder subname of folder (text 1 of subname) of folder targetFolder
                            if exists then move tFile to it -- if exists this folder then move this file
                      end tell
                end if
          end repeat
    end tell
    on getChar_1_2AfterLastUnderscore(t)
          if "_" is in t then try
                set oTID to text item delimiters
                set text item delimiters to "_"
                set t to text 1 thru 2 of last text item of t
                set text item delimiters to oTID
                return t
          on error
                set text item delimiters to oTID
          end try
          return ""
    end getChar_1_2AfterLastUnderscore
    To get the exact path of the master folder :
    Drag/drop the folder between the double quotes in the first line of the script.

  • How do I keep my macbook pro from automatically rearranging my folders and PDF files on my desktop

    How do I keep my macbook pro from automatically rearranging my folders and PDF files on my desktop?  It seems to happen a lot after I've hooked my laptop to my Thunderbolt in my office and then I unhook my laptop to go present at a clients of taking my laptop home to work.  Every once in a while if even places all of my folders and PDF files in the far upper left corner of my screen.  Needless to say, having to constanly rearrange my desktop is extremly annoying and would love to know what the fix is for this problem.  Thank you in advance for any help offered!

    Thanks for the tip "baltwo", unfortunately my desktop settings were already set to NONE.  I've had one of my IT guys here this moring helping me look through all of this and we're at a wall trying to figure out why it's doing this.  This morning when I docked to the Thunderbolt all my folders and PDF files are in the upper lefthand corner stacked on top of each other almost out of view.  If I go to settings, displays, and swith to mirroring, all the folders and files go right back to where they're set up on my MacBook desktop, but I lose the ability to utilize the entire screen of the Thunderbolt.  Very frustrating to say the least and after searching through and reviewing several forums, Apple is very much aware of this issue and seems to be keeping silent on the issue.  Hoepfully they'll launch a fix soon!
    THANKS again for the tip, it's much appreciated!

  • Arrange Sort Files and Folders in CC Website

    Does anyone know how to arrange and/or sort files and collections in the Creative Cloud website?  I uploaded files, and they are currently listed there in the order they were updated.  I would like to sort them alphabetically with collections first then files.  How can I do this?  Thanks.

    Currently there is no functionality like you describe, but I agree that this would be really helpful.
    I created an idea/feature request for the functionality here, please add your vote and comments
    http://forums.adobe.com/ideas/1575
    Thanks,
    -Dave

  • HT2470 How to sort files in finder

    Is there any way to sort files in my finder first by kind (folders, pdfs, jpegs, docxs, etc.) and then by name?  Right now I can only sort by one or the other.  If I sort by kind, the files are grouped according to kind, but the names are mixed up.  If I sort by name, all file types and folders are sorted according to name.  I like the column view because it helps me see the directory structure easily.  I hope that doesn't have any influence on what I'm trying to do.

    Choose View > Arrange By > Kind to group by Kind. Then choose Option-View > Sort By > Name to sort within the Arrange-By groups.
    See this MacWorld article for more info about Finder sorting and arranging.

  • Sort files in Finder column view for the current folder only?

    Hi,
    I don't really understand how finder sort settings work, even after using OS X since it first came out. Maybe someone can give me a hand.
    I'm trying to sort files inside one specific folder according to their name decending. In general I have arranged them by label and sorted by file name ascending. Every time I try to use the settings in the "display options" (cmd+J), this applies also to several other folders. Even if I right-click on that particular folder to enter the settings.
    Isn't it possible to apply different sort/arrange options to individual folders?
    p.

    For column view, there is only one arrange/sort, no matter where you are in the hierarchy. It is based on what the arrange/sort was set on the original folder opened.
    In the View Options, the Brows by ??? view checkbox controls what happens when you open a folder from that view. If it is set, then the folder opens in the same view as the enclosing folder. If unchecked, and you have set a view on a folder, that folder will open in the desired view.
    Again, this does not apply in column view. Column view has only one arrange/sort for the entire hierarchy.

  • Elements 10 / Folder Mode sorts files in "file name" order; is there a way to do this in Elements 11

    Elements 10 / Folder Mode sorts files in "file name" order; is there a way to do this in Elements 11

    No not automatically.
    You can p-lace them into an album and then choose Album Order from the dropdown menu and they will remain fixed.

  • Manually sort files in a folder

    Is there anyway to sort files in a folder manually?
    Say I have 4 files. The would be arranged..
    File A
    File B
    File C
    File D
    I want them to be
    File B
    File D
    File A
    File C
    Is there ANYWAY to do this?
    I can't sort them by size or anything like that cause it is going to be more then 100 files in this folder but I need them in a specific order.
    Thank you

    I could but it's folders of pictures I'm going to export to iPhone and I already have the year before the name (2009 Fall). Since it's going to show when it's on my iPad and iPhone it will be too many numbers before the actual name.
    I refuse to use iPhoto. I tried it twice and there is just too much extra in there that I don't need that takes up too much storage (like faces and previews).
    There has to be a way around it somehow...  Getting Lightroom pictures on iPhone shouldn't be this hard..
    Thanks for your help!

  • Sort files in Finder Column View?

    Like to sort files by date in column view, is this possible? I know you can do it in List view, but can't seem to do this in column view. It would have to be folder specific, as the upper level (which are folders of folders) should be alphabetical, then the folder with files I'd like to sort by date created. Now, all are presented in alphabetical order, and then I have to scroll down to get to them.
    Thanks!

    Nope, can't be done in Finder column view - alphabetical is the only option.
    You can submit a feature request here:
    http://www.apple.com/macosx/feedback/

  • How do i change my settings so that a file automatically opens in Office Word

    I am using Firefox as my search engine and when I open files it used to ask me if it was ok to open them in Office Word. It used to open them perfectly. I guess I clicked something wrong and now the files open automatically in Microsoft Works Word Processor. How can I change it back to open then files automatically in Office Word?

    There are a few different possibilities when Firefox doesn't handle downloads automatically.
    First, can you check the Options dialog to make sure Firefox saved your preference?
    "3-bar" menu button (or Tools menu) > Options > Applications
    It takes some time for the list to load... then in the search box above the list type '''word''' to filter it down to the entries for Word documents. Do these show that you want to Open with MS Word?
    If those check out but Firefox isn't doing it, there are two possibilities:
    (1) Website might be using a generic content type header.
    Firefox doesn't actually inspect the document or check the file extension. Instead, it relies on the server to send a content type such as "application/msword" to look up the proper handling. If the server just says this is a binary file of non-specific type, then Firefox always prompts you for instructions.
    If this is the problem, then you would find that Firefox sometimes handles Word documents correctly and sometimes doesn't depending on the site.
    (2) Download handler settings file might be corrupted.
    The longer you have Firefox, the more likely that extra lines will creep into this file and potentially cause conflicting instructions. You can rename the file and have Firefox generate a fresh one.
    Open your current Firefox settings (AKA Firefox profile) folder using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button. This should launch a separate window listing files and folders.
    Leaving that window open, switch back to Firefox and Exit, either:
    * "3-bar" menu button > "power" button
    * (menu bar) File > Exit
    Pause while Firefox finishes its cleanup, then rename '''mimeTypes.rdf''' to something like mimeTypes.old
    Start Firefox back up again and it should create a new settings file with default settings. Any improvement on the next download or two?

  • One file to two different folders simultaneously?

    Is there a way to copy one file to two different folders simultaneously?
    Maybe a script?
    Drew

    Thanks for the response Baltwo.
    Maybe I shouldnt have said 'simultaneously'.
    What I'm trying to achieve is this.
    I drop a file into one folder and it automatically copies to ano folder (a redundant back up of the first folder)
    Is that possible at all?
    Drew

  • Photoshop CS 5 crashes after updating and then using File -- Automate -- Batch

    I am running Photoshop CS5 (build 12.0.4 x32) on my XP 32-bit machine and have done so without major problems until about a week ago.
    Then all of a sudden when accessing File --> Automate --> Batch the program crashes and I have to force it shutting down manually after which I can restart Photoshop. When trying to access the batch command hereafter the same crash reappears rendering batch commands useless.
    I thought about posting here but then decided to reinstall Photoshop again. This enables the fully working software including batch commands once again. However after a short while the update software asks to download and install some patches for all programs. After doing so the same problem happens again in regards to the batch command. Photoshop crashes when accessing it and won't work at all.
    I now repeated this procedure twice and have no idea what to do about it.
    Is there anybody that has had this experience or knows about a solution?
    Do I have to contact Adobe with an error report?
    Any help and comment is welcome and mostly appreciated.

    Chris Cox wrote:
    Yes, a change in the Adobe update made the existing scanner bug show up more frequently.   No, that does not make your statement correct. The bug exists in the scanner driver, and existed before the Adobe update.
    The Adobe update is not the cause of the bug, it just made some unrelated change that made the bug appear more frequently.  That could be something as simple as putting different values in different locations of memory.  We don't know. Only the authors of the scanner driver can know for sure why it is crashing more often now.
    Photoshop supports the TWAIN standard, but cannot be responsible for the bugs in the third party drivers that attempt to implement that standard.
    The high frequency of bugs in TWAIN drivers is what made us move the TWAIN plugin to "optional" status in the first place -- because too many people were crashing, had a hard time figuring out the cause, and blamed Adobe for something completely beyond our control.
    And we already do inform scanner vendors about all the bugs we find in their drivers. But we cannot force them to fix their bugs, nor can we know the nature of all of their bugs to code around them.
    I understand that you're angry.  But please stop trying to blame an innocent bystander.
    Adobe cannot do anything to fix the bugs in your scanner driver. Only the authors of your scanner driver can fix the bugs in your scanner driver.
    Until they provide an update to fix the bugs in the driver, your choices are to keep crashing, or not use that buggy scanner driver.
    I am going to make this short.
    It depends on how you look at it. From your angle, Adobe did their's and the scanner companies are to blame for their buggy software. What you are saying here would be - if compared - resemble a situation where you would go to a car dealer, buy a car, then drive away just to find that the trailer tow hitch you attached your old trailer to would keep falling off all the time. When confronting the dealer about the issue he would reply to you that you have to talk to the manufacturer of the trailer because the problem is their responsibility. How would you as a client react...?
    Maybe it is true that the driver software is buggy. However it still did work though under other conditions before this update. That means that you updated something that made these things appear frequently. Maybe you don't know and only they do. Fair enough. But us customers don't have to work these problems out or live with them nor do we have to use our time on posting and fixing companies' errors and mistakes. That's what we pay you for. We only need to use this application hassle free on the spot. Maybe you should start crash testing in an controlled environment before you apply these updates and then post them. Or make a deal with those companies to do so for you. Maybe they will then ignore you or won't tell you about possible bugs to hike their own skin. Fair enough as well. Create some sort of program, a label or whatever that you apply and hand out only to those companies that are "certified by and working with Adobe software" and that they can put on their products or you on your very own Adobe website for all us customers to see and to use as a type of guidance in order to have working hardware and applications and avoid these errors.
    There is this saying that goes...
    "Where there's a will, there's a way"...!

  • Please help with "Error writing the project file. The specified module could not be found." error.

    I am a student.  I've been trying to install and use Visual Studio 2013 Professional for three weeks now and I cannot get it to work.  I am now two weeks behind in my Visual Basic class.  I've installed, uninstalled, ran the repair option... 
    I've tried everything I know how to do.  I just spent 45 minutes on the phone with Microsoft, was transferred four times and finally told I will have to use the forums to find an answer.  I'm almost completely out of patience with this.
    I got the software through the Dream Spark program as a student.  I installed it with the web installer and it appeared to install fine.  When I try to create a new project, I get the error:  "Error writing the project file.  The
    specified module could not be found."
    When I exit the application, I also get:  "The automatically saved settings file 'c:\users\user\documents\visual studio 2013\Settings\CurrentSettings-2015-02-02.vssettings' is not available for write.  You can change this file on the 'Import
    and Export Settings' Tools Options page."
    Please tell me you can help.

    Hi,
    could you please try the points mentioned here:
    http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/0376db8f-4761-4ae5-9af2-98c53216318a#VS_IDE_unexpected_problems to eliminate the possible cause of your issue?
    Please update the result in the forum after you try the method above!
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • My Ipod mini will not sync...A duplicate file name was specified.  What does that mean?

    My Ipod mini will not sync.  I get the message that A duplicate file name was specified.  What does that mean and how do I correct it so I can download my new purchases?
    Thank you

    Refer to my earlier reply, but here is a quick fix to the corrupted filesystem, which might work
    Open My Computer
    Right-click your iPod  -> click Properties.
    Click the Tools Tab -> Error Checking ->
    Check "Automatically fix file system error"
    k Start.
    Let the scan complete, eject your iPod and reconnect.
    Good Luck!

  • Sorting Files in Finder eg. Artists, Album etc.

    Hi, is there an option where i can arrange my files by artists or albums like in windows? I'd like to browse my music files easily without using itunes as im only editing the metadata.
    In Windows -
    Choosing sorting options: http://img.technospot.net/group-by-more-options.gif
    Into: http://s3.amazonaws.com/satisfaction-production/s3images/21365/Picture_7inline.png
    I've found an app called FileBrowse that sorts files in special folders? but it just doesn't makes sense to pay for such a function.
    Help will be most appreciated.

    If I'm reading your description correctly, this is exactly the same setup I use. I use a directory structure like this: genre/artist/album/tracks. Anything whose metadata and/or filenames I haven't fixed yet goes into a temp folder until I'm ready to process it. I then fix the folder and filenames, and move the item from the temp folder into its permanent location before I add it to iTunes. (Obviously, I don't let iTunes manage my collection, but do it manually myself.) You can change the metadata all you want and iTunes will still find the referenced files as long as you don't change the directory names or the filenames. If I want to move a directory or change the filenames for some reason, I just remove it from iTunes first and then add it again after I'm done making changes. Finder doesn't really enter into it, since it doesn't display metadata. What it comes down to is that iTunes doesn't care much about filenames as long as it knows where the file is, and Finder doesn't care about metadata.

Maybe you are looking for

  • How to create new .dat file and its contents?

    Hi There Can anybody let me know the procedure of how to create new .ctl or .dat file to load data to tables. i working on 2day dba chapter 8. it shows me how to creat table and use .dat file to load data. but doesnot giv any clue how new .dat file a

  • Overlap audio regions on 1 track without cutting the previous one off

    Im trying to overlap multiple audio regions on one track, so that the next one starts before the previous one ends but when i do this, each consecutive overlap basically replaces the remaining region of the one before it. to be more specific in order

  • If my Iphone is not working and is not restoring

    My I phone needed to be restore according to itunes. But it was not able to restore due  to error 28. I took my phone to a seller who opened my phone but he was not able to fix it. After that i find out that my warranty was lost and apple can not rep

  • 2-way video, CPU Useage

    I have a 1.5ghz PowerBook G4 with 1.25GB of ram, and since upgrading to tiger have found that while in a 2 way video conference, running only iChat, my CPU useage pegs to 100% iChat uses around 75% of my CPU and the other 25% is taken up by system. i

  • Download iTunes Producer id is not valide???? i change id is not valide why????

    in french is not possible download iTunes Producer why my id apple not aiviable???? je suis au regrets de vous contacter aujourd'hui , pour un nouveau problème sur les produits apple. voici mes problèmes suite a la creation part ibooks author j ai vo