• 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: Dumb Finder scripting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dumb Finder scripting question


  • Subject: Re: Dumb Finder scripting question
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 14 Dec 2007 17:03:08 -0700

On Dec 14, 2007, at 3:26 PM, Paul Berkowitz wrote:

Right. I've wondered why there's no "root name" or something similar,
myself.

on rootName(incoming_file)
tell application "Finder"
if the name extension of the incoming_file is "" then
return the name of the incoming_file
else
set flag to extension hidden of the incoming_file
set the extension hidden of the incoming_file to true
set temp to the displayed name of the incoming_file
set the extension hidden of the incoming_file to the flag
end if
end tell
return temp
end rootName

-- Michelle

-- 
I am a pseudomasochist..  I like it when people pretend to beat me. 


 _______________________________________________
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: Dumb Finder scripting question
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Dumb Finder scripting question (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Dumb Finder scripting question
  • Next by Date: Re: Opening the newest file in a folder
  • Previous by thread: Re: Dumb Finder scripting question
  • Next by thread: Re: Dumb Finder scripting question
  • Index(es):
    • Date
    • Thread