Don't mean to tromp on your toes AppleScript, but I hardly use Apple Script myself and have only a vague idea how to follow your advice. So here is how I would do it.
Download the freeware utility
MuchoFileInfo. Launch it, and drag the funny file into the MuchoFileInfo window. In the
Type text box, type
APPL and close the window. Done.