Fwd: set theAttachments to theMessage's mail attachments fails when called by a rule
Fwd: set theAttachments to theMessage's mail attachments fails when called by a rule
- Subject: Fwd: set theAttachments to theMessage's mail attachments fails when called by a rule
- From: Yvan KOENIG <email@hidden>
- Date: Sun, 15 Jan 2017 17:12:15 +0100
Le 14 janv. 2017 à 20:09, Yvan KOENIG < email@hidden> a écrit :
It's perfectly foolish.
The asker which I tried to help told me that the script behave well on its system. So I start wondering if I was facing a problem specific to the French localisation. I re-tested with the code borrowed from the late asker's message and the attachment was not moved.
I re-booted in English and the same code behaved flawlessly so I thought that there is really a bug specific to French localization.
I re-booted in French and to be sure I made an other attempt. This time the attachments were correctly saved.
I must assume that something was odd in a file which was repaired when I ran in English.
Yvan KOENIG running Sierra 10.12.2 in French (VALLAURIS, France) samedi 14 janvier 2017 20:09:47
I was too optimistic and naïve. At last I found why the script posted in macScripter [b][u]seems[/u][/b] to work. It's not working upon the list of messages passed by the rule, it's working upon what is selected in Mail.
[applescript] tell application "Mail" set theMessages to the selection # THE INSTRUCTION WHICH FOOLED ME set selectedMessages to theMessages[/applescript]
If we remove the instruction grabbing the selection and we will not get the attachments saved.
Yvan KOENIG running Sierra 10.12.2 in French (VALLAURIS, France) dimanche 15 janvier 2017 17:02:35
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden