Salva il seguente script come applicazione. Copia e incolla in Script Editor (non automator):
on open myItems
set ds to {"file1", "file2", "file3"} # Enter identifiyers
set scriptlocation to {"dothis.app", "imeanthis.app", "PleaseUpvoteMy.app} # Enter scripts location as POSIX path, respectivly
repeat with myItem in myItems
tell application "Finder"
set theName to the name of (myItems as alias)
end tell
set rptvly to getIndex of theName of ds
do shell script "open " & the quoted form of rptvly
end repeat
end open
to getIndex of i from l
repeat with n from 1 to count l
if (i as string) contains ((l's item n) as string) then return n
end repeat
0
end getIndex
Commenta eventuali errori mentre sono su Mojave beta e ho problemi con dove non riesco a eseguire sccripts