Re: Revmail problems on Windows 8

2015-07-01 Thread Richard Gaskin

David V Glasgow wrote:

 The good news is that using the launch url workaround recommended by
 Richard (below) worked fine.  So anyone encountering the same issue
 can take this route.  Thanks Richard.

 Why Revmail should fail in the way I have described is beyond me.
 Maybe brighter coders can take it from here.

This is just a hunch, written in complete ignorance since I haven't read 
that part of the IDE's library, but ignorance hasn't stopped me from 
posting here before so here's my hunch:


IIRC you'd experienced this on Windows only, yes?

I believe revMail predates the engine's implementation of launch url. 
 If so, and if revMail hasn't been updated to use launch url, it may 
be that it's using the older method of attempting shell calls for stuff 
launch url now does with more robust lower-level API calls.


Windows shell options have undergone many changes since Vista forward, 
but Microsoft has a good reputation for maintaining backward 
compatibility for their lower-level APIs.


If you have time to submit a bug report for this that would be very 
helpful, so they can update whatever's going on in that library to make 
sure it uses the engine's launch url call as smartly as you can do 
yourself.


Once again, the old adage applies:

Know the engine
Trust the engine
Use the engine

Rather than seeing this as a workaround, I see it as using a newer 
feature that operates just a little closer to the OS.  Any time we can 
reduce the distance between our scripts and the underlying OS we 
generally benefit.


launch url not only makes a great replacement for revMail, but will 
handle any protocol that the system is set up to handle, including other 
common ones like ftp and http but also custom URL schemes as well.




 On 21 Jun 2015, at 3:15 pm, Richard Gaskin wrote:

 One simple workaround is to just use mailto:; directly with launch 
url:, e.g.:


   put someaddy at somedomain.com mailto:someaddy at 
somedomain.com into tAddress

   put Some Subject Line into tSubject
   put This is the body of the email into tBody
   put mailto:; tAddress ?subject= tSubject body= tBody \
   into tURL
  launch url tURL


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Revmail problems on Windows 8

2015-07-01 Thread David V Glasgow
I originally sent this a couple of days ago, but it has never appeared on the 
list.  Apologies if it ends up a double post….


Based on the advice received when I posted this issue, I checked the result 
immediately after the revmail line was executed.

Interestingly, the result-put line was not executed where revmail failed.  
Where it succeeded, in dev and on mac it was executed and the result was empty. 
 So it seems clear there is a problem, but sadly I have no specific error to 
report because when it arises, the script terminates.

The good news is that using the launch url workaround recommended by Richard 
(below) worked fine.  So anyone encountering the same issue can take this 
route.  Thanks Richard.

Why Revmail should fail in the way I have described is beyond me.  Maybe 
brighter coders can take it from here.


 On 21 Jun 2015, at 3:15 pm, Richard Gaskin ambassa...@fourthworld.com 
 mailto:ambassa...@fourthworld.com wrote:
 
 One simple workaround is to just use mailto:; directly with launch url:, 
 e.g.:
 
   put somea...@somedomain.com mailto:somea...@somedomain.com into tAddress
   put Some Subject Line into tSubject
   put This is the body of the email into tBody
   put mailto:; tAddress ?subject= tSubject body= tBody \
   into tURL
  launch url tURL

Best Wishes,

David Glasgow

 http://www.i-psych.co.uk/i-psych.co.uk http://www.i-psych.co.uk/
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Revmail problems on Windows 8

2015-07-01 Thread Bob Sneidar
To which I might add,

Don’t put bad gas in the engine
Don’t over rev the engine
Don’t try to pull the engine apart, then put it back together “more better”

I’ll leave it up to everyone’s imaginations to determine what the coding 
correlations for these are. It’s only my intent to seem wise.

Bob S


On Jul 1, 2015, at 07:31 , Richard Gaskin 
ambassa...@fourthworld.commailto:ambassa...@fourthworld.com wrote:

Once again, the old adage applies:

Know the engine
Trust the engine
Use the engine

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Revmail problems on Windows 8

2015-07-01 Thread stephen barncard
Bless the engine, my son.

--
Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words

On Wed, Jul 1, 2015 at 2:55 PM, Bob Sneidar bobsnei...@iotecdigital.com
wrote:

 To which I might add,

 Don’t put bad gas in the engine
 Don’t over rev the engine
 Don’t try to pull the engine apart, then put it back together “more better”

 I’ll leave it up to everyone’s imaginations to determine what the coding
 correlations for these are. It’s only my intent to seem wise.

 Bob S


 On Jul 1, 2015, at 07:31 , Richard Gaskin ambassa...@fourthworld.com
 mailto:ambassa...@fourthworld.com wrote:

 Once again, the old adage applies:

 Know the engine
 Trust the engine
 Use the engine

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Revmail problems on Windows 8

2015-06-21 Thread Skip Kimpel
David,

A lot has to do with what email client is installed on that machine and if it 
is open and running.  For consistent results, I usually call a VB script to 
create the email and then send it to the users Outlook client.  I didn't write 
it but I would be more than happy to share it if you are interested.

SKIP



 On Jun 21, 2015, at 9:25 AM, David V Glasgow dvglas...@gmail.com wrote:
 
 Hello Folks,
 
 I am just doing the final tweaks on an app designed for an NHS Trust to 
 support clinical decision making .  It is exclusively a Win environment.  So 
 far, apart from the usual font faff, the deployment platform hasn’t given me 
 any real headaches.  However, a week before roll out I have learned that a 
 button designed as a last resort call for help doesn’t work.  I had carefully 
 tested all the complex stuff, but hadn’t bothered with this because it was a 
 single line of script:
 
 revMail “Cluster.Buster@*.nhs.uk,,Cluster Buster - help I'm 
 stuck
 
 It works fine in the dev environment, and on Mac standalones.  On Windows 8 
 it does nothing.
 
 Just in case it was an inclusions thing, I switched to automatic inclusions, 
 but this made no difference.  
 
 Is there any possibility it is a security setting on the network?  I can talk 
 to the NHS Trust IT folks next week, but I am a bear of little brain when it 
 comes to Win networks, and I could do with a few sensible pointers if this is 
 a possibility.
 
 I noticed that just about 2 years ago Mark Stuart reported that Revmail 
 didn’t then work on Windows 8.  That couldn’t still be an issue, could it?  
 
 Finally, are there any pointers to a simple alternative approach to Revmail?  
 (bearing in mind I have no control and very little access to any aspects of 
 the platform or network)
 
 Cheers,
 
 David Glasgow
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Revmail problems on Windows 8

2015-06-21 Thread Richard Gaskin

David V Glasgow wrote:

 I had carefully tested all the complex stuff, but hadn’t bothered
 with this because it was a single line of script:

 revMail “Cluster.Buster@*.nhs.uk,,Cluster Buster - help
 I'm stuck

 It works fine in the dev environment, and on Mac standalones.  On
 Windows 8 it does nothing.

 Just in case it was an inclusions thing, I switched to automatic
 inclusions, but this made no difference.

 Is there any possibility it is a security setting on the network?  I
 can talk to the NHS Trust IT folks next week, but I am a bear of
 little brain when it comes to Win networks, and I could do with a few
 sensible pointers if this is a possibility.

 I noticed that just about 2 years ago Mark Stuart reported that
 Revmail didn’t then work on Windows 8.  That couldn’t still be an
 issue, could it?

 Finally, are there any pointers to a simple alternative approach to
 Revmail?  (bearing in mind I have no control and very little access
 to any aspects of the platform or network)

revMail is just a wrapper for the mailto:; protocol designation. All it 
does is open a mail with the various specified fields already filled in 
(subject, to, body, etc.).


As such, no networking is involved, since it's up to the email client to 
actually send the message.


Well designed modern OSes ship with default apps assigned to handle 
http:, mailto:;, and often ftp: along with others.   On Windows 
this is done through registry setting.


I don't have Win 8.0 but I just tested mailto:; on Win 8.1 and it does 
indeed open the default email client.


Perhaps revMail is working harder than it needs to, maybe predating 
launch url and attempting to do extra work that launch url can 
handle well for it today.  If so it may be a bug, but I haven't looked 
into the revMail code to see what it's up to.


One simple workaround is to just use mailto:; directly with launch 
url:, e.g.:


   put somea...@somedomain.com into tAddress
   put Some Subject Line into tSubject
   put This is the body of the email into tBody
   put mailto:; tAddress ?subject= tSubject body= tBody \
   into tURL
  launch url tURL

If that doesn't work it may be that the machine you're testing on has 
had its default email application assignment mucked up, either by one of 
the many known brittle aspects of the Windows registry or perhaps 
intentionally by admins who set up the system (though given how popular 
mailto:; is on Web pages that wouldn't have been a smart thing for an 
admin to do).


What is the value of the result immediately after attempting revMail?


This article may be helpful:
http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode