• 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: Emile SCHWARZ <email@hidden>
  • Date: Wed, 31 Dec 2008 08:28:43 +0100 (CET)

Thanks Yvan and Happy New Year.

Emile


> --[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]

 _______________________________________________
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

  • Prev by Date: Re: Change the case of file names
  • Next by Date: Duplicates files in iTunes after running applescript
  • Previous by thread: Re: Change the case of file names
  • Next by thread: Duplicates files in iTunes after running applescript
  • Index(es):
    • Date
    • Thread