Is this likely to be the origin of such an error, does Applescript care about non-existing files that it shouldn't? Or, is it possible it is offended by the specific enclosing folder, "usr/bin", for some reason? Or is it more likely a mis-directing error, and it's hard to get "if"s and variables (the "$" prefixed kind) to read correctly.