Create a folder with subfolders named structure

I have a script that creates a project with a series of subfolders folder:

The first step is to

Tell application "Finder".

text returned jobFolder value (display dialog "enter a working folder name:" default of answer "XYZ123 Customer_Project")

This opens a dialog box where I enter the name of the project and client etc. This creates a folder with the same specific name.

It then creates a folder in the call of the output files

make new folder to the newfo to the properties {name: "output files}

In the output files folder it then creates a folder with the same name as the name of the original folder "XYZ123 customer Name_Project" (or whatever it is I named it at the initial stage.)

make new folder at the exit with properties {name: jobFolder}

I'd like to create this folder with {name: jobFolder} + name of the printer

for example;

XYZ123 client Name_Project PRINTER_A

XYZ123 client Name_Project PRINTER_ B

XYZ123 client Name_Project PRINTER_ C

Is this possible? Tips appreciated.

Use the following code:

make new folder at the exit with properties {name: jobFolder & 'PRINTER_A'}

(138871)

Tags: Mac OS & System Software

Similar Questions

  • LR: Export or publish LR folder with subfolders to HD with the same folder structure

    It is in fact an enhancement request that I post here because I found no option in the web site for the enhancement requests.

    In Lightroom, I would like to have a way to export or publish a Lightroom folder with subfolders to a hard drive for export or publishing retains the same folder structure, including file names and subfolder. My idea is to create a JPG of all my raw files edited in another drive outside of Lightroom. If I move images autour, change file names, or do further editing in any image, I'd like it to appear on the external copy. Theoretically, I should be able to publish my albums directory and all subdirectories of my would be automatically included and copied to the external hard drive.

    Lightroom has currently a way to publish on a hard drive, but it is a feature of dish (of level) publication, for the moment.

    -Hugo

    One solution might be to this plugin, by Jeffrey Friedl:

    http://regex.info/blog/Lightroom-goodies/folder-Publisher

  • Synchronize Lightroom is no longer a folder with subfolders. If I add photos outside of Lightroom, he could find them. That said a few weeks ago. I can import and he finds them and they will be important, but this means a lot of work

    Synchronize Lightroom is no longer a folder with subfolders. If I add photos outside of Lightroom, it has been able to find and import - I heard that it was a bug - it is fixed or is there a setting I amissing?

    Workaround for this bug is to choose "see the import dialog box before importing."  Please add your vote and the details of your question about this in the Adobe official feedback forum: synchronize Lightroom CC 2015.2 record any new images see the import dialog box is active. Although Adobe says that it is 'in progress', this does not mean that it will be necessarily fixed in the next version.  Add your vote and the details make more likely Adobe will give priority to a solution, and it will keep you informed of updates to the question.

  • PCTCT download the folder with subfolders in one operation.

    Hello world

    I have a folder full of subfolders with images in them and I want to upload them to an ftp server. Is it possible to load coldfusion to download this folder with all its sublfolders and its contents?

    Thank you in advance,

    Yannis

    The thing is with recursion, we didn't need to worry about any level other than the 'current' hierarchy and then make the recursive call at the right time.  The Act of recursing automatically sorts the rest.

    A trap I saw people stuck at bottom tried something recursive, is that they try to organize all of the "final result" in their head (like cross sub-activity sub-sub-sub-directories), considering that it is simply useless.  Always focus on achieving a level of this right and then call the function itself again for the next level of the process.  All the nesting is managed / handled automatically by recursion.  I guess the trick is to be able to be clear in his mind what needs to be passed to the function - of any arbitrary point - to be fully able to deal with only one level and how to take this info and treat it so as to obtain the data required for the next level.

    I guess, this requirement, pass in the base file system directory, as well as the base dir of FTP.  Recursive subsequent dirs "base" can be arranged simply by adding a subdirectory on the current directories and passing the result in the recursive function call.

    To save the need to use recursion, can use recursive integrated functionality of the tag, then by a flat iteration on this recordset, using the paths of each record to invent the FTP subdirectory.  Then create the remote directory (if the current recordings is a dir) or FTPing the file (if it is a file).

    Not really the one-fell-swoop ALEXANDER is promising, but probably is not so complicated (even though I was hesitant to suggest notions now).

    --

    Adam

  • Why we cannot create a folder with the name con

    Hello Sir,

    I wan't to know the reason for why we cannot create or rename a folder with the name "con" as the other folder names. But I know that we can create this type of file using cmd.
    Thank you.
    Mihir Mani prasad

    CON is a reserved word and cannot normally be used as a folder name.  This also applies to: PRN, to THE, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.

  • Try to copy a folder with subfolders, some don't copy, get the message that the folder names are too long under Windows 7

    Hi, when you try to copy a folder with lots of subfolders, some files don't copy.  I get a message that the folder names are too long, and the only option is to ignore these files.  Anyone know the maximum folder (and also) name length that will copy windows 7?

    Thank you

    Steve M

    Hello
     
     
    a. What are the data you're trying to move?
    b. what operating system (for example Windows files) files?
    c. What is the method that you use to copy data?
     
     
    Windows 7 supports filename up to 260 characters. I would ask you to decrease the characters in the file name and then try to copy the files.

    Let us, run disk checking hard disk utility and then check.
    Here's how:
    1. open the computer by clicking the Start button, click computer.
    2. click on the drive you want to check, and then click Properties.
    3. click on the Tools tab and then, under check for errors, click Find now. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    To automatically repair problems with files and folders that the scan detects, select automatically fix file system errors. Otherwise, the disk check will be a problem, but not to fix them.
    To perform a thorough check, select search and attempt to recover bad sectors. This analysis tries to find and repair physical errors on the disk itself, and it may take much longer to complete.
    To check for errors file and the physical errors, select both automatically fix errors in file system and search for and attempt recovery of bad sectors.
    4. click on start.
     
     
    Depending on the size of your drive, it may take several minutes. For best results, do not use your computer for any other tasks while it checks errors.
     
    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I recently updated my browser. A message then came, saying that firefox creates a folder with my old favorites. But I can not find my favorites in there?

    I recently updated my browser. A message then came, saying that firefox creates a folder that would include my old favorites. But I can not find my favorites in there?

    See also:

  • Why can't we create a folder with the name "con" or "prn"? __we can do only by using back!

    I tried this on Xp, Vista and win7 and still the same result
    I can't name a folder with the name "con" or "prn".

    THX

    These are reserved for the console and the printer devices MS-DOS names.  Files or folders that these names does not have the Windows file system. Boulder computer Maven
    Most Microsoft Valuable Professional

  • creating the folder with the series of photos

    I'm just getting into Lightroom, Aperture moving. When I download a map I have several subjects, several shoots. Is there a way to create a new folder and automatically have the photos highlighted that will become the contents of the folder move to the new folder? This is a great feature of the opening. Now, I create a folder, going back to imported pictures, showcasing pictures and dragging them. Making them automatically become part of the newly created folder would save a lot of time. Can't find it.

    Thank you

    Roger

    It is completely controlled in the Panel to the right of the import dialog box. You specify that you want to import to a subfolder and name the subfolder. Then in the folder tree that appears, you choose the folder where you want as the created subfolder. It is well illustrated in the following video. It takes about 15 min, and what you want to see is towards the end. But it is worth watching the whole video. The video was created for Lightroom 5, but applies to other versions as well.

    Lightroom 5: import your Images - YouTube

  • The difficulty to create a folder with folder.create in CC 2014

    I run the code that used to work in CC. Before AE, it would create a folder. Now CC 2014, I get a runtime error. What gives?

    var file = new file ("F:\\! ARCHIVE");

    Alert (Folder.Exists); true

    file = new file ("\\TEMPFOLDER" + folder.absoluteURI);

    Alert (Folder.AbsoluteUri); // /f/! ARCHIVES/TEMPFOLDER

    If (! folder.exists)

    Folder.Create (); folder is not created, an error message

    Alert ("Success"); never racing

    This works for me in 2014 to CC. Is it possible that you don't have the preference set to allow scripts to write files?

    Dan

  • A folder with subfolders and zip files

    Hello

    Is it possible for a folder, including its subfolders and files in a single zip file?

    Look at the answer of @jomurray here, you will also find a sample application @BojanKogoj work down.

    https://supportforums.BlackBerry.com/T5/native-development/creating-a-zip/m-p/3120974/highlight/true...

  • How to create a fold with depth effect

    Hi all

    I'm fairly competent in Illustrator, and yet I have trouble understanding how this effect below has been created. On a sharp angle folds are easy to get my head round, but these is particularly delicate. In particular the area around the "bend" where you see the change of line width.

    I suspect a 3D application may be involved, but I am sure that this can be created in Illustrator only.

    Anyone has any idea how it would have created? Thanks to the incredible work of Hey Studio - http://heystudio.es/

    Thanks in advance

    03FCCh2.jpg

    It could be as simple as creating your path to the left and your way, creating a mix between them, and then making some Pathfinder work.

  • AppleScript - creat a folder, subfolders and fill it with the sample image

    Please help me to achieve this goal, no doubt, simple goal.

    I did only a very small amount of applescripting before and always slaughtered other scripts of resources available online but am having hard to identify ways to achieve this.

    I would like to use applescript to automate the creation of a simple folder NewFolder and newSubFolders structure in a destination that the user can choose and the number of subfolders (subCount), selected using the command prompt:


    subCount value to text returned of (display dialog "how subfolders?" by default of answer 85)

    The NewFolder will always be in a format of date backwards for example 160202 for 2 February 2016.

    The sub folder names end with 3 numeric characters, leading 0s to whole number less than 100:

    160202_001, 160202_002, 160202_003 etc etc.

    With all these responses need the user to select an image file and duplicated it or should that be copied to all of the subfolders created by this script.

    All I got so far is to create a script that creates the folder with subfolders structure, but does not work how do the names of the end of records with 3 numeric characters or find out how copy/duplicate a file for each subfolder created by the script.

    Here's my starting point:

    the value JobName to text returned of (display dialog "Please enter Date reference:" default of '160411' response)

    loc to choose a folder with guest "choose the Parent folder location:

    say application 'Finder '.

    targetFolder value to create a new folder in loc with properties {name: JobName}

    end say

    Repeat

    subCount value to text returned of (display dialog "how subfolders?" by default of answer 85)

    Try

    If subCount ≠ "" then

    whole subCount

    output Repeat

    end if

    end try

    end Repeat

    Repeat with I have from 1 to subCount

    display the dialog box "my variable:"& I ".

    say application "Finder" to create a new folder to targetFolder with properties {name: JobName & "_" & I}

    end Repeat

    filetoCopy to Choose file with prompt "choose the image file to be copied."

    display the dialog box "my variable:" & filetoCopy ".

    It does not really matter I order in which the script should occur, i.e. the image file to be copied can be selected first before the creation of the all the subfolders etc... as long as the end result is the same structure.

    I had a look by adding leading 0s to a name of folder but don't really understand how I could do within the repetition that exists in my script.

    Any help much appreciated.

    Mike

    Although this still needs a lot of storage (including the addition of error checking) I managed to get working folders creating and copying a file to the set of folders.

    I'd appreciate it again any help in renaming with 000 leader after the _in, folder names.

    Here's where I'm up to:

    the value JobName to text returned of (display dialog "Please enter Date reference:" default of '160411' response)

    loc to choose a folder with guest "choose the Parent folder location:

    say application 'Finder '.

    targetFolder value to create a new folder in loc with properties {name: JobName}

    end say

    Repeat

    subCount value to text returned of (display dialog "how subfolders?" by default of answer 85)

    Try

    If subCount ≠ "" then

    whole subCount

    output Repeat

    end if

    end try

    end Repeat

    Repeat with I have from 1 to subCount

    say application "Finder" to create a new folder to targetFolder with properties {name: JobName & "_" & I}

    end Repeat

    say application 'Finder '.

    _destination to choose a folder with guest from "choose the main folder created above:

    filetoCopy to Choose file with guest "choose image file copy:

    display the dialog box "my variable:" & filetoCopy ".

    the value _listOfDest to (each of _destination folder ) as alias list

    Repeat with CurrentNumber from 1 to (count _listOfDest)

    duplicate filetoCopy file to the file (article of _listOfDest CurrentNumber)

    end Repeat

    end say



  • New symptom: newly created empty folder 'C:\history' after the startup of Windows 7.

    Lately, I find that an unwanted newly created empty folder "C:\history" after start up Windows 7 Ultimate on my computer.  Is this a symptom of a new invader?  I have no problem remove immediately after the start when checking my file to the root of the C drive.

    You can create a file named C:\History which would prevent the mystery application creates a folder with the same name and hopefully generate an error message.

    This command creates the file when it is run in a command prompt :

    CD 2 > c:\History

  • How to remove the folder with name

    Hi all

    I had created a folder with a name, using ALT + 0160, but now iam not able to delete or rename it.pls tell me how to remove it.

    You get an error message when you try to delete it?

    Boot into safe mode and see if it will remove. If this is not the case, try this tool.

    Unlocker File Remover

    Download it from FileHippo
    http://filehippo.com/download_unlocker/

    Download from CNET
    http://download.CNET.com/WOT/3000-2378_4-75011499.html

Maybe you are looking for

  • Portege R - 400 3 G modem freezes VMWare Player 3.0 in Windows 7

    Hi all I have a problem following needs your help. I have a Portege R-400 with 3 G build-in modem. It is installed Windows 7. All is well until I install the VMWare Player 3.0. Without modem 3G connection, each application still works fine. (I use Wi

  • No sound on Mac Pro 10.8.5

    I have no microphone on my Skype but the mic complete on macpro10.8.5 All the settings are correct, I can hear and to another caller, but they cannot hear me at all? Help

  • power supply ON / OFF

    I need to turn off the output of power supply through program. If it's Agilet E3631E, using the instrument driver and I programmed and it works fine. For automation, the output of the power supply should WIDE when the the current beyonds all limits.

  • my screen has spilled on the side on my laptop?

    My display got spilled on the side, on my laptop when the neighbors cat ran through my computer laptop. - PLZ help me to get this overturned on the right rear. the arms are sore n I'm handicapt. have a good laugh, but please help. Thank you.

  • E1 - 572G - internet driver problem

    Hello Today I installed Windows 7 on my laptop aspire E1 - 572G and I have problem with Broadcom driver. When I try to install this driver, it says error 1185 update.cpp. Any ideas? Thank you Here's the ID: PCI\VEN_14E4 & DEV_16B3 & SUBSYS_07751025 &