• 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: Simple newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple newbie question


  • Subject: Re: Simple newbie question
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 17 Jun 2009 14:40:07 -0700


On Jun 17, 2009, at 1:17 PM, Peter Robertson wrote:

How can I get just the name of a file without the extension?

tell application "Finder"
set foo to item 1 of (get the selection)
set hid to extension hidden of foo
set extension hidden of foo to true
set trunc_Name to displayed name of foo
set extension hidden of foo to hid
return trunc_Name
end tell

-- Michelle

-- 
If you're not going somewhere, you're not getting anywhere.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Simple newbie question
      • From: Luther Fuller <email@hidden>
References: 
 >Simple newbie question (From: Peter Robertson <email@hidden>)

  • Prev by Date: RE: Plan E from Outer Space
  • Next by Date: Re: Simple newbie question
  • Previous by thread: Re: Simple newbie question
  • Next by thread: Re: Simple newbie question
  • Index(es):
    • Date
    • Thread