Re: How to Create Finder Folders from BBEdit Text List

2019-01-23 Thread Chad Myers
As an alternative to changing IFS, you can quote or escape the spaces in the text file normally and then use eval to run the output through the shell parser again before mkdir executes. dirs.txt: dir2 dir 3 dir\ 4 dir5 "dir 6 7" eval mkdir `cat dirs.txt` # or eval mkdir $(cat dirs.txt),

Re: How to Create Finder Folders from BBEdit Text List

2019-01-23 Thread Chad Myers
As an alternative to changing IFS, you can quote or escape the spaces in the text file normally and then use eval to run the output through the shell parser again before mkdir executes. dirs.txt: dir2 dir 3 dir\ 4 dir5 "dir 6 7" eval mkdir `cat dirs.txt` # or eval mkdir $(cat dirs.txt),

Re: How to Create Finder Folders from BBEdit Text List

2019-01-18 Thread Christopher Stone
On 01/16/2019, at 19:03, Dave mailto:dave.live...@gmail.com>> wrote: > Thanks, Chris. I've always used that literal newline inside single quotes in > scripts and the command-line, but people think there's something wrong when > they see that continuation prompt. Hey Dave, The specific point

Re: How to Create Finder Folders from BBEdit Text List

2019-01-16 Thread Dave
Thanks, Chris. I've always used that literal newline inside sigle quotes in scripts and the command-line, but people think there's something wrong when they see that continuation prompt. On Wednesday, January 16, 2019 at 2:33:22 PM UTC-5, Christopher Stone wrote: > > Hey Dave, > > Something

Re: How to Create Finder Folders from BBEdit Text List

2019-01-16 Thread Christopher Stone
On 01/16/2019, at 08:56, Dave mailto:dave.live...@gmail.com>> wrote: > I have a correction to make. I don't think there's actually any way to escape > the spaces or quote the folder names in list like this, so if you need to use > folder names with spaces (something I avoid, btw) what you need

Re: How to Create Finder Folders from BBEdit Text List

2019-01-16 Thread Dave
I have a correction to make. I don't think there's actually any way to escape the spaces or quote the folder names in list like this, so if you need to use folder names with spaces (something I avoid, btw) what you need to do is to remove the space charater from the $IFS environment variable,

Re: How to Create Finder Folders from BBEdit Text List

2019-01-16 Thread Bucky Junior
I suppose we may all have different keyboards. I have an “enter” key over by the number pad while “return” is closer to the letters. Control-Return must be mapped to “enter.” Bucky > On Jan 15, 2019, at 8:30 AM, ThePorgie wrote: > > According to the manual "Control-Return" should be used. --

Re: How to Create Finder Folders from BBEdit Text List

2019-01-16 Thread Sam Hathaway
I generally like to give examples that are as bulletproof as is practical, because I don't know how folks are going to apply them. On January 15, 2019 11:10:54 PM Dave wrote: If you have a space in a folder name, you’ll get two folders unless you quote it. Not what I’d call “blowing up.” I

Re: How to Create Finder Folders from BBEdit Text List

2019-01-15 Thread Dave
If you have a space in a folder name, you’ll get two folders unless you quote it. Not what I’d call “blowing up.” I only tried it with 330 names. I’m sure there’s a limit, but I don’t know what it is. If you need more folders, make more lists. Or use a loop if it makes you happy. -- This is

Re: How to Create Finder Folders from BBEdit Text List

2019-01-15 Thread ThePorgie
I couldn't get this to workSo as an absolute last resort I peeked at the manual. ;-). According to the manual "Control-Return" should be used. That worked like a charm for me. On Wednesday, January 9, 2019 at 8:54:54 PM UTC-5, jajls wrote: > > On 2019 Jan 9, at 20:27, Bill Kochman > >

Re: How to Create Finder Folders from BBEdit Text List

2019-01-15 Thread Sam Hathaway
On 15 Jan 2019, at 8:04, Dave wrote: mkdir accepts multiple arguments, so assuming you have a list of names called “foldernames.txt,” you can just enter: mkdir `cat foldernames.txt` instead of using a loop. This will blow up if your list of folder names is too long, or if your folder names

Re: How to Create Finder Folders from BBEdit Text List

2019-01-11 Thread Bill Kochman
Chris, okay. my next request should be pretty easy, and probably only requires some minor modifications to the script that you already sent me. I am creating a new section on my website consisting of 300 HTML documents. I have a current HTML document which I want to duplicate 300 times.

Re: How to Create Finder Folders from BBEdit Text List

2019-01-11 Thread Bill Kochman
Thank you Christopher. I figured it out. I’m just a little slow when it comes to understanding these things. :) > On Jan 12, 2019, at 5:51 AM, Christopher Stone > wrote: > > On 01/11/2019, at 01:18, Bill Kochman > wrote: >> Are you saying that I need to

Re: How to Create Finder Folders from BBEdit Text List

2019-01-11 Thread Christopher Stone
On 01/11/2019, at 01:18, Bill Kochman mailto:wordweaver...@gmail.com>> wrote: > Are you saying that I need to paste in a long list of the folder names in > that variable? If so, do I need to separate that by commas, or spaces, or one > name per line, or what? Hey Bill, See how I've placed the

Re: How to Create Finder Folders from BBEdit Text List

2019-01-10 Thread Bill Kochman
Hello Christopher, I apologize for the delay in acknowledging your message, but I have been really busy here. I understand how to make AppleScripts in the AppleScript Editor. However I don’t quite understand you where you say "Place your folder name list in the variable folderNameList”. Are

Re: How to Create Finder Folders from BBEdit Text List

2019-01-09 Thread Christopher Stone
On 01/09/2019, at 19:27, Bill Kochman mailto:wordweaver...@gmail.com>> wrote: > Basically, I have a BBEdit text file with a list of about 300 folder names > alphabetically listed in it, one name per line. I need a script which will > take those 300 names, and create actual folders with those

Re: How to Create Finder Folders from BBEdit Text List

2019-01-09 Thread Bill Kochman
Thank you for your input, Jeffrey. I will try both your and Sam’s suggestions a bit later today after I finish working on the HTML end of things. > On Jan 10, 2019, at 11:51 AM, 'Jeffrey Jones' via BBEdit Talk > wrote: > > On 2019 Jan 9, at 20:27, Bill Kochman

Re: How to Create Finder Folders from BBEdit Text List

2019-01-09 Thread 'Jeffrey Jones' via BBEdit Talk
On 2019 Jan 9, at 20:27, Bill Kochman wrote: > > I have a BBEdit text file with a list of about 300 folder names > alphabetically listed in it, one name per line. I need a script which will > take those 300 names, and create actual folders with those exact names on my > hard drive in a folder

Re: How to Create Finder Folders from BBEdit Text List

2019-01-09 Thread Sam Hathaway
BBEdit might make this unnecessarily complicated. A shell one-liner would suffice. In the terminal: cd /path/to/base/folder cat /path/to/foldernames.txt | while read; do mkdir "$REPLY"; done You can drag your base folder and text file into the terminal window instead of typing the full paths.