• 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 the case of file names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change the case of file names


  • Subject: Re: Change the case of file names
  • From: KOENIG Yvan <email@hidden>
  • Date: Tue, 30 Dec 2008 14:55:09 +0100

--[SCRIPT]
set leNom to my convert("THIS IS AN UPPERCASE FILE NAME.png", "lower")
on convert(n, choix)
--choix = "lower"
--set choix = "upper"
--set choix = "title"
return (do shell script "/usr/bin/python -c \"import sys; print unicode(sys.argv[1], 'utf8')." & choix & "().encode('utf8')\" " & quoted form of n)
end convert
--[/SCRIPT]


will do the trick (even with our French accented characters).

Yvan KOENIG (from FRANCE mardi 30 décembre 2008 14:54:44)


_______________________________________________ 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
References: 
 >Change the case of file names (From: Emile SCHWARZ <email@hidden>)

  • Prev by Date: Change the case of file names
  • Next by Date: Re: Change the case of file names
  • Previous by thread: Change the case of file names
  • Next by thread: Re: Change the case of file names
  • Index(es):
    • Date
    • Thread