Subject: | Provide literal-creation sub |
Virtually every user of your module will want to generate AppleScript commands. To avoid code injection bugs, they'll all need something like the following:
sub text_to_as_lit { '"'.( $_[0] =~ s/([\\"])/\\$1/rg ).'"' }
The module should probably a suitable sub rather than having each of its users recreate it.
Untested. (Not a Mac user.)