You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Apr 11, 2020 10:39 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 11, 2020 2:18 PM

ArbeeNYC Said:

AppleScript zip-to-mail no longer working in Mojave:[...] What I'm looking for is someone who can help debug the script.

———-


Use the Apple Developer Forums:

For a better chance of feedback, post your question here, on: The Apple Developer Forums

Similar questions

12 replies

Apr 11, 2020 12:22 PM in response to ArbeeNYC

ArbeeNYC Said:

"AppleScript zip-to-mail no longer working in Mojave: [...]As indicated above, the script automatically compresses the file, creates a new email message and addresses the message, attaches the file, sends it, and deletes the zip file."

--------


Grant Script Editor Access:

  1. Go To: System Preferences
  2. Select: Security & Privacy Tab

Grant whatever setting this Script Editor is trying to access. You will need to enable this:

Apr 12, 2020 11:26 AM in response to ArbeeNYC

ArbeeNYC Said:

Here's the link: https://forums.developer.apple.com/message/414471#414471

———-


Thanks for providing the link!



Just a Thought:

For Ease of Comprehension:

Being that the text is so much smaller, I recommend dividing it into four or five paragraphs.


One long paragraph, makes it bit tough to comprehend. :)


So, I recommend you report your post on those forums, requesting that it be deleted. Then just repost it once more with four or five paragraphs.


It’s not necessary, but it’s something to consider. Yore more likely to get a reply on there doing so. :)

Apr 11, 2020 1:37 PM in response to ArbeeNYC

I should add that I have added both the script itself and the Script Editor to the Security & Privacy panes (Accessibility and Automation). I still get two warning messages from Mojave about access, but I can click "OK" and the script will run without an error. However, the problem remains. I believe the script might need to be modified for MacOS post-Mavericks. Not sure though.

Apr 11, 2020 2:28 PM in response to ArbeeNYC

ArbeeNYC Said:

OK. I'll give it a try. I've searched online for the prototype of the script but have been unable to find it. Also, I believe MacOS has switched to Automator actions now.

———-


Reply Back with a Link to your Post:

I’m sure someone on there has some ideas. I’ve used AppleScript, though not for some time. Reply back here with a link to your post, if you put one on those forums. As people reply, I’ll keep an eye on it myself. Maybe something will come to mind.

AppleScript zip-to-mail no longer working in Mojave

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.