LC, applescript and mail.app

2013-08-14 Thread Yves COPPE
Hi list, For mac users I have a text formatted with html tags in a variable tVar when I write set the htmlText of fld test to tVar : OK when I write an applescript to send the text per mail tell application Mail set newMessage to (make new outgoing message at end of outgoing messages

Re: LC, applescript and mail.app

2013-08-14 Thread zryip theSlug
Hi Yves, According to the Mail applescript's dictionary, the content property only accepts RTF content. 2 ways for doing what you want: 1. RTF put the rtfText of fld test to tVar tell application Mail set newMessage to (make new outgoing message at end of outgoing messages with

Re: LC, applescript and mail.app

2013-08-14 Thread Mark Schonewille
Hi Yves, I had this problem too. I noticed that Mail automatically converts any diacritics to HTML to make sure that they are read correctly on PC's. Just use standard MacRoman and all will be fine. However, I would be very interested in knowing whether Zryip's solution works for you. --

Re: LC, applescript and mail.app

2013-08-14 Thread Yves COPPE
Hi, thanks for the good idea; the text appears without html flags but … as plain text, not formatted, without returns, bold text, … no any other idea ? Le 14 août 2013 à 10:15, Mark Schonewille m.schonewi...@economy-x-talk.com a écrit : Hi Yves, I had this problem too. I noticed that

Re: LC, applescript and mail.app

2013-08-14 Thread Yves COPPE
Hi I did another test set the clipboardData[HTML] to tVar and then, I paste myself the text in a mail.app message and I get a good formatted text. Is it possible to do the same via applescript (to avoid having to do it manually) Le 14 août 2013 à 10:30, Yves COPPE yvesco...@skynet.be a écrit

Re: Handling of final delimter (was Re: this me?)

2013-08-14 Thread Kay C Lan
Thanks for the Link, an excellent discussion. Marks Waddingham's statement: If you want to be able to represent a nullable string list of any number of empty items from 0 is like saying: If you want to be able to represent a nullable array of any number of empty keys from 0 ??? If you put

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread dunbarx
Alejandro. I just did (250,80,10,80,80,80,10,10,10,50) on another machine. No problems. Are you saying that only increasing values of tabStops are stable in your setup? I cannot see any other pattern in what you said worked, as opposed to what seems to crash LC. Craig -Original

Re: Handling of final delimter (was Re: this me?)

2013-08-14 Thread Geoff Canyon
Wouldn't this mean that: the number of items of test -- puts zero And by extension: the number of words of test -- puts zero the number of lines of test -- puts zero Sent from my iPad On Aug 14, 2013, at 7:03 AM, Kay C Lan lan.kc.macm...@gmail.com wrote: If you put empty into an

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Richard Gaskin
Alejandro wrote: Looks like the IDE expects that Tab Stops are written like this: 250,330,340,420,500,580,590,600,610,660 not like this: 250,80,10,80,80,80,10,10,10,50 If this is the correct way to write Tab stops in the IDE, then I expect an error message but not that the application hangs and

Re: LC, applescript and mail.app

2013-08-14 Thread Mark Schonewille
Hi Yves, This is the short version of the AppleScript I use: set mailText to set thisSubject to Test E-Mail set thisEmail to t...@test.xyz using terms from application Mail tell application Mail set theAccount to Name of Your Mail Account set

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread dunbarx
Richard. ...FWIW, LC recently introduced a new property, the tabWidths, which will accept those values. Are you implying that the tabStop list that Alejandro posted is somehow not acceptable? I like the tabwidths, which is simpler to get my head around than the tabStops, which requires

Re: Handling of final delimter (was Re: this me?)

2013-08-14 Thread J. Landman Gay
Kay C Lan lan.kc.macm...@gmail.com wrote: Thanks for the Link, an excellent discussion. Marks Waddingham's statement: If you want to be able to represent a nullable string list of any number of empty items from 0 is like saying: If you want to be able to represent a nullable array of any

Re: Handling of final delimter (was Re: this me?)

2013-08-14 Thread J. Landman Gay
Geoff Canyon gcan...@gmail.com wrote: Wouldn't this mean that: the number of items of test -- puts zero And by extension: the number of words of test -- puts zero the number of lines of test -- puts zero . And the number of items in empty is one. -- Jacqueline Landman Gay

Re: LC, applescript and mail.app

2013-08-14 Thread Mark Schonewille
Hi Yves, keystroke v using command down will paste the text and keystroke tab will move the text insertion point to the next field or text area. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter:

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Richard Gaskin
dunbarx wrote: Richard. ...FWIW, LC recently introduced a new property, the tabWidths, which will accept those values. Are you implying that the tabStop list that Alejandro posted is somehow not acceptable? I have to admit that I've had so much going on in my office that I haven't followed

Re: [OT] Language of Tablets

2013-08-14 Thread Tim Selander
If not asking anyone else means not googling, etc., then I'm stumped -- how did you figure it out? Tim Selander Tokyo, Japan On 8/14/13 5:26 AM, Colin Holgate wrote: It’s a calendar reminder, celebrating this: http://en.wikipedia.org/wiki/Tanabata Now, for a mental exercise, given that I

Re: Handling of final delimter (was Re: this me?)

2013-08-14 Thread Mark Wieder
Kay- Wednesday, August 14, 2013, 5:03:48 AM, you wrote: I very much like Mark Wieder's proposal. I also like how he's debunked speculation as to imminent failure if empty last items were actually counted as an item. On the other hand it's pretty easy to prove that LC's current bipolar

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread stephen barncard
FWIW, LC recently introduced a new property, the tabWidths, which will accept those values. - Richard And I can finally drop my columnsToTabStops and TabStopsToColumns handlers... On Wed, Aug 14, 2013 at 7:34 AM, Richard Gaskin ambassa...@fourthworld.comwrote: dunbarx wrote: Richard.

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread dunbarx
Richard. I agree. I find tabwidths are much more straightforward than tabstops. With what you explained, I might see how, say, a negative number might trip up the translation, but do not see why the particular string mentioned does. Anyway, that string does not crash two machines I tried it

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread J. Landman Gay
On 8/14/13 11:49 AM, dunb...@aol.com wrote: With what you explained, I might see how, say, a negative number might trip up the translation, but do not see why the particular string mentioned does. Anyway, that string does not crash two machines I tried it on, so I suspect something more local

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Mike Kerner
The only reason you guys think tabWidths are better is because you're too young to have spent enough time on teletypes, or IBM's that had single-digit model numbers. On Wed, Aug 14, 2013 at 1:24 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 8/14/13 11:49 AM, dunb...@aol.com wrote:

Field Tabstops oddity (was IDE vs MSG...)

2013-08-14 Thread dunbarx
It seems that when an anomalous string for tabStops is set, LC uses a hybrid of tabStops and tabWidths. I have the following tabStops in a table field (named f55): 20,10,80. It would appear that the second stop is to the left of the first stop. Something similar to this has crashed LC with

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread dunbarx
Hmmm. I will give 2-1 odds, payable in LC tokens, for each year older you are than I. Craig Newman -Original Message- From: Mike Kerner mikeker...@roadrunner.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wed, Aug 14, 2013 1:35 pm Subject: Re: IDE versus MSG Box -

Re: Field Tabstops oddity (was IDE vs MSG...)

2013-08-14 Thread Richard Gaskin
dunbarx wrote: It seems that when an anomalous string for tabStops is set, LC uses a hybrid of tabStops and tabWidths. I have the following tabStops in a table field (named f55): 20,10,80. It would appear that the second stop is to the left of the first stop. Something similar to this has

Re: Issues with minimizing under OS X?

2013-08-14 Thread Paul Looney
Richard, I have not experienced it, nor have my customers reported it - all OS X - various versions. Note: I seldom minimize and I don't know how often my customers do so. Paul Looney On Aug 12, 2013, at 8:47 PM, Richard Gaskin wrote: I have a report from one of my testers of the app's main

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread stephen barncard
The only reason you guys think tabWidths are better is because you're too young to have spent enough time on teletypes, or IBM's that had single-digit model numbers. yeah, 1965 I drank a lot of Cokes, dreamt of being a pirate DJ off the coast of England and thought computers were boring. On

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Mike Kerner
I was a VERY early starter, and sometimes technology lives longer than maybe it should. On Wed, Aug 14, 2013 at 1:43 PM, dunb...@aol.com wrote: Hmmm. I will give 2-1 odds, payable in LC tokens, for each year older you are than I. Craig Newman -Original Message- From: Mike

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Mike Kerner
hey, stephen, isn't SeaLand for sale again? On Wed, Aug 14, 2013 at 1:59 PM, stephen barncard stephenrevoluti...@barncard.com wrote: The only reason you guys think tabWidths are better is because you're too young to have spent enough time on teletypes, or IBM's that had single-digit model

Re: data grid on retina display

2013-08-14 Thread Mike Kerner
Monte, Since you were messing with this, is there a fairly easy way to get the column headers resized for retina to a readable height? On Tue, Aug 13, 2013 at 8:29 PM, Monte Goulding mo...@sweattechnologies.com wrote: On 14/08/2013, at 3:34 AM, Chris Sheffield wrote: Monte, can your mApp

Re: Issues with minimizing under OS X?

2013-08-14 Thread Mark Talluto
On Aug 12, 2013, at 8:47 PM, Richard Gaskin wrote: I have a report from one of my testers of the app's main window not being able to be restored when clicking on its icon in the Dock after having been minimized. I've been unable to reproduce this. I believe the user's system is OS X

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread dunbarx
I see Mike is reluctant to take my wager. Craig -Original Message- From: stephen barncard stephenrevoluti...@barncard.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wed, Aug 14, 2013 2:00 pm Subject: Re: IDE versus MSG Box - Field Tabstops The only reason you guys

Re: Field Tabstops oddity (was IDE vs MSG...)

2013-08-14 Thread dunbarx
Richard, Well, it turns out it is a feature. LC is indeed mixing widths and stops. And the dictionary says it always did: If a tabStop is less than the previous one, it uses that previous as a baseline, essentially making the smaller one a tabWidth, since the baseLine is now locally zero.

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Mike Kerner
No, I just don't want to admit that I'm 30 in dwarf years. On Wed, Aug 14, 2013 at 2:24 PM, dunb...@aol.com wrote: I see Mike is reluctant to take my wager. Craig -Original Message- From: stephen barncard stephenrevoluti...@barncard.com To: How to use LiveCode

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread dunbarx
Hmmm. I was in college in the 60's. Raise? Craig -Original Message- From: Mike Kerner mikeker...@roadrunner.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wed, Aug 14, 2013 2:42 pm Subject: Re: IDE versus MSG Box - Field Tabstops No, I just don't want to admit

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Jerry Jensen
I had my first computer class in 1964. .Jerry On Aug 14, 2013, at 1:14 PM, dunb...@aol.com wrote: Hmmm. I was in college in the 60's. Raise? Craig -Original Message- From: Mike Kerner mikeker...@roadrunner.com To: How to use LiveCode use-livecode@lists.runrev.com

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread kee nethery
A summer class in Computer programming and slide rules in 1969 in the sixth grade on a teletype with paper tape. First personal computer was a SouthWest Technical Products 6800 in 1978. Kee Nethery On Aug 14, 2013, at 1:50 PM, Jerry Jensen j...@jhj.com wrote: I had my first computer class

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Mike Kerner
lol. Nope. I'm 29. Again. I just figured that anyone who ever used tabstops before coming to HC/SC/RR/LC would be familiar with this mechanism for setting them. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put

OS X Equivalent of Run As Administrator?

2013-08-14 Thread Scott Rossi
Hi List: I'm wondering if there's kind of equivalent for run as administrator for LiveCode apps on OS X. I have a case where a user wants to run my downloaded app under a user account. I assume the official process is to get an Apple Mac dev account and get some kind of code signing happening

Re: OS X Equivalent of Run As Administrator?

2013-08-14 Thread Monte Goulding
On 15/08/2013, at 8:19 AM, Scott Rossi sc...@tactilemedia.com wrote: I'm wondering if there's kind of equivalent for run as administrator for LiveCode apps on OS X. I have a case where a user wants to run my downloaded app under a user account. I assume the official process is to get an

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Geoff Canyon
On Wed, Aug 14, 2013 at 9:34 AM, Richard Gaskin ambassa...@fourthworld.comwrote: The tabstops property requires absolute metrics from the left edge of the control; that is, each item is the complete measure from that edge, e.g.: 100,150,225 I've never found this to be the case. I just

Re: data grid on retina display

2013-08-14 Thread Monte Goulding
On 15/08/2013, at 4:06 AM, Mike Kerner mikeker...@roadrunner.com wrote: Since you were messing with this, is there a fairly easy way to get the column headers resized for retina to a readable height? mApp resizes everything so it should just work. I've recently added scaling to column

Re: OS X Equivalent of Run As Administrator?

2013-08-14 Thread Geoff Canyon
On Wed, Aug 14, 2013 at 5:19 PM, Scott Rossi sc...@tactilemedia.com wrote: I'm wondering if there's kind of equivalent for run as administrator for LiveCode apps on OS X. I have a case where a user wants to run my downloaded app under a user account. I assume the official process is to get

Re: OS X Equivalent of Run As Administrator?

2013-08-14 Thread Mark Schonewille
Scott, Read this: https://support.apple.com/kb/HT5290 -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Richard Gaskin
Geoff Canyon wrote: On Wed, Aug 14, 2013 at 9:34 AM, Richard Gaskin wrote: The tabstops property requires absolute metrics from the left edge of the control; that is, each item is the complete measure from that edge, e.g.: 100,150,225 I've never found this to be the case. I just opened up LC

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Mike Bonner
you get 100, 150, 200 absolute positioning. If you had set to 150,100,200 you'd get back 150, 250, 450.. All of which explains why I use absolutes to keep my head from exploding. On Wed, Aug 14, 2013 at 4:46 PM, Richard Gaskin ambassa...@fourthworld.comwrote: Geoff Canyon wrote: On Wed, Aug

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Richard Gaskin
Looks like we've discovered an inconsistency. Apparently the engine will treat items in the tabstops as column widths if one or more of them is smaller than a preceding item, but if each of the items is larger than the last then the value you get back will be the same you set it to. If you

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Geoff Canyon
On Wed, Aug 14, 2013 at 5:46 PM, Richard Gaskin ambassa...@fourthworld.comwrote: You really expected the value coming back to be different from what you set it to? Yep -- I've known this is how tabstops work longer than I can remember, and I use this feature all the time. The docs even

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Geoff Canyon
On Wed, Aug 14, 2013 at 6:02 PM, Richard Gaskin ambassa...@fourthworld.comwrote: Looks like we've discovered an inconsistency. Apparently the engine will treat items in the tabstops as column widths if one or more of them is smaller than a preceding item, but if each of the items is larger

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Richard Gaskin
Geoff Canyon wrote: On Wed, Aug 14, 2013 at 6:02 PM, Richard Gaskin wrote: ... If you wrote code expecting the engine to treat incoming values consistently, you risk having unexpected column widths. So we have to ask ourselves: now that the engine explicitly supports relative values via the

Re: Handling of final delimter (was Re: this me?)

2013-08-14 Thread Kay C Lan
Sorry Geoff I just don't follow your logic. Just because one doesn't exist why shouldn't the others? If I understand your logic, which clearly I don't, you are suggesting that because LC can create and count multiple empty lines, and create and count multiple empty items, it should be able to

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Peter Haworth
On Wed, Aug 14, 2013 at 5:17 PM, Richard Gaskin ambassa...@fourthworld.comwrote: But before I file a bug report, let's see if it's worth the time: has anyone ever had code that produced unexpected/unwanted results from this inconsistent treatment of the input values of tabStops? Yes, until

Re: Handling of final delimter (was Re: this me?)

2013-08-14 Thread J. Landman Gay
On 8/14/13 7:51 PM, Kay C Lan wrote: Mark's suggested addition seems a win win to me, it gives the option to count items differently and I don't have to do anything ;-) But do keep reading the forum thread, as runrevmark has pointed out some issues with it that could cause trouble with

Re: IDE versus MSG Box - Field Tabstops

2013-08-14 Thread Geoff Canyon
I don't understand the use of sometimes here, as if the functionality were uncertain, ambiguous, or just plain random. This functionality is determinate, and as far as I can tell has been this way (and documented) since Rev 1.0, and presumably back to the MetaCard days. To me, this is very much