Re: Help! Need an AppleScript in a hurry! (Create text files based on file names)
Re: Help! Need an AppleScript in a hurry! (Create text files based on file names)
- Subject: Re: Help! Need an AppleScript in a hurry! (Create text files based on file names)
- From: Dave Balderstone <email@hidden>
- Date: Sat, 20 Dec 2003 19:59:23 -0600
Merry Christmas!
Tested very briefly under OS X 10.3.2...
__
tell application "Finder"
set the_Folder to choose folder
set the_Files to list folder the_Folder without invisibles
set File_Num to count of the_Files
repeat with i from 1 to File_Num
set The_Name to item i of the_Files
set the_file_path to the_Folder & The_Name & ".txt" as text
try
close access file the_file_path
end try
open for access file the_file_path
close access file the_file_path
end repeat
end tell
--
djb
"Quando Omni Flunkus Moritati"
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.