|
|
Create multiple folders from Terminal
-- AppleScript wrapper to execute UNIX shell scripts with a drag and drop interface. -- Found basic script at http://MacOSXHints.com -- Modified to Create directories from a list stored one per line in a file dropped on the script -- script should handle spaces in name, apostrophes in names, etc... -- Bob Harris 25-Apr-2006 on open filelist repeat with dir in filelist do shell script ¬ "while read dir;do mdir -p \"$dir\";done <" & quoted form of POSIX path of dir end repeat end open
Create multiple folders from Terminal
Bob: your kind offer of an Applescript was appreciated. It didn't compile for me, though. It breaks at the $ sign, saying "Syntax error Expected end of line but found unknown token".
Create multiple folders from Terminal
I thought I found a typo or two, so I changed Bob's script a bit, but still no results. I changed the quotes around $dir to single quotes, and that allowed the script to compile, but it did nothing. I saved it as an app and dropped a plain text file, with names, one per line, on it.
Create multiple folders from Terminal
This is my 3rd attempt at getting this Applescript posted cleanly. First I lost the < because it looked like the start of an html tag. The 2nd time I lost the \'s and messed up the mkdir spelling. This time I'm just going to use Plain Old Text, and the heck with indentation and hope that line wrapping doesn't happen |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|