Using AppleScript to create folders and place files in them

Hi guys,
I've been reading through the forum for the better part of the last 6 hours wracking my brain trying to figure out how to accomplish what I'm trying to do. I've been playing around with Automator and also trying to decipher some Apple Script samples that were posted on here, but I'm really having no luck at all. I'm sure you've all been there where you feel like you're on an endless search to solve a problem and it feels like there's no hope. I've tried every single possible thing I can and I'm getting close, but it's never quite right.
Here's what I'm trying to do, and hopefully some kind soul will help me out. I'm deseperately trying to figure this out, and any help at all would be GREATLY appreciated!
I have a bunch of PDF files that I scan, in the hundreds. After I've scanned them I'm left with something like this:
1234567_Elephant.pdf
1234567_Duck.pdf
1234567_Cat.pdf
1234567_Cat_01.pdf
1234567_Dog.pdf
3431233_Elephant.pdf
3431233_Dog.pdf
3431233_Dog_01.pdf
3431233_Duck.pdf
etc...
So they have a 7 digit ID, then the file name which is always one of the 4 options (I'm just using the animals as examples, but they would be other words).
What I'd want the script to do is categorize these into folders based on the ID number, and then based on the "animal" and then the files within them. Note, some files have an _01 or _02 etc... appended to them. I don't know if this makes a difference.
So after running the script I'd love to see
1234567 (Folder)
     Elephant (Subfolder)
          1234567_Elephant.pdf (File)
     Duck (Subfolder)
          1234567_Duck.pdf (File)
     Cat (Subfolder)
          1234567_Cat.pdf (File)
          1234567_Cat_01.pdf (File)
     Dog (Subfolder)
          1234567_Dog.pdf (File)
3431233
     Elephant
          3431233_Elephant.pdf
     Dog
          3431233_Dog.pdf
          3431233_Dog_01.pdf
     Duck
          3431233_Duck.pdf

well, using a couple of stock handlers I had lying around, and making the following assumptions:
that an underscore is always the delimiter used
that the file name is always a single word like 'dog' or 'cat' (if you have multiple word file names, the script needs to be modified some)
this should do what you ask:
set mainFolder to (choose folder) as text
tell application "System Events"
  -- get all the unsorted files, and loop through
          set unsortedFiles to every file of folder mainFolder whose visible is true
          repeat with thisFile in unsortedFiles
  -- split the file name on underscores and periods
                    set fileNameBits to my tid(name of thisFile, {"_", "."})
  -- first item of list is id, make/get correct folder
                    set IDFolder to my checkForFolder(mainFolder, item 1 of fileNameBits)
  -- second item of list is file name, make/get correct folder in id folder
                    set groupFolder to my checkForFolder(IDFolder, item 2 of fileNameBits)
  -- move file
  move thisFile to groupFolder
          end repeat
end tell
to checkForFolder(fParent, fName)
  -- subroutine checks for folder, creating it if it doesn't exist
          tell application "System Events"
                    if not (exists folder fName of folder fParent) then
                              set output to path of (make new folder at end of folder fParent with properties {name:fName})
                    else
                              set output to (path of (folder fName of folder fParent))
                    end if
          end tell
          return output
end checkForFolder
on tid(input, delim)
  -- subroutine for handling text item delimiters
          set {oldTID, my text item delimiters} to {my text item delimiters, delim}
          if class of input is list then
                    set output to input as text
          else
                    set output to text items of input
          end if
          set my text item delimiters to oldTID
          return output
end tid

Similar Messages

  • Can automator create folders and organize files?

    I produce a large number of files that must all be moved into appropriate folders manually, but in a consistent manner every time. The files are titled with a keyword for the folder that needs to be created for them. There are just five consistent folders.
    Can automator be made to automatically create these folders and move the appropriate images into them? Perhaps from the right click menu?
    I've tinkered a little bit, but only been able to produce erratic behavior. In all my experiments it always stalls on the 'create new folder' step, although it does create a folder, though usually not where I needed it to go.
    Any advice would be really helpful! Thanks!

    Bravenewcharles wrote:
    Ok, so while I edit my files in my Mac that will occupy some space on its hard drive that will be backed up in the TC. Does that mean that I will occupy two hard drives on the same stuff?
    Exactly.  That's kinda the definition of a backup.  When (not if) something awful happens, like your Mac being lost or stolen, or the HD failing or getting corrupted, or you accidentally change or delete some stuff, you have a backup you can recover.
    What will happen when my Mac's hard drive is completely full?
    Don't let it.  Delete things you don't need.  If you can't delete enough, as Neil says, get an external HD for the "overflow" that won't fit, then let Time Machine back up both your Mac and the external.  See Time Machine - Frequently Asked Question #32 for more info.
    Message was edited by: Pondini

  • Can I use the Time Capsule as an storage drive? Can I create folders and save files on it as with a external hard drive?

    I want to know if I can use my Time Capsule as a storage hard drive instead of only use it to back up my Mac

    Bravenewcharles wrote:
    Ok, so while I edit my files in my Mac that will occupy some space on its hard drive that will be backed up in the TC. Does that mean that I will occupy two hard drives on the same stuff?
    Exactly.  That's kinda the definition of a backup.  When (not if) something awful happens, like your Mac being lost or stolen, or the HD failing or getting corrupted, or you accidentally change or delete some stuff, you have a backup you can recover.
    What will happen when my Mac's hard drive is completely full?
    Don't let it.  Delete things you don't need.  If you can't delete enough, as Neil says, get an external HD for the "overflow" that won't fit, then let Time Machine back up both your Mac and the external.  See Time Machine - Frequently Asked Question #32 for more info.
    Message was edited by: Pondini

  • Creating Folder and Accessing Files from Folders in mobile phone

    Hello Friends,
    I am doing my project where I need to create folders and accessing files from those folders in java enabled mobile phones.But I do not know the required tasks for this.Any type of help is highly appreciated.
    Greeting
    Saadi

    You have to get the classname of the Items you receive from getitems.
    There you have only to look for Folder.CLASS_NAME. Example:
    ifsFol sorted by names in ascending order (names of folders and files)
    String[] sort_attributes = {"NAME"};
    //sort will be ascending
    boolean [] sort_orders = {true};
    oracle.ifs.common.SortSpecification sort = new oracle.ifs.common.SortSpecification(sort_attributes, sort_orders);
    ifsFol.setSortSpecification(sort);
    PublicObject[] contents = ifsFol.getItems();
    System.out.println("Here are the names of the items in folder: ");
    for (int i=0; i < contents.length; i++) {
    if (contents.getClassname().equals(Folder.CLASS_NAME)) {
    System.out.println(contents[i].getName());
    null

  • All my folders and the documents in them have gone?

    I just updated to the new pages and keynote and all my folders have disappeared from both apps! I do all my note-taking for my law degree on my iPad so I REALLY need to get those documents back on here...
    They were all backed up on iCloud so I should still have access to them.  Has anyone found a fix for this?

    Well I seem to have inadvertently fixed it!  I turned off my iPad, and opened iCloud on my computer - thankfully all my folders were still there so I downloaded anything I couldn't afford to lose. Then I closed iCloud, turned my iPad back on, and when I opened pages and keynote they synced with iCloud and the folders and the files in them are all back.

  • Using AppleScript to create a text file, based on an OCR'd file's content

    Hey guys, I've got an interesting situation.
    I was wondering if there would be anyway to use something like AppleScript (or the like) to create a text document and fill it with information based on what is found in an already OCR'd file?
    For example: I have a paycheck stub. The stub contains the words "Gross Pay" and the value "$xxxx.xx" on one line. Using Hazel to identify paychecks (based upon filenames), could I then use something like AppleScript, to create a new text file, and then pull the text from the line that contains the word's "Gross Pay" and insert it into the text file's next line?
    Ex:
    March 26,2012      
    Gross Pay                   $xxxx.xx
    April 6,2012
    Gross Pay                   $xxxx.xx
    Kind of how TurboTax's iPhone app pulls text from an image, then uses the values to insert it into the app's appropriate fields?
    I know this may be a lot to ask, but any help is appreciated. Thanks!

    StevenD: FYI, I did NOT give you the one star rating. I would never do that!
    StevenD wrote:
    Ow. Someone is grumpy today.
    Well, this is an assignment, so it is probably homework.
    Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
    This would make no sense unless all of it was just covered in class!
    This is not a free homework service with instant gratification.
    OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
    "...but have no idea where to begin".
    open notepad.
    decide on a format, possibly one line per indicator.
    type the document.
    close notepad.
    open LabVIEW.
    Open the existing VI with all the indicators.
    (are you still following?)
    look at the diagram.
    Who made the program?
    Does the code make sense so far?
    Is it a statemachine or just a bunch of crisscrossed wires?
    Where do you want to add the file read?
    How should the file be read (after pressing a read button, at the start of the program ,etc.)
    See how far you get!
    Message Edited by altenbach on 06-24-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Auto-populating folders and .lvclass files

    This post really contains two different questions/issues. The first question is about using auto-populating folders with .lvclass files. The second is a more specific question about why I think I need to use auto-populating folders for some .lvclass files in a project.
    I understand that .lvclass files should not be put into auto-populating. Even though I know that is a rule, I don't really understand why. I think the reasoning is that the auto-populating folder ends up making a copy of the .lvclass file, and this could cause dependency issues since I now have two copies of the .lvclass file in memory, is that correct?
    I have run into a situation where it seems that need to put some classes into an auto-populating folder so they can be distributed with my EXE by an installer.  My EXE will load those classes into the program via a factory at runtime. Besides putting those .lvclass files into an auto-populating folder, I can’t find any other way to distribute the .lvclass files with my exe. Am I stuck with putting these classes into an auto-populating folder or is there another way to have my installer include them for distribution?

    tst wrote:
    What I will say, though, is that it seems you have a bad misunderstanding of auto-populating folders. First, there is no "should". You may or may not use auto-pop. for anything you want. I usually prefer not to. Others like to use them for everything.
    The second thing is that auto-pop. only affects what goes in the project tree. It doesn't create copies on disk or in memory. It's simply an organizational tool for the project. One place where it can be useful for people who don't usually use it is indeed when you want to automatically include files in a build, but I don't think that really applies with plugins, since presumably you want to build each plugin separately.
    From what I've been told by multiple sources is that you can use autopop folders with .lvclass files, but it is not best practice. In other words, you can do it, but should not. It was three years ago I took NI's LVOOP course where I was first told that this was not a good pracetice and that it has something to do with dynamically dispatching objects, but I can't remmeber the exact reason(s).
    I turned to both this forum and called NI apps engineers to find out why it is not a best practice to use autopop folders with .lvclass files. After some research the apps engineer over at NI that was helping me concluded that including .lvclass files in an autopopulating folder is not best practice because (according to him) doing so somehow creates two copies of the files in memory. I'm still not totaly sure if that true or not, but unless something changed, there are good reasons why one shouldn't mix autopop folders and .lvclass files. I'd just like to understand what those reasons are. 

  • 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!

  • How to create folders and sub folders in numbers on my mac book pro?, how to create folders and sub folders in numbers on my mac book pro?

    I am new to Mac and numbers how do I create folders and sub folders on my mac book pro ? I have created folders on my ipad3 but I cant seem to make a sub folder ?
    Can any one help ?
    Thanks in advance!

    To create a folder either select New Folder from the Finder's File menu or the keyboard equivalend command-shift-N.  Select that folder and do the same. Viola!  You have a folder inside a folder.

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • How to create parameter and control file like filename + date

    Hello there
    I am trying to create parameter and control file with following command
    in SQLPLUS
    create pfile='/u03/oradata/WEBDB/backup/initWEBDB.ora' from spfile;
    In RMAN
    copy current controlfile to '/u03/oradata/WEBDB/backup/cf_longterm.cpy';
    how can I put date at the end of filename like
    initWEBDB8jan06.ora and cf_longterm8jan06.cpy
    Thanks in advance
    Lionel

    ASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
    With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
    Not mirroring the redo logs, assuming multiple members, is not as critical.

  • HT4847 Can i use icloud as a server and share files with others as it was possible before?!

    Can i use icloud as a server and share files with others as it was possible before?!

    iCloud does not provide general file storage and sharing. You will need to find a third-party alternative - this page examines some options:
    http://rfwilmut.net/missing3

  • I made three new folders and put bookmarks in them. the next time I opened bookmarks none of that work was saved/ done. What happened to my new folders?

    I created folders and put a number of bookmarks in each. the next time I went to bookmarks none of my work was saved, I was back the way it was before, nothing lost but nothing gained. Why did my folders not get saved?

    Thank you Glamdring7. I was able to get the bookmarks and history working again with your suggestions and links.

  • Creating data and .par files using SWIFT Integration Package

    Hi,
    I have a requirement to generate a data and .par file using SAP PI Integration package for SWIFT.
    I am following the SAP Note: 1303428.
    I have created 1 sender and 2 receiver comm channels(one for payload and other for par). Used operation mapping SWIFT_payload_parFile_split in the Interface determination.
    I am using the adapter module : localejbs/swift/FileActConversionToSWIFTModule and setting the parameter DetachParameters to true. This adapter module is being used in all the three channels(1 sender and 2 receivers).
    I have used ASMA ans has set the FileName checkbox.
    Now after placing the file in the input directory, the file with the same name gets created in the output directory but the file is exactly same and also no .par file is getting created. I have set the Empty file handling to Ignore, so it shows that there is no data to  create a .par file and only payload file is getting created but the payload file is exactly same.
    Also if I use the adapter module : localejbs/swift/FileActConversionToSWIFTModule in only the sender communication channel, a payload file gets created like below.
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns1:SWIFT_payload xmlns:ns1="http://sap.com/xi/SWIFT"><payload>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPEZpbGU+CiA8UGFyYW1ldGVycyB4bWxucz0idXJuOnN3aWZ0OnNhZzp4c2Q6ZnRhLnBhcmFtLjEuMCIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSI+CiAgPE92ZXJyaWRlcz4KICAgPFJlc3BvbmRlcj5jbj1jZngsb3U9bmEsbz1jaXRpZ2IybCxvPXN3aWZ0PC9SZXNwb25kZXI+CiAgIDxTZXJ2aWNlPnN3aWZ0LmNvcnAuZmEhcDwvU2VydmljZT4KICAgPFJlcXVlc3RUeXBlPnBhaW4uMDAx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0cmQ+L1BNREQvVEVTVDY4MSw1OTAuMDAsRVVSLDIwMTQwMzI8L1VzdHJkPgogICAgIDwvUm10SW5mPgogICAgPC9DZHRUcmZUeEluZj4KICAgPC9QbXRJbmY+CiAgPC9Dc3RtckNkdFRyZkluaXRuPgogPC9Eb2N1bWVudD4KPC9GaWxlPgo=</payload></ns1:SWIFT_payload>
    But while creating the par file, it shows that the file could not be overwritten and so the .par file is not getting created.
    I need to understand that:
    1)  How do I configure both of my receiver channels i.e. what should be the difference. Currently, I am just setting the
    same Output directory in both and file name schema * and has used ASMA with FileName parameter. So same name files are getting created and so one file gets discarded. How to create a .par file.
    2) Also Is the file above is the correct file required by SWIFT.
    3) Also when I check in SXMB_MONI, I can see that after running the adapter module same payload as given above is going in both payload and par files i.e. also if I am using different names in my receiver communication channels two files are getting created payload and par both are having the same payload. So what exactly should get created.
    Kindly guide on this implementation.

    Hi,
    I am able to generate the .par file by setting the localsecurity to true and the KeyId from the key manager.
    Now two files are getting created .xml and .par. .xml file which is the payload file is the same as the input file with no difference and contains both the overrides and the data parameters. The .par file contains the Algorithm and the Value.
    Is this correct?
    Also suppose the input file name is SEPA.xml, then the payload file is created with the name as
    SEPA.xml and the par file is created with the name SEPA.xml.par. I need only SEPA.par. How to achieve this.

  • Use parameter to create folders in report distribution

    Hi,
    This is my distribution xml
    <destinations>
    <!-- Generate seperate files for each department -->
    <foreach>
    <file id="a1" name="C:\junior\report\*DEPT_&amp;F3*\dept_rep&amp;&lt;F3>.pdf" format="pdf" instance="this">
    <include src="mainSection"/>
    </file>
    </foreach>
    </destinations>
    I am using the parameter F3 to create a subfolder because the requirement is that i distribute pdf reports to break on F3 and place them in different folders.
    Just using name="C:\junior\report\dept_rep&amp;&lt;F3>.pdf" works but I am not able to do it if i have at folder level. But that is my requirement.
    Is this possible.

    Hi,
    Can anyone help me in this.

Maybe you are looking for

  • Disable use of special characters in a form

    We are wanting to disable the use of special characters that are not in the font family already. Arial Unicode has an expansive family, where Roboto doesn't. Is there a simple way to do this?

  • Phone memory issue in Nokia E5

    The phone memory of my E5 is decreasing day by day. Menu->Options->Memory Details->Main memory shows 135 MB files in Others section, but I am unable to view any such large files even using third party browser like Xplore. I do not have any pictures,

  • HT4623 How do I get out of this mode and reset both to sync?

    Plugged in my iPad to synch with pc.  After the process started, I noticed it said "syncing iPhone". Then when I plugged in iPhone, it didn'sync, but I could see the iPhone apps, etc. I set the Phone to downlad photos on next synch only, but when I c

  • Rename Breezesession.dat How many times?

    I have been using the Breezesession.dat rename workaround, along with renaming the 11.0 Folder, with limited success. If I understood what this was doing, other than forcing the software to generate a clean slate, I may be able to understand a little

  • Volume level on my Ipod Nano

    I bought two iPods nano for my daugthers, after load both iPods the volume level is not the same in both, is there a setting to be modified in order to get the same level of volume in the second one?