• 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: change from upper to lower case
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: change from upper to lower case


  • Subject: Re: change from upper to lower case
  • From: Emmanuel <email@hidden>
  • Date: Fri, 19 Dec 2003 16:47:16 +0100

At 2:43 PM +0000 19/12/03, Buttery, Ian wrote:
>Hi,
>
>Does anyone know of a script to change a folder of 400 files from upper case to lower case, for example
>
>H001H44 to h001h44
>C251C56 to c251c56

If you can afford using Smile (the other free editor for AppleScript), you may run the following script in Smile:

----------------- untested
set theFolder to [your_folder_path_here]
set theListOfFiles to (list files alias theFolder)
repeat with theFile in theListOfFiles
set theFile to contents of theFile
tell application "Finder" to set theName to name of theFile
set theName to lowercase theName
tell application "Finder" to set name of theFile to theName
end repeat
-----------------

This is faster done in Smile because Smile proposes "list files" and "lowercase". More lengthy scripts will do the exact same job without Smile.

URL for Smile:
<http://www.satimage-software.com/en/smile.html>

Download page for Smile 2.5.9:
<http://www.satimage-software.com/en/downloads_software.html>

Emmanuel
_______________________________________________
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
  • Next by Date: Re: change from upper to lower case
  • Previous by thread: Re: change from upper to lower case
  • Next by thread: Re: change from upper to lower case
  • Index(es):
    • Date
    • Thread