Finding common words and phrases in a large block of text?

2018-10-24 Thread Terry Judd via use-livecode
Hi – I’m looking to analyse some large block of text (journal abstracts from 
key educational technology journals over a several year period) to find common 
words and phrases. Finding common words should be easy enough but I’m not clear 
on what approach to take for finding common phrases (iterating through the text 
capturing overlapping word runs of various lengths?). Any ideas on how best to 
proceed?

TIA,

Terry...
___
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: use-livecode Digest, Vol 181, Issue 33

2018-10-24 Thread Mark Wieder via use-livecode

On 10/24/2018 02:10 PM, Douglas Ruisaard via use-livecode wrote:

Thanks for the reply, Klaus... but I'm sure we all agree this is totally 
non-intuitive.  However, using this call in my openStack script does two 
negative things:

1) least important but somewhat self-defeating to my "goal", this now opens the 
Project Browser right on top of my app in some default height and width.  As a result I 
have to move it over to the side and adjust the size.  If I just open the Project Browser 
via the LC tools, it opens in the same position and size as to the last saved stack.

2) more importantly, after allowing this code to execute within my app, I went 
to create my standalone version and found that all of the Saved Standalone 
Application Settings were GONE! and the setting had reverted back to the 
default ones for a brand-new stack.  Luckily, by not saving the stack at that 
point and commenting out that call, the settings came back .. whew!


I'm probably misunderstanding what you're trying to do, but a couple of 
observations:


1. if you open the PB and then set the loc of it, both in your openStack 
(or preOpenStack) handler, then the browser should appear where you tell 
it to.


2. trying to do this in a standalone app is bound to fail. The PB is 
part if the LiveCode IDE, and thus a separate application from your 
standalone. If you really need to launch the browser in the IDE then 
you'll need to set up a means of communication between the two. Most 
probably socket communication via a plugin stack, but ymmv.


--
 Mark Wieder
 ahsoftw...@gmail.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: starting the Project Browser

2018-10-24 Thread Niggemann, Bernd via use-livecode
Hi,

does this help?

revIDETogglePalette "Project Browser"

you can test if the Project Browser is visible

put revIDEPaletteIsVisible("project browser")

Kind regards
Bernd

___
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: jsonImport or JSONToArray

2018-10-24 Thread Douglas Ruisaard via use-livecode
I'll drink to THAT!! .. but then again, I'll drink to almost anything! ... 
coffee... what were you thinking?

but seriously, it's a fine idea... particularly as I got blind-sided by finding 
an irrelevant inclusion (JSON Library) when I needed the mergJSON one and 
the inclusions are NOT even in alphabetical order.

Douglas Ruisaard
Trilogy Software
(250) 573-3935

 
> 
> 
> > On 24 Oct 2018, at 10:04 am, Andre Alves Garzia via use-livecode 
> > 
> wrote:
> >
> > As you folks may have seen earlier today, I've shipped a new product here 
> > on the list. While I was
> building the demo stack for this plugin, I had the same problem as you 
> describe. In my case it boiled
> down to the automatic inclusions not working, I ended up needing to do manual 
> inclusions and then it
> worked.
> 
> Yes, we still need to add the inclusions search for many things. I would 
> really like to get rid of the
> choice of one or the other and just have a button on the inclusions pane to 
> run a search. This would
> be particularly handy for speeding up builds if we are suddenly looking for 
> many more things!
> 
> Cheers
> 
> Monte
> 


___
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: use-livecode Digest, Vol 181, Issue 33

2018-10-24 Thread Douglas Ruisaard via use-livecode
Thanks for the reply, Klaus... but I'm sure we all agree this is totally 
non-intuitive.  However, using this call in my openStack script does two 
negative things:

1) least important but somewhat self-defeating to my "goal", this now opens the 
Project Browser right on top of my app in some default height and width.  As a 
result I have to move it over to the side and adjust the size.  If I just open 
the Project Browser via the LC tools, it opens in the same position and size as 
to the last saved stack.

2) more importantly, after allowing this code to execute within my app, I went 
to create my standalone version and found that all of the Saved Standalone 
Application Settings were GONE! and the setting had reverted back to the 
default ones for a brand-new stack.  Luckily, by not saving the stack at that 
point and commenting out that call, the settings came back .. whew!

This was on LC Business v8.1.9 on Windows 7 enterprise SP1.

There are a series of Project Browser related livecodescript files in (my 
install):

C:\Program Files (x86)\RunRev\LiveCode Business 8.1.9\Toolset

however none of them seem to (directly) reference any Standalone functionality. 
... Back to using the LC tools option.

thanks!


Douglas Ruisaard
Trilogy Software
(250) 573-3935

> Hi Douglas,
> 
> > Am 23.10.2018 um 20:31 schrieb Douglas Ruisaard via use-livecode 
> > :
> >
> > Is there a way to start/open the "Project Browser" (from the main LC Tools 
> > menu) using a script
> command for LC v8 and above?
> 
> this works, go figure :-D
> ...
> go stack "revIDEProjectBrowser"
> ...
> 
> > ...
> >
> > Douglas Ruisaard
> > Trilogy Software
> > (250) 573-3935
> 
> Best
> 
> Klaus


___
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: Sorting search results - solution needed

2018-10-24 Thread Niggemann, Bernd via use-livecode
here is my take, clumsy and not respecting all formatting requirements

Instead of

187.1
187.1.1
187.1.2
187.3
187.22
187.33
187.234

it sorts

187.1
187.1.1
187.1.2
187.22
187.234
187.3
187.33

Kind regards
Bernd




---
on mouseUp
   put field "fAlpha" into tData
   put "" into msg
   sort tData numeric by specialSort(each) 
   put tData into field "fSort"
end mouseUp

function specialSort pEach
   put pEach into tData
   --put word 1 to -1 of tData into tData
   put "0,1,2,3,4,5,6,7,8,9,." into tNumbers
   
   -- check for double colon like in 187.1.2
   put 0 into tSkip
   put 0 into tCounter
   repeat
  put offset(".", tData, tSkip) into tOffset
  if tOffset > 0 then
 add tOffset to tSkip
 add 1 to tCounter
  else
 exit repeat
  end if
   end repeat
   if tCounter > 1 then 
  --put tData && tCounter & cr after msg
  put empty into char tSkip of tData
  return tData
   end if
   
   repeat with i = 1 to the number of chars of tData
  if char i of tData is among the items of tNumbers then 
 put char i of tData after tNumberPart
  else
 exit repeat
  end if
   end repeat
   
   
   if tData = tNumberPart then
  return tNumberPart
   end if
   
   put length(tNumberPart) into tLength
   put char tLength + 1 to - 1 of tData into tRest
   if char tLength of tNumberPart = "." then put "." before tRest
   
   replace ")" with empty in tRest
   replace space with empty in tRest
   
   put toUpper(tRest) into tRest
   
   put true into tLeftBracket
   put 0 into tDecimal
   repeat with i = 1 to the number of chars of tRest
  
  put char i of tRest into tChar
  
  if tChar is a Number then
 add  tChar * .1 to tDecimal
 
  else if tChar is "(" then
 if tLeftBracket then
add .001 to tDecimal
put false into tLeftBracket
 end if
 
  else if tChar is "." then -- ASCII "." = 46
 add .1 to tDecimal
 
  else if charToNum(tChar) >= 65 then -- ASCII "A" = 65
 add (charToNum(tChar)-64) * .9 to tDecimal
  end if
   end repeat
   
   return tNumberPart + tDecimal
end specialSort
-

___
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: Sorting search results - solution needed

2018-10-24 Thread Geoff Canyon via use-livecode
I think this comes pretty close to the requirement. It breaks the lines
down into numeric/not numeric items, and then sorts from the least
significant (rightmost) to most significant items. For each sort, sorts
first by alpha, then numeric. That results in letters being sorted before
numbers, which seemed wrong for this application, so I added the
returnOnlyNumbers function that (nearly) guarantees letters sorting after
numbers.

If the parenthesis etc. gets in the way, then removing them from the sort
could be done by building an array mapping the original list to the sort
keys, and then sorting on a function that returns the appropriate sort key.
But for now this seems pretty close.

function sortByAlternateNumericItems lineList,D
   -- takes a line list and a delimiter D that must not be in the lineList
   -- breaks each line down into numeric/non-numeric items
   -- then sorts by the items, from least significant (rightmost) to most
significant.
   -- for each sort, sorts first by alpha, then numeric, so numbers sort
before letters

   if D is in lineList then
  answer warning D && "is in the list" with cancel
  exit to top
   end if

   put 0 into maxItems
   repeat for each line L in lineList
  put numericItems(L,D) into newL
  get the number of items of newL
  if it > maxItems then put it into maxItems
  put newL & cr after R
   end repeat
   delete char -1 of R
   set the itemDel to D
   repeat with i = maxItems down to 1
  sort lines of R by item i of each
  sort lines of R numeric by returnOnlyNumbers(item i of each)
   end repeat
   replace D with empty in R
   return R
end sortByAlternateNumericItems

function returnOnlyNumbers N
   if N is a number then return N else return 999
end returnOnlyNumbers

function numericItems S,D
   -- returns the string S broken into number/not-number items, delimited
by D
   -- D must be chosen so that it does not occur in S
   if D is in S then
  answer warning D && "is in" && S with cancel
  exit to top
   end if
   put char 1 of S is a number into isNum
   put 1 into B
   repeat with E = 2 to length(S)
  if isNum then
 if (char B to E of S is a number) then next repeat
 put (char B to E - 1 of S) & D after R
 put E into B
 put false into isNum
  else if char B to E of S is a number then put true into isNum
  else
 repeat with NB = B + 1 to E
if char NB to E of S is not a number then next repeat
put (char B to NB - 1 of S) & D after R
put NB into B
put true into isNum
exit repeat
 end repeat
  end if
   end repeat
   return R & char B to E of S
end numericItems

This sorts this list:

187
187.01
187.02
187.1
187.22
187.234
187.3
187.33
187.456
10187
18700
187 (a)
187 (b)
187 (b)(1)
187 (a)(1)
187.1.1
187.1.2
187.c
187a
187c
187 a
187 1
1
a
c
b

to this:

1
187
187a
187c
187 1
187 (a)
187 (a)(1)
187 (b)
187 (b)(1)
187 a
187.c
187.01
187.02
187.1.1
187.1.2
187.1
187.22
187.234
187.3
187.33
187.456
10187
18700
a
b
c



On Wed, Oct 24, 2018 at 9:08 AM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I should have said, in the loop keep adding a character until the value is
> no longer a number, then sort numeric by the last value.
>
> Bob S
>
>
> > On Oct 23, 2018, at 14:14 , Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > This of course cannot be a numeric sort. I would create a loop and start
> with 1 digit, then see if the value div the value = the value (in a try
> catch loop). Once you get an error or false, break out the integer portion,
> pad it with the appropriate number of trailing zeros, then append the rest.
>
>
> ___
> 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: [ANN] Network Tracer

2018-10-24 Thread Andre Alves Garzia via use-livecode

Bob,

It is a joke but it is also true :-)

For example, in the Network Tracer stack there is code to avoid showing 
duplicate messages because here on my home network, all the datagrams 
are arriving three times. So a single "ntInfo" call on a standalone 
amounted to three datagrams with the same message arriving on the 
dashboard. But arriving multiple times is better than not arriving, 
which also happens.


I am considering in the near future going like my "decentralization talk 
on LC Global" and use UDP for peer discovery and TCP for sending actual 
data, it is just that UDP is so convenient and for this simple 
debugging purpose it is quite adequate. Anyway, we'll see how the 
feedback goes and change as needed. For my own personal usage it is 
going great.


Cheers

On 10/24/2018 3:23 PM, Bob Sneidar via use-livecode wrote:

Hah! I'm sure that was a joke but UDP is User Datagram Protocol.

Bob S



On Oct 23, 2018, at 15:27 , Andre Alves Garzia via use-livecode 
 wrote:

Hi Everyone,

It is with a lot of excitement that I am here to announce a new plugin for LiveCode 
called Network Tracer. This is a zero-configuration plugin and library combination that 
creates a "networked log" experience to help you debug your LC solutions.

To use it, you open the Dashboard stack in the IDE (you can add it to your 
plugins folder if you want) and then add the library stack (and start using it) 
from your stacks. Any call to the APIs provided will appear in the Dashboard 
stack provided that both the Dashboard and the standalone (or another IDE on 
another machine) are both in the same network (LAN, WIFI) and the your firewall 
is allowing incoming connections on port 8001 (should just work).

I've prepared a nice video for you to check out:

   https://vimeo.com/296722452

And also a page about it:

   http://andregarzia.com/livecode/networktracer.html

The plugin costs GBP 40 and it has the potential to really speed up your 
development, just watch the video to be amazed. Also, I've made a bundle of my 
DB Lib, some of my other tools and the Network Tracer for GBP 100, all that 
information is on the hyperlink above.

I hope you're all as excited to check it out as I am to provide this new tool 
for the community.

Cheers

andre


___
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: [ANN] Network Tracer

2018-10-24 Thread Andre Alves Garzia via use-livecode

Dear Tom,

The TypeTool mostly acts on the "the selobj" so unless you start 
changing the scripts, it won't make much sense on a standalone.


On the other hand, all the stacks are unlocked and you have access to 
the full source. You can pick the code from it and patch it to your own 
needs. For a standalone, I think the best solution is just to edit a 
copy of the TypeTool stack until it suits your needs.


Cheers
andre
On 10/24/2018 5:13 PM, tbodine via use-livecode wrote:

Congratulations on this release, Andre. This looks very useful.

I have a (probably dumb) question... Are your products, such as AAG Tools,
only for use in the IDE, or can tools such as TypeTool be used in standalone
builds?

Thanks,
Tom Bodine



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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


is anyone able to use fileDSN for ODBC connections in LC?

2018-10-24 Thread Matthias Rebbe via use-livecode
Hi,
i am not able to use fileDSN for ODBC connections to a SQL server in LC 
Windows. Under Mac i did not test it already.

With fileDSN you define all the odbc settings/parameters in a file with the 
suffix .dsn.
When connecting using ODBC you can then use that dsn file. No need to setup an 
ODBC configuration.

Is anyone using it with success?

I´ve setup the fileDSN correctly in ODBC Manager in Windows to use the folder 
"c:\users\matthias\documents" as fileDSN folder
The folder contains a file test.dsn
In LC Windows i tried to connect with a connection string, but getting 
different errors.

with 
get revOpenDatabase("ODBC","FILEDSN=c:\users\matthias\documents\test.dsn",,,)

i am getting this error:
[Microsoft][ODBC Driver Manager] Ungültige Zeichenfolgen- oder Pufferlänge
In English something like this: Invalid string or buffer length

with
get revOpenDatabase("ODBC","FILEDSN=test.dsn",,,)

i am getting this error:
[Microsoft][ODBC Driver Manager] Der Datenquellenname wurde nicht gefunden, und 
es wurde kein Standardtreiber angegeben
In english something like this: 
The data source could not be found and there was not default driver defined


and using the normal way using a DSN, where the dsn is the name of the fileDSN
get revopendatabase("ODBC","test",,"matthias","mypassword")

Error: 
[Microsoft][ODBC Driver Manager] Der Datenquellenname wurde nicht gefunden, und 
es wurde kein Standardtreiber angegeben
In english something like this: 
The data source could not be found and there was not default driver defined


Before i file a bug report about it i want to make sure, that no one is 
successfully using fileDSN.

Regards

Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de

___
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: [ANN] Network Tracer

2018-10-24 Thread tbodine via use-livecode
Congratulations on this release, Andre. This looks very useful. 

I have a (probably dumb) question... Are your products, such as AAG Tools,
only for use in the IDE, or can tools such as TypeTool be used in standalone
builds?

Thanks,
Tom Bodine



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

___
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: Sorting search results - solution needed

2018-10-24 Thread Bob Sneidar via use-livecode
I should have said, in the loop keep adding a character until the value is no 
longer a number, then sort numeric by the last value. 

Bob S


> On Oct 23, 2018, at 14:14 , Bob Sneidar via use-livecode 
>  wrote:
> 
> This of course cannot be a numeric sort. I would create a loop and start with 
> 1 digit, then see if the value div the value = the value (in a try catch 
> loop). Once you get an error or false, break out the integer portion, pad it 
> with the appropriate number of trailing zeros, then append the rest. 


___
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: applescript in standalones?

2018-10-24 Thread Bob Sneidar via use-livecode
Mine do. Not in Windows of course... :-)

On MacOS I use applescript to tell Acrobat to run a javascript to fill a form. 

Bob S


> On Oct 23, 2018, at 15:08 , Tom Glod via use-livecode 
>  wrote:
> 
> Can someone confirm for me whether "do as applescript" works in standalones
> built by v9? ..I'm seeing a couple of discrepancies in this regards.  We
> don't have a mac handy and i know some of you will know this off the top of
> your head. many thanks.
> 
> seeing this in the requests for contributions 
> 
> https://quality.livecode.com/show_bug.cgi?id=20993
> 
> and posts that talk about it working.
> 
> Which is true?
> ___
> 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: jsonImport or JSONToArray

2018-10-24 Thread Bob Sneidar via use-livecode
+1 Great idea!

Bob S

> On Oct 23, 2018, at 16:08 , Monte Goulding via use-livecode 
>  wrote:
> 
>> On 24 Oct 2018, at 10:04 am, Andre Alves Garzia via use-livecode 
>>  wrote:
>> 
>> As you folks may have seen earlier today, I've shipped a new product here on 
>> the list. While I was building the demo stack for this plugin, I had the 
>> same problem as you describe. In my case it boiled down to the automatic 
>> inclusions not working, I ended up needing to do manual inclusions and then 
>> it worked.
> 
> Yes, we still need to add the inclusions search for many things. I would 
> really like to get rid of the choice of one or the other and just have a 
> button on the inclusions pane to run a search. This would be particularly 
> handy for speeding up builds if we are suddenly looking for many more things!
> 
> Cheers
> 
> Monte


___
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: [ANN] Network Tracer

2018-10-24 Thread Bob Sneidar via use-livecode
Hah! I'm sure that was a joke but UDP is User Datagram Protocol. 

Bob S


> On Oct 23, 2018, at 15:27 , Andre Alves Garzia via use-livecode 
>  wrote:
> 
> Hi Everyone,
> 
> It is with a lot of excitement that I am here to announce a new plugin for 
> LiveCode called Network Tracer. This is a zero-configuration plugin and 
> library combination that creates a "networked log" experience to help you 
> debug your LC solutions.
> 
> To use it, you open the Dashboard stack in the IDE (you can add it to your 
> plugins folder if you want) and then add the library stack (and start using 
> it) from your stacks. Any call to the APIs provided will appear in the 
> Dashboard stack provided that both the Dashboard and the standalone (or 
> another IDE on another machine) are both in the same network (LAN, WIFI) and 
> the your firewall is allowing incoming connections on port 8001 (should just 
> work).
> 
> I've prepared a nice video for you to check out:
> 
>   https://vimeo.com/296722452
> 
> And also a page about it:
> 
>   http://andregarzia.com/livecode/networktracer.html
> 
> The plugin costs GBP 40 and it has the potential to really speed up your 
> development, just watch the video to be amazed. Also, I've made a bundle of 
> my DB Lib, some of my other tools and the Network Tracer for GBP 100, all 
> that information is on the hyperlink above.
> 
> I hope you're all as excited to check it out as I am to provide this new tool 
> for the community.
> 
> Cheers
> 
> andre


___
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: applescript in standalones?

2018-10-24 Thread Tom Glod via use-livecode
Ahh...I would have never figured that out from just reading the
enhancement report.  Much thanks Brian.

On Wed, Oct 24, 2018 at 12:58 AM Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I can confirm that the following scripts work as expected in a stand alone
> application (9.0.1):
>
> on mouseUp
>local tScript
>put "Display Dialog" && quote & "Hello world" & quote into tScript
>do tScript as "AppleScript"
>answer the result   -- '{button returned:"OK"}' if you click the OK
> button
> end mouseUp
>
> on mouseUp
>do "1 + 1" as "AppleScript"
>answer the result   -- 2
> end mouseUp
>
> on mouseUp
>do field "TheScript" as "AppleScript" -- tested with "beep"
>answer the result   -- empty for beep
> end mouseUp
>
>
> The linked bug deals with the other direction - your built application
> being able to receive applescript commands to "do script".  For a while,
> the sdef file/plist entry was missing so the IDE couldn't receive those
> commands but that has been fixed.  Patching the build scripts to include
> the file/update the plist would be fairly easy but adding the check box for
> the setting would require a binary stack update.
>
> Thanks,
> Brian
>
> On Tue, Oct 23, 2018 at 6:00 PM Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hi Brian, to be honest I am not sureyour answer definately reflects
> > that feature request to which I linked...so probably that is the official
> > situation. but just to make sure..
> >
> > I want to build a standalone from which I am able to run applescript
> > commands ..(ex send keystrokes to other applications)like vbscript's
> > sendkeys()..
> >
> > ?
> >
> >
> >
> > On Tue, Oct 23, 2018 at 6:43 PM Brian Milby via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > (I think I answered the wrong question though. I was answering if you
> can
> > > script a stand-alone from AS)
> > >
> > > I’ll check and answer the right question this evening if someone else
> > > doesn’t chime in.
> > >
> > > Thanks,
> > > Brian
> > > On Oct 23, 2018, 5:09 PM -0500, Tom Glod via use-livecode <
> > > use-livecode@lists.runrev.com>, wrote:
> > > > Can someone confirm for me whether "do as applescript" works in
> > > standalones
> > > > built by v9? ..I'm seeing a couple of discrepancies in this regards.
> We
> > > > don't have a mac handy and i know some of you will know this off the
> > top
> > > of
> > > > your head. many thanks.
> > > >
> > > > seeing this in the requests for contributions 
> > > >
> > > > https://quality.livecode.com/show_bug.cgi?id=20993
> > > >
> > > > and posts that talk about it working.
> > > >
> > > > Which is true?
> > > > ___
> > > > 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
> > ___
> > 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
___
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: Sorting search results - solution needed

2018-10-24 Thread hh via use-livecode
As Craig said, your rules are not consistent to standards:

You sort *after* the first period numeric with the exception
that leading zeros are "valid".
That's why the replace in the following function is needed.

This now yields exactly your custom sort order:

function gregSort s
  set itemdel to "."
  sort s numeric by offset("a",each)
  sort s numeric by offset("b",each)
  sort s numeric by offset("c",each)
  replace ".0" with ".0." in s --> begin make leading zeros valid
  sort s numeric by item 2 to 3 of each
  replace ".0." with ".0" in s --> end make leading zeros valid
  sort s numeric by item 1 of each
  return s
end gregSort


___
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