• 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: kai <email@hidden>
  • Date: Fri, 6 May 2005 22:09:12 +0100


On Friday, May 6, 2005, at 07:24 pm, Michelle Steiner wrote:

On May 6, 2005, at 11:13 AM, Mark J. Reed wrote:

Uhm, you asked for other ways to do it. We obliged. So now you're complaining? :) If you think your way is better than the alternatives, great! Keep using it!

No, I'm not complaining. I asked if there were a better way. No one has said why text manipulation is better.

There's not much wrong with any of the methods suggested, Michelle.

I mentioned earlier that I opted for my original approach for considerations of speed. (As it happens, my script was about 5 times faster than yours.) While performance may not necessarily be an issue with individual files, it could become significant when dealing with a number of items.

I believe Malcolm also explained that his suggestion was based around an attempt to get closer to a single line of code - an equally absorbing challenge.

Given that a script actually achieves the desired result, speed, brevity and readability are all valid additional aims (if sometimes mutually exclusive). Since you allowed us the luxury of defining "better", the responses were naturally diverse in their aims.

---
kai

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

  • Prev by Date: Re: Nice Automator article on O'Reilly
  • Next by Date: Re: Illustrator save as PDF; adding extra bleed?
  • 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