[Mac OS X ]- invoking default email using mailTo:...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Mac OS X ]- invoking default email using mailTo:...

Stew MacLean

Hi,

 

Having spent the evening with a borrowed Mac, I still haven’t been able to get the default email program to run.

 

I copied verbatim from a thread on the subject:  (http://www.parcplace.net/list/vwnc-archive/0610/msg00290.html)

 

UnixProcess cshOne: 'open ''mailto:[hidden email]?subject=Crash% 20Report&body=a%3d0%0d%0ab%3d42'''.

 

And in return I get a

 

open[1075] No such file: ...

 

Any help here very much appreciated.

 

Thanks,

 

Stewart

 

 

 

 

Reply | Threaded
Open this post in threaded view
|

Re: [Mac OS X ]- invoking default email using mailTo:...

Karsten Kusche
Hi Steward,

it seems there's a space between the % and the 20...this causes the
problem here.


Kind Regards
Karsten


Stewart MacLean wrote:

>
> Hi,
>
> Having spent the evening with a borrowed Mac, I still haven’t been
> able to get the default email program to run.
>
> I copied verbatim from a thread on the subject:
> (http://www.parcplace.net/list/vwnc-archive/0610/msg00290.html)
>
> UnixProcess cshOne: 'open ''mailto:[hidden email]?subject=Crash%
> 20Report&body=a%3d0%0d%0ab%3d42'''.
>
> And in return I get a
>
> open[1075] No such file: ...
>
> Any help here very much appreciated.
>
> Thanks,
>
> Stewart
>

--
Karsten Kusche - Student - [hidden email]
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812

Reply | Threaded
Open this post in threaded view
|

Re: [Mac OS X ]- invoking default email using mailTo:...

James Robertson-7
In reply to this post by Stew MacLean
Hmm.  That works fine on the Mac I'm using right now
----- Original Message -----
Sent: Friday, August 03, 2007 7:52 AM
Subject: [Mac OS X ]- invoking default email using mailTo:...

Hi,

 

Having spent the evening with a borrowed Mac, I still haven’t been able to get the default email program to run.

 

I copied verbatim from a thread on the subject:  (http://www.parcplace.net/list/vwnc-archive/0610/msg00290.html)

 

UnixProcess cshOne: 'open ''mailto:[hidden email]?subject=Crash% 20Report&body=a%3d0%0d%0ab%3d42'''.

 

And in return I get a

 

open[1075] No such file: ...

 

Any help here very much appreciated.

 

Thanks,

 

Stewart

 

 

 

 

Reply | Threaded
Open this post in threaded view
|

RE: [Mac OS X ]- invoking default email using mailTo:...

Stew MacLean
In reply to this post by Karsten Kusche
Hi Karsten,

Are you saying that I need to treat this like a Url, and "escape" blanks
etc?

Unfortunately, the Mac has gone home so I can't test this at the moment.

Thanks,

Stewart

>-----Original Message-----
>From: Karsten [mailto:[hidden email]]
>Sent: 4 August 2007 12:02 a.m.
>To: Stewart MacLean
>Cc: [hidden email]
>Subject: Re: [Mac OS X ]- invoking default email using mailTo:...
>
>Hi Steward,
>
>it seems there's a space between the % and the 20...this causes the
>problem here.
>
>
>Kind Regards
>Karsten
>
>
>Stewart MacLean wrote:
>>
>> Hi,
>>
>> Having spent the evening with a borrowed Mac, I still haven’t been
>> able to get the default email program to run.
>>
>> I copied verbatim from a thread on the subject:
>> (http://www.parcplace.net/list/vwnc-archive/0610/msg00290.html)
>>
>> UnixProcess cshOne: 'open ''mailto:[hidden email]?subject=Crash%
>> 20Report&body=a%3d0%0d%0ab%3d42'''.
>>
>> And in return I get a
>>
>> open[1075] No such file: ...
>>
>> Any help here very much appreciated.
>>
>> Thanks,
>>
>> Stewart
>>
>
>--
>Karsten Kusche - Student - [hidden email]
>Georg Heeg eK - Köthen
>Handelsregister: Amtsgericht Dortmund A 12812



Reply | Threaded
Open this post in threaded view
|

Re: [Mac OS X ]- invoking default email using mailTo:...

Karsten Kusche
Hi Stewart,

yes, you have to pass an url. In the example the spaces are already
escaped, but somehow a space slipped in between the % and the 20. The
space made it think that these are 2 files and not one url...

here is what i get:
open "mailto:[hidden email] test"
2007-08-03 14:24:31.263 open[3568] No such file:
/Users/karsten/mailto:[hidden email] test

open "mailto:[hidden email]%20test"
-> opens mail.app with a mail to: "[hidden email] test"

If you want to escape a string I think you have to use URI encode: aString.

Kind Regards
Karsten



Stewart MacLean wrote:

> Hi Karsten,
>
> Are you saying that I need to treat this like a Url, and "escape" blanks
> etc?
>
> Unfortunately, the Mac has gone home so I can't test this at the moment.
>
> Thanks,
>
> Stewart
>
>  
>> -----Original Message-----
>> From: Karsten [mailto:[hidden email]]
>> Sent: 4 August 2007 12:02 a.m.
>> To: Stewart MacLean
>> Cc: [hidden email]
>> Subject: Re: [Mac OS X ]- invoking default email using mailTo:...
>>
>> Hi Steward,
>>
>> it seems there's a space between the % and the 20...this causes the
>> problem here.
>>
>>
>> Kind Regards
>> Karsten
>>
>>
>> Stewart MacLean wrote:
>>    
>>> Hi,
>>>
>>> Having spent the evening with a borrowed Mac, I still haven’t been
>>> able to get the default email program to run.
>>>
>>> I copied verbatim from a thread on the subject:
>>> (http://www.parcplace.net/list/vwnc-archive/0610/msg00290.html)
>>>
>>> UnixProcess cshOne: 'open ''mailto:[hidden email]?subject=Crash%
>>> 20Report&body=a%3d0%0d%0ab%3d42'''.
>>>
>>> And in return I get a
>>>
>>> open[1075] No such file: ...
>>>
>>> Any help here very much appreciated.
>>>
>>> Thanks,
>>>
>>> Stewart
>>>
>>>      
>> --
>> Karsten Kusche - Student - [hidden email]
>> Georg Heeg eK - Köthen
>> Handelsregister: Amtsgericht Dortmund A 12812
>>    
>
>
>
>
>  

--
Karsten Kusche - Student - [hidden email]
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812

Reply | Threaded
Open this post in threaded view
|

RE: [Mac OS X ]- invoking default email using mailTo:...

Stew MacLean
Thanks Karsten for this,

Now I can sleep!

Stewart

>-----Original Message-----
>From: Karsten [mailto:[hidden email]]
>Sent: 4 August 2007 12:27 a.m.
>To: Stewart MacLean
>Cc: [hidden email]
>Subject: Re: [Mac OS X ]- invoking default email using mailTo:...
>
>Hi Stewart,
>
>yes, you have to pass an url. In the example the spaces are already
>escaped, but somehow a space slipped in between the % and the 20. The
>space made it think that these are 2 files and not one url...
>
>here is what i get:
>open "mailto:[hidden email] test"
>2007-08-03 14:24:31.263 open[3568] No such file:
>/Users/karsten/mailto:[hidden email] test
>
>open "mailto:[hidden email]%20test"
>-> opens mail.app with a mail to: "[hidden email] test"
>
>If you want to escape a string I think you have to use URI encode:
aString.

>
>Kind Regards
>Karsten
>
>
>
>Stewart MacLean wrote:
>> Hi Karsten,
>>
>> Are you saying that I need to treat this like a Url, and "escape"
blanks
>> etc?
>>
>> Unfortunately, the Mac has gone home so I can't test this at the
moment.

>>
>> Thanks,
>>
>> Stewart
>>
>>
>>> -----Original Message-----
>>> From: Karsten [mailto:[hidden email]]
>>> Sent: 4 August 2007 12:02 a.m.
>>> To: Stewart MacLean
>>> Cc: [hidden email]
>>> Subject: Re: [Mac OS X ]- invoking default email using mailTo:...
>>>
>>> Hi Steward,
>>>
>>> it seems there's a space between the % and the 20...this causes the
>>> problem here.
>>>
>>>
>>> Kind Regards
>>> Karsten
>>>
>>>
>>> Stewart MacLean wrote:
>>>
>>>> Hi,
>>>>
>>>> Having spent the evening with a borrowed Mac, I still haven’t been
>>>> able to get the default email program to run.
>>>>
>>>> I copied verbatim from a thread on the subject:
>>>> (http://www.parcplace.net/list/vwnc-archive/0610/msg00290.html)
>>>>
>>>> UnixProcess cshOne: 'open ''mailto:[hidden email]?subject=Crash%
>>>> 20Report&body=a%3d0%0d%0ab%3d42'''.
>>>>
>>>> And in return I get a
>>>>
>>>> open[1075] No such file: ...
>>>>
>>>> Any help here very much appreciated.
>>>>
>>>> Thanks,
>>>>
>>>> Stewart
>>>>
>>>>
>>> --
>>> Karsten Kusche - Student - [hidden email]
>>> Georg Heeg eK - Köthen
>>> Handelsregister: Amtsgericht Dortmund A 12812
>>>
>>
>>
>>
>>
>>
>
>--
>Karsten Kusche - Student - [hidden email]
>Georg Heeg eK - Köthen
>Handelsregister: Amtsgericht Dortmund A 12812