I managed that adding a if command like that

if [ "$f" = "/System/Library/Sounds/Pop.aiff" ]

Cheers