Re: Change the case of file names
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