Try "my isImageFileName".  It's not Mail, just a quirk of AppleScript.

Mail "Can't continue" for a AppleScript function
I would like to know whether it is good practice, according to you, to use this she-bang:

#!/usr/bin/env bash


instead of

#!/bin/bash


This article seems to advocate for the use of /usr/bin/env but when I use it, skepticism appears.

What is your opinion?
