Applescript to create alphabetical folders....

I have searched everywhere and can't figure out how to do this. I want to create a list of folders with the letters of the alphabet as the name. Example: A, B, C, etc. - for filing purposes. Anybody have any suggestions?

Here's a way to accomplish the same thing type of thing without using the Finder.
<pre style="margin: 0px; padding: 5px; border: 2px dotted green; width: 600px;
height: 100px; color: #ffffff; background-color: #000000; overflow: auto; font-family: Verdana, Monaco, monospace; font-weight: 900; font-size: 12px;"
title="Copy this text and paste it into your Script Editor application.">set theFolder to POSIX path of (choose folder)
repeat with x from 65 to 90
do shell script "mkdir " & quoted form of (theFolder & (ASCII character x))
end repeat</pre>
Hope this helps...

Similar Messages

  • Applescript for creating job folders

    having trouble with an applescript. I'm trying to create an applescript that will create a job folder for me with job number and job name in which I can include folders and subfolders.
    I found this script by searching google and it's pretty much what I need (thank you to who ever might have created it). I altered the folder names to what I need, and it seems to work for the most part but throws an error at the end that says : Finder got an error: Can't make "drive:path" into type item
    however it still makes everything i need. I would just like to get rid of the error.
    the script editor highlights the line of text that's having issues for me, but since i barely knew what I was doing in the first place I don't know how or what to change.
    if someone could help me that would be great. here is the code.
    set thepath to {"drive:path"}
    set JobName to text returned of (display dialog "Please enter Job Name:" default answer "Job Name")
    set incomingDate to (current date)
    set numYear to year of incomingDate as number
    set textYear to text -2 through -1 of (numYear as string)
    set JobNum to text returned of (display dialog "Please enter Job Number:" default answer {textYear & "xxx"})
    set JobNumName to JobNum & "_" & JobName
    set newsublist to {{"Builds", {"versions"}}, {"Links"}, {"Fonts"}, {"Proofs"}}
    tell application "Finder"
    set baseFolder to make new folder with properties {name:JobNumName}
    repeat with i from 1 to count newsublist
    try
    set {tier2, t2Subs} to {item 1, item 2's items} of item i of newsublist
    set tier2Folder to make new folder at baseFolder with properties {name:(tier2)}
    repeat with tier3 in t2Subs
    make new folder at tier2Folder with properties {name:(tier3)}
    end repeat
    on error
    make new folder at baseFolder with properties {name:(item 1 of item i of newsublist)}
    end try
    end repeat
    activate
    open thepath
    end tell

    There are a few differences with Leopard that still get me from time to time. Tiger's AppleScript doesn't like path to desktop, so instead use the statement:
    set ThePath to (get path to desktop folder)
    The other thing I hadn't noticed before is if there is an error, the script just stops instead of throwing up a dialog. If you are doing something like using an illegal file name or trying to create a folder in a location that you don't have permissions, then unless the MakeFolderStructure statement is in a try statement it will fail silently. Adding an error display will at least tell you if there is an error, so a script that works in Tiger (as well as Leopard) is:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- make a folder structure at the currently selected Finder item
    tell application "Finder" to try -- get the current selection
    set ThePath to the first item of (get selection)
    if the last character of (ThePath as text) is not ":" then -- a file
    set ThePath to the container of ThePath
    end if
    on error -- default to the desktop
    set ThePath to (get path to desktop folder)
    end try
    set JobName to text returned of (display dialog "Please enter Job Name:" default answer "Job Name")
    set textYear to text -2 through -1 of ((current date)'s year as text)
    set JobNum to text returned of (display dialog "Please enter Job Number:" default answer {textYear & "xxx"})
    set JobNumName to JobNum & "_" & JobName
    try
    MakeFolderStructure out of {JobNumName, {"Builds", {"versions"}, "Links", "Fonts", "Proofs"}} at ThePath
    on error ErrorMessage number ErrorNumber -- oops
    activate me
    display alert "Error " & ErrorNumber message ErrorMessage
    end try
    to MakeFolderStructure out of SomeItem at SomeFolder
    make the folder structure defined in SomeItem at SomeFolder
    SomeList defines the structure:
    nested list items create folders in the previous text item - {"A", {"B", {"C"}}} = /A/B/C
    empty text items will create untitled folders
    parameters - SomeItem [mixed]: the folder structure
    SomeFolder [alias]: the destination folder
    returns nothing
    set ParentFolder to SomeFolder
    if class of SomeItem is list then
    repeat with AnItem in SomeItem
    if class of AnItem is list then -- add subfolder(s)
    MakeFolderStructure out of AnItem at SomeFolder
    else -- add a new child folder at the current parent
    tell application "Finder" to make new folder at ParentFolder with properties {name:AnItem}
    set SomeFolder to the result as alias
    end if
    end repeat
    else -- add a new (potential) parent folder
    tell application "Finder" to make new folder at SomeFolder with properties {name:AnItem}
    set ParentFolder to the result as alias
    end if
    end MakeFolderStructure</pre>

  • I want to sort all my bookmarks alphabetically but can't. You only let me drop a bookmark into an already-existing folder. And if that is the only way, how can I create new folders?

    Question
    I want to sort all my bookmarks alphabetically but can't. You only let me drop a bookmark into an already-existing folder. And if that is the only way, how can I create new folders so that I can try to create meaningful folders?

    With the iPod connected to the computer go to the Music pane for the iPod in iTunes and check the box that says sync only checked songs. The check the songs you want synced and click on Sync. For more info see:
    iTunes: Syncing media content to iOS devices and iPod

  • Creating new folders with Package Maker during preinstall actions?

    I have figured out MOST of what I need to have a successful install package produced with Package Maker BUT... how do you create an empty folder? My application uses a few folders for archiving and scratch, but unless I add some text file to that path I can't figure out how to create the folder I need. I am only fluent in Applescript so I hope I can use that to create these folders but I will learn enough unix if need be. If it requires any other language to accomplish this task I guess I will have to go another route.
    Any ideas?

    It isn't part of PackageMaker at all. It is defined in "URL Types" in your application. See the source code to Bwana for a simple example.

  • Create multiple folders in automator

    i cant seem to crack this there seem to be many applescripts out there but cant find one as basic as my needs, am trying to create a subfolder system within a folder to sort out work, id like to be able to do the following:
    tell automator to create x folders within folder with prefix xyz + sequential numbering ie. project001 project002 etc.
    i know it sounds basic and probably is but have been googling away without any joy and the create folder option in automator only makes one at a time which defeats the point.Have also tired the get items and rename but it doesnt want to change folders. any and all help greatly appreciated

    this is easily handled by apple script action.
    say the following will work.
    1. get selected (or specified) finder items.
    put the folder where you want to create all these subfolders here.
    2. run apple script
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on run {input, parameters}
    repeat with i from 1 to 10
    tell application "Finder"
    make new folder at input with properties {name:"xyz" & i}
    end tell
    end repeat
    end run</pre>
    the above makes 10 subfolders. adjust that as you like.

  • How to create multi-folders in a single folder in numbers

    how do you create multi-folders in a single folders. I have multi files orginized by month, but now i need to group it into a single folder by year.

    See this link:
    http://apex.oracle.com/pls/otn/f?p=31517:107
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Can I create separate folders to save media on my Airport Time Capsule? Issue is I have a 256GB HDD Mac Pro Retina which is almost full. TC will only take backup of my HDD. So where would I save my photos and videos from my iPhone and iPad?

    Can I create separate folders to save media on my Airport Time Capsule? Issue is I have a 256GB HDD Mac Pro Retina which is almost full. TC will only take backup of my HDD. So where would I save my photos and videos from my iPhone and iPad?

    It is a hard one.. laptops with small drives are a pain.
    What you need is a home media server.
    Some people use a PC running itunes for cost.. but that is nothing like as good as using a Mac mini.. they make great little HTPC device.. you can plug in large hard disks and store all your files and media. And share it with the network.. Read up apple's instructions on home sharing.
    https://www.apple.com/au/support/homesharing/
    For cost you can buy a mini from 2011 or 2012.. I would not recommend earlier ones.. the advantage of 2012 is they have USB3 ports. But you will pay more for them.. new mini is not as useful.. they have soldered in memory and you cannot upgrade.. the old mini was the most easily modified mac in the whole range. Uses little power and can be bought for a $300US for a good one second hand.. maybe less.

  • Creating new folders in Mail

    Greetings..
    How does one create new folders under the inbox for organizing purposes? I was expecting to be able to create a "new folder" within any other folder, but all I can find is smart folders, and some other strange option which results in this new folder under the heading "On My Mac"...strange...what's this "On My Mac" all about? Why can't I just create a new folder under my inbox, and organize the way I see fit? This is really odd..

    You can accomplish this by creating a new mailbox ( *plus sign* in the bottom left corner of the main window). I think this should say folder, but I didn't make this choice. It acts like a folder. Just click and drag emails from your inbox to these other mailboxes you created. The "On My Mac" just refers to where the emails get stored (/Users/yourshortname/Library/Mail)
    D.
    Edit: the funny thing is the icon for the new mailboxes is a folder, go figure.
    Message was edited by: D. Fraser

  • Is there any way to enable rSAP, use the iPhone as a modem, create sms folders, and show the day's calender on the home screen?

    Hi folks
    Had iPhone for a while and generally happy, but it seems I still need to keep my old nokia E72 because I cannot seem to use the iPhone as a modem, nor does it support rSAP.
    Also, while I like the threaded sms view, I'd also like the option to create sms folders to stash away my banking sms info, all of which comes from different numbers, and filled the sms inbox with hundreds of messages.
    Lastly, having the meeting for the day diplayed somewhere on the home screen would be great if there were a way to do it. Yes, I can go into calender easy enough, but unless I develop the habit of checking it all the time, I often forget about a meeting whereas on the old nokia, it was always displayed.
    What gives with the lack of flash support? Maybe ol Steve dislikes adobe, but it seems like a serious lack to me. Even the old nokia has some flash support.
    Given that, I must say I love the seperate calenders and contacts. It's great to be able to keep home contacts seperate from work ones, but still have them on the same phone. Email is great two - full html support seems like a given but it works really well.

    rSAP has largely been supplanted by ABAP, which the iPhone supports. Most modern smartphones, including the iPhone do NOT store any information on the SIM.
    SMS inboxes. Not much to say. I've never had a desire to do this. I understand it could be useful, but it's unlikely to change.
    As for meetings on the home screen... Wait for iOS 5
    Flash: it's not JUST that Steve doesn't like flash. Adobe has failed to produce a workable version of Flash for iOS. Blame has to go to both sides.  I say good riddance to it.

  • Create multiple folders with one click on documents tab in BP in SAP CRM

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

  • HT201320 Does my email service provider have to provide the ability for me to create an IMAP email account in order for me to create Sub-folders within Apple Mail?

    Hi, Apple Mail provides a function to create sub-folders within my mailbox so that I can group emails of similar subjects or from the same sender. My service provider only provides POP email protocol and the New Folder button does not appear in my Apple Mail account for that service provider. Icloud provides the opportunity for the iPad user to select between POP and IMAP. I can select IMAP and the New Folder button appears allowing me to create sub-folders within the icloud email account. Does this mean I cannot create sub-folders in my email account unless my service provider provides customers with the option of creating an IMAP email account?
    This appears to be a problem for quite a few Apple Mail users, but service providers appear reticent to provide a response other than 'use Microsoft Exchange / Hotmail, Google GMail, or some other third party email service provider'. This is why I have chosen icloud as my email service provider. It is Apple and therefore Apple supports it. I have been a Telstra customer for over 15 years and they informed me today, strongly, that they support their own products and services, not Apple products, even though Telstra sell them. When I asked the Telstra Customer Support Manager whether they support Telstra customers, I was informed 'no, because the Telstra customer is not a Telstra product or service'. I have since cancelled my Telstra email account and am in the process of cancelling all of my Telstra services.

    Apple Sceptic wrote:
    Does this mean I cannot create sub-folders in my email account unless my service provider provides customers with the option of creating an IMAP email account?
    Yes. That is what it means. You need an IMAP account in order to create sub folders on the iPad.

  • How to create new folders on iCloud Drive from iOS or with document picker?

    Recently I wanted to share several files from my iWorks suite with my colleagues. I do not want them to edit these files, instead I made templates in Numbers for easier management of hours worked. Everyone could download their copy and keep a track of their hours themselves. The problem is, not everyone has an Apple product.
    Unfortunately, iOS does not support native browsing of iCloud Drive (except the document picker, which, to me, isn't helpful at all), the only way I know of - to create a new folder - is to open iCloud.com in Safari, request the desktop site and make a new folder from there.
    Is there another way of creating new folders, preferably an official app from Apple or from within an iWorks app or the document picker that I do not know of? Or is this actually a missing feature?
    Also, if Apple could make an app similar to Microsoft OneDrive, that would be great.

    Yes, there is a way. Here is the workaround. You can add notes folders directly with your iPad or iPhone.
    http://keeplifesimple.weebly.com/1/post/2013/11/add-folders-to-native-notes-app- on-ios.html
    Enjoy! Please pass it on, leave a comment on the page, or "like us" on Facebook if you find this information helpful.

  • How to create the folders in UCM

    Hi All,
    I am new to UCM,i have one issue ?
    i need to create 2 folders in ucm.
    one folder can access all the users (public) and they have read permission
    second folder can access only few users depending on security group.
    can you provide your inputs on this issue

    you shouldn't need to assign folders to users. Once the contribution folders are created and defined (e.g. metadata and security established) then users will be able to see them based on their existing security authorization (e.g. roles). While you can use ACLs for this you should only do so in lock down scenarios rather than in all scenarios.

  • I cannot create a new subfolder in one of my mail accounts. (All of my other accounts/inboxes I can create new folders)

    > The option to create a new folder is available, however when I click create, no new folder is created.
    > I have 5 separate email accounts I am running, it is only 1 specific account which I can't create new folders for.
    > I used to be able to create new folders for the account in question.
    > It is definitely not a case of my inbox not being expanded.
    > I have tried running in safe mode with addons disabled and toolbars reset, but it still doesn't work.
    > I opened up the subscribe box, and the folders do not appear there to be subscribed too - which leads me to believe they aren't being created in the first place.
    Please help - I have run out of ideas of what to do or try. Thank you so much in advance.

    Thanks for you response.
    1. Account Type is IMAP.
    2. The email account is hosted through my hosting package with domains.co.za. What details do your require?
    Here is a link to the current thunderbird email configuration details: http://codeyoda.co.za/rossco/thunderbird-email-config.pdf
    (Account 7, is the account in question which I can't create folders for)

  • I can no longer create new folders in Windows 7; could this problem be a result of recently reinstalling Firefox?

    I'm using Windows 7 Home premium on an HP Pavilion laptop. Maybe two weeks ago, I stopped being able to create new folders in the Windows Explorer box; I click the "New Folder" button, and nothing happens: no error message, nothing. Around two weeks ago, I also reinstalled Firefox to get rid of some adware virus (success: the adware is gone!). I do not recall the exact timing on when I did the reinstall and when I stopped being able to create new folders, but I'm wondering if the folder problem could be related to the re-install. And if so, what can I do about it?
    Thanks so much for any help you can offer.

    Hello FJasmine, no, it is not related the firefox update with that.
    see : [http://answers.microsoft.com/en-us/windows/forum/windows_7-files/cant-create-anymore-new-folders-in-windows-7/721a9129-c800-4224-8779-805dd6dfb80e Can't create anymore New Folders in Windows 7]
    [http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/97de8a2a-12f2-4381-a409-a78f4ae551cf/ Cannot create new folder in Windows 7]
    thank you

Maybe you are looking for

  • Illustrator and Photoshop CS2 have both suddenly "Quit Unexpectedly"

    I haven't upgraded because I've been comfortable using this version and didn't see any need to up grade. Until now. I called Adobe and was told that they won't support or gaurantee any of their product older than CS6. Any Ideas why they both suddenly

  • What are naib files mac launchpad

    Hi everyone Ive just installed CS5.5 web premium for the mac and there are alot of naib files lying around in launch pad, firstly what are they and can I safely delete them to tidy up the mess Thanks

  • Adobe vs Discovery

    Can you tell me if it is possible to create and use interactive forms with Discovery (and of course Adobe)? I guess I need to download the 30-day trial version of Adobe Professional software, which includes Adobe LiveCycle Designer to create these ne

  • Windows server

    Hi, I work on a school that is using a windows server and has a few computers connected on a network. Every teacher and student have their one username and password. Using those they can access to the network, the internet and a few MB that they have

  • Disk Utility Can't Verifty or Repair HDD!

    I just tried to verify my HDD with Disk Utility (I put in the Mac OS X Install DVD and held C at startup), and it said: Invalid node structure. Volume check failed. Error: Filesystem verify or repair failed. Now when I tried to reboot my Macbook, the