On 04/10/15 11:38 AM, "Josh Wisenbaker" <email@hidden> wrote:
Plus it didn't check to see if it had an extension already... This one
does
"on open (theList)
set itemCount to number of items in theList
tell application "Finder"
repeat with theItem in theList
set currentName to the name of theItem
set hasExtension to (character -4 of currentName as text)
if hasExtension is "." then
Wouldn't it be better (in case the file has .s in the name or has a
short
name to use the name extension property of the item?
on open (theList)
set itemCount to number of items in theList
tell application "Finder"
repeat with theItem in theList
set {fType, fExt} to {type, name extension} of theItem
if fExt is not "" then -- etc.
Anything is probably better than that 1 minute hack job I did. :)
I was just trying to give direction, not a full blow solution on a
break at work.