On 21/1/11 1:12 AM, "Mark J. Reed" <[log in to unmask]> wrote:
> Well, if you need the extension, you can get it this way:
>
> name extension of (info for someFile)
Although the dictionary listing for info for says "This command is
deprecated"
> set text item delimiters to "."
> set bareName to text items 1 through -2 of theName as text
Or even:
set text item delimiters to "."
set bareName to text 1 through text item -2 of theName
--
Shane Stanley <[log in to unmask]>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>