• 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: What is the best way to get the name (without the extension) of a file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the best way to get the name (without the extension) of a file?


  • Subject: Re: What is the best way to get the name (without the extension) of a file?
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 4 May 2005 16:40:36 -0700

On May 4, 2005, at 3:06 PM, Gnarlodious wrote:

set fileName to "com.apple.iTunes.eq.plist"
do shell script "echo " & quoted form of the fileName & "| sed 's|\\(.*\\)\\..*$|\\1|' "

I like the code that I write to be something that I can actually read and understand.


-- 

"No" is not a bad word.


 _______________________________________________
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: What is the best way to get the name (without the extension) of a file?
      • From: Gnarlodious <email@hidden>
References: 
 >Re: What is the best way to get the name (without the extension) of a file? (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: Nice Automator article on O'Reilly
  • Next by Date: Tiger breakage: get item of class record
  • Previous by thread: Re: What is the best way to get the name (without the extension) of a file?
  • Next by thread: Re: What is the best way to get the name (without the extension) of a file?
  • Index(es):
    • Date
    • Thread