AppleScript to create working folders

Hello I'm doing a script to create folders of work based on the "account number" and the name of the account.  I have far below but do not know how to add as prefix work in subfolders.  The end for files format should be as follows:

(Number of jobs) (working name)

(Number of jobs) Drawings and models

(Number of jobs) Documents

(Number of jobs) Received

example:

6234 test work

6234 designs

6234 documents

6234 received

Code so far:

jobNum value to text returned of (display dialog "enter a project number:" default of response "")

jobName put to text returned of (display dialog "enter a job name:" default of answer "")

game folderpath to (choose folder with prompt "Select client file")

the value newJobFolder to my newFold (jobNum, jobName, folderpath)

on newFold (number, theName, Folder)

the value subNameList to {"drawings", "Documents", "Successful"}

itemCount value to the County of subNameList

say application 'Finder '.

the value newJobFolder to (create a new folder to Folder with properties ¬)

({name: the number & "" & theName})

Repeat with I have from 1 to itemCount

create a new folder to newJobFolder with properties ¬

{name: "" & point of subNameList I "}

end Repeat

end say

end newFold

any help would be appreciated.  Thank you.

Replace:

{name: "" & point i of subNameList "}

with:

{name: jobNum & "" & point i of subNameList}

(139039)

Tags: Mac OS & System Software

Similar Questions

  • Create shortcut folders does not work all the time?

    I needed to create multiple folders shortcut for a project that needs them often, and I just couldn't. Still, I remember in the past and one of them actually have on my desktop for my photos.

    It appeared that in folder trees if I right click on the folder you want, "create shortcut" Option did not show upward! the same with the folders on my desktop would be! If rich of this conclusion, I copied my "recalcitrant" folder on the desktop (had to cut short the copy because it was great!), but got a copy of it on my desk (with only what he had time can be fully copied!). Then right clicked on it and the shortcut option appeared! I re routed the path to the original on my D drive folder and it works well.
    Obviously something does not work as it should and I don't have to do all this, so I hope someone knows the answer to this problem. Maybe a stupid option that must be checked on somewhere...

    I don't know if this is your question or not because it should either work, or not at all. The first fix, here is a zip file which will certainly not hurt to try. It's my answer for those who have reported lately that the new folder option did not work in Win7 canned.

    Do, or you have installed Chrome? It appears that an update of Chrome, (mid April 2013), is responsible. Here are two patches.

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

    If for any reason, the zip file doesn't work for you, check out the 'response' by Linda Yan in this thread.
    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf/#99395761-56de-4a76-8C2A-eab498ad735a

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.

  • cannot create new folders in windows and CTRL + SHIFT + N is not no longer works

    In recent weeks, several of my users are complaining about creating new folders I was bryint to find a solution to problems.

    CTRL + SHIFT + N does not

    Doesn't ' t works in Mode safe

    Will work in command prompt (only tried Admin level)

    Thoughts of Linda to change the registry do not work in Win7 - so I'm sutck

    Anyone have any ideas?

    I am surprised that this has an impact on several machines that he is no more be written on it.

    Hello
     
    The question you posted would be better suited for COMPUTING public Pro on TechNet. I would recommend posting your query in the TechNet Forums to get help:
  • AppleScript no longer works after upgrade to Cougar in Yosemite

    Hey all,.

    I have an AppleScript that I use for my business that automates a process that I use on a daily basis. This script automatically does the following:

    • Creates a working within a customer folder folder
    • Created employment record is based on the date with an optional description
    • Creates a subfolder in the working folder for the original files from the client to the format of files, final files, etc..
    • Highlights the Client record in the color of the red label
    • Highlights the new folder of work also in the color of the red label
    • Sets a reminder that this new job is in my ToDo list

    This script is great and works like a charm in Mountain Lion.

    However, I upgraded a system test to Yosemite and my script fails.

    I get the following error message:

    "The path variable is not defined.

    I am stuck and don't know what has changed from Cougar in Yosemite that would cause this error.

    I would really appreciate it if someone could review this script and maybe let me know how to fix this error.

    Here is my script:

    on run {input, parameters}
    
      set thePath to the first item of the input -- just one
    
      tell (current date)
      set textMonth to text -2 thru -1 of ("0" & (it's month as integer)) -- leading zero
      set textYear to text -2 through -1 of (it's year as text)
      end tell
    
      set jobName to text returned of (display dialog "Please enter the three letter company code:" default answer "Three Letter Job Code")
      set jobNum to text returned of (display dialog "Please enter Job Number/Date:" default answer {textMonth & textYear & "01"})
      set jobLang to text returned of (display dialog "Please enter Project & Description:" default answer "SCH Card 1 PDF")
      set jobNumName to jobName & jobNum & " - " & jobLang
    
      try
      makeFolderStructure out of {jobNumName, {"Client Originals"}, {"Fax"}, {" FORMATTED FILES"}, {" FINAL DELIVERABLES"}, {" TRANSLATION FILE"}} at thePath
      on error errorMessage number errorNumber -- oops
      activate me
      display alert "Error " & errorNumber message errorMessage
      end try
    
      tell application "Finder"
      # parent folder
      set the label index of thePath to 2 -- 2 = red
      set the folder_name to the name of thePath
    
      # child folder
      get ((thePath as text) & jobNumName) as alias
      set the label index of the result to 2 -- 2 = red
      end tell
    
      -- Adds an item in the iCal ToDo list for this job
      set summarycal to folder_name & " - " & jobLang
      tell application "Reminders"
      set theList to list "Send to Translators"
      set newToDo to make new reminder with properties {name:summarycal, container:theList}
      end tell
    
      return thePath
    end run
    
    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
      tell application "Finder" to make new folder at someFolder with properties {name:someItem}
      end if
    end makeFolderStructure
    

    The script is intended to be run from Automator, where the previous action provides an entry point for the variable in Run the AppleScript action in a workflow.  If this is still the case, you could try to load your workflow in Automator and re-save.

  • cannot create new folders on windows 7

    It started happening a while back and I thought nothing of it, but now it's a problem. Whenever I try to right click on my desktop right click window won't open. It just loads for a while and then it crashes with a "Internet Explorer has stopped working". I don't even use IE and it becomes a big problem because it crasehd click on my pc when I can. Anyone know anything about this?

    It is the answer to not be able to create new folders. If it helps doesnl with IE crashing, make a separate thread on this in the forum IE.
     
     
    Do, or you have installed Chrome? It appears that an update of Chrome, (mid April 2013), is responsible for the loss of the option new folder. Even if Chrome has not been installed, here are two patches.
     

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     
    If for any reason, the zip file doesn't work for you, check out the 'response' by Linda Yan in this thread.
    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf/#99395761-56de-4a76-8C2A-eab498ad735a
     
     
    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
     
     
  • Cannot create new folders in Windows 7

    Had no problems in the past creating new folders in my documents or elsewhere.  Can't do it now.  I tried recovery tool and that did not work.

    Any suggestions?

    Do, or you have installed Chrome? It appears that an update of Chrome, (mid April 2013), is responsible for the loss of the option new folder. Even if Chrome has not been installed, here are two patches.
     

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     
    If for any reason, the zip file doesn't work for you, check out the 'response' by Linda Yan in this thread.
    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf/#99395761-56de-4a76-8C2A-eab498ad735a
     
     
    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.

     
  • I can not create new folders. And then I discovered that I have more problems.

    I can not create new folders.   So, I tried to create a restore point, and who do not also have. He said that the restoration of the system did not completely & system files and settings were not changed.  Details: System Restore could not access a file.  It's probably because an antivirus program is running.  So I have disabled all programs and I still got the same message when I tried to use system restore.  I tried the SFC scan.  The scan SFC says he found no violation of integrity.  I could not create a new user, because it says that the user profile service does not log on.  Failed to load the user profile.  So I am totally confused. I recently followed the instructions on your site, to create a new Normal template as mine has been altered.  That worked very well, but all of a sudden, no new files cannot be created.

    Hi Sara,.

    I suggest you follow the steps provided by Linda Yan dated from Monday, May 24, 2010 08:38 , the following link and check if it helps.

    http://social.technet.Microsoft.com/forums/en/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf

    Registry warning: back up the registry

    Please update us with the State of the question and we will be happy to help you.

  • Cannot create new folders from anywhere!

    the ability to create new folders is lost. Help, please. I'm in big trouble. Some sites said I have to recreate the program stuff. Another suggested first, I try what follows, but can not find props everywhere, even in research. Also, do a right click on search does not work.

    Use the (SFC.exe) System File Checker tool to determine which file is causing the problem and then replace the file. To do this, follow these steps:

    1. Open an elevated command prompt. To do this, click Start, click principally made programs, Accessories, right-click guest, and then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click allow.
    2. At the command prompt, type the following command and press ENTER:
      sfc/scannow

      The sfc/scannow command analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.

    Hello

    1. what happens when you search for "cmd" in the start menu to search?

    2. what happens when you create a new folder? Do you get any error messages?

    3. what happens when you tried to create a new folder in safe mode?

    4. are you aware of changes to the computer before the show?

    Some of the registry keys could have damaged or needs to be repaired. It can also occur if there is no third-party program is blocking approval. We will analyze and identify the cause of the problem.

    Method 1: Safe Mode

    Start your computer in safe mode and check the number.

    To start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Method 2:

    Try using the command prompt and try to create a new folder and check if you can create a.

    To do this, follow the steps below:

    a. Click Start.

    b in the start search box type CMD and press to enter.

    c. type cd... publicity and press ENTER, repeat the cd... and press ENTER until you have c:

    d. now, type the following at the command prompt:mkdir folder_name
    Here, folder_name is the name of desired folder

    e. check if the folder is created in the drive C

    Method 3:

    If you are able to open CMD method 2, you can try to scan SFC and check. See the steps. :

    Perform a SFC scan on your computer. Consult the following link:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Method 4:

    "If the problem persists, I suggest you to consult the steps mentioned by.
    Linda Yan' article.

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following windows Help article.

    Back up the registry
    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    Hope this information helps.

  • How to use AppleScript to create a menu shortcut in figures?

    Does anyone know how I can create a pop up menu numbers using AppleScript.

    say application "Numbers".

    activate

    say le first table of the sheet active of the document 1

    the value the format of cell "B3" to popup menu

    end say

    end say

    I can create a pop up menu by using this code, but this is the default list.

    If I have a composed list {'mouse', 'Keyboard', 'Trackpad'}, how would be to create a context menu with these items?

    Thanks in advance.

    Steve Longley

    Hi Steve,.

    I wonder why you feel the need to use (or what you think you would get to use) an AppleScript to create a cell in the context menu.

    With the help of numbers 3, it's a fairly simple process:

    Open a table, or use a column with enough empty cells to accommodate the menu in the menu items.

    Access to the list of items of a line in your column.

    Select all cells that contain entries.

    Open the Inspector to Format, choose the cell, choose the context menu.

    Any selected cell now contains the same menu, each set to the original value in this cell.

    If you want that each menu includes a "white" cell, then:

    Select all the cells (three).

    Modify the beginning with... pop - up 'Start with white '.

    Click on one of the cells, and then click control v next to the cell to display the menu choices. Each cell contains the same menu with the value initially entered in the selected cell, so what a no point, which will produce a cell empty, at the top of the list.

    The menu can be copied and pasted into other places or can be filled in the column or line using the handles to fill yellow appearing in the centres of the edges of the cell when the mouse cursor is brought near. The cell glued/filled setting will be the same as that of the pasted source cell.

    Kind regards

    Barry

  • Why my photo album create multiple folders and duplicate my photos in folders?

    Why my photo album create multiple folders and duplicate my photos in folders?

    Can you give us more details about your problem? When this happens? It's an update of iOS for a newer version?

  • Create several folders with several folders in the rapids

    How can I quickly create several folders with a specific set of folders in each of them?

    for example:
    Folder1-> test1, test2, test3...
    Folder2-> test1, test2, test3...
    Folder3-> test1, test2, test3...
    etc.
    I want to create several folders named specifically with an ID I'll specific, and in each of these cases, I would like to have a set of folders.
    Thank you for your help.

    Hello

    Check out the steps suggested by Steve Winograd and TechHead74 in http://answers.microsoft.com/en-us/windows/forum/windows_xp-files/how-or-can-i-create-numerous-new-folders-instaed/a2a67066-7e97-47b3-aba4-8e8a1a460ca3

    Hope this helps you.

  • Cannot create new folders

    After you perform a system restore, I find that I have more freedom to create new folders or something new when I right-click. Anyone have any ideas?

    Hi JakStraw,

    ·         You get the error message?

    ·         Have you tried to create the folder in safe mode?

    Follow these methods.

    Method 1: Performs a search using the Microsoft safety scanner.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Method 2: Run the fixit of the article.

    Diagnose and repair Windows files and folders problems automatically

    Method 3: Scan the file system (CFS) auditor to repair corrupted files.

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

    http://support.Microsoft.com/kb/310747

  • I'm using wondows mail in windows vista, I created some folders under the folder spam I deleted by mistake, is option there anyway, I can recover those email folders?

    I'm using wondows mail in windows vista, I created some folders under the folder spam I deleted by mistake, is option there anyway, I can recover those email folders?

    Have you checked in the deleted items folder? If they are not there, you will have little luck with this tool.
     
    Search for .eml files.
  • X 64 Vista - Home Premium SP2 - game Second Life-need to create 2 folders to destination AppData or separate directories for the Viewer 1.23 and 2.2 caches

    I'm not a developer or a tech: only second life 1.23 is loaded on the computer – no productivity software. I need to create 2 folders to separate destination (or directories) to the SL Viewer 1.23 and Viewer 2.2 caches.  Right now the 1.23 cache is stored in the folder AppData/Local.  When 2.2 is downloaded, it will not replace 1.23, but things & Stuff Blog of Nalates Wordpress (also a contributor to regular Forum SL) recommend to around 2.2 to another 'file' or 'directory' cache (before the opening of 2.2 for the 1st time) to prevent the inventory and avatar problems loading again (when I had 2.1 load on the computer with 1.23) when I switch using the Viewer 1.23 and Viewer 2.2.  I don't know how to do this, but reading the wiki in Second Life in caches that directed me to the website of Microsoft, it seems that I need to get/use one command Linkd.exe which is part of the Windows Server 2003 Resource Kit Tools - but a note on the site of Microsoft for the Kit, under requirements of the States that the Kit is not supported supported on 64-bit platforms.  What to do please?  TY

    Hello

    a. go to the Preferences tab which displays your location of the cache.

    b. click on the 'Browse' (viewer 2.0) or the button "Set" (Viewer 1.23), create a new folder in a convenient (for example on your desktop) and select the folder to be your new location of the cache. Relog.

    c. This will give you a nice clean cache folder and do delete everything out of it easier in the future. If you use 3rd party clients, such as the Kirstens display, you might want to give them a separate folder, if they themselves (for example, Kirstens viewer uses "s20 C:\Users\yourusername\AppData\Local\Kirstens")

    Azeez Nadeem - Microsoft Support [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Cannot creat new folders in Windows 7 Home Premium

    I am running Windows 7 Home Premium. For some time, I was not able to create new folders. The only option under New's case, among other things, that I never use. I was using Dell DataSafe Online and after several months of backups without a hitch, he began to make files and folders disappear whenever he did a backup, although I could find them with a search. When I tried to create a new folder with the same name that the old man he would find the old one, ask if I wanted to merge them, and another would disappear as well. Over time, the option create a folder disappeared also.

    I tried the suggestions here:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/unable-to-create-a-new-folder-in-Windows-7/3c5951c8-e3b0-4E5B-99A5-744f842fe558

    And here:

    http://social.technet.Microsoft.com/forums/Windows/en-us/97de8a2a-12f2-4381-A409-a78f4ae551cf/cannot-create-new-folder-in-Windows-7?Forum=w7itprogeneral

    No solution.

    Can anyone help!

    When you do research, you see the path to the folder? Can drag you the folder to another location, such as desktop or My Documents?

    Make sure that the folder is not hidden. Right-click on it and select Properties.

    In addition, enable hidden files.

    In Windows Explorer, Win + E key, tools | Folder options | View. Show Hidden files, folders, or drives.

Maybe you are looking for

  • How to delete some of my reading list?

    Is there a button where I could check then all, none, or individual listed items?

  • How to use wireless in Satellite L305-S5968

    I recently bought a Toshiba Satellite L305-S5968 and I have never used or been able to put in place a wireless PC.Exactly how I can use this PC to be wireless so I can connect for free to the local library. My wireless card is: Realtek RTL8187B Wirel

  • Question of time server Internet

    Is it possible to change the time server for the clock in time.nist.gov XP (does not work) to nist.time.gov (does not work)?

  • Facebook app?

    Anyone know if I can get a facebook application for my pc? I have windows 7. If yes where?

  • Cannot open the InputStream?

    Hello I have a J2ME MIDlet application that works fine on all my mobile (Nokia, Sony...) and now wanted to try on my BB 9000. In the emulator, it works perfectly, but on the device real it doesn't and I had not the slightest idea why. So I start on d