This is a command-line tool that lets you access, add and alter exif tags. Naturally it can be called from AppleScript using the "do shell script" command.
Apple included a similar command-line tool called "sips", but that causes quality loss (at least when used on JPEGs), so I do not recommend it.