How to make a structured set of folders in Automator

HI guys,
Hope you can help.
I'm after quite a unique folder structure - I want to be able to build automatically from scratch every week (to save me doing it by hand.
The structure should look like this (but probably a lot more):
computer.CFB.001.Dave/Originals/
computer.CFB.002.Chris/Originals/
computer.CFB.003.Ann/Originals/
computer.CFB.004.Paul/Originals/
So the main folder has two changeable things, the 001 and the name afterwards, the rest of the structure is constant.
At the moment, this is what I have (based on only 2 names):
new folder
new folder
Ask for Finder items (allow multiple entries, and directory chosen)
Rename Finder items (making sequential, using the numbers starting 001 etc)
Ask for Finder items (allow multiple entries, and directory chosen)
Rename Finder items (add text 'computer.CFB.' to beginning)
So if I run that, I can get all the folders to show up and it works BUT I get extra duplicated folders inside those folders - I'm not sure why this is happening?
Next step is that I need to individually add the names (chris, ann etc), so I want it add this to the end of the filename (but I would like a prompt so that I can write in each one - I don't see any other way around this apart from typing them in a prompt). If this can't be done, I'll just have to rename the folders by hand (but with over 100 people that could be hard work).
Then lastly, how can I add an 'Originals' folder into each of those folders?
Sorry for all the questions, this is all new for me. Any help would be great!

Open the Script Editor in the /Applications/AppleScript/ folder and run:
tell application "Finder"
set the_path to folder "test" of desktop
set A to ""
repeat with B from 1 to 1
if B < 100 then set A to "0" & B
if B < 10 then set A to "00" & B
set the_name to text returned of (display dialog "What name do you want for folder " & B & "?" default answer "")
set the_string to (((quoted form of POSIX path of (the_path as alias)) as string) & "computer.CFB." & A & "." & the_name & "/Originals/") as string
do shell script "mkdir -p " & the_string
end repeat
end tell
The path in the second line can be changed as needed. Use colons to specify different path elements.
(48710)

Similar Messages

  • This is how to make a 2nd set of recovery disks.

    Recovery disk creation only allows you to make 1 set.This is how to make a 2nd set of recovery disks. should you mess up the 1st time doing them, purchased a used notebook and the owner didnt supply you with them, if you loose them or they get damaged.  1) Delete the file RMCStatus.bin (hidden) from two places:  C:\Program Files(x86)\Hewlett-Packard\Recovery Manager\  The root of a drive D:\ (RECOVERY partition) 2) Remove Rebecca.dat ( hidden) from:C:\Windows\System32\ Follow the instructions here:HP Recovery Disk/USB Creation Instructions Show Hidden Files and Folders:
      W8 users,,,,,,
    In order to find the files to be deleted, you must change your folder options to show hidden files and drives. Type folder options in search to bring it up.  

    Can not locate these two files: 1) Delete the file RMCStatus.bin (hidden) from two places:  C:\Program Files(x86)\Hewlett-Packard\Recovery Manager\
     2) Remove Rebecca.dat ( hidden) from:C:\Windows\System32\
    What to do any help? Uses HP pavilion 17 

  • How to use "Reference Structure" setting in analysis grid item

    Hello expert,
            in Bex analyzer, how to use "Reference Structure" setting in analysis grid item by example?
    Many thanks,

    The variable needs assigned a value, that's why you're getting prompted. When you execute the statement, it's not executing the variable and exec lines.
    Having script output available in a grid would be an enhancement request.

  • How would I create a set of folders in the /tmp directory using AS?

    I have a set of folders that whenever I restart my machine they get removed (they're in the /tmp directory as they are temporary cache files).
    Right now I'm manually re-creating those folders whenever I restart.
    So how could I automatically create the set of folders on startup?
    I need to create:
    /tmp/fcgi_ipc/
    /tmp/fcgi_ipc/dynamic/
    I figure I can create an bit of AppleScript and set it to run on startup...but I'm totally clueless on exactly what that AppleScript needs to be.
    I've tried various "make new folder at ____" but nothing is cutting it.

    Consider ...
    set base_Path to "/private/var/tmp/" -- path to 'tmp' folder.
    set base_Folder to "fcgi_ipc" -- Desired base folder.
    set sub_Folder to "dynamic" -- Sub-folder of base folder.
    try -- Try handles 'folder already exists' error.
    do shell script ("mkdir " & base_Path & base_Folder) -- Create base folder.
    end try
    try -- Try handles 'folder already exists' error.
    do shell script ("mkdir " & base_Path & base_Folder & "/" & sub_Folder) -- Create sub-folder.
    end try
    ... Naturally, you can hard code it, as well ...
    try -- Try handles 'folder already exists' error.
    do shell script ("mkdir /private/var/tmp/fcgi_ipc/") -- Create base folder.
    end try
    try -- Try handles 'folder already exists' error.
    do shell script ("mkdir /private/var/tmp/fcgi_ipc/dynamic/") -- Create sub-folder.
    end try
    ... or ...
    do shell script ("mkdir -p /private/var/tmp/fcgi_ipc/dynamic/") -- Create all folders at once.

  • How to make JOB CONTROL setting for delta extraction in Production system .

    Hello All,
    We are in the process to transport our development to PD server in BI . We have transported the data sources to ECC production and now we are filling the setup table for " SD BILLING BW " . After filling Setup table data in full mode through infoPackage we have to load data in delta mode .    
    How we can set our Update mode(LBWE setting) in PD server ?
    Is LBWE  T.Code authorisation required in ECC PD server to make the setting of Update mode   or   We have to set all  Job Control Paramater in Dev System at the time of transport the datasource request to ECC production .  Is our time which is set in job control of  ECC development  will be reflected in ECC production ?
    can any body tell me about how to make setting for delta extraction in Production system .
    Thanks ...

    Hi,
    How do you load the data in the development system?
    - you set up the update mode in the infopackage. There you must customize "Initialization"
    - you have to filled the setup table in the production system without laoding the data in the BW? then this step was for nothing. Filling the setup table and do the INIT in the BW, this must be together - during no changing will be done in your R/3 SD.
    Sven

  • How to make backups of iCloud mail folders

    I have a few iCloud Mail folders with saved emails moved from my Inbox and I would like to make a backup of the their content to either my Mac's HD or an esternal drive.  I  make regular backups of my iCloud Address Book (which I found very helpful when I lost all my contacts when setting up iCloud) and I use Time Machine for the documents I have in the Mac, and now I want to backup the mail folders but cannot figure out how to do it.
    Can someone help me, please?

    If you are using Time Machine, it should take care of backing up your email.
    However, if you want to backup outside of Time Machine there are a couple of ways to go about it. The simplest, butprobably most time-consuming method, is to simply drag each email one by one to a folder on your desktop.
    Another method you could use, is to navigate to the mail folder in your library and copy it. You can access your library folder by clicking on the go menu in the Finder, holding down the option key on your keyboard, and selecting library from the list when it appears

  • How to make a data set from this???

    Hi all,
    I have to read an XML file and then display each item on my
    page.
    Now, I have no problems doing this with simple, one level XML
    files like an RSS file for example. But the XML I have to read is a
    little different to what I am used to:
    quote:
    <SearchResult CartNumber="A418 " CartType="M"
    StartTime="2008-06-11T14:44:29.323"
    EndTime="2008-06-11T14:47:46.15" CartComplete="true" StaticText=""
    NextPlayTime="0001-01-01T00:00:00"
    GUID="e76df096-139e-4270-a5dc-4a2cf0cddf16">
    <CustomProperties>
    <CustomProperty PropertyName="iTunesLink"
    PropertyValue="" />
    <CustomProperty PropertyName="SongHookLink"
    PropertyValue="" />
    <CustomProperty PropertyName="RingToneLink"
    PropertyValue="" />
    <CustomProperty PropertyName="AlbumArtLink"
    PropertyValue="Stranger In Town Album - Bob Seger.jpg" />
    <CustomProperty PropertyName="TicketLink"
    PropertyValue="" />
    <CustomProperty PropertyName="SongLyricPhrases"
    PropertyValue="" />
    </CustomProperties>
    <MusicData CartNumber="A418" Title="STILL THE SAME"
    Artist="BOB SEGER" Length="3:11.0" LengthSeconds="191"
    CategoryName="Exile" CategoryCode="X" Note1="." Note2="." />
    </SearchResult>
    You can see it has multiple levels for each search result.
    Can someone help me work out how I would display the results
    on a page, repeating. (There will be 5 of these 'SearchResult'
    items.
    Again, I am fine with single level XML.. but as you can see..
    this one has Custom properties which is a level deep, then all the
    MusicData in one bit..
    Any help is greatly appreciated.
    Kind Regards
    Scott

    Hi Scott,
    I'm beggining to understand a bit better what it is you want
    to display, and I realize you're still a bit confused as to what
    Spry actually does to the XML.
    If you call {data::@iTunesLink} on the HTML, according to the
    definition of the "data" dataset, Spry will lookup an attribute
    name iTunesLink on the following XPath:
    "SearchResults/SearchResult/CustomProperties/CustomProperty". The
    problem is, that attribute does not exist on your XML.
    Valid calls would include {data::@PropertyName} and
    {data::@PropertyValue} and would yield, respectively, "iTunesLink"
    and "
    http://bigpondmusic.com/Album/Snow-Patrol/Eyes-Open.aspx?search=2304296&h=30081101"
    as an example first result (considering there is no "repeat" set).
    Does that make sense to you?
    If I've interpreted your XML correctly, I think you are
    making an assumption that Spry understands that PropertyName and
    PropertyValue are related. It does not make that assumption, and it
    shouldn't - they are completely different things in your XML, they
    just happen to be attributes for the same tag ("CustomProperty").
    Why don't you try to trim down your XML to something more
    straightforward like this:
    <CustomProperties>
    <iTunesLink value="
    http://bigpondmusic.com/Album/Snow-Patrol/Eyes-Open.aspx?search=2304296&h=30081101"
    />
    <SongHookLink value="" />
    <RingToneLink value="" />
    <AlbumArtLink value="Eyes Open Album - Snow Patrol.jpg"
    />
    <TicketLink value="" />
    <SongLyricPhrases value="" />
    </CustomProperties>
    Then use subpaths instead of NestedXML (better for your kind
    of XML), and call the attributes like this (placeholder >>
    yield):
    {iTunesLink/@value} >>
    http://bigpondmusic.com/Album/Snow-Patrol/Eyes-Open.aspx?search=2304296&h=30081101
    {SongHookLink/@value} >> yields blank
    {RingToneLink/@value} >> yields blank
    {AlbumArtLink/@value} >> Eyes Open Album - Snow
    Patrol.jpg
    You get the picture...
    Unless there is a reason to use that particular structure on
    the XML, I recommend you streamline it...
    Give it a shot and then come back again when you hit the next
    obstacle.
    Regards,
    Tomas

  • How to make default selected "Set to Null" option in  Prompt screen?

    Hi,
         I have created Report using Bex Query. It has around 20 Optional variables.
        In the Prompt screen for Optional variables it is showing "Set to Null" Check box.
         I want to make this Check box selected by default when we preview. Kindly help me to make this option.
         Thanks for your support in advance.
    Thanks & Regards,
    Shiva

    Hi.
    If you mean on how to set default to date between dashboard prompt there is a Default to part in the prompt.
    Example - SQL Results:
    SELECT min(TIMES.TIME_ID) FROM "Presentation folder"
    SELECT max(TIMES.TIME_ID) FROM "Presentation folder"
    Or you can add repository variable as default for each date (from and to), etc.
    Regards
    Goran
    http://108obiee.blogspot.com

  • How to make a value set dpepenedent on other value set's values

    Hi,
    I want to have two parameters on my report in oracle apps. I made one Value set which is 'Table' in Validation Type, now I want the other value set dependent on this previous value set's values, Is there a way to make it possible.
    Regards,
    Nidhi...

    Nidhi,
    There is no relation to OAF for your issue. I will suggest to put your query in proper forum. Try http://forums.oracle.com/forums/forum.jspa?forumID=40
    --Shiv                                                                                                                                                                                                                                                                                                                                                       

  • How to make BMSEG structure in Flatfile?

    Hi,
    i want to make file into flatfile.i am using GUI_DOWNLOAD.but i have some problem.i want to change the BMSEG structure into flatfile.Can anybody help me on this issue.
    Thanks & Regards

    *& Report  ZMM
    REPORT  ZMM.
    DATA: BEGIN OF ZWEWA OCCURS 50.
            INCLUDE STRUCTURE BMSEG.
    DATA: END OF ZWEWA.
    SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-001.
    PARAMETERS :  P_FNAME LIKE FILENAME DEFAULT ' ' OBLIGATORY.
    PARAMETERS :  S_FNAME LIKE FILENAME DEFAULT ' ' OBLIGATORY.
    PARAMETERS : MAXPO LIKE AM07M-MAXPO.
    PARAMETERS : P_UNAME LIKE USR07-BNAME DEFAULT SY-UNAME.
    SELECTION-SCREEN END OF BLOCK ONE.
    ==================================================================
                        START-OF-SELECTION                           *
    ==================================================================
    START-OF-SELECTION .
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = S_FNAME
        FILETYPE                        = 'DAT'
    IMPORTING
    <b>   FILELENGTH                      =  0</b>
      TABLES
        DATA_TAB                        = ZWEWA
      FIELDNAMES                      =
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER        = 3
       OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      PERFORM UP_LOAD.
    *&      Form  UP_LOAD
    FORM UP_LOAD .
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME        = P_FName
          FILETYPE        = 'DAT'
        TABLES
          DATA_TAB        = ZWEWA
        EXCEPTIONS
          FILE_OPEN_ERROR = 1
          FILE_READ_ERROR = 2
          OTHERS          = 17.
      IF SY-SUBRC <> 0.
    *message e398 with 'Unable to upload data into xxx'.
      ENDIF.
    ENDFORM.                    " UP_LOAD

  • How to Make a "show hidden items" script in Automator

    I would like to make an Automator application that i can launch to show hiddden files, then another one to launch to hide them again. I tried using the shell script option, with this in it:
    defaults write com.apple.Finder AppleShowAllFiles TRUE
    then I typed this in the next box:
    killall Dock
    It only killalled the dock, no hidden items shown.

    Simpler to just create an AppleScript application, put it onto the Dock, and then just click on it. It's a toggle: unhides on one click and hides on another. This is what I use:
    try
              do shell script "defaults read com.apple.finder AppleShowAllFiles"
    on error
              do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
    end try
    if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is equal to "0" then
              do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
    else
              do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
    end if
    do shell script "killall Finder"

  • How to make different ringtone

    how to make ringtone and set as ringbell.

    Google will find several ways to create ringtones for iphone.
    You can then sync them to the iphone.

  • How to make sub folders in a share invisible to certain users?

    Back in the 10.3 days simply setting the posix permissions so that certain users and groups had no access to a sub folder in a shared folder would make the folder invisible to those users and groups.
    Flash forward to Snow Leopard, I'm trying to accomplish the same thing with ACLs, and I can't seem to do it, the folders are still visible with access denied badges. I read the ACL white paper that was on AFP548, and that suggested creating a deny full control ACE for groups that shouldn't have access, but that no longer seems to work the folders are still visible.
    I've been fiddling with different ACL configurations, but I can't seem to get it to work.
    I am running Mac OS X Server 10.6.4, and the clients are 10.6.4 as well.
    Any help in figuring this out would be most appreciated. Thanks in advance.

    Hi
    Apologies I do mean Others. What I normally do is set the POSIX Owner and Group to admin and Others to No Access. Both Permission models apply so you have to take that into account. Any created user is automatically made part of the built-in POSIX staff group (ID=20). That user is also part of Others. If you're trying to deny access for that user using ACLs only yet neglecting to change the POSIX Permission accordingly that user will still have access of some sort.
    By setting the Others POSIX Permission to No Access at the Parent Folder level that user won't 'see' the Share. If you're trying to do this with a Nested Folder then that user will 'see' the folder but have no access. What they'll see is the red no entry sign folder icon.
    Don't forget to propagate afterwards as well as removing or applying appropriate ACEs if your sharing structure involves nested folders. Server Admin's Interface (IMO) is actually OK with this although you could use the command line if you wish.
    This is how it works for me and I rarely see any problems.
    Tony

  • How do I make the Shuffle Setting on my iTunes More Random?

    Hi,
    I've just recently got my iPod classic (finally) and I love it! But, I have a question about iTunes. My question is: How do I get the shuffle setting in my iTunes to be more random? I have "The iPod Book" by Scott Kelby and looked this up, but I have the fourth edition, and so the picture for the iTunes > Preferences > Playback > picture is not the same as mine. I can't find the bar to slide the shuffle setting to more random or as Apple puts it " least likely". Not that it's the most important topic in the world, but I already have a total of almost 1500 songs and I'm still having to skip because I have music from the same album or the same song(s) popping up about 4 tracks later. This is really frustrating since part of the reason I bought it was to listen to ALL my music shuffled, but instead I spend more time switching through my music to finally get to something different. Does anybody know how to do this with the new iTunes version? Also to clarify, I have already searched through the automatic help that's offered in iTunes and nothing is coming up that helps me, and I've tried searching Support here on the website and ll I get is how to either turn shuffle on or tech support for having an iPod shuffle, not how to make it more random

    I took a play list of 3500 songs and sorted first by album name and then by track.
    Is there some reason you think you needed to sort by Album first?
    As soon as you sort on any other column, iTunes doesn't care you sorted this first. It is now ignored.
    I don'dt know if we have a semantics problem
    We don't.
    Sorting by Album first then sorting by Track # sorts by Track #  and Album name as the secondary sort.
    You don't need to first sort by Album.
    THIS DOES NOTHING!
    When you sort by Track #...
    Abbey Road -Track 1
    Americana - Track 1
    Anthology - Track 1
    Abbey Road -Track 2
    Americana - Track 2
    Anthology - Track 2
    Therefore both the primary and secondary sorts mean something.
    Correct.
    You are not selecting the secondary sort. Sorting by Track #, the secondary sort is always Album.
    Try this.
    Sort by Artist then sort by Track #.
    It is now sorted as above.
    Sorting by 1 column then another does absolutely nothong (except take a few more mouseclicks).
    I rest my case.

  • I have an iPad mini in my classroom and a personal iPad at home; I am trying to set up folders on my personal iPad and also add my personal icloud account to the icloud email management on my pc at school; how do I do these tasks at work or home

    How do I set up folders on icloud from my personal ipad and add my personal icloud e-mail to the icloud management on my pc at work to manage email for work and personal iPads

    I have 5 different e-mail accounts I access from school now
    I have folders to store emails from gmail and for icloud emails accessed from my pc
    I need to use folders when accessing emails from my ipad
    I have folders when I access and use gmail from my ipad
    I also don't know why you need to know why, just what

Maybe you are looking for

  • Export error

    Hi, Oracle version -> 9.2 OS- > windows 2000 While taking full database export I got following errors exp full=y direct=y file=e:\bckp1.dmp rows=nExport: Release 9.2.0.1.0 - Production on Thu May 3 14:52:40 2007 Copyright (c) 1982, 2002, Oracle Corpo

  • Thinkpad Edge E440 Random Lags, Stuttering, Latency Problem.

    Dear All, I bought Thinkpad Edge E440 almost two weeks ago. The problem is it randomly lags and stutter without reason. For example I was writing documents on Microsoft Word, plays music on foobar2000 and doing some light browsing (only few tabs) but

  • Bootcamp? Parallels? Nothing works as it should ... iMac with Snow Leopard

    I'm not sure if it's me ... or if perhaps I've got conflicting stuff on my iMac, which is running OSX (10.7x).  It also has Boot Camp, and Parallels. I'm wondering if Boot Camp and Parallels aren't supposed to be running on the same system ... and I'

  • Delivery Date for Purchase Order

    Experts, which table contains the delivery date for a Purchase Order (NB). ? Thanks in advance Jörg

  • Replace a character in a String array

    I have an array of strings and am trying to replace the ' character with a space. I keep getting either a cannot be applied or cannot resolve symbol error. Can anyone help? String arrayList = request.getParameter("field"); String newList = arrayList.