Create all folders in a string

i have string of where a file should be stored. How can I covert all them to make a folder.
Macintosh HD:Users:User:Pictures:a:b:c:d 
Where all a b c and d need to be created.
Sometimes 'a' may exist as might the whole path.
also the length of the path may be longer
i hope that someone can help
many thanks

How do I get its folder location?
tell application "Finder" to set a to folder (do shell script "mkdir -p 'Volumes/DCKGEN/Brands/Zoom/Brand - Zoom/Upload Photos/2015/Week98/DIVA/JPG'")
Thanks
Matt

Similar Messages

  • Creating all binary strings with n 1's and n 0's

    if i wanted to create all possible strings of n 1's and n 0's where there are never more 0's than 1's using 2 for loops and recursion how would i go about this? (the first for loop controlls how many 1's are in the string the second how many 0's up to the number of 1's) What would the recursive alogrithim have to look like inorder for me to create every possible string of n 1's and n 0's where there are never more 0's than 1's ?

    {color:#ff0000}Cross posted{color}
    {color:#000080}Including this post --{color}{color:#0000ff}
    http://forum.java.sun.com/thread.jspa?threadID=5223773
    http://forum.java.sun.com/thread.jspa?threadID=5223679
    http://forum.java.sun.com/thread.jspa?threadID=5223774{color}{color:000080}
    Cross posting is rude.
    {color}

  • Yosemite: Can't create smart folders at all

    Through all the Yosemite Betas, up to and including the 10.10.2 release, I'm unable to create smart folders - either through searching for files in Finder and using the "Save" button, or using opt-cmd-N to create a new smart folder.
    The "Save" button does absolutely nothing if pressed.

    Just to clarify, Photoshop CC has not been released yet.  It will come out on June 17.
    What you have now is Photoshop 13.x as per the subscription model (»Abo«) and it's called Photoshop CS6.  When Photoshop 14.x is released on June 17, then it will be called "CC".
    It's not clear—at least to me—which images, if any, you have selected in Bridge when you hit the »Speichern« (Save) button.
    Remember that a Collection is nothing more than a saved search, i.e. a saved collection of selected search results (hits).
    Could you elaborate on what it is you want to save as a collection? 
    Incidentally, the Adobe Bridge forum is here:
    http://forums.adobe.com/community/bridge?view=discussions

  • 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

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

  • Apple + k (Go to Folder ) did not show all folders

    hello everyone
    I tried to find some posts about the problem, but I could not find anything.
    I created accounts in tree order. It means for example:
    School name: MK (has many class room)
    Class room name: 1mka ( has many users)
    Username: 1mka1, 1mka2......
    1) The first problem
    When I login with 1mka1 on eMac machines, the login is successefull. It shows Desktop, Root, Documents, Applications, Music, Movie on left of harddrives
    When I user Apple + k to connect to 1mka1´s folder and then click on "1mka1" , so it displays only "Site" and "Library" folders.
    WHY ??
    If I user Apple + k to connect to 1mka1´s folder ---> click on "1mka" and then "1mka1", so it displays all folder such as Dekstop, Applications, Documents, Library, Music, Movie, Site
    WHY??
    2) The second problem
    When I login with 1mka1 on PC machines, the login is successefull. But the virtual share point of 1mka1´home directory displays only "Site" and "Library"
    WHY didn´t it display Desktop, Library, Applications, Documents, Music, Movie Site???
    When I user Start-->Run-->type in "\\servername" --> click on "1mka" and then "1mka1", so it displays all folders.
    I think that the first and the second problem are related. What I did wrong here. Please help. Thanks

    http://www.bubblews.com/news/874646-apple-is-having-issues

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

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

  • 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

  • Opening all folders in a folder

    In OS9 you could open and close all folders in a folder with key strokes. It's been years since I did it, now I have to do it in OS10.3.9 to show all files on disc's I'm creating. Sure could use a little help.

    You mean using List view, do a Select All (Command-A) and then hit the right arrow ? Select All again if needed and right arrow again. Left arrow closes all the selected ones at once.
    Or did you have another view in mind ?

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

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

  • Can you create an object from a string

    I have been working on creating a dynamic form, creating the
    form items from an xml file. I am getting very close to conquering
    this task. I will share it when it's complete.
    However, I am stuck at the moment trying to create an object
    from a string. For example, if the xml item is an HBox I want to
    create an HBox. Like this: parentObject = new arrayOfFormItems[
    index ]..type ()
    This isn't working. First, is this possible using some syntax
    I am unaware of in Flex? I don't want to use a large if or case
    statement if possible.
    Thanks in advance for your help!

    Thank you very much. Indeed that did solve the one problem. I
    missed the casting as a Display Object. That is awesome!
    I do still however, have to instantiate one of every item I
    want to dynamically create or I get the following error when I try
    to create a dynamic object that I have not instantiated before.
    ReferenceError: Error #1065: Variable HBox is not defined.
    at global/flash.utils::getDefinitionByName()
    at MyForm/buildForm()
    at DynamicForm/::onComplete()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    I read that you have no choice but to instantiate one of each
    type to force the linker to link the code for that class into the
    .swf. Unless you know another way to force it.
    This is what I have in my Application mxml to get it to work:
    <mx:HBox>
    <mx:Text visible="false"/>
    <mx:TextArea visible="false"/>
    <mx:TextInput visible="false"/>
    <mx:DateField visible="false"/>
    </mx:HBox>
    And those are the types I'm using to test with. . . I will
    have to add all the others I want to use as well . . .

Maybe you are looking for

  • Build Team from PWA does not shows full list of users

    When building team in PWA, only few users show up in the list. If going first to Resource Plan, then Build Team, the full list shows up. Is it the right way to build team or there is something missing here. The case is with the administrator also. Th

  • BADI or User Exit for role/profile assignment SU01/PFCG

    Hi ABAP gurus, I need a way, BADI, UserExit to do some verifications over a role or a profile before is assigned in the Tcode: SU01 and PFCG. These verifications prevent the assigment of critical roles, transacction or access to tables. Any informati

  • Abstract class instantiation.?

    I have an Abstract class which is extended My question is: How can the Abstract class be instantiated: Animal[] ref = new Animal[3]; In Java,we cannot instantiate Abstract class,so how does this work abstract class Animal  // class is abstract   priv

  • Configuring airport DNS servers

    I use an airport extreme base station which connects to the internet via an ethernet DSL connection. The airport TCP/IP settings are DHCP. The DNS servers, however, show 192.168.1.1 and not the DNS settings of the DSL. As a result the internet connec

  • Aspnet_wp.exe consuming 98% CPU in BAM server

    Hi, We are facing the memory issue with BAM server configured in windows Virtual server. The process aspnet_p.exe using 98% of the CPU most of the time. Would you anyone please suggest if we missed out any critical setup. Thanks, Satish