Time for a new version. The macro has gained some options:
Formerly the macro always used a fixed value for the minimum MailDrop attachment size.
The new version still behaves this way if you want so. Just hit â§âD for sending a mail, as before.
And the main purpose of the macro is still the same: it assures that also attachments smaller than 20000 KB will be sent with MailDrop.
The new thing is when you make a long key press (press â§âD and rest a bit longer on the D key) you will get a user prompt. (Long key press inspired by the Copy All macro.)
Purposes of the user prompt
It gives you information:
- Currently set MailDrop minimum size (as read from Mailâs preferences)
- Your preferred default minimum MailDrop size
It lets youâŠ
- Set a new default minimum size
- Set a different minimum size just for the current mail to be sent (Uncheck âMake new defaultâ)
- Effectively disable MailDrop for the current mail (Click the âNo MailDropâ button or press âN)
- Effectively disable MailDrop for future mails and for all accounts (Enter a high value like
99999
with âMake new defaultâ checked)
- Reset the size to Mailâs default (Enter
20000
with âMake new defaultâ checked)
On the different values
The macro uses three different values for MailDropâs minimum attachment size:
Currently set
For informational purposes only.
This is the minimum attachment size as read from Mailâs preferences when the macro is launched.
Mail app has the habit to reset the size to its innate default of 20000 KB in unpredictable intervals.
User default
Your preferred minimum attachment size for MailDrop. When sending a mail with â§âD (also without user prompt) this value will be used. At the very first macro launch, or if you have destroyed the variable, this will be set to 3000 KB.
You can set the default in the user prompt.
User-entered value
This is the value you can enter in the user prompt; it will actually be used for the current mail. If you have âMake new defaultâ checked it will become default.
What means âdefaultâ?
The default size is only guaranteed when you use â§âD for sending a mail. If you send a mail by clicking the Send button instead, the macro will not be launched. This means, Mail will use the minimum attachment size that is currently set in its preferences. This may or may not be your entered default value. It depends if Mail in the meantime has reset the value to its 20000 KB or not.
So if you use this macro itâs a good idea to make it a habit sending mails with â§âD, if not already done.
Why not using a the same minimum size for all mails?
Usually I have set my minimum size to 1000 KB or so. That is, every attachment > 1MB takes the way via MailDrop.
However I have some clients who have difficulties with downloading the attachment from the Apple server. In these cases now I can invoke the user prompt and temporarily increase the minimum size to a value that disqualifies the attachment for MailDrop. (The âNo MailDropâ button does this.)
This has basically the same effect as going to Mailâs Preferences > Accounts > [Choosing the account] > Advanced > Disable âSend large attachments with Mail Dropâ. And reenabling it again afterwards. (This setting doesnât seem to be accessible with AppleScript, at least not easily.)
Besides that, I sometimes change my mind on what is a good minimum size for MailDrop. Now I can change my default quickly, without opening the KM Editor.
Other changes
Due to the user prompt the macro now has a basic plausibility check on the entered value to prevent me from messing up the Mail plist file.
Set MailDrop Minimum Size Before Sending Mail (With Prompt).kmmacros (18.8 KB)