• 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
When Is An Extension Not An Extension?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When Is An Extension Not An Extension?


  • Subject: When Is An Extension Not An Extension?
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 12 Feb 2010 13:15:42 -0600

In Snow Leopard, I've been experimenting with this script ...

on open dropList
if (count items of dropList) > 1 then return
set dropAlias to (item 1 of dropList) as alias
tell application "Finder"
if (class of item dropAlias) is not folder then return
(name of dropAlias) & return & "[" & (get name extension of dropAlias) & "]"
display dialog the result
end tell
end open

The folder named "Automator.framework" has an extension of "framework",
but the folder named "Agnes.SpeechVoice" has no extension.
A folder given the name "untitled.pkg" isn't a folder (expected) and
a folder given the name "untitled.xyz" has no extension.

This prompts the question: "Exactly what is a 'name extension'?"

 _______________________________________________
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: When Is An Extension Not An Extension?
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Troubles with Snow Leopard .2 / MacBook UniBody (2.4GHz, 2008-11)
  • Next by Date: Re: When Is An Extension Not An Extension?
  • Previous by thread: Troubles with Snow Leopard .2 / MacBook UniBody (2.4GHz, 2008-11)
  • Next by thread: Re: When Is An Extension Not An Extension?
  • Index(es):
    • Date
    • Thread