Re: How to check if a group contains a specific control ?

2024-08-23 Thread Paul Dupuis via use-livecode

On 8/23/2024 7:45 AM, Klaus major-k via use-livecode wrote:

Hi jbv,


Am 23.08.2024 um 13:27 schrieb jbv via use-livecode 
:

Hi list,

Is there a quick way to check if a group contains a specific control,
something like :
if there is a fld "xyz" in grp "abc" of this cd
I tried many things but it always generates an error.
So far, the only way I can think of is to maintain a custom prop
for each group, featuring a string that is the list of all controls
names of the group.

if you don't have any other controls with the same name,
you could check:
-> lineoffset("xyz",the childcontrolnames of grp "abc")



or, if you prefer:

if "xyz" is among the lines of the childcontrolnames of group "abc" then

NOTE: As mentioned, "xyz" would need to be a unique name for control in 
the group. If you have a field "xyz" and a button "xyz" (or 2 buttons or 
2 or more fields with the same name, etc.) this is not accurate.



___
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: Extracting test scores from a PDF

2024-08-17 Thread Paul Dupuis via use-livecode

On 8/17/2024 12:24 PM, Charles Szasz via use-livecode wrote:

I came a web app that can extract test scores from a PDF and insert them into 
an app.  Can LC do the same thing?



I assume you mean can a programmer write an app in Livecode to extract 
test scores from a PDF and do something with them.


If the PDF has the test scores as text in the PDF (vs just a scanned 
image), then, yes, you can make a Livecode app that uses the PDF widget 
to open the PDF and retrieve the text from it and then parse that text 
for the test scores. If there is a routine pattern to the how the test 
scores appear, it will be easier to parse the text.



___
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: Live LiveCode Create demo

2024-08-15 Thread Paul Dupuis via use-livecode

Just speaking for myself.

I use substacks for different windows (modal or nonmodal) in my 
application. A substack rarely has more than one card, which has the 
controls for that window laid out the way I want them. Also, substacks 
can just be script libraries or other sorts of libraries (icons, images, 
etc.)


So I already use substack as different layouts in native apps. If moving 
to the web, they effectively become different "pages" (or screens or 
layouts of controls)


I think I have 1 app where I still use multiple cards to store data, one 
record per card. If I have a chance to redo this, the data will be 
stored in a property or variable and the stack will have a single "card" 
or layout where the current record of data is displayed as the user 
navigates through it.


For the most part, I already think of a substack as synonymous with a 
window/screen/page layout of controls for an app.



On 8/15/2024 7:09 AM, David V Glasgow via use-livecode wrote:

Just caught up on this and really enjoyed it.  Obviously the team has been 
working hard, and created something really special.

My question is conceptual, not a technical/features based one, so I am raising 
it here because I would be really interested in folks views.

Kevin states towards the end of the video that substacks are still there and 
still work, but LC folks are moving away from that metaphor in favour of 
‘layouts’.  Now I had watched the whole video with my mental model being 
‘layouts’ correspond to a (very smart)  group on a card.   In light of what 
Kevin said that must be wrong, but I can’t quite see how the Create metaphor 
maps onto  the ol’ Xtalk hierarchy of things.

Cheers

David G



___
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: A Windows weirdness

2024-08-13 Thread Paul Dupuis via use-livecode

I'm guessing here:

Paths on local Windows systems are typically 
driveletter:folder\folder\...\file.extension

Window scan use UNC paths, such as:

|\\Server2\Share\Test\Foo.txt|
||
When we had our first customer who was extensively using UNC paths, our 
software broke until we updated it to allow for both style of Windows 
paths to be handled properly.


Windows backslash \ gets converted to a / in most LC file paths (for 
example, the result of a open or save file dialog


Perhaps the IT did something to require only UNC paths and the // after 
the binfile had it look for a server rather than a local file?



On 8/13/2024 4:24 PM, Ben Rubinstein via use-livecode wrote:
An app running nightly by schedule on a Windows VM stopped working 
when the IT department cracked down on security, downgrading the 
privileges of the user. When this was reversed - and they swore there 
were no other changes - it still didn't work properly because it 
failed to read some local data files.


It turned out that the issue was that I was reading the data as
put URL format("binfile://%s", tPath) into tData

this was working, but now returned "can't open file". Changing the 
statement to

put URL format("binfile:%s", tPath) into tData

fixed the issue, so it's fine. But my question would be does anyone 
know what would have changed on the system to make this statement, 
that used to work, do so no longer?


Many thanks,

Ben

___
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


Cell colorization in a table in Livecode...

2024-08-07 Thread Paul Dupuis via use-livecode

My second color question of the day.

We current have a analytical view in our app which shows a table of 
frequencies. The number of rows and columns are driven by user data and 
can becomes a large number (I've heard all the arguments that users 
should not ever view tables of hundreds of rows by hundreds of columns 
as a person can't digest that much data - and our customer are quite 
clear that they want to view such data in this fashion).


We currently use a Datagrid. Each cell has a numerical integer value, 
0-n. We want to colorize the cells on a gradient, say from white to 
green (as an example) which we'd map the gradient colors with 0 being 
white and max(N) being green and color each cell accordingly.


This can be done relatively easily in the Datagrid by a small bit of 
custom code that looks at the cell value and sets the background color 
of the field (that is the cell) to the appropriate color.


We have been migrating all uses of Datagrids to Polygrids where the 
columns are driven by user data since the number of columns could exceed 
roughly 300, which at the default column width,  bumps up against the 
32,767 pixel width limit of the Datagrid. The Polygrid does not have 
this width limit, which is why we've been replacing Datagrids with 
Polygrids.


Now, our current problem is that there does not appear to be any tricks 
to having variable cell background colors in a Polygrid. Row colors: yes 
Alternate Row colors: Yes, Highlight color: Yes, possibly even 
highlighting different cell via the pgHilitedData property: maybe 
(haven't tested yet, but they'd all be 1 color).


I am not really familiar with the PolyList widget (vs PolyGrid). Has 
anyone figured out how to do a spreadsheet-like table in either the 
PolyGrid or PolyList with individual cell background coloring?


If not, I'll stick with the Datagrid and add a check for the columns x 
widths exceeding the 32K px threshold and just warn the researcher we 
can't handler that much data (which dings our product vs competition!)



___
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: Best way to convert color values

2024-08-07 Thread Paul Dupuis via use-livecode

Wow Andreas!

You win on the best response!

A free library of 70 color functions is way more than I need (but will 
likely need more than I think I do)


Thank you.

On 8/7/2024 12:24 PM, Andreas Bergendal via use-livecode wrote:

No need to reinvent that particular wheel when the awesome guys at
FerrusLogic has had us covered for years:
https://github.com/Ferruslogic/TinyColor

/Andreas

ons 7 aug. 2024 kl. 18:18 skrev Craig Newman via use-livecode <
use-livecode@lists.runrev.com>:


Hi.

If Paul’s post is not viable, I don’t think there is any native gadget
(like “convert”) that applies to the different color formats. Fairly simple
to roll your own, depending on how comprehensive you need it.

Craig


On Aug 7, 2024, at 12:04 PM, Paul Dupuis via use-livecode <

use-livecode@lists.runrev.com> wrote:

You have RGB colors (0-255,0-255,0-255), Hex colors (#00 - #FF)

and named colors ("blue") in Livecode

Any built in way (via some trick) to convert between color value formats?

I can always write a routine to convert RGB to Hex and Hex to RGB, but I

am wondering if there is some clever trick in Livecode to do this.

For example: answer color -- returns RGB, but the htmlText of a line

wants  

Thanks in advance,

___
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


Best way to convert color values

2024-08-07 Thread Paul Dupuis via use-livecode
You have RGB colors (0-255,0-255,0-255), Hex colors (#00 - #FF) 
and named colors ("blue") in Livecode


Any built in way (via some trick) to convert between color value formats?

I can always write a routine to convert RGB to Hex and Hex to RGB, but I 
am wondering if there is some clever trick in Livecode to do this.


For example: answer color -- returns RGB, but the htmlText of a line 
wants  


Thanks in advance,

___
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: By popular demand - Extend access to LC Classic IDEs BEYOND 2027!

2024-08-02 Thread Paul Dupuis via use-livecode

+100 also

On 8/2/2024 2:04 PM, Bob Sneidar via use-livecode wrote:

Yup. +100


On Aug 2, 2024, at 10:45 AM, Heather Laine via 
use-livecode  wrote:

Please take this off list. This thread is not helpful and its time for it to 
stop.



___
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: Proposed update to datagrid library

2024-07-31 Thread Paul Dupuis via use-livecode
My Datagrid skills are not great, but i thought the thedgIndexes 
ofgroup"DataGrid" The Dictionary says "Returns the internal list of 
indexes in the order in which they appear in the data grid"
You also have the dgIndexOfLine[pLine] to get the index of the line 
(hilited line or next line or whatever). Then find the index returned by 
dgIndexOfLine in the dgIndexes, which will return a line number in the 
list of indexes and then add 1 to that to the the line in the dgIndexes 
of the next index.



On 7/31/2024 2:29 PM, Bob Sneidar via use-livecode wrote:

 never mind. I just realized that if the datagrid gets re-sorted, there 
IS NO WAY to determine the next visible line in a datagrid. Kinda sucks.

Bob S



On Jul 31, 2024, at 11:01 AM, Bob Sneidar via 
use-livecode  wrote:

Hi all.

Has anyone tried to determine the index of the next line of a datagrid? It’s 
not as straightforward as you might think. When data is first loaded into a 
datagrid, the dgIndexes are only going to be in numeric order if the sort order 
of the datagrid is the same as the data you are loading. Otherwise, the indexes 
will be all mixed up, but the dgLines of the datagrid will ALWAYS be in the 
order of the visible rows.

Sure you can just add one to the current dgHilitedLine, but what if you want to 
know the index of the next line just before deleting the current one? You 
cannot delete the line first because then the line numbers change, and there 
won’t be another line hilited until your code sets it.

And while there is a dgIndexOfLine property built in, there is no 
dgLineOfIndex! Not only that, but there is a dgIndexes property, but there is 
no dgLines property! How odd is that?? The goal is to determine the index of 
the next visible line where the line numbers are no longer sequential.

So I wrote some very simple virtual properties that ought to be a part of the 
datagrid library. You can put these in the script of a datagrid itself, or if 
you are brave enough to use the inline behaviors feature of datagrids as I do, 
you can put them in your own datagrid custom library. But really they belong in 
the built-in datagrid library itself. They are:

getProp dgNextIndexOfLine [tLine]
   put tLine +1 into tNewLine

   if tNewLine > the dgNumberOfLines of me then
  put the dgIndexOfLine [tLine] of me into tIndex
   else
  put the dgIndexOfLine [tNewLine] of me into tIndex
   end if

   return tIndex
end dgNextIndexOfLine

getProp dgPrevIndexOfLine [tLine]
   put tLine -1 into tNewLine

   if tNewLine <1 then
  put the dgIndexOfLine [tLine] of me into tIndex
   else
  put the dgIndexOfLine [tNewLine] of me into tIndex
   end if

   return tIndex
end dgPrevIndexOfLine

You are welcome. :-)

Bob S

___
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: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode

On 7/29/2024 6:14 PM, Bob Sneidar via use-livecode wrote:

Simpler than that:

on mouseUp
put "Mon, 29 Jul 2024 15:49:52 -0400" into tDateTime
put word -1 of tDateTime into tOffset
-- delete last word of tDateTime
convert tDateTime to seconds
put (tOffset / 100) *60 *60 into tOffset
add tOffset to tDateTime
convert tDateTime to  long date and  long time
put tDateTime
end mouseUp


(tOffset / 100)

 isn't quite right as the time zone offset (i.e. something like -0400) 
is actually hhmm, so an offset like NewFoundLand -0330, if divided by 
100 becomes 3.3 when it should be 3.5 since 30 minutes if half and hour.

___
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: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode

Thanks! You math to do the offset is much simpler.

On 7/29/2024 6:34 PM, Bob Sneidar via use-livecode wrote:

Meh never mind overthinking it. Both ways work.

Bob S



On Jul 29, 2024, at 3:30 PM, Bob Sneidar  wrote:

Actually it’s possible in some whacko time zones to get a rounding error by 
dividing first so:

…

put (tOffset *60 *60) /100 into tOffset

…

Bob S



On Jul 29, 2024, at 3:14 PM, Bob Sneidar via use-livecode 
 wrote:

Simpler than that:

on mouseUp
  put "Mon, 29 Jul 2024 15:49:52 -0400" into tDateTime
  put word -1 of tDateTime into tOffset
  -- delete last word of tDateTime
  convert tDateTime to seconds
  put (tOffset / 100) *60 *60 into tOffset
  add tOffset to tDateTime
  convert tDateTime to  long date and  long time
  put tDateTime
end mouseUp

Bob S



On Jul 29, 2024, at 3:02 PM, Paul Dupuis via use-livecode 
 wrote:

dateItems does not contain the timezone offset, so you would need to get the 
timezone offset from the internet date (the only format I can find that has it) 
and the break the offset into minutes and hours and perform the math.

I haven't tested this code (yet), but I think the seconds is the way to go.

function refiXMLTimestamp
-- Need to return the timestamp (current time) in UTC format, or 
-MM-DDTHH:MM:SSZ where Z is zulu or GMT
local tTimestamp
get the internet date -- Mon, 29 Jul 2024 16:49:52 -0400
-- the day of the week followed by a comma, all other item delimited by a space
-- the day of the month
-- the three-letter abbreviation for the month name
-- the four-digit year
-- the time in 24-hour format, including seconds, delimited by colons
-- the four-digit time zone relative to UTC (Greenwich) time
set the itemDel to space
put last item of it into tZoneOffset -- +/-hhmm
set the itemDel to comma
convert it to seconds
-- the year
-- the month number
-- the day of the month
-- the hour in 24-hour time
-- the minute
-- the second
-- the numeric day of the week where Sunday is day 1, Monday is day 2, and so 
forth
putchar -1 to -2 of tZoneOffset into tMinOffset
delete char -1 to -2 of tZoneOffset
put ((tZoneOffset*3600)+(tMinOffset*60)) into tSecOffset
-- adjust time to zulu/gmt
add tSecOffset to it
convert it to dateItems
-- Now convert to -MM-DDTHH:MM:SSZ where Z is zulu of GMT/UTC
put format("%4u",item 1 of it) &"-"& format("%2u",item 2 of it) &"-"& 
format("%2u",item 3 of it)   into tTimestamp -- the date in new format
put "T"& format(%2u",item 4 of it) &":"& format("%2u",item 5 of it) &":"& format("%2u",item 6 
of it) &"Z" after tTimestamp -- the time in new format
return tTimestamp
end refiXMLTimestamp

On 7/29/2024 5:37 PM, Bob Sneidar via use-livecode wrote:

Convert it to dateitems, then back again.

Bob S



On Jul 29, 2024, at 2:09 PM, Paul Dupuis via use-livecode 
 wrote:

Follow up question/request:

put the internet date into tTimestamp -- stores something like Mon, 29 Jul 2024 
16:49:52 -0400, where the -0400 is the time zone offset

Anyone have some already written code to convert this to a time in GMT (i.e 
where the time zone offset is +, i.e. Mon, 29 Jul 2024 20:49:52 +)?

It is adding the offset to the hours and minutes, but you have to handle carry 
over, potentially adding or subtracting a day.

If the best approach converting to seconds and the doing the math and 
converting back? (I think this is the answer)



___
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



___
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: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode
dateItems does not contain the timezone offset, so you would need to get 
the timezone offset from the internet date (the only format I can find 
that has it) and the break the offset into minutes and hours and perform 
the math.


I haven't tested this code (yet), but I think the seconds is the way to go.

function refiXMLTimestamp
  -- Need to return the timestamp (current time) in UTC format, or 
-MM-DDTHH:MM:SSZ where Z is zulu or GMT

  local tTimestamp
  get the internet date -- Mon, 29 Jul 2024 16:49:52 -0400
  -- the day of the week followed by a comma, all other item delimited 
by a space

  -- the day of the month
  -- the three-letter abbreviation for the month name
  -- the four-digit year
  -- the time in 24-hour format, including seconds, delimited by colons
  -- the four-digit time zone relative to UTC (Greenwich) time
  set the itemDel to space
  put last item of it into tZoneOffset -- +/-hhmm
  set the itemDel to comma
  convert it to seconds
  -- the year
  -- the month number
  -- the day of the month
  -- the hour in 24-hour time
  -- the minute
  -- the second
  -- the numeric day of the week where Sunday is day 1, Monday is day 
2, and so forth

  put    char -1 to -2 of tZoneOffset into tMinOffset
  delete char -1 to -2 of tZoneOffset
  put ((tZoneOffset*3600)+(tMinOffset*60)) into tSecOffset
  -- adjust time to zulu/gmt
  add tSecOffset to it
  convert it to dateItems
  -- Now convert to -MM-DDTHH:MM:SSZ where Z is zulu of GMT/UTC
  put format("%4u",item 1 of it) &"-"& format("%2u",item 2 of it) &"-"& 
format("%2u",item 3 of it)   into tTimestamp -- the date in new 
format
  put "T"& format(%2u",item 4 of it) &":"& format("%2u",item 5 of it) 
&":"& format("%2u",item 6 of it) &"Z" after tTimestamp -- the time in 
new format

  return tTimestamp
end refiXMLTimestamp

On 7/29/2024 5:37 PM, Bob Sneidar via use-livecode wrote:

Convert it to dateitems, then back again.

Bob S



On Jul 29, 2024, at 2:09 PM, Paul Dupuis via use-livecode 
 wrote:

Follow up question/request:

put the internet date into tTimestamp -- stores something like Mon, 29 Jul 2024 
16:49:52 -0400, where the -0400 is the time zone offset

Anyone have some already written code to convert this to a time in GMT (i.e 
where the time zone offset is +, i.e. Mon, 29 Jul 2024 20:49:52 +)?

It is adding the offset to the hours and minutes, but you have to handle carry 
over, potentially adding or subtracting a day.

If the best approach converting to seconds and the doing the math and 
converting back? (I think this is the answer)



___
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: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode

Follow up question/request:

put the internet date into tTimestamp -- stores something like Mon, 29 
Jul 2024 16:49:52 -0400, where the -0400 is the time zone offset


Anyone have some already written code to convert this to a time in GMT 
(i.e where the time zone offset is +, i.e. Mon, 29 Jul 2024 20:49:52 
+)?


It is adding the offset to the hours and minutes, but you have to handle 
carry over, potentially adding or subtracting a day.


If the best approach converting to seconds and the doing the math and 
converting back? (I think this is the answer)




___
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: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode
Thank you all (and especially Curry for confirming what I though the Z 
was for)


On 7/29/2024 3:44 PM, Curry Kenworthy via use-livecode wrote:


... 'Utc date and time values uses "Z" (which stands for zero offset) 
to represent UTC.' (MS)


Best wishes,

Curry Kenworthy

Radically Innovative Christian LiveCode Development
"PASSION for Elegant, Efficient Code!"
https://livecodeconsulting.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



___
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


Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode
I have an export routine I am writing and it expects timestamps in the 
following format:


2018-03-27T17:46:39Z

I can output LC dates and times in any format, but I personally have not 
seen this format before. The "T" is obviously just a delimited between 
the data and time, but my question is the "Z" at the end? Is this just a 
delimiter or does it indicate time zone (and in "zulu" time, i.e GMT)? 
Or something else?


Anyone seen this timestamp format before and know the details of it?

Thanks in advance,


___
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: Community edition

2024-07-29 Thread Paul Dupuis via use-livecode
Because of a change Apple made in Sonoma, only LC 6.9.11 and higher will 
work on that and future macOSes


On 7/29/2024 9:45 AM, Heriberto Torrado via use-livecode wrote:

Hi Tim,

Yes, that could be the problem. All computers I've tested livecode run 
MacOs Sonoma.


Best,
Hery


On 7/27/24 02:57, Tim Selander via use-livecode wrote:
It works on the older M1 macs, as long as you don't upgrade to OS14 
-- I'm keeping my M1 Macbook air for as long as I can!


Tim Selander


On 2024/07/27 8:48, Neville Smythe via use-livecode wrote:




On 26 Jul 2024, at 8:01 pm, Heriberto wrote:

  I am currently using the "Community" version, but it does not
work on Apple Silicon devices.



That’s a disappointment, I was thinking it might be my refuge for  
my Community work.


Do standalones created with the Community Edition not work on Apple 
Silicon?

  Neville Smythe




___
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: fwGestalt() function

2024-07-15 Thread Paul Dupuis via use-livecode
With due credit to Richard for the original, you might want to update it 
for today's disk sizes, This adds GB and TB


function Bytes2Size n
  set the numberformat to "0.#"
  if n < 1024 then
    put n &" bytes" into n
  else
    put n / 1024 into n
    if n < 1024 then
  put n &" KB" into n
    else
  put n / 1024 into n
  if n < 1024 then
    put n &" MB" into n
  else
    put n / 1024 into n
    if n < 1024 then
  put n &" GB" into n
    else
  put n / 1024 &" TB" into n
    end if
  end if
    end if
  end if
  return n
end Bytes2Size

On 7/15/2024 7:24 PM, Bob Sneidar via use-livecode wrote:

Thanks Richard.

Bob S


On Jul 15, 2024, at 4:07 PM, Richard Gaskin via use-livecode 
 wrote:

function Bytes2Size n
  set the numberformat to "0.#"
  if n < 1024 then put n &" bytes" into n
  else
put n / 1024 into n
if n < 1024 then put n &" k" into n
else
  put n / 1024 &" MB" into n
end if
  end if
  return n
end Bytes2Size

___
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: .mp4 support in browser widget--Windows

2024-07-08 Thread Paul Dupuis via use-livecode
As customers once had to download and install Quicktime for Windows to 
use a wide variety of media in Revolution/Livecode Standalones under 
Windows (XP, 7, 8.x, 10, 11), when QT for Win became obsolete, we just 
switched to directing customers to download and install LAV Filters 
instead. They do this as a separate install, done by the end user. So 
far, this has not seemed to be an issue or inhibited adoption. It also 
does not run afoul of any licensing issues with embedding LAV Filters in 
a LC standalone.


Regardless, if you want media file parity with macOS on Windows in 
Livecode and do not want to wait for whatever dp version of LC 10 might 
have MMF in it, then you need to add a codec pack for DirectShow. There 
are other options for additional DirectShow codecs to LAV Filters. I 
can't recall any of them - just that we reviewed a bunch, most of which 
were commercial and required licensing. LAV Filters was reliable, 
functional, easy to install, and free. I'm not endorsing it for your 
application or anyone else's, just noting what worked for us.



On 7/8/2024 1:28 PM, Richard Gaskin via use-livecode wrote:

Paul Dupuis wrote:


There ARE methods to compress and store a 3rd party library
or application as a property in a Livecode standalone and
have the standalone on start up check (if there is a file
... or if there is a folder ...) for the app's presence and
if not present, install it by uncompressing and writing it
as a bnfile to the install location.

...

First, you may want to manually install LAV Filters and see
if it has the codecs for the media formats you want.


LAV Filters appear to be distributed under GPL v2:
https://github.com/Nevcairiel/LAVFilters/blob/master/COPYING

This invites an interesting exploration of the boundaries of GPL 
rights/responsibilities inheritance: does distributing GPL components within an 
app require the app distributing them to also be GPL?


I've seen many cases the other way around, FOSS projects like Ubuntu where some 
users can benefit from prioprietary packages like NVidia device drivers. Ubuntu 
and others seem content to have resolved the issue by not including components 
with incompatible licenses in their distributions, instead providing links the 
user may choose to follow to install them.

But the case in this thread is the inverse, a proprietary system with embedded 
distribution of Free and Open Source components. I haven't seen this before, so 
I did a quick search to see how others have handled it.  Here are a few of 
those discussions:

"Is it legal to use GPL code in a proprietary, closed-source program by putting it 
in a separate, standalone program?"
https://opensource.stackexchange.com/questions/7078/is-it-legal-to-use-gpl-code-in-a-proprietary-closed-source-program-by-putting-i

"Distributing a proprietary application together with GPL software"
https://softwareengineering.stackexchange.com/questions/211250/distributing-a-proprietary-application-together-with-gpl-software

"Can I use GPL software in a commercial application"
https://softwareengineering.stackexchange.com/questions/47032/can-i-use-gpl-software-in-a-commercial-application

"Can I use GPL, LGPL, MPL licensed packages with my application and make it closed 
source?"
https://softwareengineering.stackexchange.com/questions/125606/can-i-use-gpl-lgpl-mpl-licensed-packages-with-my-application-and-make-it-close

"Proprietary software using GPL modules"
https://opensource.stackexchange.com/questions/1459/proprietary-software-using-gpl-modules

"Can I use GPL libraries in a closed source project if only the output is 
distributed?"
https://opensource.stackexchange.com/questions/2338/can-i-use-gpl-libraries-in-a-closed-source-project-if-only-the-output-is-distrib


Spoiler: no one in those discussions has a definitive answer, but there is a 
general trend toward USING GPL components being viewed as okay but drawing the 
line at DISTRIBUTING those GPL components within a proprietary app.

And given both the rarity and the subtlety of details in such circumstancs, 
even the GPL FAQ more or less punts on this question:
https://www.gnu.org/licenses/gpl-faq.en.html#ManyDifferentLicenses


Of course I'm not an attorney, and even if I were I'm not contracted as your 
attorney, so nothing I write can be construed as legal advice.

But as someone who has a personal hobby of reading IP case law, and has contractual 
requirements in most of my professional work to demonstrate a reasonable good-faith 
effort to help my clients avoid potential risks with IP licensing, I tend to err on the 
side of "When in doubt, leave it out."

In cases where the best way to handle someone else's work is unclear, I often 
find it most useful to get clarification from the author of the work.  As the 
copyright holder, they would be in a position to grant, or deny, specific use 
cases.

--
Ric

Re: .mp4 support in browser widget--Windows

2024-07-08 Thread Paul Dupuis via use-livecode
There ARE methods to compress and store a 3rd party library or 
application as a property in a Livecode standalone and have the 
standalone on start up check (if there is a file ... or if there is a 
folder ...) for the app's presence and if not present, install it by 
uncompressing and writing it as a bnfile to the install location.


I don't know whether there are any Livecode lessons on the web site on 
how to do this or not or whether someone else who has done this may have 
code or tips to share.


First, you may want to manually install LAV Filters and see if it has 
the codecs for the media formats you want.


Livecode 10, before release, is supposed to get updated to use the 
Windows Media Foundation (and it's wide range of current codec for 
various media formats). This change (DirectShow to MMF) is not in the 
current (dp8) version. So a media coded pack (like LAV Filters) for 
DirectShow is your only option under there is a version of LC 10 that 
supports MMF.


If you set the way back machine, if you wanted to do media on Windows 
under old versions of Livecode (aka Revolution), you had to install 
Quicktime for Windows.



On 7/7/2024 8:49 PM, Peter Bogdanoff via use-livecode wrote:

OK thanks.

Many of our users are college undergrads, some of which appear to have never 
installed an application on their own computer. Now I have to get them to do a 
second installation as well.

By any chance, can I get my LC application to initiate the LAV filters install?




On Jul 7, 2024, at 8:10 PM, Paul Dupuis via use-livecode 
 wrote:

Windows 11 will have the issue. Livecode on Windows 10 or 11 uses DirectShow. 
Try the LAV Filters to get the formats you want. .mp4 is fine, I am not sure 
about .mp5 support. See the LAV Filters read me and documentation.


On 7/7/2024 7:56 PM, Peter Bogdanoff via use-livecode wrote:

Thanks, Paul.

So, Windows 11 shouldn’t have this issue?




On Jul 7, 2024, at 1:58 PM, Paul Dupuis via use-livecode 
 wrote:

Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the video (vs 
the Microsoft Media Foundation (MMF), the current standard. DirectShow was 
always limited in the number of codec for various audio and video formats it 
supported natively. I stringly recommend for macOS Windows parity on video 
formats to install the free library of additional DirectShow supported codec 
that are a part of the LAV Filters package. See 
https://github.com/Nevcairiel/LAVFilters/releases

Just install the current version of LAV Filters and restart and you get a whole 
set of additional audio and video formats supported for Livecode for Windows.


  On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:

Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
standard) in Windows.

This is disappointing, especially as LC 10 becomes web based. In the music 
application I’ve been developing, we are now going into new, transformational 
frontiers in education with web-based video (such as YouTube) interacting with 
normal Livecode—but this works on macOS ONLY. I tested YouTube videos in the 
widget on Windows 10, and the YT player reports that the videos are unsupported.

I understand that there is licensing involved. MPEG LA, now VIA Licensing 
Alliance, has a fee structure. For hardware decoders, for example:

For the first 1 to 50,000 decoders  No Royalty*
For decoders 50,001 and more$ 0.25**

https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 
<https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>

Is this an obstacle for LiveCode as software, and dependent on the underlying 
hardware?

My understanding from past LC forum posts is, to allow the widget to play the 
videos a flag is turned on and the widget recompiled.

I’m happy to pay for the licensing myself if I got to 50K customers!

Peter Bogdanoff


___
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 mail

Re: .mp4 support in browser widget--Windows

2024-07-07 Thread Paul Dupuis via use-livecode
Windows 11 will have the issue. Livecode on Windows 10 or 11 uses 
DirectShow. Try the LAV Filters to get the formats you want. .mp4 is 
fine, I am not sure about .mp5 support. See the LAV Filters read me and 
documentation.



On 7/7/2024 7:56 PM, Peter Bogdanoff via use-livecode wrote:

Thanks, Paul.

So, Windows 11 shouldn’t have this issue?




On Jul 7, 2024, at 1:58 PM, Paul Dupuis via use-livecode 
 wrote:

Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the video (vs 
the Microsoft Media Foundation (MMF), the current standard. DirectShow was 
always limited in the number of codec for various audio and video formats it 
supported natively. I stringly recommend for macOS Windows parity on video 
formats to install the free library of additional DirectShow supported codec 
that are a part of the LAV Filters package. See 
https://github.com/Nevcairiel/LAVFilters/releases

Just install the current version of LAV Filters and restart and you get a whole 
set of additional audio and video formats supported for Livecode for Windows.


  On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:

Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
standard) in Windows.

This is disappointing, especially as LC 10 becomes web based. In the music 
application I’ve been developing, we are now going into new, transformational 
frontiers in education with web-based video (such as YouTube) interacting with 
normal Livecode—but this works on macOS ONLY. I tested YouTube videos in the 
widget on Windows 10, and the YT player reports that the videos are unsupported.

I understand that there is licensing involved. MPEG LA, now VIA Licensing 
Alliance, has a fee structure. For hardware decoders, for example:

For the first 1 to 50,000 decoders  No Royalty*
For decoders 50,001 and more$ 0.25**

https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 
<https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/>

Is this an obstacle for LiveCode as software, and dependent on the underlying 
hardware?

My understanding from past LC forum posts is, to allow the widget to play the 
videos a flag is turned on and the widget recompiled.

I’m happy to pay for the licensing myself if I got to 50K customers!

Peter Bogdanoff


___
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: .mp4 support in browser widget--Windows

2024-07-07 Thread Paul Dupuis via use-livecode
Livecode on Windows (9.x.x and 10.x.x) still uses DirectShow for the 
video (vs the Microsoft Media Foundation (MMF), the current standard. 
DirectShow was always limited in the number of codec for various audio 
and video formats it supported natively. I stringly recommend for macOS 
Windows parity on video formats to install the free library of 
additional DirectShow supported codec that are a part of the LAV Filters 
package. See https://github.com/Nevcairiel/LAVFilters/releases


Just install the current version of LAV Filters and restart and you get 
a whole set of additional audio and video formats supported for Livecode 
for Windows.



 On 7/7/2024 1:38 PM, Peter Bogdanoff via use-livecode wrote:

Hi, the browser widget doesn’t support .mp4 (or .mp5, both part of the HTML5 
standard) in Windows.

This is disappointing, especially as LC 10 becomes web based. In the music 
application I’ve been developing, we are now going into new, transformational 
frontiers in education with web-based video (such as YouTube) interacting with 
normal Livecode—but this works on macOS ONLY. I tested YouTube videos in the 
widget on Windows 10, and the YT player reports that the videos are unsupported.

I understand that there is licensing involved. MPEG LA, now VIA Licensing 
Alliance, has a fee structure. For hardware decoders, for example:

For the first 1 to 50,000 decoders  No Royalty*
For decoders 50,001 and more$ 0.25**

https://www.via-la.com/licensing-2/mpeg-4-visual/mpeg-4-visual-license-fees/ 


Is this an obstacle for LiveCode as software, and dependent on the underlying 
hardware?

My understanding from past LC forum posts is, to allow the widget to play the 
videos a flag is turned on and the widget recompiled.

I’m happy to pay for the licensing myself if I got to 50K customers!

Peter Bogdanoff


___
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: url no longer working as expected

2024-06-28 Thread Paul Dupuis via use-livecode

Yes.

put url "https://uk.finance.yahoo.com/quote/SHEL.L/history/";

In the message box on 9.6.11 and 9.6.12 under Windows 11. Both return a 
pile of HTML text that is all the formatting and CSS linked stuff to 
show a "404" page.


This suggests that put URL is working and it is the Yahoo server that 
returning a different page of HTML/CSS for the put vs when you enter the 
URL in a browser (Firefox in my case, where I get the Yahoo finance data 
for Shell, although I did have to respond to a Cookies dialog first).



On 6/28/2024 2:03 PM, Bob Sneidar via use-livecode wrote:

Did you try that in the message box?

Bob S



On Jun 28, 2024, at 10:50 AM, Paul Dupuis via use-livecode 
 wrote:

I get a response from Yahoos that is an html page with a 404 information as 
part of it.

This happens under LC 9.6.12 and 9.6.11

I think this is Yahoo Finance not being able to detect the browser type and 
intentionally returning a 404 as a method of deterring screen scraping.


On 6/28/2024 1:04 PM, Hugh Senior via use-livecode wrote:

Platform: Windows 11, LC 9.6.12
Query: Using URL to access a web page

Problem:
Enter "https://uk.finance.yahoo.com/quote/SHEL.L/history/"; into any web
browser and the page is displayed as expected.

Use LC's URL command to access the same page direct returns a 404
put url "https://uk.finance.yahoo.com/quote/SHEL.L/history/";

Anyone got any insights?

Hugh Senior


___
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: url no longer working as expected

2024-06-28 Thread Paul Dupuis via use-livecode
I get a response from Yahoos that is an html page with a 404 information 
as part of it.


This happens under LC 9.6.12 and 9.6.11

I think this is Yahoo Finance not being able to detect the browser type 
and intentionally returning a 404 as a method of deterring screen scraping.



On 6/28/2024 1:04 PM, Hugh Senior via use-livecode wrote:

Platform: Windows 11, LC 9.6.12
Query: Using URL to access a web page

Problem:
Enter "https://uk.finance.yahoo.com/quote/SHEL.L/history/"; into any web
browser and the page is displayed as expected.

Use LC's URL command to access the same page direct returns a 404
put url "https://uk.finance.yahoo.com/quote/SHEL.L/history/";

Anyone got any insights?

Hugh Senior


___
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: eMail attachment: best practice?

2024-06-26 Thread Paul Dupuis via use-livecode
So this tsNet example for sending an email look great IF you are using 
it in an corporate or institutional setting. One where you have a known 
SMTP server and you know whether or not that SMTP server requires 
authentication.


However, in the "wild" of a distributed application that could be on any 
customer's computer in any setting, how do you know what the customer's 
SMTP server is or whether it requires authentication. If it does require 
authentication, most people set this up in their email client ONCE (or 
rarely) and may not know or remember what the credentials are.


So I considered using our company SMTP server, but increasingly, SMTP 
servers will reject messages if they are from a client computer that is 
not in the same domain, as is the case with ours (for 
anti-spamming/spoofing), so that it out as an option.


I kinda need a solution that uses the clients own email client (and 
server). Maybe I should look at how to encode the array in a pure text 
form that can be part of the email body and send it that way. The 
problem there is that some email clients (like gMail) limit the size of 
the message body that can be generated from their APIs. If you use 
revMail with someone with gMail as their default mail, the message body 
can only be about 2500 characters (or maybe 5000, I forget the exact limit).


I suppose I could output the array as an encoded file to the customer's 
desktop and ASK them to manually attach it to the generated email? I 
wish there was a better option.



On 6/25/2024 6:15 PM, matthias rebbe via use-livecode wrote:

Instead of using revMail which opens the default mail client app you could use 
tsNET external, which is availlable  for Win/Mac/Linux/iOS and Android.

The only thing you have to keep in mind is that tsNet directly sends the email 
instead of opening the default email client.

Here you can find an sample stack
https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode

And here is a link to a Livecode Lesson
https://lessons.livecode.com/m/4071/l/685661-how-to-send-e-mail-using-the-tsnet-external




Am 25.06.2024 um 22:35 schrieb Paul Dupuis via use-livecode 
:

Under a specific condition, my app creates an email with some pre-populated 
information using revMail:

revMail address, [ccAddress, [mailSubject, [messageBody]]]

So, my call is: revMail tSupportEmail, , "Diagnostic Report Information", 
tEmailBody
Where tSupportEmail contains a valid email address and tEmailBody contain the 
information I want to send.

I realize the user still has to click their send button in their email client, 
but I have 2 questions:

1) I see the Dictionary still lists "revMailUnicode" with the same parameters. If 
tEmailBody contains Unicode characters do I need to textEncode(tEmailBody, "UTF-16") and 
use revMailUnicode OR is plain old revMail now Unicode aware

2) My more important question is how does one create an email with an attached 
file? I see no feature of revMail to include an attachment. Is there some other 
way? If there is no way to add an attachment, what might the best practice for 
sending the contents and structure of a Livecode array be?


___
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: eMail attachment: best practice?

2024-06-25 Thread Paul Dupuis via use-livecode
I should have mentioned that my app is for macOS and Windows - no iOS or 
Android version.



On 6/25/2024 5:46 PM, Mark Smith wrote:
I’ve not used revMail but it’s certainly well documented in 
mobileComposeHtmlMail. If you need an example PM me.


Mark


On 25 Jun 2024, at 9:35 PM, Paul Dupuis via use-livecode 
 wrote:


2) My more important question is how does one create an email with an 
attached file? I see no feature of revMail to include an attachment. 
Is there some other way? If there is no way to add an attachment, 
what might the best practice for sending the contents and structure 
of a Livecode array be?





___
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


eMail attachment: best practice?

2024-06-25 Thread Paul Dupuis via use-livecode
Under a specific condition, my app creates an email with some 
pre-populated information using revMail:


revMail address, [ccAddress, [mailSubject, [messageBody]]]

So, my call is: revMail tSupportEmail, , "Diagnostic Report 
Information", tEmailBody
Where tSupportEmail contains a valid email address and tEmailBody 
contain the information I want to send.


I realize the user still has to click their send button in their email 
client, but I have 2 questions:


1) I see the Dictionary still lists "revMailUnicode" with the same 
parameters. If tEmailBody contains Unicode characters do I need to 
textEncode(tEmailBody, "UTF-16") and use revMailUnicode OR is plain old 
revMail now Unicode aware


2) My more important question is how does one create an email with an 
attached file? I see no feature of revMail to include an attachment. Is 
there some other way? If there is no way to add an attachment, what 
might the best practice for sending the contents and structure of a 
Livecode array be?



___
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: Survey: Would you buy one or more widgets from the PRO PACK separately?

2024-06-14 Thread Paul Dupuis via use-livecode
Of those listed, I would pay for (if I needed to, but I have the full LC 
that includes extensions) the PDF Viewer and, possibly, tsNet PRO


I do not develop for mobile, so mobile widgets are not of any immediate 
interest.



On 6/14/2024 2:19 PM, Klaus major-k via use-livecode wrote:

Hi friends,

Livecode is selling most of their widgets separately,
however not the ones from the PRO PACK:
Mobile Debugger
Script Profiler
tsNet PRO
mergAccessory
PDF Viewer

But unfortunately the PRO PACK is quite expensive:
328.90 Euro PLUS VAT!

I am sure most of you do not need all the widgets in the
PRO PACK, but maybe one or two of them.

So please just write if you'd like to buy one or more of these,
maybe we can induce LC to also sell them separately.

--

I confess that this is a quite selfish idea from me, I only
use the PDF Viewer widget in my freeware* app and the
app exclusively made for my band mates, three of us use
an iPad and two of us an Android tablet.

*It's actually "donationware", but noone donated any money
so far in the last couple of years. :-/

I bought the complete PRO Pack in the last three years,
although I ONLY need the PDF viewer, but cannot afford
this anymore. Especially since I do not earn any money
with my apps and I need to renew my Apple Developer
Membership in october.

I would LOVE to buy just the PDF widget separately!

Thank you for reading!

P.S.
Since Android browser cannot display PDF files out of the box,
this is no alternative for me.


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.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



___
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: Pop Combo Menu

2024-06-12 Thread Paul Dupuis via use-livecode

On 6/12/2024 3:01 PM, Paul Dupuis via use-livecode wrote:

*click*at(rightofbtn1- 5,topofbtn1+ 5)


Sorry that line of code is: (paste of formatted text messed it up)

click at (right of btn 1 - 5,top of btn 1 + 5)

___
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: Pop Combo Menu

2024-06-12 Thread Paul Dupuis via use-livecode

On 6/12/2024 2:20 PM, Bob Sneidar via use-livecode wrote:

Hi all. I have a Combo Menu button. I want to have it “pop” open and show the 
options via script, but I cannot find a command to do that.

Bob S

___
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


You can use:

*click*at(rightofbtn1- 5,topofbtn1+ 5)

assuming the combo button is 'btn 1' on your card or replace btn 1 with 
a reference to your combo button. The idea is to generate a "click" at 
the location of the pulldown arrow part of the combo button.


You can create a new empty stack and place a combo btn on it and try 
line of code in the message box with the browse tool selected.





___
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: LiveCode on Social Media

2024-06-04 Thread Paul Dupuis via use-livecode

I followed this one for a little while: https://www.reddit.com/r/livecode/

It was not very active, and, like many Reddit groups, prone to SPAM. 
Reddit, in general, does have a large developer community.


On 6/3/2024 7:22 PM, Richard Gaskin via use-livecode wrote:

For LC support nothing beats this use-list and the LC Forums, but for spreading 
the word about LC and the cool stuff you're making with it nothing beat social 
media.

Two of the largest social media discussion groups for LC are:


LinkedIn: "LiveCode Developers"
Best social media platform for professional interests
https://www.linkedin.com/groups/50811/


Facebook: "LiveCode Users"
One of the biggest platforms for general audiences
https://www.facebook.com/groups/livecodeusers


Is there a third I should include there?

If you use those platforms please consider joining the LC groups. The more 
active discussion that takes place there, the more newcomers may be introduced 
to the language we love.

--
Richard Gaskin
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



___
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: Place Phone Call MacOS

2024-05-24 Thread Paul Dupuis via use-livecode

FYI:

launch url "tel:[phone number]"

Works in LC on Windows 11 as well if you have paired your Android or iPhone 
with Windows.

On 5/24/2024 12:28 PM, Andreas Bergendal via use-livecode wrote:

There is. The url type is ”tel”.

launch url "tel:[phone number]”

(Works in the IDE at least, can’t test standalone/app at the moment.)

/Andreas


24 maj 2024 kl. 18:20 skrev Bob Sneidar via use-livecode 
:

Hi all.

With MacOS connected to my iPhone, I can place a phone call and use my computer 
speaker and Mic. I would like to create a button in my app to do that, but I 
cannot find any infor on how to craft a URL to do that. There probably is no 
URL type for that anyway.

Is there any way I can do that?

Bob S


___
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: somehow OT, but somehow not - no price information anymore on Livecode website

2024-05-23 Thread Paul Dupuis via use-livecode

Pricing still seems to be available for Student and Educational plans:

For example, at https://livecode.com/education-plans/ under the "Buy a 
LiveCode Subscription" there is a link for "View Pricing Options" 
(https://livecode.com/education-plans/#pricingoptions)


It is just Pros & Business they are looking to quote for, which is a 
change for those plans from just showing the pricing.


On 5/23/2024 11:29 AM, matthias rebbe via use-livecode wrote:

Hi,

today I wanted to show a friend, who is interested in using Livecode, the 
different subscription plans  and their prices.
But to my surprise, prices are no longer displayed on the website. The 
interested customers have to request a quote.

I am not sure what to think about this. Was this announced?
Or can the prices be viewed somewhere else?

In any case, my friend doesn't want to give his data to Livecode Ltd. in 
advance just to get price information.

What do you think?

Regards,
Matthias


___
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: Saving data in standalone

2024-05-16 Thread Paul Dupuis via use-livecode
You can save external stacks or created on the fly stacks where ever you 
have *write* (and read) permission on your OS.


Increasingly, whether macOS or Windows, that is not the Applications 
(macOS) or Program Files/Program Files (x86) (Windows) folders. I find 
the SAFEST place to save something is using 
specialFolderPath("documents") and then create a folder structure for 
your company or app in the user's Documents folder. OSes are becoming 
more and more "sandboxed" to prevent malware and dumb user mistakes from 
wrecking apps or the OS itself.



On 5/16/2024 4:43 PM, Peter Bogdanoff via use-livecode wrote:

Craig,

Saving: the stacks within the MacOS package and the Windows Applications 
folders can be saved—within that location?

Can new stacks/files be written to those same folders?

Peter


On May 16, 2024, at 4:26 PM, Craig Newman via use-livecode 
 wrote:

I did not explicitly mention that any and all of the attached stacks are 
savable.

Craig


On May 16, 2024, at 1:31 PM, Paul Dupuis via use-livecode 
 wrote:

On 5/16/2024 12:58 PM, Paul Dupuis via use-livecode wrote:

save that stack under a customer file extension

That should have said "custom file extension"

___
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: Saving data in standalone

2024-05-16 Thread Paul Dupuis via use-livecode

On 5/16/2024 12:58 PM, Paul Dupuis via use-livecode wrote:

save that stack under a customer file extension


That should have said "custom file extension"

___
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: Saving data in standalone

2024-05-16 Thread Paul Dupuis via use-livecode
My suggestion would be to have your Standalone create a new stack with 
the user's work and save that stack under a customer file extension for 
your app.


You can not actually save data in a standalone. you must save it to some 
source outside of the standalone - and stack, a text file, a binary 
file, a remote database, etc. - whatever works for your app.



On 5/16/2024 12:51 PM, jbv via use-livecode wrote:

Hi list,
I am working on an app for a client who will use it as a standalone.
Basically users will be able to import data such as images, text and
even html from various sources. All these data will self organize in
different groups that the user will be able to select, move around
and organise in a layout, and finally export as a pdf file.
The problem is that all this work will be done in successive sessions,
and between each step there will be the need to temporary save the
work to retrieve it in the next session.
And I'm not sure about the best way to save groups within an LC
standalone and retrieve everything in a similar layout in the
next session, or even if it's possible.
Any idea and suggestion are welcome.

Thank you in advance.
jbv

___
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: Livecode startup messages...

2024-05-08 Thread Paul Dupuis via use-livecode

Yes,

I figured that out earlier this week and just hadn't had time to post. 
It is some sort of Windows 11 issue and not on all Windows 11 systems. 
Still don't know what it is. The 3 printers on our office network are 
all HPs and I think all my drivers are up to date. I also have a couple 
of different PDF printer drivers installed (Microsoft's, Foxit's and one 
other)



On 5/8/2024 1:20 PM, Mike Kerner via use-livecode wrote:

this is not just a lc issue
we use 4d, extensively, and every time a 4d client starts on windows, the
same message appears

On Fri, May 3, 2024 at 6:20 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:


Interesting. As I’ve mentioned I install and provide IT support for
copiers and printers. Ever since Windows 8 (I believe) Microsoft has been
providing built in drivers for these devices, and they use what is called a
WSD (Windows Service Daemon) port instead of a typical TCP/IP port.

If you go to install a printer and you see a list of icons representing
the discovered printers on the network, NEVER EVER USE THEM! Manufacturers
will not support them, and they cause all kinds of issues. ALWAYS select
“The device I want isn’t listed” and use the standard TCP/IP method of
installing a printer, or better yet the manufacturer probably supplies an
executable either downloaded or on a CD ROM. Use that.

Of course, that does not help LC devs who are deploying apps to end users
who cannot be told what to do.

Bob S



On May 3, 2024, at 2:33 PM, matthias rebbe via use-livecode <

use-livecode@lists.runrev.com> wrote:

There was a problem in the past where standalones were LC IDE, LC

Instaler and standalones were crashing on startup.

This is what Panos wrote about it:
We recently fixed a bug (affecting mainly Windows 11) where the LC
installer, the LC IDE and Windows standalones were crashing on startup.

It

turned out this was caused if some generic printer drivers were installed
in the device, and installing the official printer drivers from the
vendor's website prevented the crash. We had reports for Brother

printers,

Epson and HP if I remember correctly.

The fix we added did fix the crash, but in some cases caused a delay on
startup, if the device still had the "generic" printer driver installed.
<<


Maybe there is a regression in some way that LC now does not crash but

shows the messages.

Could you try the following?

1. Open Windows Task Manager
2. Search for a process named "Spooler Subsystem app" or just "Print
Spooler"
3. Force quit this process

If this solves it, then it seems to be a regression in the new LC dp

builds.

Regards,

Matthias





Am 03.05.2024 um 20:16 schrieb Paul Dupuis via use-livecode <

use-livecode@lists.runrev.com>:

I had not searched the forums, but I just did for "Waiting for printer"

and "printer connections" and neither phrase turned up anything related to
the dialog that appears on startup (unfortunately). Maybe under another
search term, but the general term of "printer" returns 38 screens of forum
messages! Good suggestion though. Thank you.


On 5/3/2024 1:43 PM, Bob Sneidar via use-livecode wrote:

I think this has come up before, but I forget the resolution. Did you

search the forums?

Bob S



On May 3, 2024, at 10:40 AM, Paul Dupuis via use-livecode <

use-livecode@lists.runrev.com> wrote:

When LC 9.6.11 or 9.6.12rc1 starts up OR (more importantly to me)

Standalones build with either of those versions starts up, on Windows 11,
there is a dialog that appear stating "Waiting for printer connections..."

This dialog may appear on earlier versions - I forget if I had seen

it previously.

Is there some setting to prevent or hide this dialog? In my

standalone app, I have customers asking what is it and find it "annoying".


___
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 ma

Re: Livecode startup messages...

2024-05-03 Thread Paul Dupuis via use-livecode
I had not searched the forums, but I just did for "Waiting for printer" 
and "printer connections" and neither phrase turned up anything related 
to the dialog that appears on startup (unfortunately). Maybe under 
another search term, but the general term of "printer" returns 38 
screens of forum messages! Good suggestion though. Thank you.



On 5/3/2024 1:43 PM, Bob Sneidar via use-livecode wrote:

I think this has come up before, but I forget the resolution. Did you search 
the forums?

Bob S



On May 3, 2024, at 10:40 AM, Paul Dupuis via use-livecode 
 wrote:

When LC 9.6.11 or 9.6.12rc1 starts up OR (more importantly to me) Standalones build with 
either of those versions starts up, on Windows 11, there is a dialog that appear stating 
"Waiting for printer connections..."

This dialog may appear on earlier versions - I forget if I had seen it 
previously.

Is there some setting to prevent or hide this dialog? In my standalone app, I have 
customers asking what is it and find it "annoying".


___
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


Livecode startup messages...

2024-05-03 Thread Paul Dupuis via use-livecode
When LC 9.6.11 or 9.6.12rc1 starts up OR (more importantly to me) 
Standalones build with either of those versions starts up, on Windows 
11, there is a dialog that appear stating "Waiting for printer 
connections..."


This dialog may appear on earlier versions - I forget if I had seen it 
previously.


Is there some setting to prevent or hide this dialog? In my standalone 
app, I have customers asking what is it and find it "annoying".



___
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: Help converting python one-liner...

2024-04-24 Thread Paul Dupuis via use-livecode

If json need utf8, then the last line needs to be:

put textEncode(base64Image,"UTF-8") into encodedImageData

textEncode will convert the bas64 data (stored in livecode as 16bit characters) 
to UTF8

On 4/24/2024 2:45 PM, David Bovill via use-livecode wrote:

I need to put encodeImageData into json (which is utf-8) and then post it
to the api. I'm not sure what aspects of base64 encoding would not be utf8
compatible... seem to remember there are some quirks there to be aware of.
The python code does  the decode("utf-8") step at the end - so I guess
there is some issue with raw base64 encoding in json?

On Wed, 24 Apr 2024 at 19:26, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


On 4/24/2024 1:43 PM, David Bovill via use-livecode wrote:

I'm trying to base64 encode an image and include it into a json file to
post to an api. The python code that accomplishes this is:

image1_data =
base64.b64encode(httpx.get(image1_url).content).decode("utf-8")

When I try to follow the logic in Livecode I get:

put url imageUrl into sImage
put base64Encode (sImage) into base64Image
put textDecode (base64Image, "UTF-8") into encodedImageData

However the api complains that the image is not encoded properly. Adding

or

removing the "textDecode" step does not help. Any thoughts?


This is just a guess, but I thing your last line needs to be:

put textEncode(base64Image,"UTF-8") into encodedImageData

textDecode in Livecode converts from the format (UTF-8) to Livecode's
16bit internal unicode

textEncode converts from livecode's internal 16bit unicode to the
indicated format (UTF-8).
___
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: Help converting python one-liner...

2024-04-24 Thread Paul Dupuis via use-livecode

On 4/24/2024 1:43 PM, David Bovill via use-livecode wrote:

I'm trying to base64 encode an image and include it into a json file to
post to an api. The python code that accomplishes this is:

image1_data =
base64.b64encode(httpx.get(image1_url).content).decode("utf-8")

When I try to follow the logic in Livecode I get:

put url imageUrl into sImage
put base64Encode (sImage) into base64Image
put textDecode (base64Image, "UTF-8") into encodedImageData

However the api complains that the image is not encoded properly. Adding or
removing the "textDecode" step does not help. Any thoughts?



This is just a guess, but I thing your last line needs to be:

put textEncode(base64Image,"UTF-8") into encodedImageData

textDecode in Livecode converts from the format (UTF-8) to Livecode's 
16bit internal unicode


textEncode converts from livecode's internal 16bit unicode to the 
indicated format (UTF-8).

___
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: Windows on ARM...

2024-04-10 Thread Paul Dupuis via use-livecode

Thank you Mark!

I'm sure like most folks that sell software, we have a small camp of 
customers that always want to be on the leading-edge and, whether its a 
new macOS or a new Windows OS (or OS feature), we get contacted early 
and often about whether our software will be compatible.


There are some days I just want to scream "It will work when it will 
work!" but I do understand their interest in new technologies and so we 
try to provide some reasonable answer. These responses (from you and 
Mike) allow me to respond that it is very likely our app will work on 
Windows ARM.


-- Paul

On 4/10/2024 2:11 AM, Mark Waddingham via use-livecode wrote:

On 2024-04-09 20:03, Paul Dupuis via use-livecode wrote:

Mothership people (or anyone in the community that may know this):

Microsoft is expected to port and release Windows running on ARM 
chips (Surface laptops will use the Snapdragon X Elite processors 
from Qualcomm) this year. Announcement expected May 20, shipping - 
who knows when, but likely this year. This is to compete with Apple's 
M# chips.


Will we have a dual build option in Livecode (or is one even needed)? 
And, for the BIG QUESTION, how long is it likely to be after Windows 
on ARM is released to the public before we see a LC version that 
supports it?


I can't really say when we will add a native ARM64 build for Windows - 
it will depend largely on demand and need.


That being said, we have recently updated how we build the windows 
engine to use the most recent version of Visual Studio (which has 
arm64 target compilers) so that is at least a step in the right 
direction.


I know, this is probably way ahead of any practical answer, but I 
know we WILL have customers asking us if our app (built on LC9.6.11) 
will run on Windows on ARM on day one.


Windows ARM has been available to everyone for a while - albeit not 
strictly a 'public' thing, virtualization tools like VMware on macOS 
will download and install the ARM version of windows automatically if 
you are running on an ARM mac.


We have a couple of people internally who have ARM macs, and use 
VMware to run Windows in ARM and we haven't seen any problems.


So I can echo what Mike said - especially since Microsoft added x86-64 
support to their Intel emulation layer on Windows ARM (think Rosetta 
2) about a year or so ago - both x86 and x86-64 versions of the 
LiveCode engine run seamlessly on it.


Another thing to remember is that Microsoft are not forcing a 
processor transition unlike Apple have done twice now (in the last two 
decades) - I fully expect that Windows on ARM will support Intel 
executables indefinitely, just like x86-64 Windows continues to 
support x86 executables.


Warmest Regards,

Mark.




___
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: Windows on ARM...

2024-04-09 Thread Paul Dupuis via use-livecode

Thank you Mike. I did not know that.

On 4/9/2024 3:15 PM, Mike Kerner via use-livecode wrote:

paul,
lc apps that i built on win years ago are still running on win on arm (and
have been, for three years), so i'm guessing there is at least an emulation
mode.

On Tue, Apr 9, 2024 at 3:04 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


Mothership people (or anyone in the community that may know this):

Microsoft is expected to port and release Windows running on ARM chips
(Surface laptops will use the Snapdragon X Elite processors from
Qualcomm) this year. Announcement expected May 20, shipping - who knows
when, but likely this year. This is to compete with Apple's M# chips.

Will we have a dual build option in Livecode (or is one even needed)?
And, for the BIG QUESTION, how long is it likely to be after Windows on
ARM is released to the public before we see a LC version that supports it?

I know, this is probably way ahead of any practical answer, but I know
we WILL have customers asking us if our app (built on LC9.6.11) will run
on Windows on ARM on day one.

Paul Dupuis
Researchware


___
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


Windows on ARM...

2024-04-09 Thread Paul Dupuis via use-livecode

Mothership people (or anyone in the community that may know this):

Microsoft is expected to port and release Windows running on ARM chips 
(Surface laptops will use the Snapdragon X Elite processors from 
Qualcomm) this year. Announcement expected May 20, shipping - who knows 
when, but likely this year. This is to compete with Apple's M# chips.


Will we have a dual build option in Livecode (or is one even needed)? 
And, for the BIG QUESTION, how long is it likely to be after Windows on 
ARM is released to the public before we see a LC version that supports it?


I know, this is probably way ahead of any practical answer, but I know 
we WILL have customers asking us if our app (built on LC9.6.11) will run 
on Windows on ARM on day one.


Paul Dupuis
Researchware


___
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: Revisiting Lock Screen

2024-03-28 Thread Paul Dupuis via use-livecode
In our app, we have a lot of handlers (internal APIs) that get called by 
other handlers and, as multiple developers are involved, knowing what is 
calling what takes some effort. To address the issue of screen locks, we 
adopted a coding standard as follows:


If a handler should lock the screen, we add the following code:


put the lockScreen into tPreserveLockScreen
if tPreserveLockScreen is false then lock screen -- if the screen is not 
already locked by any calling handler, then lock the screen, else, the 
screen is already locked by the calling handler


... code of the handler 

if tPreserveLockScreen is false then unlock screen -- if the screen was 
not locked by the calling handler, it was locked by this handler, so 
unlock it, else, expect that the calling handler should unlock it (or 
preserve it as appropriate)



I know this doesn't address the specific issue raised in this thread, 
but I thought this model may be helpful to someone reading this thread.


___
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


Dropping file on an LC standalone...

2024-03-21 Thread Paul Dupuis via use-livecode
My question is what message is triggered when a file is dropped on a 
running LC standdalone on Windows


On Windows, if the APP is started by dropping a file on it, the file 
name is available to any handler in the startup sequence via the $1 
special variable. i.e. IF teh variable $1 contains a file name the app 
was started by someone droping the file on teh app or by double-clicking 
a file associated with teh app.


On macOS, this is all handled by appleEvents. i.e. if a file is dropped 
on a LC standalone on macOS that standalone gets an appleEvent message 
and the parameters of the message can be used to get the file name . 
This is true on startup (if a file was dropped on the app to start it or 
an associated file was double clicked to start the app OR on macOS if 
the app is already running and a file is dropped on its icon, the app 
gets an appleEvent message.


So, what message does a LC standalone app on Windows get, if it has been 
running and a file is dropped on its icon? An what is the message path 
of that message (i.e. is it send to the current card, current stack, the 
mainstack card, or the mainstack stack?)


Thanks in advance!

___
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: PDF widget print quality

2024-02-21 Thread Paul Dupuis via use-livecode
I'm not sure it is possible. Livecode's printing tends to be card based 
and at card resolution, typically 72 dpi.


I recall seeing some efforts on the lists and forums to make an object 4 
times bigger (75 dpi x 4 = 300 dpi) so that when it is printed to a 
300dpi printer is is a higher resolution but normal size but I don't 
recall how successful any of those efforts were.


There is probably an ancient enhancement  request in the Livecode 
Quality Center to support higher-resolution printing.



On 2/20/2024 8:56 PM, David Epstein via use-livecode wrote:

I want to use the PDF widget to print a PDF with additional markings added in 
LiveCode.  Showing a simple PDF tax form in Widget 1 at 100% scale, I tried 
this script:

on p1

get the pageRect of widget 1

open printing with dialog

print card from (item 1 to 2 of it) to (item 3 to 4 of it) into it

close printing

end p1


This prints a full page at the proper size, but not with acceptable print 
quality; everything is slightly blurred and pixellated.  How can I get a good 
quality printout?

David Epstein
___
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: polygrid formatted column width

2024-02-20 Thread Paul Dupuis via use-livecode
You have the dataWidth of the polygrid for the formattedWidth of the 
widget (to be wide enough to display all data), but what I think you 
want is some equivalent of the fomattedWidth of each column. I don't 
believe any such property exists in the polygrid. It would be like 
setting the columnWidth of a column to 'auto' or something like that, 
which would be a nice feature enhancement, but doesn't exists currently. 
You're welcome to file a feature enhancement. I'd definitely +1 it.


You would have to roll your own, probably using the 
"measureText(text,objectReference,[mode])" function. You would need to 
iterate through all the rows of data and find the longest string (in px) 
for each column via measureText and then set the columnWidths of the 
polygrid to that set of column widths. I am also not sure if measureText 
can use a widget as an object reference, so, if not, you may need a 
hidden field/button as teh object reference set to the same font and 
size as the polygrid.


Anyway, that's how I would try to solve this :-)

Paul Dupuis
Researchware

On 2/20/2024 3:49 PM, Mike Kerner via use-livecode wrote:

alrighty, then
i've got a polygrid. now, i want to set the column widths to the equivalent
maximum formatted widths, because...this is being used as part of an ad hoc
query tool.
did i miss something? i don't see an equivalent property
___
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: Manipulating PDF's

2024-02-16 Thread Paul Dupuis via use-livecode
If you just need a person to view a particular spot in a PDF, using the 
PDF widget in Livecode would be easier than trying to manipulate an 
arbitrary PDF viewer. If there is a way to adjust the scroll, it is 
probably PDF viewer specific and you'd need to know whether the user is 
using Apple Preview (macOS only) or Adobe Reader or Foxit Reader, or 
something else as their PDF viewer.



On 2/16/2024 12:55 PM, Ray Horsley via use-livecode wrote:

Greetings - after using launch document to launch a PDF file (using the
default PDF viewer) is there any way to get a reference to the window it
opened in, and then get and set the vScroll of that window?

___
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: Latest PolyGrid

2024-02-13 Thread Paul Dupuis via use-livecode
1_0_33 is the version I am running as well. I had not seen any 
announcement or email about a .34 release. Now I think I will try to 
avoid it and wait for .35!


On 2/13/2024 11:45 AM, Klaus major-k via use-livecode wrote:

Hi all,

yesterday I installed the latest version of "livecode_enhancements-1_0_34"
but the new "Polygrid" version 1.8.0 completely wrecked my working stack,
so I had to go back to the previous version 1.7.4.

E.g. it threw an error on my "on cellclick" handler just by setting:
-> set the pgData of me to tArray

on cellClick pColumnNumber,pRowNumber, pCellRect
-> ERROR: pColumnNumer is not a number (if I remember correctly)

Noone clicked anything I just set the pgData :-/

And also wrecked the order of its correctly prepared (in the array) content.
Big fun! :-/

Anyone else experienced something like this?


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.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



___
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


AW: Re: macOS window maximization weirdness

2024-02-10 Thread Paul Dupuis via use-livecode

So, I finally tracked this maximization weirdness down.

This only occurs on macOS when a window is maximized using the titlebar 
maximization icon (which cause teh window to go to fullscreen, hiding 
the window titlebar and macOS menubar. The menubar and titlebar 
re-appear if your roll the mouse over where they are hidden, allowing 
the user to click on titlebar maximization icon to restore the window to 
normal size.


The issue also only occurs if the resizeStack handler for the window 
uses the passed parameters to determine position of objects within the 
window. i.e. if you do:

Example 1)
on resizeStack pNewWidth, pNewHeight
  set the bottomRight of btn "X" to (pNewWidth-5),(pNewHeight-5)
end resizeStack

There can be a problem under the specific circumstances below. Where as:
Example 2)
on resizeStack
  put the width of this stack into pNewWidth
  put the height of this stack into pNewHeight
  set the bottomRight of btn "X" to (pNewWidth-5),(pNewHeight-5)
end resizeStack

Will work under the specific circumstances below.

When a window is mazimized on macOS, that window is sent a resizeStack 
message with the correct parameters, so either code block above works.


However, on macOS ONLY (not Windows) when a window is maximized, after 
the resizeStack message is sent, a desktopChanged message is also sent


My problem was that I also have a on desktopChanged handler in my app. I 
had expected desktopChanged to only be sent when a monitor is added or 
removed or the resolution of a monitor is changed (increased or 
decreased), not if a window is maximized.


My desktopChanged handler, at one point, executes either a:

  set the effective width of window tWindow to tMontiorWidth
OR a
  set the effective height of window tWindow to tMonitorHeight

Either of which sends a resizeStack message to the stack/window. 
However, when it is sent this 2nd time as a result of the window 
maximization (which does a successful resizeStack, then desktopChanged, 
which sets teh effecting width/height, that causes a resizeStack) the 
resizeStack parameters, pNewWidth and pNewHeight are EMPTY, so any 
placement of controls based on the parameters use empty, which gets 
treated as zero.


The work-around is the do Example 2 for resizeStack, but I think is 
might be considered an ENGINE BUG that on macOS, not Windows, 
maximization sends a resizeStack and then a desktopChanged message. No 
monitor has been added or removed, nor has the resolution of any monitor 
been changed, therefore I don't think a desktopChanged message SHOULD be 
sent on macOS window maximization. I think this is a bug?


Does anyone have a valid reason why macOS should receive a 
desktopChanged message on window maximization when Windows does not?


Paul Dupuis
Researchware

On 1/15/2024 6:16 PM, Paul Dupuis via use-livecode wrote:
I have a standalone, built with Livecode 9.6.11 STABLE, where for some 
windows (stacks) on certain macOS versions, maximizing the window 
results in no controls being drawn or most controls being drawn 
incorrectly.


It is not every resizable window (stack) in my app, just some. It is 
not every version of macOS, just some. For example, on macOS Sonoma, 
the offending windows (again, a subset of all my app's resizable 
windows) work fine. On Mojave, they do not.


On Windows, they all work fine when maximized (meaning they are all 
rendered as expected). On macOS and Windows, they all RESIZE (i.e. 
user window resizing) correctly. It is only certain windows AND only 
on certain versions of macOS, and only when maximized (using the 
titlebar green maximize circular icon). In fact. you can RESIZE the 
window manually on macOS Sonoma or Mojave up to the working area of 
the screen (all so the full screen except the menubar) and they all 
render correctly. It is just the "full screen" maximize Apple now does 
where it hides the window's titlebar until you hover over where it 
would be that have a problem and, again, just for certain windows on 
certain versions of macOS.


I'm baffled as the resizeStack handlers are the same across platforms 
(macOS and Windows). There is NOT platform specific code in the 
resizeStack handlers and, I believe, that when a window is maximized, 
Livecode just sends a resizeStack message.


Has anyone seen or heard of any weirdness like this?

I do not have a whole set of macOS version to test on. Sonoma and 
Mojave are about it. I can compare the resizeStack handlers for the 
stacks that maximize correctly with those that don't to see if there 
is some issue, but they all work correctly on Windows and work 
correctly when manually resized.



___
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: Mousedown in Application Menubar Messages

2024-02-05 Thread Paul Dupuis via use-livecode
I've not experienced any problems with the menubar group receiving a 
mouseDown message to adjust the menus based on context before they 
appear (LC versions up to 9.6.11 on macOS and Windows)


A long time back, I did have an unnecessary  'wait 0 with messages' in 
my mouseDown handler and had instances where other messages fired before 
my mouseDown handler was done (or so it seemed).



On 2/5/2024 3:07 PM, David Bovill via use-livecode wrote:

I'm having a difficult to track down issue with application menus I've
created using the Menu Builder tool - everything works but the "mouseDown"
message is not sent to the group - well sometimes it is sometimes it is not
:) I'm using "mousedown" to trigger dynamic formatting of the menus. Menupick
messages are sent fine.

Has anyone had a similar experience - I feel it may be due to the detail of
how the menu-buttons are formatted in the group - but it might also be a
bug in dp7?
___
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: Regex brain failure...

2024-02-03 Thread Paul Dupuis via use-livecode
https://regex101.com/ is exactly the site I ended up using. The step 
through debugger is perfect for fining where a particular pattern fails. 
It's what let me see there was a tab space tab where I expected a single 
tab in the data and correct teh regex for the data as it actually is.


On 2/3/2024 7:04 PM, Kaveh Bazargan wrote:
For testing regex you might find it useful to use regex101. It's 
excellent and you can save the page. I put your text here 
<https://regex101.com/r/OwsGnl/1> just for testing. pls note your tabs 
are corrupted in the email and I put an "a" to make it work just for test.


On Sat, 3 Feb 2024 at 21:13, Paul Dupuis via use-livecode 
 wrote:


Never mind.

The correct pattern is: ^\d+?\t.\tnontraditional
field\tText\t2,319\tInterview 1\.txt$

There is a column with a space in it between the number column (1st
column) and the 3rd column (which I thought was the 2nd column)
that has
the code name in it (ie. nontradtional field). Now to figure out why
that is!

    On 2/3/2024 1:36 PM, Paul Dupuis via use-livecode wrote:
> I have a (reduced) example set of data in a variable
"tCaseCodes" that
> is tab delimited set of lines below:
>
> 1         I am making a high salary    Text    2,319  Interview
1.txt
> 2         nontraditional field    Text    2,319  Interview 1.txt
> 3         gets married and stays married    Text  453,561
 Interview
> 1.txt
> 4         wants kids    Text    927,1009    Interview 1.txt
> 5         leaves work when kids born doesn't return  Text
>  1012,1609    Interview 1.txt
> 6         takes major responsibility for family work  Text
>  1012,1609    Interview 1.txt
>
> I have a Regex pattern in the variable "tCodeToMatch" shown below:
>
> ^\d+\tnontraditional field\tText\t2,319\tInterview 1.txt$
>
> I am executing the line of livecode script:
>
> filter lines of tCaseCodes with regex tCodeToMatch into tDuplicates
>
> The variable tDuplicates should then contain:
>
> 2         nontraditional field    Text    2,319  Interview 1.txt
>
> But is instead, empty.
>
> Clearly, I must have made a Regex pattern mistake, but I am not
seeing
> it. It is ^(start of line) \d+(any number of digits) \t(tab)
> nontraditional field  \t(tab) Text  \t(tab) 2,319 \t(tab) Interview
> 1.txt $(end of line)
>
> I thought that the period in the file name (Interview 1.txt) may
have
> been an issue as period is a reserved regex character to match a
> single character. However, I get the same empty result if I
escape the
> period, so it must be something else. I believe \d+ gets me an
integer
> as the number in this column could be several digits long.
>
> A second set of regex eyes would be appreciated.
>
> ___
> 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



--
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalley.io> ● Twitter 
<https://twitter.com/rivervalley1000> ● LinkedIn 
<https://www.linkedin.com/in/bazargankaveh/>● ORCID 
<https://orcid.org/-0002-1414-9098> ● @kaveh1000@mastodon.social 
<https://mastodon.social/@kaveh1000>

*Accelerating the Communication of Research*
*<https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop> 
https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/ 
<https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/>

*

___
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: Regex brain failure...

2024-02-03 Thread Paul Dupuis via use-livecode

Never mind.

The correct pattern is: ^\d+?\t.\tnontraditional 
field\tText\t2,319\tInterview 1\.txt$


There is a column with a space in it between the number column (1st 
column) and the 3rd column (which I thought was the 2nd column) that has 
the code name in it (ie. nontradtional field). Now to figure out why 
that is!


On 2/3/2024 1:36 PM, Paul Dupuis via use-livecode wrote:
I have a (reduced) example set of data in a variable "tCaseCodes" that 
is tab delimited set of lines below:


1         I am making a high salary    Text    2,319    Interview 1.txt
2         nontraditional field    Text    2,319    Interview 1.txt
3         gets married and stays married    Text    453,561  Interview 
1.txt

4         wants kids    Text    927,1009    Interview 1.txt
5         leaves work when kids born doesn't return    Text 
 1012,1609    Interview 1.txt
6         takes major responsibility for family work    Text 
 1012,1609    Interview 1.txt


I have a Regex pattern in the variable "tCodeToMatch" shown below:

^\d+\tnontraditional field\tText\t2,319\tInterview 1.txt$

I am executing the line of livecode script:

filter lines of tCaseCodes with regex tCodeToMatch into tDuplicates

The variable tDuplicates should then contain:

2         nontraditional field    Text    2,319    Interview 1.txt

But is instead, empty.

Clearly, I must have made a Regex pattern mistake, but I am not seeing 
it. It is ^(start of line) \d+(any number of digits) \t(tab) 
nontraditional field  \t(tab) Text  \t(tab) 2,319  \t(tab) Interview 
1.txt $(end of line)


I thought that the period in the file name (Interview 1.txt) may have 
been an issue as period is a reserved regex character to match a 
single character. However, I get the same empty result if I escape the 
period, so it must be something else. I believe \d+ gets me an integer 
as the number in this column could be several digits long.


A second set of regex eyes would be appreciated.

___
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


Regex brain failure...

2024-02-03 Thread Paul Dupuis via use-livecode
I have a (reduced) example set of data in a variable "tCaseCodes" that 
is tab delimited set of lines below:


1         I am making a high salary    Text    2,319    Interview 1.txt
2         nontraditional field    Text    2,319    Interview 1.txt
3         gets married and stays married    Text    453,561  Interview 1.txt
4         wants kids    Text    927,1009    Interview 1.txt
5         leaves work when kids born doesn't return    Text  1012,1609   
 Interview 1.txt
6         takes major responsibility for family work    Text 
 1012,1609    Interview 1.txt


I have a Regex pattern in the variable "tCodeToMatch" shown below:

^\d+\tnontraditional field\tText\t2,319\tInterview 1.txt$

I am executing the line of livecode script:

filter lines of tCaseCodes with regex tCodeToMatch into tDuplicates

The variable tDuplicates should then contain:

2         nontraditional field    Text    2,319    Interview 1.txt

But is instead, empty.

Clearly, I must have made a Regex pattern mistake, but I am not seeing 
it. It is ^(start of line) \d+(any number of digits) \t(tab) 
nontraditional field  \t(tab) Text  \t(tab) 2,319  \t(tab) Interview 
1.txt $(end of line)


I thought that the period in the file name (Interview 1.txt) may have 
been an issue as period is a reserved regex character to match a single 
character. However, I get the same empty result if I escape the period, 
so it must be something else. I believe \d+ gets me an integer as the 
number in this column could be several digits long.


A second set of regex eyes would be appreciated.

___
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: macOS window maximization weirdness

2024-01-19 Thread Paul Dupuis via use-livecode
It may be that. I have to figure out a work-around. I will keep 
properties in mind as I dig into the resizeStack handlers.


And yet, I shouldn't have to figure out a work-around. Since it works on 
Sonoma and Windows 11, it really SHOULD work on Mojave (and Monterey and 
all supported versions of macOS).



On 1/19/2024 7:11 PM, Brian Milby wrote:
What I find most curious is that the Autocode window does show a few 
controls that look to be placed correctly at the bottom of the window. 
 My guess is that it is a timing issue and you are using a property 
value that isn’t yet updated.  That is probably (hopefully) going to 
be a good place to start since you have good and bad placement in the 
same handler.


Brian Milby
br...@milby7.com

On Jan 19, 2024, at 1:30 PM, Paul Dupuis via use-livecode 
 wrote:


So , for any one interested, here are screenshots of what is 
happening. The "Autocode" window (stack) and the "Search Sources" 
window (stack) are two example of the windows that do NOT maximize 
correctly. Many other resizable windows do so just fine and windows 
with both fewer and more controls in them work fine. There are also a 
few more windows that do NOT maximize correctly that I did not screen 
shot.

___
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: macOS window maximization weirdness

2024-01-19 Thread Paul Dupuis via use-livecode
So , for any one interested, here are screenshots of what is happening. 
The "Autocode" window (stack) and the "Search Sources" window (stack) 
are two example of the windows that do NOT maximize correctly. Many 
other resizable windows do so just fine and windows with both fewer and 
more controls in them work fine. There are also a few more windows that 
do NOT maximize correctly that I did not screen shot.


Below are screen shots (full desktop) of each window maximized on 
Windows 11 (correctly), Sonoma (correctly) and Mojave (incorrectly 
drawn). Again, there windows, on ALL 3 OS versions, can be manually 
resized without problems. It is only when you click on the macOS 
Maximize icon in the title bar. In addition to not drawing correctly on 
Mojave, we also witnessed them not drawing correctly on Monterey. The 
resizeStack handlers have NO platform specific code.


https://www.researchware.com/livecode/HR457-Autocode-Win11-Maximized.png
https://www.researchware.com/livecode/HR457-Autocode-Mojave-Normal.png
https://www.researchware.com/livecode/HR457-Autocode-Mojave-Maximized.png
https://www.researchware.com/livecode/HR457-Autocode-Sonoma-Normal.png
https://www.researchware.com/livecode/HR457-Autocode-Sonoma-Maximized.png
https://www.researchware.com/livecode/HR457-SearchSources-Win11-Maximized.png
https://www.researchware.com/livecode/HR457-SearchSources-Mojave-Normal.png
https://www.researchware.com/livecode/HR457-SearchSources-Mojave-Maximized.png
https://www.researchware.com/livecode/HR457-SearchSources-Sonoma-Normal.png
https://www.researchware.com/livecode/HR457-SearchSources-Sonoma-Maximized.png

Logically, there must be some difference in the resizeStack handlers. I 
have already received the suggested to try having resizeStack send a 
"doResize" (or some handler name) message in time that does the actual 
resize as a work-around. I have not had a chance to try that yet. I 
expect I may OR may not fine that perhaps some use the width and height 
passed as resizeStack message handler parameters while others get the 
width and height of the card. I'll see if there is some commonality on 
how the resizeStack is getting the dimension to resize to between those 
windows that work and those that don't.


However, logically, it certainly seems like there is some OS version 
specific engine bug emerging here since the same code works on Windows 
and some versions of macOS and not others versions of macOS.



On 1/19/2024 9:22 AM, Curry Kenworthy via use-livecode wrote:


Paul:

> on certain macOS versions, maximizing the window results in
> no controls being drawn or most controls being drawn incorrectly.

When drawn incorrectly, are controls the wrong sizes/rects?
Or content/visual glitches? Of what nature?

Thought it might be worth following up, in case anyone saw similar -
or might jog my own memory! So many LC/OS issues, details help

Happy 2024!

Best wishes,

Curry K.

___
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: Bug 23507 - LC Clipboard Polling Failure

2024-01-16 Thread Paul Dupuis via use-livecode

Ralph,

Thanks for the tip. As I did into this problem, I'll give that a try.

I'm just getting tired of Apple and/or Livecode changing things so that 
code that DID work is then discovered NOT working any more.


I have very limited time and resources and I'd like to spend MORE of it 
making new features for my products that fixing bugs that happen because 
a new macOS (or Windows) came out or a new version of Livecode or some 
combination breaks what was working.


I always post on this list first in hopes someone else has see whatever 
issue I have run into and can say definitively look at this bug number 
in the LC Quality Center for both the issue and, ideally, a work-around.




On 1/16/2024 8:20 PM, Ralph DiMola via use-livecode wrote:

Too fast to look and see I was on the wrong thread. Meant to respond to
Paul's.

Woops...

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Curry Kenworthy via use-livecode
Sent: Tuesday, January 16, 2024 6:21 PM
To: use-livecode@lists.runrev.com
Cc: Curry Kenworthy
Subject: Re: Bug 23507 - LC Clipboard Polling Failure


Ralph:

  > do a send in time to the real resizing code.

Oh I fixed mine smooth as butter, but still blamed! First impressions...
(Plus some extra bias since I can't do phone/voice anymore, per health.)

But A: That's the other thread; This one is LC Clipboard Polling bug!

And B: Main context is Paul's situation, possibly an engine or OS issue.
(As mine was, but a different specific one. Required a big workaround.)

Thanks!

Best wishes,

Curry K.

___
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


macOS window maximization weirdness

2024-01-15 Thread Paul Dupuis via use-livecode
I have a standalone, built with Livecode 9.6.11 STABLE, where for some 
windows (stacks) on certain macOS versions, maximizing the window 
results in no controls being drawn or most controls being drawn incorrectly.


It is not every resizable window (stack) in my app, just some. It is not 
every version of macOS, just some. For example, on macOS Sonoma, the 
offending windows (again, a subset of all my app's resizable windows) 
work fine. On Mojave, they do not.


On Windows, they all work fine when maximized (meaning they are all 
rendered as expected). On macOS and Windows, they all RESIZE (i.e. user 
window resizing) correctly. It is only certain windows AND only on 
certain versions of macOS, and only when maximized (using the titlebar 
green maximize circular icon). In fact. you can RESIZE the window 
manually on macOS Sonoma or Mojave up to the working area of the screen 
(all so the full screen except the menubar) and they all render 
correctly. It is just the "full screen" maximize Apple now does where it 
hides the window's titlebar until you hover over where it would be that 
have a problem and, again, just for certain windows on certain versions 
of macOS.


I'm baffled as the resizeStack handlers are the same across platforms 
(macOS and Windows). There is NOT platform specific code in the 
resizeStack handlers and, I believe, that when a window is maximized, 
Livecode just sends a resizeStack message.


Has anyone seen or heard of any weirdness like this?

I do not have a whole set of macOS version to test on. Sonoma and Mojave 
are about it. I can compare the resizeStack handlers for the stacks that 
maximize correctly with those that don't to see if there is some issue, 
but they all work correctly on Windows and work correctly when manually 
resized.



___
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: Embedded PDFs in Windows Menu

2023-12-31 Thread Paul Dupuis via use-livecode

I'm not sure exactly what you are talking about?

Are you asking about launching a PDF from a menu item under a "Windows" 
menu?


On 12/31/2023 9:41 AM, Charles Szasz via use-livecode wrote:

I have found that a method I use (proposed by LC tech support a few years ago 
to embed PDFs in a Windows menu (using custom properties) does not work in LC 
9+. It does work on a Mac. Anybody have solution for this problem?


Sent from my iPad
___
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: Message Sent when Resizing Widgets: Workaround

2023-12-29 Thread Paul Dupuis via use-livecode

Bob,

This is nice trick (and code) to use an overlayed button to get a widget 
to respond to standard messages. Impressive!


I really think that Livecode Ltd. needs to prioritize adding a set of 
"standard" object messages to every current widget to address these 3 
bugs (and their generalization to all other widgets):

https://quality.livecode.com/show_bug.cgi?id=24458
https://quality.livecode.com/show_bug.cgi?id=24437
https://quality.livecode.com/show_bug.cgi?id=24429

Every widget should be able to handle OR pass  through (just like every 
Livecode field, button, scrollbar, etc.) resizeControl, mouseEnter, 
mouseWithin, mouseLeave, mouseDown, mouseDoubleDown, mouseStillDown, 
mouseUp, mouseDoubleUp, and probably a bunch more.



On 12/29/2023 5:39 PM, Bob Sneidar via use-livecode wrote:

I have a kind of custom group composed of a segmented widget and a transparent 
button the exact size of the widget, the purpose of which is to be able to 
handle messages that are otherwise not sent to the widget. In fact almost NO 
messages are sent to a widget, a source of some consternation from users of 
this list.

There are three issues with this, the first being that if there is a button on 
top of a widget, then no messages get sent directly from the engine to the 
widget at all! The second is that if I add more segments or resize the widget, 
the width of the overlay button also needs to match. The third issue is that if 
I click on the overlay button, I need to know, as in the case of a mouse click 
which segment was clicked on.

To this end I wrote some handlers for the widget and the overlay button which 
allow you to handle any messages a button might receive and then process them 
for the widget. This is of course just a basic framework. The important 
handlers are resizeControl and the getProp clickedTab.

Unfortunately, and although changing the size of the widget will send the 
resizeContol message to t he widget, editing the width in the widget’s 
properties palette does NOT send the message. The upshot is that if you make 
changes to a widget, you can simply run the resizeControl handler to clean 
things up.

In my case I always want the widget segments to be the same size, and I always 
want the widget to be centered on the card. YMMV. You could get even fancier if 
you wanted and calculate the formattedWidth of the segment names, add a little 
air around them, then set the width of the widget to the sum of those, and then 
the minimum segment widths to those formattedWidths. But manipulating the 
minimum segment widths to get the correct width for each segment is something I 
have not fathomed. I wish they had given us a property for the *actual* segment 
widths.

For the widget itself I have these handlers:

on hiliteChanged
put the hilitedItemNames of me into tTabName
put the itemNames of me into tTabList
tabChanged tTabName, tTabList
end hiliteChanged

on tabChanged pTab, pTabList
-- your code here
end tabChanged

on resizeControl
wait until the mouse is up with messages
put the long id of me into tMyID
put wordOffset("card", tMyID) +1 into tPos
put word tPos to -1 of tMyID into tParentCard
put the width of widget "TabBar" into tWidth
put tWidth / the itemCount of widget "TabBar" into tSegmentWidth

repeat with i = 1 to the itemCount of widget "TabBar"

   put tSegmentWidth into item i of tSegmentWidths
end repeat

set the itemMinExtents of widget "TabBar" to tSegmentWidths

-- center the widget left to right

put the loc of widget "TabBar" into tTabLoc
put the loc of tParentCard into tCardLoc
put item 1 of tCardLoc into item 1 of tTabLoc
set the loc of widget "TabBar" to tTabLoc

-- set the rect of the overlay button to match

set the rect of button "btnTabOverlay" to the rect of widget "TabBar"
end resizeControl


Then for the overlay button:

on mouseUp
put the clickedTab of me into tTab
set the hilitedItemNames of widget "TabBar" to tTab
end mouseUp

on mouseDoubleUp
put the clickedTab of me into tTab

-- your code here

end mouseDoubleUp

getProp clickedTab
put the clickLoc into tClickLoc
put the itemNames of widget "TabBar" into tTabNames
put the rect of widget "TabBar" into tTabRect
put item 3 of tTabRect - item 1 of tTabRect into tTabWidth
put the itemCount of widget "TabBar" into tTabCount
put tTabWidth / tTabCount into tSegmentWidth

repeat with i = 1 to tTabCount

   put round(item 1 of tTabRect + (tSegmentWidth * i)) into tSegmentBounds
   
   if item 1 of tClickLoc <= tSegmentBounds then

  put item i of tTabNames into tTab
  exit repeat
   end if
end repeat

put the itemMinExtents of widget "TabBar" into tExtents

return tTab
end clickedTab


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, un

Re: Should I upgrade to Xcode 15.0 or 15.1?

2023-12-18 Thread Paul Dupuis via use-livecode

FYI Heather,

The "What are the System Requirements for LiveCode? 
<https://livecode.com/resources/support/ask-a-question/#group_739>" 
table needs an update for current macOS and Windows versions.


On 12/18/2023 12:11 PM, Heather Laine via use-livecode wrote:

Folks, you should upgrade to Xcode 15.0 not 15.1 - see this table (top FAQ):


https://livecode.com/resources/support/ask-a-question/



Best Regards,

Heather

Heather Laine
Customer Services Manager
LiveCode Ltd
www.livecode.com




On 17 Dec 2023, at 15:48, Mike Kerner via 
use-livecode  wrote:

can lc 9.6.11 use both 15 and 15.1?
i've been holding off on updating to sonoma

On Sat, Dec 16, 2023 at 1:55 PM Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


For the purposes of notarization of macOS apps, I have seen no
difference between Xcode 15 and 15.1 under Sonoma on a macBook Air (M1
processor)

I don't developer iOS apps though, nor do I use Xcode for anything other
than code signing, notarization, and stapling of macOS desktop apps


On 12/16/2023 1:43 PM, Andreas Bergendal via use-livecode wrote:

Hi all,

I’ve just taken the step to MacOS Sonoma (14.2), and now intend to

upgrade Xcode from 14.x to 15.

But I'm unsure of which version to go for, as the latest LC release

notes say Xcode 15.0 and LC is usually quite picky about it.

I don’t want to download and install all the gigabytes of Xcode 15.1

(which is the latest) just to discover that I really need 15.0

Actually, the release notes don’t even mention MacOS 14.2 as a valid

version for iOS deployment, so an additional question is if I’ve already
burnt that bridge by going Sonoma, until LC catches up…?

Please advise. :)

/Andreas
___
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



--
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 the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: Should I upgrade to Xcode 15.0 or 15.1?

2023-12-16 Thread Paul Dupuis via use-livecode
For the purposes of notarization of macOS apps, I have seen no 
difference between Xcode 15 and 15.1 under Sonoma on a macBook Air (M1 
processor)


I don't developer iOS apps though, nor do I use Xcode for anything other 
than code signing, notarization, and stapling of macOS desktop apps



On 12/16/2023 1:43 PM, Andreas Bergendal via use-livecode wrote:

Hi all,

I’ve just taken the step to MacOS Sonoma (14.2), and now intend to upgrade 
Xcode from 14.x to 15.
But I'm unsure of which version to go for, as the latest LC release notes say 
Xcode 15.0 and LC is usually quite picky about it.
I don’t want to download and install all the gigabytes of Xcode 15.1 (which is 
the latest) just to discover that I really need 15.0

Actually, the release notes don’t even mention MacOS 14.2 as a valid version 
for iOS deployment, so an additional question is if I’ve already burnt that 
bridge by going Sonoma, until LC catches up…?

Please advise. :)

/Andreas
___
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: Which is faster...

2023-12-15 Thread Paul Dupuis via use-livecode

And that is THE DEFINITIVE answer!

Wow! Thank you.

On 12/15/2023 10:00 AM, Mark Waddingham via use-livecode wrote:

On 2023-12-14 21:22, Paul Dupuis via use-livecode wrote:
Which is faster or more efficient (from an engine performance 
perspective)?


To retrieve an array from a property?
As in:
command someHandler -- in an objects script
  get the cMyArray from me -- cMyArray is some multi-dimensional array
  ...
end someHandler

OR

To retrieve an array from a script local variable?
As in:
local sMyArray -- script local variable in some objects script

command someHandler -- in an objects script
  get sMyArray
  ...
end someHandler

Anyone know?


Fetching a value directly from a variable will always be faster than 
any other method - as it essentially reduces to fetching or storing a 
value from a (integer indexed) table.


In contrast, fetching a custom property will require a message send 
unless lock messages is set, and then an array lookup (to actually get 
the property's value).


Custom property sets are stored using the same data structure 
internally as livecode arrays so getting `the cMyArray of me` 
eventually reduces to the same as 
objectsCurrentPropertySet["cMyArray"] - the latter lookup is more work 
than just fetching a value from an internal table.


UPSHOT:

Fetching a value directly from a variable is a constant time operation.

If lock messages is false, then the time it takes to fetch a custom 
property value will be somewhat proportional to the length of the 
message path from the point of view of the object you are accessing - 
i.e. how many frontscripts, backscripts, stacks in use, and parent 
objects/behaviors the object has.


If lock messages is true, then the time it takes to fetch a custom 
property value will be pretty much the same as doing an LC array key 
lookup.


Now whether or not this actually matters in any one case will largely 
depend on how often such access is being done - if its a few times in 
the context of UI-related code then it probably won't be appreciable; 
if, however, you are fetching a custom property 10's of times in a 
tight loop and the rest of the loop is only doing small amounts of 
work, you'll definitely notice a difference.


SIMPLE BENCHMARK:

```

on mouseUp
local sMyArray

on mouseUp
   set the cMyArray of me to [ 1, 2, 3 ]
   put empty

   local tTime
   put the milliseconds into tTime
   repeat 100 times
  get the cMyArray of me
   end repeat
   put "CUSTOM PROP:" && the milliseconds - tTime & return after msg

   put the milliseconds into tTime
   lock messages
   repeat 100 times
  get the cMyArray of me
   end repeat
   unlock messages
   put "CUSTOM PROP (LOCKED OUTSIDE):" && the milliseconds - tTime & 
return after msg


   put the milliseconds into tTime
   repeat 100 times
  lock messages
  get the cMyArray of me
  unlock messages
   end repeat
   put "CUSTOM PROP (LOCKED INSIDE):" && the milliseconds - tTime & 
return after msg


   local tMyProps
   put [ 1, 2, 3 ] into tMyProps["cMyArray"]
   put the milliseconds into tTime
   repeat 100 times
  get sMyArray["cMyArray"]
   end repeat
   put "ARRAY ELEMENT:" && the milliseconds - tTime & return after msg

   put the milliseconds into tTime
   lock messages
   repeat 100 times
  get sMyArray
   end repeat
   unlock messages
   put "SCRIPT LOCAL:" && the milliseconds - tTime & return after msg
end mouseUp
end mouseUp
```

RESULTS (1 million iterations):

CUSTOM PROP: 2006
CUSTOM PROP (LOCKED OUTSIDE): 116
CUSTOM PROP (LOCKED INSIDE): 125
ARRAY ELEMENT: 80
SCRIPT LOCAL: 38

ANALYSIS:

The above results are run in the IDE which is important to mention 
because the message path in the IDE is typically longer than that in 
standalones (as the all extension libraries are loaded, and the IDE 
inserts its own front/back/stacks into the message path).


Accessing custom properties with messages locked is nearly 10x faster 
than without (again that multiplier will be vary with the length of 
the message path).


Using lock/unlock messages for every custom property access has a 
(quite negligible) 10% overhead - and the message path overhead (in 
the IDE) is about 40% of the total (the array element fetch will be 
the rest).


Accessing a script local is
  - about 50x faster than accessing a custom property when messages 
are sent
  - about 3x faster than accessing a custom property when messages are 
not sent

  - about 2x faster than accessing an array element

Just to reiterate - these figures are for 1,000,000 accesses done in a 
tight loop (in the IDE). If you do it for (say) 1000 iterations then 
the differences are within the margin of error of measuring a 
millisecond.


Overall, my suggestion would be probably to do a combination of both - 
if you are only reading fr

Re: Which is faster...

2023-12-14 Thread Paul Dupuis via use-livecode

On 12/14/2023 5:25 PM, Craig Newman via use-livecode wrote:

Anything to distract me from my day job.

Glad I could help!

And thank you for the confirming benchmarks!
___
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: Which is faster...

2023-12-14 Thread Paul Dupuis via use-livecode

Bob,

Thank you. I could script a timing test but sometime just asking the 
list or forums is easier. You asnwered well before I would have had the 
time to write a basic test script. Thanks!



On 12/14/2023 4:45 PM, Bob Sneidar via use-livecode wrote:

I think the confusion comes from thinking so much of a stack as an object that 
has substance, when really all the properties are places in memory just like a 
memory variable is. I asked this some years back and the answer I got was that 
there is no appreciable difference.

One could always devise a test though…

Bob S


On Dec 14, 2023, at 1:22 PM, Paul Dupuis via use-livecode 
 wrote:

Which is faster or more efficient (from an engine performance perspective)?

To retrieve an array from a property?
As in:
command someHandler -- in an objects script
   get the cMyArray from me -- cMyArray is some multi-dimensional array
   ...
end someHandler

OR

To retrieve an array from a script local variable?
As in:
local sMyArray -- script local variable in some objects script

command someHandler -- in an objects script
   get sMyArray
   ...
end someHandler

Anyone know?

___
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


Which is faster...

2023-12-14 Thread Paul Dupuis via use-livecode

Which is faster or more efficient (from an engine performance perspective)?

To retrieve an array from a property?
As in:
command someHandler -- in an objects script
  get the cMyArray from me -- cMyArray is some multi-dimensional array
  ...
end someHandler

OR

To retrieve an array from a script local variable?
As in:
local sMyArray -- script local variable in some objects script

command someHandler -- in an objects script
  get sMyArray
  ...
end someHandler

Anyone know?

___
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: Get rid of the remote debugger

2023-12-09 Thread Paul Dupuis via use-livecode
For what it's worth, I sometime get these errors. I develop on Windows 
11 (x64) using LC 9.6.11 and do not develop for mobile or web, so no 
remote debugging. I do not want to get rid of (remove) or turn off 
script debugging. I use the script debugger all the time.


There is some recipe, that I have not figured out yet, where this error 
occurs, when you are just doing what I'd consider "normal" debugging. I 
just have not had time to pin it down. (To busy filing PDF Widget bugs 
and enhancements to get it to parity with the XPDF external).


Paul Dupuis
Researchware

On 12/8/2023 10:01 PM, J. Landman Gay via use-livecode wrote:
Piggy backing... Did you try turning off script debugging from the 
development menu?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 8, 2023 6:16:57 PM matthias rebbe via use-livecode 
 wrote:


Hm, did you already try to delete the folder   
Extensions/com.livecode.library.remotedebugger in the Livecode 
Extensions folder?


Am 09.12.2023 um 00:42 schrieb Bob Sneidar via use-livecode 
:


I occasionally get the dreaded error in remote debugger stack is 
password protected issue. I don’t WANT the remote debugger. I do not 
NEED the remote debugger. How can I rid myself of this incredibly 
annoying pest?


Bob S

___
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: greying out columns in a dataGrid

2023-11-30 Thread Paul Dupuis via use-livecode

On 11/30/2023 4:41 PM, Hershel F via use-livecode wrote:

sorry my mistake. does not have to be greyed out should be a gray color.
or to rephrase the question properly, how the change the color to gray?


Ah! I am pretty sure it can be done, but I do not know how to do it 
exactly. By guess is that you will probably need to edit the row 
template to add a "grey" background behind the columns your may want to 
grey and then for those columns in the Property inspector, create a 
custom column behavior to show or hide that grey background graphic 
based on whatever calculation your want.


That is a guess though.
___
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: greying out columns in a dataGrid

2023-11-30 Thread Paul Dupuis via use-livecode
Usually, you do not disable or grey-out columns in a Datagrid, but make 
them invisible (hide or show the column) if they are not applicable to 
some view you want.


On 11/30/2023 4:04 PM, Hershel F via use-livecode wrote:

Hi all how is it done to grey out a column or multiple columns in data grid 
according a calculation?

thanks, Hershel
___
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: resizeControl wishes...

2023-11-30 Thread Paul Dupuis via use-livecode

On 11/30/2023 2:20 PM, Brian Milby via use-livecode wrote:

Groups get the message when resize happens by script.
Other objects only receive the message when resized by hand.

Brian Milby
br...@milby7.com



Except, the "PowerButton" widget actually receives "resizeControl" just 
as a group does when its rect is changed by script control (as well as 
by user manipulation of its resize handles). So it *is* inconsistent. 
Or, at the very least, poorly documented.


And, for my purposes, if the PowerButton can received a resizeControl 
handler, I'd really like to see the PDF widget get the message also. The 
XPDF external requires, as its target for a drawing area, a Graphic 
inside a Group, and the containing group gets resizeControl. You can use 
that resizeControl to show/hide scrollbars as appropriate based on zoom; 
set the scroll to keep a highlighted part of the PDF in view when 
resized; and more. For a migration path from the XPDF External to the 
PDF Widget, the PDF Widget should support resizeControl as well.

___
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: resizeControl wishes...

2023-11-30 Thread Paul Dupuis via use-livecode

Thank you Richard.

I see what the issue for me was. Groups do indeed receive a 
resizeControl message automatically if the rect is changed by script. 
However, the message (resizeControl) use seems inconsistent. For 
example, while a group does received the resizeControl message, a field 
does not seem to. Also, what I specifically ran into was that the PDF 
Widget does not received a resizeControl handler (and it would be really 
useful if it did!)


I'll submit an enhancement request (below) for adding resizeControl to 
the PDF Widget (assuming it's possible), but I don't have the time to 
determine what widgets support resizeControl and which don't and what LC 
objects (other than groups) support resizeControl and which don't.


https://quality.livecode.com/show_bug.cgi?id=24437

___
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


resizeControl wishes...

2023-11-30 Thread Paul Dupuis via use-livecode
resizeControl is sent "only sent when the user resizes a control by 
dragging its handles. It is not sent if a handler changes the size of a 
control by changing its properties (width, height, and so on)."


Does anyone else really really wish that resizeControl was set when the 
control's size is changed via script? I sure do!


For example, I have cards with multiple groups of objects on them. Each 
of my groups (and sometimes sub-groups) have resizeControl handlers that 
position everything in the groups appropriately. I do this for 
portability. If I copy the group to somewhere else, the handler 
(resizeControl) that knows how everything is to be moved and resized 
goes with the copied group.


My card script has a "resizeStack" handler that just sets the rects of 
the top level groups and dispatches resizeControl to each group on the 
card after changing its rect. I really wish I could eliminate these 
"dispatch" (or send) commands. I forget to include them some times, 
simple expecting (even though I know better) that if I change the size 
(rect) of a control with a "resizeControl" handler, that that 
resizeControl handler should execute!


Anyone else wish that resizeControl would get executed if a control's 
size is changed by script? It just seems counter-intuitive that it does not.


___
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: Possible enhancement request

2023-11-27 Thread Paul Dupuis via use-livecode

On 11/2/2023 11:20 AM, Klaus major-k via use-livecode wrote:

Hi friends,

before I post an enhancment request to the "Qualtiy Center", I wanted to hear 
your opinions about this.

Wouldn't it be great if ALL widgets would receive and handle at least a mouseup 
(and mousedown) meassage?
I have always wondered why that is not the case.

This way scripting would be a lot easier for us and we do not have to remember 
the many different messages
the widgets have. Yes, they can be seen in the script editor on the left side, 
nevertheless... :-)

Examples:
PolyGrid -> cellclick
PolyList -> itemclick
Segmentedcontrol -> hilitechanged
Switch Button -> hilitechanged
Radial Slider -> valueChanged
Navigation Bar -> hilitechanged
Line Graph -> receives NO message at all?



It seems to me that for most of these (not sure about Line Graph) that 
'selectionChanged' is the more applicable 'standard' message than a 
mouseUp or mouseDown, although I would wholly agree that every (or 
nearly every) widget should pass mouseUp and mouseDown if they do not.

___
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: Launch does not work in Windows

2023-11-18 Thread Paul Dupuis via use-livecode

On 11/17/2023 4:24 PM, Bob Sneidar via use-livecode wrote:

Hi all. Given:

tTextEditorPath = "C:/Program Files/Windows NT/Accessories/wordpad.exe”
tFilePath = "C:/Users/bobsneidar/Documents/Installs/The Whole 
Child/Cerritos/25528/Old Copier Settings.txt”

The command:

launch tFilePath with tTextEditorPath

Does NOT launch tFilePath with tTextEditorPath



This (launch tFile with tApp) works for me using Livecode 9.6.11 under 
Windows 11. Obviously with different paths.


In my case tApp is C:/Program Files/TextPad 8/TextPad.exe
and tFile is C:/Users/paul/Desktop/Win Cert 2023/Cert2023.txt
___
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


What to set the clipboardData to for exchanging styled text with a 3rd party app

2023-11-13 Thread Paul Dupuis via use-livecode

Hivemind,

Recommendation as to what is best to set the clipboardData property to, 
when you want to copy styled text from a field to the clipboard for 
exchange with a 3rd party (any 3rd party) application that supports some 
form of styled text, that can include text in multiple languages (i.e. 
Unicode)?


Examples:
1) set the clipboardData["rtf"] to the rtfText of fld "X"
2) set the clipboardData["html"] to the htmlText of fld "X"
3) set the clipboardData["text"] to the text of fld "X" -- since the 
text in field since LC7 is unicode

4) set the clipboardData["unicode"] to the textEncode(fld "X","UTF-16")

Something else? Should fullClipboardData or rawClipboardData be used 
instead? Looking for best practice recommendation.



___
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: Top things you are waiting for ....

2023-11-12 Thread Paul Dupuis via use-livecode

On 11/12/2023 3:42 AM, jbv via use-livecode wrote:
My top priority : "rev" libraries (revXML, revZIP, perhaps others) to 
be fully Unicode compatible.


I'll add the shell() function, which is not Unicode compatible on 
Windows (https://quality.livecode.com/show_bug.cgi?id=22334)


___
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: Windows maximization on desktops

2023-11-09 Thread Paul Dupuis via use-livecode

On 11/9/2023 5:38 PM, ambassador--- via use-livecode wrote:

Paul Dupuis wrote:


Is there a message sent when a user click the maximize icon (macOS
and Windows) in the titlebar of a window?

As others have pointed out, resizeStack is sent. And by definition, wouldn't 
the windowBoundingRect be the maximized size?


So, the windowBoundingRect actually only applies to the main monitor 
(where 'the screen of stack "X" = 1' so you actually need to consider 
windowBoundingRect deprecated and use the working screenRects or the 
effective working screenRects (I may have my adjectives in the wrong 
order!) and compare the screen of the stack in question to the line in 
the returned screenRects for a bounding rect equivalent.



I'm curious: what does the app need to do differently if the user resized the 
window to that rect manually vs the Maximize button?


It is an oddity (bug) where certain windows in HyperRESEARCH are not 
redrawing their contents properly when the maximize icon in the title 
bar is clicked and the window maximized. However, if you resize the 
window to the maximum size, everything is redrawn correctly. I was 
asking about the maximize message as it may have aided in debugging the 
issue - if there was such a message sent. This is also only on macOS. 
The same windows maximize correctly whether resized manually or the 
maximize icon in the title bar is clicked. Also, I have not determined 
if this behavior started happening on some specific version of macOS yet.


In theory, as you stated, there should be no difference between resizing 
a stack/window manually and clicking the maximize icon.


___
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: Finally success with code signing Windows standalones withe the new eToken certificates under macOS using jarsigner

2023-11-09 Thread Paul Dupuis via use-livecode

On 11/9/2023 4:25 PM, matthias rebbe via use-livecode wrote:

Phew, after searching, reading and trying many days i was finally able
to code sign my first Windows standalone under macOS today with this new
  eToken certificates using jarsigner.
Congratulations! Code signing on any platform appears to be a moving 
target, and not easy to get setup each time the target changes.

___
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: Windows maximization on desktops

2023-11-07 Thread Paul Dupuis via use-livecode

Thanks Klaus and Panos,

Yes, a resizeStack is send on Maximize. Now I just need to do some 
screenrect calculations to determine a drag-resize from a maximize-resize.


Thank you.


On 11/7/2023 11:15 AM, panagiotis merakos via use-livecode wrote:

Hello Paul,

I think the "resizeStack" message should be sent.

Kind regards,
Panos
--

On Tue, 7 Nov 2023 at 18:08, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


Is there a message sent when a user click the maximize icon (macOS and
Windows) in the titlebar of a window?

"iconifyStack" is sent for minimization, and "unIconifyStack" is sent
when a minimizaed stack is expanded (from the Windows taskbar or Apple
dock). However, I can't seem to find an equivalent message for
maximization?

Is there such a message. What messages (if any) are sent when a window
is maximized?

___
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


Windows maximization on desktops

2023-11-07 Thread Paul Dupuis via use-livecode
Is there a message sent when a user click the maximize icon (macOS and 
Windows) in the titlebar of a window?


"iconifyStack" is sent for minimization, and "unIconifyStack" is sent 
when a minimizaed stack is expanded (from the Windows taskbar or Apple 
dock). However, I can't seem to find an equivalent message for maximization?


Is there such a message. What messages (if any) are sent when a window 
is maximized?


___
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: Subtitle and the future of the Player control

2023-11-07 Thread Paul Dupuis via use-livecode
There are a lot more details to really assess a best choice here (unless 
your questions is rhetorical).


Is this a planned web app, desktop app (which platforms) or a mobile 
app? I assume from the javascript player comment that you are looking to 
build this as a web app? What video file formats do you need to support 
- just mpeg4 or other formats?


On 11/7/2023 6:05 AM, David Bovill via use-livecode wrote:

I'm doing some coding around videos and transcripts. Before diving in I
thought I'd see if there is any existing code out there? I'm working on
creating transcripts from videos we shoot for a community project -
naturally using ai (whisper) to do that - but Livecode to edit the
transcript and make the final output interactive.

I'd like to stick to SRT standards, and be able to display the text track
with the video playing and to click and interact with it under Livecode
control.

Given the future of the video player seems to be more focussed on an HTML5
player - I'm wondering if it worth the effort of scripting this in Livecode
- or I should build on one of the opensource javascript players?
___
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: Property Inspector bug for keys with commas in the key name

2023-11-03 Thread Paul Dupuis via use-livecode

Hi Bernd,

You do make a good point about the documentation regarding custom 
properties. Assuming people read the documentation. At the same time, 
you used to be able to use commas in custom property names. As Curry 
noted, Livecode even used to use them in the standalone setting 
properties, so the mothership set a precedence.


My problem is that I have stacks where commas were used because they 
could be used and there was value to using them as evidenced by how 
Livecode used them in the standalone settings. Now I can only edit them 
via scripts rather than the current PI.


It's not really a problem since I can do updates by script. It is more 
of just an annoyance.


Knowing that the current issue if the hilitedElement of the tree view 
object, I won't bother trying to look for any quick fix I could make to 
the PI code in the IDE. Thanks for the information.



On 11/3/2023 2:29 PM, Niggemann, Bernd via use-livecode wrote:

Hi Paul,

The problem with the comma in a customproperty name in the Properties Inspector (PI) arises because 
the PI uses a treeview to display the customproperties. More specifically the 
"hilitedElement" to retrieve the current selection and "hilitedElement" has the 
form:
"A comma delimited list of array keys."

Now you have a comma in your customproperty name and at that point the PI is 
confused as to what is the key and what is the value and fails to display both.

However I wonder if treeview or PI is to blame:

Page 145 of "Livecode User Guide" 9.6.10
Custom Property Names
The name of a custom property must consist of a single word and may contain any 
combination of letters, digits, and underscores (_). The first character must 
be either a letter or an underscore.

Page 113 of "Revolution User Guide 2.0" printed edition from 2004
Custom Property Names
The name of a custom property must consist of a single word and may contain any 
combination of letters, digits, and underscores (_). The first character must 
be either a letter or an underscore.

So I am afraid that treeview could not expect a comma in a customproperty name.

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



___
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: Crashing on M2 Mac

2023-11-03 Thread Paul Dupuis via use-livecode
Also, have you (or could you) try LC 9.6.11rc-1 and see if that has a 
fix for the convert issue you found?


We use convert a lot (currently under LC 9.6.10) and can't take out app 
to LC 10, so a 9.6.11 that addresses this convert bug is needed.


On 11/2/2023 6:33 PM, Dan Friedman via use-livecode wrote:

Peter,

I recently discovered (from one of my own apps) that a Mac app built with 
9.6.10 running on Sonoma crashes when the convert command is called.  I rebuilt 
the app in 10.0.0 (dp 6) and the app no longer crashes.   Hope that helps!

- Dan


From: use-livecode  on behalf of Peter 
Bogdanoff via use-livecode 
Date: Thursday, November 2, 2023 at 3:23 PM
To: Paul Dupuis via use-livecode 
Cc: Peter Bogdanoff 
Subject: Crashing on M2 Mac
A user is reporting crashing on his M2 Sonoma Mac.

This was a build of LC 9.6.10, with both Intel and Apple chosen in the  
Standalone settings.

It did not crash with only Apple chosen, though there were script errors that 
did not happen with non-M2 users (M1 is OK). I haven’t been able to debug that 
since I don’t have an M2 Mac.

Has anyone used LC with M2?

Peter Bogdanoff


Process:   MITA [10810]
Path:  /Applications/MITA.app/Contents/MacOS/MITA
Identifier:com.artsinteractiveinc.mita
Version:   3.0 (3.0)
Code Type: X86-64 (Translated)
Parent Process:launchd [1]
User ID:   501

Date/Time: 2023-11-02 13:22:17.1555 -0400
OS Version:macOS 14.1 (23B74)
Report Version:12
Anonymous UUID:982CECFD-B763-4068-2C69-6639836A03DF

Sleep/Wake UUID:   DAD13568-D6D9-4419-BF53-FA013DE5385B

Time Awake Since Boot: 11 seconds
Time Since Wake:   1041 seconds

System Integrity Protection: enabled

Notes:
PC register does not match crashing frame (0x0 vs 0x1026B9E58)

Crashed Thread:0  Dispatch queue: com.apple.main-thread

Exception Type:EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:   KERN_INVALID_ADDRESS at 0x0004
Exception Codes:   0x0001, 0x0004

VM Region Info: 0x4 is not in any region.  Bytes before following region: 
140722906071036
   REGION TYPESTART - END [ VSIZE] PRT/MAX 
SHRMOD  REGION DETAIL
   UNUSED SPACE AT START
--->
   mapped file  7ffc9ad4-7ffcc03e8000 [598.7M] r-x/r-x 
SM=COW  ...t_id=60eeba9b

Error Formulating Crash Report:
PC register does not match crashing frame (0x0 vs 0x1026B9E58)

___
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: Crashing on M2 Mac

2023-11-02 Thread Paul Dupuis via use-livecode

On 11/2/2023 6:33 PM, Dan Friedman via use-livecode wrote:

Peter,

I recently discovered (from one of my own apps) that a Mac app built
with 9.6.10 running on Sonoma crashes when the convert command is
called.  I rebuilt the app in 10.0.0 (dp 6) and the app no longer
crashes.   Hope that helps!

- Dan


Has the 'convert' command bug been reported in the Livecode Quality Center?
___
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


Property Inspector bug for keys with commas in the key name

2023-11-02 Thread Paul Dupuis via use-livecode
This bug (https://quality.livecode.com/show_bug.cgi?id=23512) where a 
comma in the key name of an array prevents the Proerty Inspector from 
being able to edit the property just bit me again.


I have a stack (for help) that extensively uses keys with commas (create 
prior to the Project Browser and new PI) that I can not edit except by 
script - which is a pain in the (you know what).


Does anyone have an edit to the PI code for this OR an alternative PI 
that does not have this bug?


___
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 ]] Release 9.6.11 RC-1

2023-11-02 Thread Paul Dupuis via use-livecode
When I installed 9.6.11rc1 (win64) and launched Livecode, after 
accepting the terms of service, I got the license authentication box, 
but it did not have my email or password (from all my other installed 
versions of Lievcode) filled in and was set to manual activation


Now, I did recently manually activate a VERY old version of Livecode 
(4.6.4) on my computer, so it could just be me. Did anyone else run into 
this? If so, I'll file a bug against 9.6.11rc1, otherwise I'll assume it 
was just me.



On 11/2/2023 10:30 AM, panagiotis merakos via use-livecode wrote:

Dear list members,

We are pleased to announce the release of LiveCode 9.6.11 RC-1.

LiveCode 9.6.11 RC-1 comes with more than 10 bugfixes and new features,
including support for Xcode 15 / iOS 17 SDK.

You can find more details on the bug fixes and improvements of this new
release here:

https://livecode.com/livecode-9-6-11-rc-1-released-support-for-ios-17/

You can find the release in your LiveCode account area or get it via the
automatic updater.

Enjoy!

Kind regards
The LiveCode Team
--
___
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: Direct editing of polygrid text cells and polylist text elements

2023-11-01 Thread Paul Dupuis via use-livecode

+1

I'd like to know this too as I can see no way in the Property Inspector 
or the pgColumns property to indicate a column is 'editable'. Nor can I 
find any property, message, etc. in the polygrid Dictionary entry that 
seems to suggest cell editing.



On 11/1/2023 5:28 PM, Peter Thirkell via use-livecode wrote:

I am enjoying both the polygrid and polylist add-ons to Livecode. They are 
infinitely flexible to use once you get to know them, and most importantly they 
render beautifully across all platforms.

I have one question which doesn’t seem to be addressed in the documentation. 
The polygrid widget specifications say that it supports “direct cell editing” 
but I am not able to find any way to do this. Has anyone found a way?

More generally, do we have any multi-line input field options for Livecode 
which render well across all platforms? Polygrid and polylist work beautifully 
in displaying already existing data from some sort of data repository ... but 
it would be awesome to provide the ability for users to input information as 
well as display it using the brilliant polygrid and polylist tools.

Providing truly cross-platform inputting of data and information in an easy way 
would provide the final puzzle piece for many of us wanting to provide a modern 
and beautiful user interface for our apps.

Many thanks 😊
___
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: Oddity in 'currentCard' function?

2023-10-26 Thread Paul Dupuis via use-livecode

On 10/26/2023 4:44 AM, Mark Waddingham via use-livecode wrote:
Basically, its [currentCard] main use was for changing card (i.e. as a 
settable property); rather than finding out what card was current 
(since that was already catered for via interrogating 'this card of 
this stack'). 


FYI - this is exactly what we use currentCard for in our application - 
change the card that will be displayed when a user shows/opens a stack 
to match a change in user data when the stack is not actually open yet.


___
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: Oddity in 'currentCard' function?

2023-10-25 Thread Paul Dupuis via use-livecode

On 10/25/2023 12:34 AM, Mark Waddingham via use-livecode wrote:


If you want to do stuff with the current card of a stack, then don't 
use the currentCard property - 'this card of stack ...' *is* a chunk 
reference and thus it doesn't care whether the card has a name or not.




Okay, I get that  id  is a legacy return value when 
there is no name.


I'd just like to confirm that:

this card of stack "X"
and
the currentCard of stack "X"

refer to the same card, even if in different ways (actual object 
reference vs short name)?


If so, I will switch to using "this card of stack". I had thought that 
the 'this card' was always the card in the object hierarchy of the 
object the script was running in and had forgotten that you could say 
'this card of stack ...' to reference the active card in another stack.



___
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


Oddity in 'currentCard' function?

2023-10-24 Thread Paul Dupuis via use-livecode

I think I found a oddity in the "currentCard" property.

The documentation states that the currentCard property return the short 
name of the current card of a stack:


for example: put the currentCard of stack "Untitled 1" into tCardName

You can then execute code such as: set the myProperty of cd tCardName of 
stack "Untitled 1" to tValue


However, if the card does not have a name set, then current card returns 
"card id ", example: card id 1002 and the above 2 lines of 
code return a runtime error of 'can't find card'


put the currentCard of stack "Untitled 1" into tCardName
set the myProperty of cd tCardName of stack "Untitled 1" to tValue

WORKS for cards with a name
FAILS for cards without a name (where currentCard returns 'card id I think currentCard should just return 'id 1002' rather than 'card id 
1002' if a card has no name.


Trying to execute: set the myProperty of cd tCardName of stack "Untitled 
1" to tValue WHEN tCardName contain 'card id 1002' produces a run time error


But trying to execute: set the myProperty of cd id 1002 of stack 
"Untitled 1" to tValue works.


Oddly, set the myProperty of cd tCardName of stack "Untitled 1" to 
tValue FAILS if tCardName contains "id 10001" (and yes that card with 
that ID exists)


Oddly again, set the myProperty of the currentCard of stack "Untitled 1" 
to tValue DOES WORK whether they have a name or not


But again, breaking that example above (set the myProperty of the 
currentCard of stack "Untitled 1" to tValue) into 2 lines:

put the currentCard of stack "Untitled 1" into tCardName
set the myProperty of cd tCardName of stack "Untitled 1" to tValue
FAILS if the card has no name.

Something just seems off here?

___
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: Mdiai Keys - volume / play/pause/next...

2023-10-20 Thread Paul Dupuis via use-livecode
When I try on Windows 11 using Livecode 9.6.10 a rawKeyDown or rawkeyUp 
message, the media keys on my HP laptop all return 0 as the keyCode, so 
I think this is a bug of some sort that should be reported to the 
Livecode Quality Center https://quality.livecode.com/


The keyDown or keyUp message does not get sent. the OS (Win11) 
apparently intercepts and raises/lowers/mutes the volume or play/pause 
as applicable.



On 10/20/2023 11:08 AM, David Bovill via use-livecode wrote:

Is there a way to trap for these keyboard events.

Volume and Media Keys: In the HID standard, volume and media control keys
often have specific usage IDs. For example:


- 0xE9 is for volume up.
- 0xEA is for volume down.
- 0xE2 is for mute.
- 0xCD is for play/pauseetc
___
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: OS X document icon missing

2023-10-19 Thread Paul Dupuis via use-livecode

On 10/19/2023 5:37 PM, J. Landman Gay via use-livecode wrote:

On 10/19/23 3:29 AM, Mark Waddingham via use-livecode wrote:
The extension shouldn't have an initial `.` - I suspect that is the 
problem :)


That was it. I had to "Get Info" on the file before Finder noticed, 
but then the icon showed up. I didn't even know the dot was there; I 
knew it shouldn't be.




I someone who write a commercial software tool for researchers, I fully 
realize that a software vendor can not complete protect users from 
themselves. That said, a small Livecode enhancement might be a check if 
the file extension field starts with a . and either just remove it or 
warn the user :-)


___
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: OS X document icon missing

2023-10-18 Thread Paul Dupuis via use-livecode
Yes, that look right. The file extension is .rbox and the file type is 
'rbox' for 'Recipe Box Files'


I wonder since it only READS .rbox files and does not create them, if 
you need to context-click (CTRL-CLICK) on a .rbox file and select "Open 
With.." to see if your app (an reader of .rbox files) is in the list and 
open one to get macOS to associate viewing .rbox files with your App, 
since it does not actually create .rbox files?



On 10/18/2023 3:54 PM, J. Landman Gay via use-livecode wrote:

On 10/18/23 10:35 AM, Paul Dupuis via use-livecode wrote:
If you have identified the document extension in the Standalone 
setting for macOS and set an ics file of icons (or the appropriate 
sizes required by Apple) than documents created by that app should 
display the icon.


No go. Here is the relevant part of the plist:

CFBundleDocumentTypes

    
    CFBundleTypeExtensions
    
.rbox
    
    CFBundleTypeIconFile
    StandaloneDoc.icns
    CFBundleTypeName
Recipe Box Files
    CFBundleTypeOSTypes
    
rbox
    
    CFBundleTypeRole
    Editor
    



The app does not create new files, it just opens the existing stack, 
originally a LC file. I tried a "save as..." but that didn't work 
either. Is there a way to set the signature on an existing file? I did 
try and the stack wouldn't open, presumably it's corrupted.





___
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: OS X document icon missing

2023-10-18 Thread Paul Dupuis via use-livecode

On 10/17/2023 8:11 PM, J. Landman Gay via use-livecode wrote:
How do I force Finder to show a custom document icon? I've created 
.icns files for both the app and its documents. I entered a custom 
extension in standalone settings. In a built standalone the app icon 
appears normally but an associated stack document has only a generic 
blank icon.


I used Get Info to set the document stacks to always open with my app 
(and it does) but the icon still does not appear. The plist does 
contain the correct icon info and both .icns files are present in the 
app's Contents/Resources/ folder.


It looks like a Finder problem but relaunching Finder didn't fix it. 
Ideas?


LC 9.6.10.


I don't think this is related to the problem (above) you have. If you 
have identified the document extension in the Standalone setting for 
macOS and set an ics file of icons (or the appropriate sizes required by 
Apple) than documents created by that app should display the icon. I'd 
double check that the Docunmet extension and Document Type (if you're 
using Types) in the setting match what the file is actually using. I've 
had an extra character (sometime a space which is hard to see) in the 
past that took me a bit to figure it out.


Unrelated, if you ever need more than one document type, below is some 
code I run 'on standaloneSaved' to modify the plist to add additional 
document types and icon sets to my macOS app.


    put tMac64BuildFolder&tAppName&".app/Contents/Info.plist" into 
tSrcFile -- overwrite original

    --
    if there is a file tSrcFile then
  put revXMLCreateTreeFromFile(tSrcFile,true,true,false) into tTreeID
  if tTreeID begins with "xmlerr" then
    answer error "Error reading XML plist file for updating 
document types during build."&tTreeID&""

  else
    -- list of document types ,,code>
    put "HyperRESEARCH Study,StandaloneDoc.icns,hs2,HRs2"&cr into 
tDocTypes
    put "HyperRESEARCH Tools,StandaloneTool.icns,rwtl,RWTL"&cr 
after tDocTypes
    put "HyperRESEARCH Study Package,StandalonePackage.icns,hsz,HSZ 
"&cr after tDocTypes
    put "HyperRESEARCH Study 
Package,StandalonePackage.icns,hs4z,HS4Z" after tDocTypes

    -- XML template
    put 
""&cr&"CFBundleTypeExtensions"&cr&""&cr&"[[tExtension]]"&cr&""&cr 
into tXMLTemplate
    put 
"CFBundleTypeIconFile"&cr&"[[tIconFile]]"&cr&"CFBundleTypeName"&cr 
after tXMLTemplate
    put 
"[[tDocName]]"&cr&"CFBundleTypeOSTypes"&cr&""&cr&"[[tTypeCode]]"&cr 
after tXMLTemplate
    put 
""&cr&"CFBundleTypeRole"&cr&"Editor"&cr&""&cr 
after tXMLTemplate

    -- add document types under parent  at end
    repeat for each line tDocType in tDocTypes
  put item 1 of tDocType into tDocName
  put item 2 of tDocType into tIconFile
  put item 3 of tDocType into tExtension
  put item 4 of tDocType into tTypeCode
  put merge(tXMLTemplate) into tNodeContents
  revXMLAppend tTreeID, "/plist/dict/array",tNodeContents
    end repeat
    -- output updated plist
    get empty -- clear 'it' for any possible error from revXMLText 
that places the error in 'it'

    put revXMLText(tTreeID,,true) into tXMLText
    if it is not empty then
  answer error "Error writing updated XML plist 
file."&it&""

    end if
    put uniDecode(uniEncode(tXMLText),"UTF8") into URL 
("file:"&tSrcFile)

  end if
    end if


___
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


Another macOS Codesigning/Notarization issue

2023-10-15 Thread Paul Dupuis via use-livecode

Help,

I am trying to switch Notarization tools for the Apple November 
deadline. I was using macOS Mojave with Xcode 10.2.1 and not (to use the 
new mandated Notary tool) have to move to Sonoma with Xcode 15.0.0.


I have signed, notarized, and stapled (all responses returned were what 
the lessons at Livecode.com by Matthias said they should be) a Livecode 
9.6.10 Standalone using my Mojave system (the old tool) and it works on 
Sonoma and Mojave


I have signed, notarized, and stapled (all responses were as the lesson 
said they should be) a Livecode 9.6.10 Standalone using my Sonoma system 
(the new tool) and I get  an error trying to run it on Sonoma. It runs 
under Mojave (although the first time the cursor spins a lot and it 
takes a while to start)


The error is an extraordinary helpful dialog with a smiling macOS icon 
that say 'The application "" can't be opened." and an OK button.


I though for a bit that it was that I was still building for Intel and 
the Sonoma is a M1 macBook Air, so I changed the Standalone settings and 
redid everything (again all seemed okay) and the GetInfo says Universal 
(where it said Intel before) but I get the same message.


AGAIN, the old Notarization procedure produces an notarized (and 
stapled) app (that is actually just Intel) that runs without error on 
Sonoma on M1 MacBook Air and Mojave on Intel Powerbook, but the new one, 
from the lessons for Xcode 13+ produced the error above and my app will 
not run.


Security is set to allow App Store and Identified Developers.

Unless I figure this out, I will not be able to make new version of our 
macOS app after November 1. Has anyone else experienced this? Has any 
one see this message?




___
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: Deployment: a plea/opportunity

2023-10-14 Thread Paul Dupuis via use-livecode

On 10/14/2023 7:12 PM, matthias rebbe via use-livecode wrote:

Hi all,

there is a way to export a Apple ID account including developer certificates 
and provisioning profiles at once using Xcode.
See here
https://dl.qck.nu/?dl=Transfer-Copy_Developer_Account_to_a_new_computer.pdf

Regards,
Matthias


So for some time, I have only downloaded the "command Line Tools for 
XCode n.n" rather than the full Xcode install for two reasons: (1) To 
date, I thought I only needed the command line tools for code signing 
and notarization/stapling; and (2) to sage a couple GB of space


The above is the first reason I have seen, if you are only developing 
with Livecode, to download the full Xcode install.


Thank you.



___
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: Deployment: a plea/opportunity

2023-10-14 Thread Paul Dupuis via use-livecode

On 10/14/2023 12:52 AM, Mark Smith wrote:

Paul, just so I understand this problem better. Is there a reason why you can’t 
just download your certificates from the Apple Developer site to your MacBook 
Air? Do they specifically restrict downloading to only certain devices?


If you download from the Apple Developer site, apparently only the 
public key part of teh cert is downloaded. The private key, created on 
the machine you did a Code SIgning Request on is on that machine and not 
the Apple Developer site, which is why you need to either export and 
import between macs or generate a new certificate.


Panos answered this is another thread I started on this USE-LIST.

___
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: Deployment: a plea/opportunity

2023-10-13 Thread Paul Dupuis via use-livecode
I'd love to see versions of Livecode stacks that assist with code 
signing and notarization for as many platforms as possible (I am aware 
of stacks for Windows and macOS) built into Livecode.


That said, for my two major problems (1 on macOS and 1 on Windows), I 
don't think there is anything Livecode could have done to help (other 
than lessons/documentation).


On Windows my current certificate - a .pfx format code signing cert - is 
expiring in November, so I renewed it. However, as of June 1 2023, the 
Windows code signing industry moved to requiring all code signing 
certificates to be issued on an encrypted USB token and you must use 
specialized software (that 3rd party can not hook into to prevent 
malware) to access those tokens to code sign.


On macOS, I needed to update code signing and NOTARIZATION to 
accommodate that Apple is switching to a new notary tool that only rns 
on new versions of macOS (I was using Mojave and atool) so I HAD (forced 
by Apple) for update to using the macBook Air I have that happened to 
have Sonoma on it and than meant Xcode 15 command line tools for the new 
Notary tool. atool stops being accepted by Apple some time in November 
so my old notarization steps will stop working. The change in notary 
tool was easy with Matthias's lessons and documentation on livecode.com. 
The problem was getting my Apple code signing certificates AND related 
certificates on to the MacBook air from the Apple Developer site, 
something I don't think Livecode can really help with.


Yes, others have had still other issues some of which improvements in 
Livecode might help address, but for the two I ran into that I turned to 
the list for help for, they were ultimately nothing that I think 
Livecode could help with.


Just my 2 cents on my 2 issues.


On 10/13/2023 1:46 PM, Richard Gaskin via use-livecode wrote:
We see it here in this list. We see it in the forums. We see it 
wherever app deployment is discussed:


OS requirements for packaging/stapling/signing apps are onerous.

At the edge of, and sometimes exceeding, being prohibitively so.

There's no point in making a standalone if you can't ship it.

If pro devs with decades of experience struggle with this, newcomers 
will run screaming.


SIMPLIFYING DEPLOYMENT IS THE NUMBER ONE PRIORITY.

Pardon the all-caps. I rarely use them. But this is important.

Simplifying deployment is more important than "AI".
Simplifying deployment is more important than "nocode".

It is the single biggest pain point.

And so it is the single biggest opportunity.

Fulfill the promise of "Everyone can code": focus on simplifying 
deployment.


Step 1: Acquire Matthias' great tool.

Step 2: Enhance it for current requirements across platforms.

Step 3: Look for every opportunity to further simplify the process, 
and take it, at least one more simplification with each new build.


This is important. It really is.

--

And no, web export will not magically save things.  Even when that 
becomes truly production-ready, it's only for web apps.  Not 
everything needs to be a web app.


There are a hundred ways to make web apps.

There are few ways to make cross-platform native apps.

And almost none that rival what LC can do on the desktop.

Play into strengths.  Make native deployment the best it can be.

When that's done, only then resume work on more peripheral features.




___
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: AW: Another (macOS) Code signing guidance question...

2023-10-11 Thread Paul Dupuis via use-livecode

On 10/10/2023 8:23 PM, panagiotis merakos via use-livecode wrote:

Hello all,

Just downloading the certificate from your account in the apple dev
website, and using it in a different machine from the one it was created
will not work (you get identity not found), because you need the private
key as well.

This is why you have to export the certificate from the old machine,
because exporting the certificate exports the private key that is
associated with it as well.

Kind regards,
Panos



Thank you Panos.  If you or Matthias ever come across (or write) a goo 
step by step for getting Apple Certs to a new machine (new cert from 
Apple to a new machine, existing cert from Apple to a new machine, 
existing cert from one machine to another I think are the 3 
possibilities) you should link to it or add it to the code signing and 
notarization lesson.


We only do this rarely. For example I have a Apple Code signing cert 
that was created in 2021 and good until 2026. That was a replacement for 
an earlier one. I put than on a Mojave system that I have used to code 
sign since 2021. In 2 years time I have not touch the certs and would 
not have until 2026 if Apple did change the notarization command and 
make me move to a newer macOS. So I forget how its done. I even forget 
where I filed my own documentation on how to do it. So it's like trying 
to do it from scratch each time.


I try to do all the code signing (mac and win) and notarization (mac) by 
command line even though there are GUI tools (Matthias's excellent stack 
and AppWrapper and on and on) so that I at least know the steps in the 
process and id something goes wrong (because the vendor changes 
something) I know what step blew up.


Any way, thank you again.



___
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: Window code signing certificate source recommendations

2023-10-11 Thread Paul Dupuis via use-livecode

On 10/10/2023 9:56 AM, matthias rebbe via use-livecode wrote:

Paul,

just googled a little bit...

If you have a safenet USB Token, than there seems to be a way to disable the 
password pop up.

https://www.finalbuilder.com/resources/blogs/code-signing-with-usb-tokens




Thank you for this!

We have to get back to doing some development now that we have a new 
Windows Cert and our mac Cert is working with Apple's Nov 1 new 
notarization process, but I'll give this a try when I have a chance.


___
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


  1   2   3   4   5   6   7   8   9   10   >