AppleScript zip-to-mail no longer working in Mojave
I have an older AppleScript called zip-to-mail, which I modified to work with my gmail account, etc. It's a relatively simple script that locates a file in the Finder, zips the file, creates a new email, adds the file name and current date as the subject line, attaches the zipped file, mails it to my gmail account, and deletes the zipped file. I have used it for years with several versions of MacOS and it's very convenient. At some point in 2017, unbeknownst to me, the script stopped working. It appeared to be working but the attachments were missing. I happened to look for an archived file from my gmail account the other day and there was no attachment. There was no attachment for the previous message either or the one before that or before that, all the way back to mid-2017. I never saw an error message and the script always ran. If I recall correctly, it was at that point in 2017 that I upgrade my iMac from Mavericks to Sierra. I am now running Mojave, which throws up a couple of security messages during execution of the script (I can click OK). However, my point is that the script is not attaching the zip file as it should and I don't know why. Anyone? The original script, called zip-to-mail, was in fairly common use for several years I believe; simply modified the existing script to suit my personal situation. Anyone?
iMac 21.5", macOS 10.14