AppleScript crashing MailMate
-
Alexander Kucera
For reference, a typical string as I send it to MailMate:
mailto:john%2Ekueble%40image%2Ede?subject=IMAGE%20GmbH%20%2F%2F%20Lidl%20Interactive%20Spot%20%D1%20Rechnung%20121116%2D0082&body=Lieber%20Herr%20K%9Fble%2C%0D%0Danbei%20unsere%20Rechnung%20f%9Fr%20den%20Lidl%20Interactive%20Spot%20Film%2E%0D%0DWir%20hoffen%20das%20Projekt%20entsprach%20Ihren%20Vorstellungen%2E%0D%0DViele%20Gr%9F%A7e%2C%0D%0D&attachment-url=file://%2Fvar%2Ffolders%2Fkr%2Fyd3vlvrs3%5F9df4hflddfrpb40000gp%2FT%2F121116%2D0082%2Epdf -
benny
I'm not an expert in AppleScript, but the problem seems to be encoding related. All text given to the script should be UTF-8 and that does not seem to be the case. Do you know the encoding of the provided text?
Here is an example of me asking MailMate to create a message with the subject 'æøå' (Danish letters):
osascript -e 'tell application "MailMate" to open location "mailto:mm-feedback@freron.com?subject=%C3%A6%C3%B8%C3%A5"'But MailMate should not crash! Do you have an example that crashes (the above didn't). I'll review the code. (Looking at the crash reports that problem seems to be related to attachments.)
-
benny
I've reproduced the crash bug and I'll fix that part of the problem.
-
Alexander Kucera
Hi Benny,
sorry for being slow to respond. Lots on my plate recently. Is the crash related to the attachment or something else? I ask, because I need the attachment to work for this. I am using this script to send my invoices from GrandTotal to MailMate instead of Mail.app. And that obviously requires me to attach said invoice. :)
I'll try and fix the UTF-8 issue on my end.
-
Alexander Kucera
No worries. I found a workaround that works for now.
tell application "Finder" reveal the_file activate end tellNot as elegant as directly attaching a file, but opening its locations and then a quick drag & drop will do for now. :)
Also, I when I leave off the attachment, my code seems to work fine. No UTF-8 issues even with more complex characters.
-
benny
- State changed from reproduced to fixcommitted
-
Alexander Kucera
Cheers Benny! I'm looking forward to trying it out.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
