MACSCRPT Archives

August 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
jeff donovan <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 14 Aug 2007 13:36:18 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
On Aug 14, 2007, at 1:31 PM, Mark Lively wrote:

> On Aug 14, 2007, at 12:55 PM, jeff donovan wrote:
>
>>
>> thanks for the reply Bill,
>>
>> yes close. How can I
>>
>> set folderNames to ( read from file.txt ) ?
>>
> set folderNames to every paragraph of (read (choose file))
>
> where the file has one folder name per line.
>

thanks that worked great!

set folderNames to every paragraph of (read (choose file))

repeat with aName in folderNames
	
	tell application "Finder"
		
		make new folder with properties {name:aName}
		
	end tell
	
end repeat

ATOM RSS1 RSS2