• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 22 Jan 2001 14:44:47 -0800

On 1/22/01 1:44 PM, Shane Stanley <email@hidden> wrote:

> if myType is "W8BN" then
> set name of aFile to (name of aFile & ".doc")
> else if myType is "xyza" then
> set name of aFile to (name of aFile & ".xyz")


set fileName to name of File
set filename to trunc(filename)
if myType is "W8BN" then
set name of aFile to (Filename & ".doc")
else...

on trunc(myfile)
if length of myfile is greater than 27 then
set myfile to text 1 thru 27 of myfile
end if
return myfile
end trunc

This ensures that the filename doesn't exceed 31 characters.

--Michelle


----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------


  • Prev by Date: Re: entire contents of folder
  • Next by Date: [ANN] Report on AS 1.5.5 from AppleScript Sourcebook
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread