Re: Long Filenames with Applescript
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