• 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: Long Filenames with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Long Filenames with Applescript


  • Subject: Re: Long Filenames with Applescript
  • From: "Arthur J Knapp" <email@hidden>
  • Date: Fri, 09 Mar 2001 11:26:55 -0500

> Date: Thu, 8 Mar 2001 14:46:31 +0000
> From: Pier Kuipers <email@hidden>
> Subject: Re: Long Filenames with Applescript

>>Unfortunately, I recieve an error if the new name is longer than 31
>>characters. Is there anyway to rename a file to a long name with
>>AppleScript?
>
> As Emmanuel pointed out, that's not possible. However, you can a long
> file name and truncate it to 31 characters with Applescript.


Right. One other point: Mac OSX supports 255 character file names.

tell application "Desktop"

set name of aFile to "123456789 123456789 123456789 1234567890"

end tell


Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden

Hey, check out:
http://www.AppleScriptSourceBook.com


  • Follow-Ups:
    • Re: Long Filenames with Applescript
      • From: Nigel Smith <email@hidden>
  • Prev by Date: (no subject)
  • Next by Date: Re: IP Address
  • Previous by thread: (no subject)
  • Next by thread: Re: Long Filenames with Applescript
  • Index(es):
    • Date
    • Thread