Por alguna razón, the name of thePath
aparece como no definido por mi flujo de trabajo de Automator.
on run {input, parameters}
tell application "Finder"
set thePath to the (first item of the input)
set namedFolder to ((the name of thePath) as text)
set namedFolder to ((text 1 thru 13) of namedFolder)
end tell
return namedFolder
end run