RE: appending text
RE: appending text
- Subject: RE: appending text
- From: Gary Franks <email@hidden>
- Date: Wed, 16 May 2007 10:56:45 -0500
Thanks Michelle. I am learning a lot from all replies. This list is
great.
G
Here is how I would do it:
set inputPath to (choose folder with prompt "Select the Source Folder")
set outputFile to (choose file name with prompt "Select Destination
File" default location (path to documents folder) default name
"myNewFile")
tell application "Finder"
set sourceFiles to files of inputPath whose creator type is "R*ch"
and file type is "TEXT" as alias list
end tell
set outputText to ""
repeat with thisFile in sourceFiles
set outputText to outputtext & (read thisFile) & return
end repeat
open for access outputFile with write permission
write outputText to outputFile
close access outputFile
tell application "Finder"
set creator type of outputFile to "R*ch"
set file type of outputFile to "TEXT"
end tell
-- Michelle
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden