function getFilename path
  if path is empty then return empty
  set itemDelimiter to ":"
  return last item of path
end getFilename