When Is An Extension Not An Extension?
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