• 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: Getting filename without extension...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting filename without extension...


  • Subject: Re: Getting filename without extension...
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 4 May 2005 21:03:57 -0700


On May 4, 2005, at 6:48 PM, Malcolm Fitzgerald wrote:

StripSuffix("word.doc.pdf")

to StripSuffix(x)
set my text item delimiters to "."
return reverse of (rest of (reverse of (text items of x))) as string
end StripSuffix

That fails if there is no file extension.

--
Give Peace A Chance.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting filename without extension...
      • From: kai <email@hidden>
    • Re: Getting filename without extension...
      • From: Malcolm Fitzgerald <email@hidden>
References: 
 >Getting filename without extension... (From: David Crowe <email@hidden>)
 >Re: Getting filename without extension... (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: Re: What is the best way to get the name (without the extension) of a file?
  • Next by Date: Re: Unable to really change the window location
  • Previous by thread: Re: Getting filename without extension...
  • Next by thread: Re: Getting filename without extension...
  • Index(es):
    • Date
    • Thread