Re: new todo with url reference
Re: new todo with url reference
- Subject: Re: new todo with url reference
- From: Jimmy Roberts <email@hidden>
- Date: Wed, 06 Feb 2013 08:18:29 -0500
I'm away from my computer, but will give it a try when I get back. I think you have nailed it though, I didn't think to try encoding them. I did try to escape them (must be the bash in me :-).
Shouldn't take to much to build some logic on when and what to encode. Thanks Axel.
Jimmy Roberts
Freedom is often simple ignorance of whom you serve.
—The Cynic’s Book of Wisdom
Sent from my iP*
On 2013-02-06, at 3:34, Axel Luttgens <email@hidden> wrote:
> 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
_______________________________________________
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