Per qualche ragione the name of thePath
si presenta come non definito dal mio flusso di lavoro di 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