Re: new todo with url reference
Re: new todo with url reference
- Subject: Re: new todo with url reference
- From: Axel Luttgens <email@hidden>
- Date: Wed, 06 Feb 2013 09:34:17 +0100
Le 6 févr. 2013 à 01:14, James Roberts a écrit :
> Axel
>
> I get ‘missing value’ using that id, however is I strip out the % from the id it sets (but of course doesn’t point to anything real.)
> I also get similar results with evernote
>
> I have tried all the encodings I know,
>
> "message:<" & message id & “>"
> message://< … >
> message:< … >
> message://< … >
Sorry, I messed up my reply.
Assuming your message shows this header in its raw contents:
Message-Id: <2O000000013922-**MSO20130201%@anothername.com>
Mail woud return following string for that message's message id property:
"2O000000013922-**MSO20130201%@anothername.com"
The equivalent url for Calendar would be:
"message:<2O000000013922-**MSO20130201%@anothername.com>"
But Calendar seems to expect an encoded url.
The "<" and ">" thus need to be passed as "<" and ">" respectively.
But the "%" characters need to be encoded as well (they would otherwise be interpreted as the beginning of an encoding sequence); so, let's replace each occurrence of "%" by "%".
Now, those "*" and "@" are peculiar characters as well; to be sure, let's encode those chacacters as well.
As a result, this string would need to be passed to Calendar as the todo's url:
"message:<%062O000000013922-**MSO20130201%@anothername.com>"
Seems fine here.
HTH,
Axel
_______________________________________________
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