• 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: Laine Lee <email@hidden>
  • Date: Fri, 14 Dec 2007 20:42:21 -0600
  • Thread-topic: Dumb Finder scripting question

On 12/14/07 7:00 PM, "Mark J. Reed" <email@hidden> wrote:

> On Dec 14, 2007 7:03 PM, Michelle Steiner <email@hidden> wrote:
>>
>> 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
>
> Doesn't work OMM.  Still have the extension in |displayed name| even with
> |extension hidden| set to true.

The above did appear to yield the desired results for me with a very modest
amount of testing. Maybe Mark threw a longer list of targets at it. But
performing this type of manipulation doesn't seem much more desirable to me
than text munging. Maybe the current Finder has matured beyond the need for
concern.

--
Laine


 _______________________________________________
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

References: 
 >Re: Dumb Finder scripting question (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Dumb Finder scripting question
  • Next by Date: Re: Dumb Finder scripting question
  • Previous by thread: Re: Dumb Finder scripting question
  • Next by thread: Re: Dumb Finder scripting question
  • Index(es):
    • Date
    • Thread