• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help! Need an AppleScript in a hurry! (Create text files based on file names)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Sorting IP addresses - Progress
  • Next by Date: Re: Help! Need an AppleScript in a hurry! (Create text files based on file names)
  • Previous by thread: Help! Need an AppleScript in a hurry! (Create text files based on file names)
  • Next by thread: Re: Help! Need an AppleScript in a hurry! (Create text files based on file names)
  • Index(es):
    • Date
    • Thread