From bogdanoff at me.com Sat Oct 1 04:17:07 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 1 Oct 2022 01:17:07 -0700 Subject: Control or right click to show popup menu Message-ID: Hi, I want to control or right click on a line of text in a field to show a popup menu. So I’ve set the popup menu button to the loc of the mouse and it’s showing in place when the controlKey is down. However, the menu items won’t show while the control key is also down. Maybe I’m doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. Thanks, From richmondmathewson at gmail.com Sat Oct 1 05:08:13 2022 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 1 Oct 2022 12:08:13 +0300 Subject: Control or right click to show popup menu In-Reply-To: References: Message-ID: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> Why does this make me have a funny feeling you are still using a one-button mouse on a Macintosh? Certainly, I would stick with on mouseDown  MN   if MN is 3 then . . . Best, Richmond. On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote: > Hi, > > I want to control or right click on a line of text in a field to show a popup menu. So Ive set the popup menu button to the loc of the mouse and its showing in place when the controlKey is down. > > However, the menu items wont show while the control key is also down. > > Maybe Im doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. > > Thanks, > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kaveh at rivervalleytechnologies.com Sat Oct 1 07:30:21 2022 From: kaveh at rivervalleytechnologies.com (Kaveh) Date: Sat, 1 Oct 2022 12:30:21 +0100 Subject: RegEx to convert standard date to sql date In-Reply-To: <78BFC9D5-B6C4-45B3-BCEB-C9D00B494984@iotecdigital.com> References: <3AD0C9C1-5AA3-465B-A371-833CD66F8AB3@iotecdigital.com> <78BFC9D5-B6C4-45B3-BCEB-C9D00B494984@iotecdigital.com> Message-ID: Search for (\d\d)\/(\d\d)\/(\d\d\d\d) replace with \3\1\2 See here On Fri, 30 Sept 2022 at 23:46, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Well it's like this. I am working in a document management system, and > when I capture a date, I want to convert it to an sql date. I am not > working in Livecode for this. > > Bob S > > > > On Sep 30, 2022, at 10:38 , Jacques Clavel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Why not : > > set itemdel to "/" > > get tDate > > put item 3 of it & item 1 of it & item 2 of it into tSql > > > > JC > > > > Le ven. 30 sept. 2022 à 19:13, Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> a écrit : > > > >> I'm trying to convert a date format like mm/dd/yyyy to an sql date > format > >> yyyymmdd. Any ideas? Nothing I found on the interwebs seems to work. > >> > >> Bob S > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > -- > > Jacques Clavel > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 ● Twitter ● LinkedIn ● ORCID *Accelerating the Communication of Research* From craig at starfirelighting.com Mon Oct 3 09:47:29 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 3 Oct 2022 09:47:29 -0400 Subject: Control or right click to show popup menu In-Reply-To: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> References: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> Message-ID: <2AF0CD5F-F086-4EC2-BB5C-C0E8776C9707@starfirelighting.com> Hi. On a new card make a field and a pulldown menu button. Place a few lines of text in the field and lock it. In the field script: on mouseUp set the loc of btn 1 to the mouseloc click at the mouseLoc end mouseUp The menu opens at the line clicked on. This has been discussed extensively in the forums, if you want to search there. That discussion mainly dealt with loading the contents of the button with the field contents, or the selection of a particular menuItem once the menu itself was open. Craig > On Oct 1, 2022, at 5:08 AM, Richmond via use-livecode wrote: > > Why does this make me have a funny feeling you are still using a one-button mouse on a Macintosh? > > Certainly, I would stick with > > on mouseDown MN > if MN is 3 then . . . > > Best, Richmond. > > On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote: >> Hi, >> >> I want to control or right click on a line of text in a field to show a popup menu. So I’ve set the popup menu button to the loc of the mouse and it’s showing in place when the controlKey is down. >> >> However, the menu items won’t show while the control key is also down. >> >> Maybe I’m doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. >> >> Thanks, >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Oct 3 11:20:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Oct 2022 15:20:24 +0000 Subject: RegEx to convert standard date to sql date In-Reply-To: References: <3AD0C9C1-5AA3-465B-A371-833CD66F8AB3@iotecdigital.com> <78BFC9D5-B6C4-45B3-BCEB-C9D00B494984@iotecdigital.com> Message-ID: <211919FC-D9AE-46F0-BA46-78D1AFD5C314@iotecdigital.com> Thanks I'll try that. Looks like just what I neeed. Bob S On Oct 1, 2022, at 04:30 , Kaveh > wrote: Search for (\d\d)\/(\d\d)\/(\d\d\d\d) replace with \3\1\2 See here On Fri, 30 Sept 2022 at 23:46, Bob Sneidar via use-livecode > wrote: Well it's like this. I am working in a document management system, and when I capture a date, I want to convert it to an sql date. I am not working in Livecode for this. Bob S > On Sep 30, 2022, at 10:38 , Jacques Clavel via use-livecode > wrote: > > Why not : > set itemdel to "/" > get tDate > put item 3 of it & item 1 of it & item 2 of it into tSql > > JC > > Le ven. 30 sept. 2022 à 19:13, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> a écrit : > >> I'm trying to convert a date format like mm/dd/yyyy to an sql date format >> yyyymmdd. Any ideas? Nothing I found on the interwebs seems to work. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Jacques Clavel > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 ● Twitter ● LinkedIn ● ORCID Accelerating the Communication of Research From bobsneidar at iotecdigital.com Mon Oct 3 11:23:17 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Oct 2022 15:23:17 +0000 Subject: Quick and simple web demos? In-Reply-To: <1c2b91f5-739e-a661-d07e-7dc73d60df29@sonic.net> References: <4f9d310e-ac2f-9898-add9-39c1f6818e31@tweedly.net> <1c2b91f5-739e-a661-d07e-7dc73d60df29@sonic.net> Message-ID: This is so rediculously typical of any search features on any number of web sites. Copier partner portals are right up there. You can search for anything and get a plethora of everything EXCEPT anything you are searching for. Bob S > On Sep 30, 2022, at 18:03 , Mark Wieder via use-livecode wrote: > > On 9/30/22 17:11, Alex Tweedly via use-livecode wrote: > >> and the poor indexing/naming makes it tedious to try to find. > > ...and speaking of poor indexing etc... > I was looking for a way to point the svgicon widget to an external svg file and finding that for some reason this isn't built into the widget. So I want online to livecodeshare and typed "svg" into the search field. Upper case. > Lower case. > Didn't matter - I still got zero results, even though I know there are several stacks to deal with svg files. > > Thank you so much for your Sample Stacks plugin, which does the job SO much better than that stupid web site. Still don't have an answer to my problem, but at least I can search properly. Over time I've gradually been replacing parts of my development environment with improvements: tinyDictionary, etc. Waiting for someone to build a better Proj Browser. > > BTW... I typed "Sample stacks" into the web search field and got 57 hits, only one of which had anything to do with sample stacks. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bogdanoff at me.com Mon Oct 3 14:37:42 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 3 Oct 2022 11:37:42 -0700 Subject: Control or right click to show popup menu In-Reply-To: <2AF0CD5F-F086-4EC2-BB5C-C0E8776C9707@starfirelighting.com> References: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> <2AF0CD5F-F086-4EC2-BB5C-C0E8776C9707@starfirelighting.com> Message-ID: Thanks, Craig. That is exactly the solution if figured out over the weekend, use the click command to click at the mouseLoc. Peter > On Oct 3, 2022, at 6:47 AM, Craig Newman via use-livecode wrote: > > Hi. > > On a new card make a field and a pulldown menu button. Place a few lines of text in the field and lock it. In the field script: > on mouseUp > > set the loc of btn 1 to the mouseloc > > click at the mouseLoc > > end mouseUp > > The menu opens at the line clicked on. > > This has been discussed extensively in the forums, if you want to search there. That discussion mainly dealt with loading the contents of the button with the field contents, or the selection of a particular menuItem once the menu itself was open. > > Craig > >> On Oct 1, 2022, at 5:08 AM, Richmond via use-livecode wrote: >> >> Why does this make me have a funny feeling you are still using a one-button mouse on a Macintosh? >> >> Certainly, I would stick with >> >> on mouseDown MN >> if MN is 3 then . . . >> >> Best, Richmond. >> >> On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote: >>> Hi, >>> >>> I want to control or right click on a line of text in a field to show a popup menu. So I’ve set the popup menu button to the loc of the mouse and it’s showing in place when the controlKey is down. >>> >>> However, the menu items won’t show while the control key is also down. >>> >>> Maybe I’m doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. >>> >>> Thanks, >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Tue Oct 4 11:20:57 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Oct 2022 15:20:57 +0000 Subject: PDF Printing Message-ID: I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 From martyknappster at gmail.com Tue Oct 4 12:38:29 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Tue, 4 Oct 2022 09:38:29 -0700 Subject: PDF Printing In-Reply-To: References: Message-ID: <07B91C92-3FC6-4556-8645-DAF57E0D3104@gmail.com> It could be a corrupted font cache - I’ve found that can cause weird behavior as you’re describing. If you’re on a Mac, do a “safe reboot” (start up with the shift key pressed) and after it boots up, do a normal reboot. That will delete the current font caches and then rebuild them from scratch. It’s little harder to fix on Windows - if that is the case you might Google that. Worth a try anyway. Marty > On Oct 4, 2022, at 8:20 AM, Dan Friedman via use-livecode wrote: > > I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: > > on mouseUp currSName > put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF > > if printAsPDF then > ask file "Save As PDF:" with (currSName & ".pdf") > put it into pdfPath > open printing to pdf pdfPath > else > open printing with dialog > end if > > if the result is "Cancel" then > exit mouseUp > end if > > print card 1 of stack "GB_PReport" > close printing > end mouseUp > > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? > > LC 9.6.8 From rdimola at evergreeninfo.net Tue Oct 4 12:50:07 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 4 Oct 2022 12:50:07 -0400 Subject: PDF Printing In-Reply-To: References: Message-ID: <003301d8d811$5f0079e0$1d016da0$@net> Dan, How to delete Windows font cache: https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht ml Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, October 04, 2022 11:21 AM To: How to use LiveCode Cc: Dan Friedman Subject: PDF Printing I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Tue Oct 4 13:15:44 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Oct 2022 17:15:44 +0000 Subject: PDF Printing In-Reply-To: <003301d8d811$5f0079e0$1d016da0$@net> References: <003301d8d811$5f0079e0$1d016da0$@net> Message-ID: <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> Thank you for your thoughts, but do you really think a font cache is the issue? I have two computers in my office having this issue, and about a dozen Macs at my client's location -- that we know of so far! If it were a font issue, do you think one print method would be successful, and another wouldn't? If the font table was messed up, I would think it would be wacked for all methods. No? I could be wrong (I'm wrong all the time!) but, I think it's something in LC's internal PDF handling, or some property I need to set or reset. -Dan On 10/4/22, 9:51 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: Dan, How to delete Windows font cache: https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht ml Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, October 04, 2022 11:21 AM To: How to use LiveCode Cc: Dan Friedman Subject: PDF Printing I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 _______________________________________________ use-livecode mailing list use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Tue Oct 4 13:45:03 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 4 Oct 2022 13:45:03 -0400 Subject: PDF Printing In-Reply-To: <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> References: <003301d8d811$5f0079e0$1d016da0$@net> <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> Message-ID: <003701d8d819$0b543680$21fca380$@net> Your right... If all computers are doing it then font cache is probably not the issue. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: Dan Friedman [mailto:dan at clearvisiontech.com] Sent: Tuesday, October 04, 2022 1:16 PM To: How to use LiveCode Cc: Ralph DiMola Subject: Re: PDF Printing Thank you for your thoughts, but do you really think a font cache is the issue? I have two computers in my office having this issue, and about a dozen Macs at my client's location -- that we know of so far! If it were a font issue, do you think one print method would be successful, and another wouldn't? If the font table was messed up, I would think it would be wacked for all methods. No? I could be wrong (I'm wrong all the time!) but, I think it's something in LC's internal PDF handling, or some property I need to set or reset. -Dan On 10/4/22, 9:51 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: Dan, How to delete Windows font cache: https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht ml Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, October 04, 2022 11:21 AM To: How to use LiveCode Cc: Dan Friedman Subject: PDF Printing I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 _______________________________________________ use-livecode mailing list use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Tue Oct 4 14:08:08 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Tue, 4 Oct 2022 11:08:08 -0700 Subject: PDF Printing In-Reply-To: <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> References: <003301d8d811$5f0079e0$1d016da0$@net> <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> Message-ID: <8AB53EF9-D84F-4C37-A4AD-E20117E59B9E@gmail.com> If it was one computer, I’d say there was a good chance but more than one computer I’d say no. Problem must be elsewhere. Marty > On Oct 4, 2022, at 10:15 AM, Dan Friedman via use-livecode wrote: > > Thank you for your thoughts, but do you really think a font cache is the issue? I have two computers in my office having this issue, and about a dozen Macs at my client's location -- that we know of so far! If it were a font issue, do you think one print method would be successful, and another wouldn't? If the font table was messed up, I would think it would be wacked for all methods. No? > > I could be wrong (I'm wrong all the time!) but, I think it's something in LC's internal PDF handling, or some property I need to set or reset. > > -Dan > > > On 10/4/22, 9:51 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: > > Dan, > > How to delete Windows font cache: > https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht > ml > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Dan Friedman via use-livecode > Sent: Tuesday, October 04, 2022 11:21 AM > To: How to use LiveCode > Cc: Dan Friedman > Subject: PDF Printing > > I am getting different results using "open printing to pdf" vs standard > printing to a printer. I have a card with a single field on it with some > formatted text in it. If I print the card to a printer using "open > printing with dialog" it all looks perfect (even if I choose to save it to > PDF in the print dialog). But, if I use the "open printing to pdf" method, > it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I > am using: > > on mouseUp currSName > put (the hilite of btn "printAsPDF" of stack "ReportOptions") into > printAsPDF > > if printAsPDF then > ask file "Save As PDF:" with (currSName & ".pdf") > put it into pdfPath > open printing to pdf pdfPath > else > open printing with dialog > end if > > if the result is "Cancel" then > exit mouseUp > end if > > print card 1 of stack "GB_PReport" > close printing > end mouseUp > > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? > > LC 9.6.8 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Tue Oct 4 14:43:29 2022 From: mark at livecode.com (Mark Waddingham) Date: Tue, 04 Oct 2022 19:43:29 +0100 Subject: PDF Printing In-Reply-To: References: Message-ID: <1f3f8c36b3a82a37776e3ed6503ac483@livecode.com> On 2022-10-04 16:20, Dan Friedman via use-livecode wrote: > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - > https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? Someone had a similar problem in the past (Paul or Klaus maybe?) - it turned out that it was because no explicit font was set on the stack (or controls) - meaning that it was using the macOS 'theme' font. This isn't actually a 'discoverable' font in the various font related APIs - and appears to be (somewhat!) hard-coded in the various low-level Apple graphics rendering APIs. The PDF printer does use the correct fonts and metrics - and CoreText (on macOS) to do font layout - but the actual PDF generation is done using a cross-platform library (so the output is the same on all platforms) which relies on getting the 'real' font data for the given font (which it does not in this case) and not macOS (CoreGraphics-based) printing. The latter appears to be able to deal with the 'magic' fonts (unsurprising as its all Apple stuff), but our pdf printer cannot. If you set the stack to an explicit font then the problem should go away. Alternatively, if this is a mac-only product, you can use macOS's PDF printing capability by setting the printerOutput property to "file:" - on macOS the latter will generate a PDF (i.e. its the same as choosing 'Save As PDF' from the printer dialog). Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dan at clearvisiontech.com Tue Oct 4 15:39:50 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Oct 2022 19:39:50 +0000 Subject: PDF Printing In-Reply-To: <1f3f8c36b3a82a37776e3ed6503ac483@livecode.com> References: <1f3f8c36b3a82a37776e3ed6503ac483@livecode.com> Message-ID: <882D1E71-5AA6-41F4-8276-34EC2E03E74A@clearvisiontech.com> Mark, Genius! I can't thank you enough... That worked! Make sure that the field that holds the text has a valid font name and isn't inheriting a system-level font. That REALLY ought to be documented in the PDF routines in LC. As long as I have your ear... Whenever I call this, I get a blank page in the beginning of my PDF. I have checked that I'm not printing a blank page and have debugged this to death! Any thoughts on a blank page being included in a PDF? -Dan On 10/4/22, 11:44 AM, "use-livecode on behalf of Mark Waddingham via use-livecode" wrote: On 2022-10-04 16:20, Dan Friedman via use-livecode wrote: > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - > https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? Someone had a similar problem in the past (Paul or Klaus maybe?) - it turned out that it was because no explicit font was set on the stack (or controls) - meaning that it was using the macOS 'theme' font. This isn't actually a 'discoverable' font in the various font related APIs - and appears to be (somewhat!) hard-coded in the various low-level Apple graphics rendering APIs. The PDF printer does use the correct fonts and metrics - and CoreText (on macOS) to do font layout - but the actual PDF generation is done using a cross-platform library (so the output is the same on all platforms) which relies on getting the 'real' font data for the given font (which it does not in this case) and not macOS (CoreGraphics-based) printing. The latter appears to be able to deal with the 'magic' fonts (unsurprising as its all Apple stuff), but our pdf printer cannot. If you set the stack to an explicit font then the problem should go away. Alternatively, if this is a mac-only product, you can use macOS's PDF printing capability by setting the printerOutput property to "file:" - on macOS the latter will generate a PDF (i.e. its the same as choosing 'Save As PDF' from the printer dialog). Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Oct 5 16:53:11 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 5 Oct 2022 16:53:11 -0400 Subject: map widget offline Message-ID: has anyone messed around with using the map widget offline? i was in a hurricane zone, last week, and over the weekend. there was a fair amount of offline time, when having maps loaded into my droid phone would have been useful. the offline map apps that i can find have limited zoom capability. -- 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." From ahsoftware at sonic.net Wed Oct 5 17:22:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 5 Oct 2022 14:22:37 -0700 Subject: map widget offline In-Reply-To: References: Message-ID: On 10/5/22 13:53, Mike Kerner via use-livecode wrote: > has anyone messed around with using the map widget offline? > i was in a hurricane zone, last week, and over the weekend. there was a > fair amount of offline time, when having maps loaded into my droid phone > would have been useful. the offline map apps that i can find have limited > zoom capability. > I use Sygic for offline maps on my Android phone. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Thu Oct 6 15:46:08 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 6 Oct 2022 21:46:08 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers Message-ID: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Dear all, i am happy to announce that an updated version of InstaMaker is available. InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. What is new - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. Downloads: macOS Wine version https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip Windows x64 https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. Regards, Matthias From james at thehales.id.au Sat Oct 8 20:52:58 2022 From: james at thehales.id.au (James Hale) Date: Sun, 9 Oct 2022 11:52:58 +1100 Subject: SUB-to-SRT updated to convert YouTube transcripts Message-ID: <4EA45A23-8EF9-4A71-9D7D-52C78CC98B75@thehales.id.au> Hi all, I have just updated the sample stack "sub-to-srt" to now convert YouTube's transcripts (sbv extension) to set files. Perhaps it is age, but I am increasingly finding it difficult to catch all the words spoken in videos. The LivdCode videos posted on YouTube being a case in point. Although I have subscribed to most of the "global" events, and watch them when I can given the timezone differences, I find myself usually waiting until they are posted in my account page. Previously I would then download the YouTube version in order to have closed captions. Unfortunately the apps I use to download YouTubes no longer capture the captions. However while on YouTube you can show the transcript and copy the text. Doing so and saving the text file with a ".sbv" extension the "sub-to-srt" stack will now convert this into a correctly formatted ".srt" file which most media players can access. I use "sub-to-srt" as a standalone app on my Mac. To see the transcript of a YouTube video; Turn on captions, if not already turned on. It's the "CC" icon at the bottom of the video. Click the gear icon to adjust any available settings. At the end of the line of icons with "like" "dislike" etc you will see an ellipsis "…" Click on this and select "show transcript". It will appear to the right of the video. Simply select and copy the text. James From jacque at hyperactivesw.com Mon Oct 10 19:29:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 10 Oct 2022 18:29:04 -0500 Subject: TSNet cache error Message-ID: I have a browser widget in an Android app and I keep getting an error "tsnet: ERR_CACHE_MISS". This happens when using both the Test button and when installing a built Android app. I've cleared Chrome's cache, and deleted and reinstalled the app several times, but the widget won't connect. How would I fix the browser widget cache? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Tue Oct 11 02:07:44 2022 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 11 Oct 2022 17:07:44 +1100 Subject: on-rev mail server Message-ID: Is anyone having troubles with on-rev IMAP and SMTP servers? I've just upgraded my OS and all the passwords for the servers were blank but when I input them I don't get a connection. I restarted using my back-up HDD, which has all the boxes filled in, but it can't connect to the mail servers either. I thought I'd log in using cPanel to see if there was a hint there but I can't access the 'silica' server either; which led me to believe that the servers may be down but I can access all my web pages. Anyone else having issues or should I be contacting Heather? Thanks From jbv at souslelogo.com Tue Oct 11 02:57:14 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 11 Oct 2022 02:57:14 -0400 Subject: LC -> Applescript -> Chrome Message-ID: <892b479b4261350152cc06d568d7e47b@souslelogo.com> Hi list, I have a stack that interacts with Chrome via Applescript. It has been running fine for months. Suddenly, one command line began to stall the whole process, with the spinning wheel spinning forever. And when I run the same Applescript in the script editor, it still runs fine as before. The line is : tell application "System Events" to click at {x, y} I am using LC 9.6.8 What should I look at to fix the issue ? Thank you in advance. jb From matthias_livecode_150811 at m-r-d.de Tue Oct 11 02:58:33 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 11 Oct 2022 08:58:33 +0200 Subject: on-rev mail server In-Reply-To: References: Message-ID: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> Unfortunately i am not on Silica, but on Quartz. So i could just test with "my" server. I am able to login. So it is not a general problem, but only one with Silica. Maybe the db server part has problems. Anyway, if you think it's not urgent, then you could send an email to livecodehosting at livecode.com If you think it's urgent, then you can send an email to livecodehosting at livecode.com and put the word URGENT into the subject line at the beginning. This will speed the things a little bit up. Regards, Matthias > Am 11.10.2022 um 08:07 schrieb Kay C Lan via use-livecode : > > Is anyone having troubles with on-rev IMAP and SMTP servers? > > I've just upgraded my OS and all the passwords for the servers were > blank but when I input them I don't get a connection. > > I restarted using my back-up HDD, which has all the boxes filled in, > but it can't connect to the mail servers either. > > I thought I'd log in using cPanel to see if there was a hint there but > I can't access the 'silica' server either; which led me to believe > that the servers may be down but I can access all my web pages. > > Anyone else having issues or should I be contacting Heather? > > Thanks > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andy at db-integration.co.uk Tue Oct 11 03:13:01 2022 From: andy at db-integration.co.uk (Andy Marshman) Date: Tue, 11 Oct 2022 07:13:01 +0000 (UTC) Subject: on-rev mail server In-Reply-To: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> References: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> Message-ID: <529af426-4b30-4fce-a30f-68e6c590347b@db-integration.co.uk> Hi, I'm using the mail servers on Silica and both seem to be working fine for me. I can also log into my cpanel account without issue. If it helps I'm based in the UK Regards Andy 11 Oct 2022 07:59:41 matthias rebbe via use-livecode : > Unfortunately i am not on Silica, but on Quartz. So i could just test with "my" server. > I am able to login. > > So it is not a general problem, but only one with Silica. Maybe the db server part has problems. > > Anyway, if you think it's not urgent, then you could send an email to livecodehosting at livecode.com > > > If you think it's urgent, then you can send an email to livecodehosting at livecode.com   and put the word URGENT into the subject line at the beginning. This will speed the things a little bit up. > > Regards, > Matthias > > > >> Am 11.10.2022 um 08:07 schrieb Kay C Lan via use-livecode : >> >> Is anyone having troubles with on-rev IMAP and SMTP servers? >> >> I've just upgraded my OS and all the passwords for the servers were >> blank but when I input them I don't get a connection. >> >> I restarted using my back-up HDD, which has all the boxes filled in, >> but it can't connect to the mail servers either. >> >> I thought I'd log in using cPanel to see if there was a hint there but >> I can't access the 'silica' server either; which led me to believe >> that the servers may be down but I can access all my web pages. >> >> Anyone else having issues or should I be contacting Heather? >> >> Thanks >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 11 06:01:27 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 11 Oct 2022 12:01:27 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Message-ID: Hi again, for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. There will be some errors saying that some files were not readable. You can ignore that. After that you can open the app without any error message. Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. Windows https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip macOS Wine app https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg Regards, Matthias > Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- > ivecode : > > Dear all, > > i am happy to announce that an updated version of InstaMaker is available. > InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. > InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. > > What is new > - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows > - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. > > Downloads: > macOS Wine version > https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip > > Windows x64 > https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe > > > I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. > > Regards, > Matthias > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Tue Oct 11 06:14:36 2022 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 11 Oct 2022 21:14:36 +1100 Subject: on-rev mail server In-Reply-To: <529af426-4b30-4fce-a30f-68e6c590347b@db-integration.co.uk> References: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> <529af426-4b30-4fce-a30f-68e6c590347b@db-integration.co.uk> Message-ID: Thanks, I'm still having issues so I'll email livecodehosting. Thanks Matthias for the link. On Tue, Oct 11, 2022 at 6:13 PM Andy Marshman via use-livecode wrote: > > Hi, > > I'm using the mail servers on Silica and both seem to be working fine for me. I can also log into my cpanel account without issue. > > If it helps I'm based in the UK > > Regards > Andy > > 11 Oct 2022 07:59:41 matthias rebbe via use-livecode : > > > Unfortunately i am not on Silica, but on Quartz. So i could just test with "my" server. > > I am able to login. > > > > So it is not a general problem, but only one with Silica. Maybe the db server part has problems. > > > > Anyway, if you think it's not urgent, then you could send an email to livecodehosting at livecode.com > > > > > > If you think it's urgent, then you can send an email to livecodehosting at livecode.com and put the word URGENT into the subject line at the beginning. This will speed the things a little bit up. > > > > Regards, > > Matthias > > > > > > > >> Am 11.10.2022 um 08:07 schrieb Kay C Lan via use-livecode : > >> > >> Is anyone having troubles with on-rev IMAP and SMTP servers? > >> > >> I've just upgraded my OS and all the passwords for the servers were > >> blank but when I input them I don't get a connection. > >> > >> I restarted using my back-up HDD, which has all the boxes filled in, > >> but it can't connect to the mail servers either. > >> > >> I thought I'd log in using cPanel to see if there was a hint there but > >> I can't access the 'silica' server either; which led me to believe > >> that the servers may be down but I can access all my web pages. > >> > >> Anyone else having issues or should I be contacting Heather? > >> > >> Thanks > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Tue Oct 11 11:27:02 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 11 Oct 2022 18:27:02 +0300 Subject: TSNet cache error In-Reply-To: References: Message-ID: Hello Jacque, Have you tried doing: do "location.reload()" in widget "myBrowser" just after setting the browser widget url property. Kind regards, Panos -- On Tue, 11 Oct 2022 at 02:30, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a browser widget in an Android app and I keep getting an error > "tsnet: ERR_CACHE_MISS". > This happens when using both the Test button and when installing a built > Android app. > > I've cleared Chrome's cache, and deleted and reinstalled the app several > times, but the widget > won't connect. How would I fix the browser widget cache? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Oct 11 15:27:10 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 11 Oct 2022 12:27:10 -0700 Subject: LC -> Applescript -> Chrome In-Reply-To: <892b479b4261350152cc06d568d7e47b@souslelogo.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> Message-ID: <3370f25c-c179-7152-876f-a45a0ce337df@fourthworld.com> jbv wrote: > I have a stack that interacts with Chrome via Applescript. > It has been running fine for months. > Suddenly, one command line began to stall the whole process, > with the spinning wheel spinning forever. > > And when I run the same Applescript in the script editor, > it still runs fine as before. > The line is : > tell application "System Events" to click at {x, y} > I am using LC 9.6.8 > > What should I look at to fix the issue ? At first this struck me as potentially an intentional change from Apple for security purposes, but a quick DuckDuckGo search shows many having the same AppleScript issue with "click at": https://duckduckgo.com/?q=macOS+applescript+%22click+at%22 Interesting discussions, but I didn't see a proposed solution that works for Mavericks. I also didn't look that hard; there may be a fix out there. Or it may be a bug in macOS. But at least it isn't you. :) -- Richard Gaskin Fourth World Systems From paul at researchware.com Tue Oct 11 15:37:04 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Oct 2022 15:37:04 -0400 Subject: RANT (Mild): revZIP library Message-ID: We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. This just makes us look bad. Paul Dupuis Researchware From jbv at souslelogo.com Tue Oct 11 15:38:33 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 11 Oct 2022 15:38:33 -0400 Subject: LC -> Applescript -> Chrome In-Reply-To: <3370f25c-c179-7152-876f-a45a0ce337df@fourthworld.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> <3370f25c-c179-7152-876f-a45a0ce337df@fourthworld.com> Message-ID: Hi Richard, Thank you for your reply. Actually it's kind of weird : after running the script a few times in the Applescript editor, it started to work again in LC... May be it was something in my setup, I don't know. Best, Le 2022-10-11 15:27, Richard Gaskin via use-livecode a crit : > jbv wrote: >> I have a stack that interacts with Chrome via Applescript. >> It has been running fine for months. >> Suddenly, one command line began to stall the whole process, >> with the spinning wheel spinning forever. >> >> And when I run the same Applescript in the script editor, >> it still runs fine as before. >> The line is : >> tell application "System Events" to click at {x, y} >> I am using LC 9.6.8 >> >> What should I look at to fix the issue ? > > At first this struck me as potentially an intentional change from > Apple for security purposes, but a quick DuckDuckGo search shows many > having the same AppleScript issue with "click at": > https://duckduckgo.com/?q=macOS+applescript+%22click+at%22 > > Interesting discussions, but I didn't see a proposed solution that > works for Mavericks. I also didn't look that hard; there may be a fix > out there. Or it may be a bug in macOS. But at least it isn't you. :) From sean at pidigital.co.uk Tue Oct 11 16:34:28 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 11 Oct 2022 21:34:28 +0100 Subject: RANT (Mild): revZIP library In-Reply-To: References: Message-ID: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Hi Paul I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. I’m sure you’re capable of building the shell script but let us know if not. All the best Sean > On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: > > We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. > > We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. > > Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. > > Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. > > This just makes us look bad. > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Oct 11 17:14:38 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Oct 2022 17:14:38 -0400 Subject: RANT (Mild): revZIP library In-Reply-To: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: Thank you for the  history. Yes, using other ZIP tools via shell is a possibility, but one I would rather not do. While some researchers who use our app are very computer savvy, most are not. Having a LiveCode ZIP in a window with a nice UI that uses terminology our data analysis tool already uses to let them 'package' their data works well for usage and adoption. We're already doing invisible shell work-arounds for a number of engine bugs, with using ffmpg to replace Export Snapshot (see https://quality.livecode.com/show_bug.cgi?id=23694) the latest. I would just rather not add another 'work-around'. I was actually spending time today cleaning out an old work-around from when a minimized stack set one of its coordinates to -32000 as a way of indicating it was minimized (before the iconic property existed) and work-around fro when a stack was minimized it would get a 'resizeStack' message with a new width and height of 0,0. None of these apply any more but we don't always have time or awareness to remove work-arounds when they are fixed, which can sometimes be years after the work-around was put into place. Anyway, thank you for the suggested approach. It is actually really goo to know someone else has already done it. On 10/11/2022 4:34 PM, Pi Digital via use-livecode wrote: > Hi Paul > > I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. > > Im sure youre capable of building the shell script but let us know if not. > > All the best > Sean > > > >> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: >> >> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >> >> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >> >> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >> >> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >> >> This just makes us look bad. >> >> Paul Dupuis >> Researchware >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From phil at pdslabs.net Tue Oct 11 18:25:00 2022 From: phil at pdslabs.net (Phil Davis) Date: Tue, 11 Oct 2022 15:25:00 -0700 Subject: RANT (Mild): revZIP library In-Reply-To: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: <7043ccd6-4180-b49e-939a-e1eb9fa58895@pdslabs.net> Hi Sean, I wonder if you could open the unzipper as a process in LC. Then your app could probably receive realtime updates from it and let the user what's going on. I've done that before but it was a long time ago, so I have forgotten more than I remember. HTH - Phil Davis On 10/11/22 1:34 PM, Pi Digital via use-livecode wrote: > Hi Paul > > I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. > > Im sure youre capable of building the shell script but let us know if not. > > All the best > Sean > > > >> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: >> >> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >> >> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >> >> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >> >> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >> >> This just makes us look bad. >> >> Paul Dupuis >> Researchware >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis (503) 307-4363 From markclark at mac.com Tue Oct 11 18:40:15 2022 From: markclark at mac.com (Mark Clark) Date: Tue, 11 Oct 2022 17:40:15 -0500 Subject: RANT (Mild): revZIP library In-Reply-To: References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: <0D904D84-2F42-4693-B318-C5009CF9BF45@mac.com> Have you considered chunking the problem up and using compress v revZip library? I ran into something similar when I wanted to keep memory down for encrypting/decrypting multi-gig log files…got a lot of advice about just using shell—but for the same sorts of reasons as you I wanted to do things within lc. I used a standard 1MB chunk size so just added a visual working on '1 of n progress bar’. That might be more effort than it’s worth to you. Might be simpler to create 1 or more archives using the revZip library vs rolling your own. You’d need to stat the files to determine the sizes and # of archives and limit each to < 2GB. the detailed files (synonymous with the long files) Mark > On Oct 11, 2022, at 4:14 PM, Paul Dupuis via use-livecode > wrote: > > Thank you for the history. > > Yes, using other ZIP tools via shell is a possibility, but one I would rather not do. While some researchers who use our app are very computer savvy, most are not. Having a LiveCode ZIP in a window with a nice UI that uses terminology our data analysis tool already uses to let them 'package' their data works well for usage and adoption. > > We're already doing invisible shell work-arounds for a number of engine bugs, with using ffmpg to replace Export Snapshot (see https://quality.livecode.com/show_bug.cgi?id=23694 ) the latest. I would just rather not add another 'work-around'. I was actually spending time today cleaning out an old work-around from when a minimized stack set one of its coordinates to -32000 as a way of indicating it was minimized (before the iconic property existed) and work-around fro when a stack was minimized it would get a 'resizeStack' message with a new width and height of 0,0. None of these apply any more but we don't always have time or awareness to remove work-arounds when they are fixed, which can sometimes be years after the work-around was put into place. > > Anyway, thank you for the suggested approach. It is actually really goo to know someone else has already done it. > > > On 10/11/2022 4:34 PM, Pi Digital via use-livecode wrote: >> Hi Paul >> >> I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. >> >> I’m sure you’re capable of building the shell script but let us know if not. >> >> All the best >> Sean >> >> >> >>> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode > wrote: >>> >>> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859 ) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >>> >>> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >>> >>> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >>> >>> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >>> >>> This just makes us look bad. >>> >>> Paul Dupuis >>> Researchware >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mkoob at rogers.com Tue Oct 11 19:08:53 2022 From: mkoob at rogers.com (Martin Koob) Date: Tue, 11 Oct 2022 19:08:53 -0400 Subject: RANT (Mild): revZIP library In-Reply-To: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: The two bugs mentioned in this thread ( the revZip on Windows and the snapshot) sound like good candidates for the Top Ten Bugs survey that LiveCode Ltd. had run a year or so ago. It was a success it seemed and there was talk at the of running that survey again. Panos, Mark, Any plans for running round 2 of the Top 10 LiveCode Bugs survey in the near future? Martin Sent from my iPhone > On Oct 11, 2022, at 4:36 PM, Pi Digital via use-livecode wrote: > > Hi Paul > > I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. > > I’m sure you’re capable of building the shell script but let us know if not. > > All the best > Sean > > > >> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: >> >> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >> >> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >> >> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >> >> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >> >> This just makes us look bad. >> >> Paul Dupuis >> Researchware >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Wed Oct 12 02:35:17 2022 From: mark at livecode.com (Mark Waddingham) Date: Wed, 12 Oct 2022 07:35:17 +0100 Subject: RANT (Mild): revZIP library In-Reply-To: References: Message-ID: On 2022-10-11 20:37, Paul Dupuis via use-livecode wrote: > We just got bit by a 4+ year old bug (See > https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP > library on macOS can create and read ZIP archives over 2GB, BUT the > Windows library can not. Do you ship your app as a 64-bit windows exe? I wonder if its just a limitation of the library we use when compiled for 32-bit archs... Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From paul at researchware.com Wed Oct 12 08:09:44 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 12 Oct 2022 08:09:44 -0400 Subject: RANT (Mild): revZIP library In-Reply-To: References: Message-ID: On 10/12/2022 2:35 AM, Mark Waddingham via use-livecode wrote: > On 2022-10-11 20:37, Paul Dupuis via use-livecode wrote: >> We just got bit by a 4+ year old bug (See >> https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP >> library on macOS can create and read ZIP archives over 2GB, BUT the >> Windows library can not. > > Do you ship your app as a 64-bit windows exe? > > I wonder if its just a limitation of the library we use when compiled > for 32-bit archs... > > Warmest Regards, > > Mark. > > I thought you had nailed it as we build both 32 and 64 bit Windows EXEs and I might have been testing the wrong one, but I just rebuilt the app using LC 9.6.8 for 64-Bit Windows only (turned off the 32 bit build) and retested and get the same error as in the bug report occurs. ZIPs under 2GB unpack fine. Over 2GB produces the error "ziperr,Can't open file: Unknown error" as the result for calling revZipOpenArchive pArchive, "read" where pArchive is the filespec. I think we'll just add a file size check on Windows and advise that that customers will need to use a OS or 3rd party ZIP tool to move their research data if over 2GB. For many of our customers, this will never be an issue as their total research data will not even come close to 2GB. Some of our customer are using video data, and for them, a single video source (used for their research) can easily be over a GB itself or even over 2GB by itself. A research study can consist of several (or many) such sources. Unfortunately, with multi-mega pixel phones these days making capturing a lot of video very easy more researchers are using large video files in their research. From klaus at major-k.de Wed Oct 12 08:39:25 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 12 Oct 2022 14:39:25 +0200 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 Message-ID: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Hi friends, the subject says it all, and here a screenshot: LC 9.6.9 rc 1 on macOS 12.6. I remembered a posting on this list, that one need to first click "Adaptive icon" and then back to "Icon" to force the correct creation of the icon from a PNG file. Obviously this doesnt work Anyway, can I also use an "Adaptive icon" if the app is not meant for the Google Play Store? Not sure I remebered correctly in this respect. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From merakosp at gmail.com Wed Oct 12 09:08:10 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 12 Oct 2022 16:08:10 +0300 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: Hello Klaus, What you see is the expected result. In fact, this is the reason one has to use adaptive icons. You can use adaptive icons for non Google Play Store apps as well. So, when you use a legacy icon, which is a square png, this does not guarantee that the app icon in the Home screen will appear as a square icon. If the app launcher shows all icons as e.g. circle icons, or as round rectangles, then there are two possible outcomes when you provide a legacy icon: - either your app will stand out from the others (in a negative sense) because it will appear as the square icon among circle icons - or your app icon will appear as a circle that has the original square icon in it. I hope this makes sense :) Kind regards, Panos -- On Wed, 12 Oct 2022 at 15:40, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi friends, > > the subject says it all, and here a screenshot: > > > LC 9.6.9 rc 1 on macOS 12.6. > > I remembered a posting on this list, that one need to first click > "Adaptive icon" > and then back to "Icon" to force the correct creation of the icon from a > PNG file. > Obviously this doesnt work > > Anyway, can I also use an "Adaptive icon" if the app is not meant for the > Google Play Store? > Not sure I remebered correctly in this respect. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Wed Oct 12 09:12:59 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 12 Oct 2022 15:12:59 +0200 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: Hi Panos, > Am 12.10.2022 um 15:08 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > What you see is the expected result. In fact, this is the reason one has to > use adaptive icons. You can use adaptive icons for non Google Play Store > apps as well. > > So, when you use a legacy icon, which is a square png, this does not > guarantee that the app icon in the Home screen will appear as a square > icon. If the app launcher shows all icons as e.g. circle icons, or as round > rectangles, then there are two possible outcomes when you provide a legacy > icon: > - either your app will stand out from the others (in a negative sense) > because it will appear as the square icon among circle icons > - or your app icon will appear as a circle that has the original square > icon in it. > I hope this makes sense :) yes, perfectly, thank you! So LC 9.6.8 did not behave as it should? I mean the legacy icon looked as exspected on Android in 9.6.8 and I did not change anythings since then, read update Android Studio or something. > Kind regards, > Panos Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From scott at elementarysoftware.com Wed Oct 12 09:15:04 2022 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 12 Oct 2022 06:15:04 -0700 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Message-ID: <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> Hello Matthias, I was away from my computer for while and so only recently able to test your latest build. Unfortunately I was unable to get either one of them to build an installer. First I tested the Wine packaged version of InstaMaker. Your custom icon appeared correctly. The drag and drop did appear to work but I was never able to get InstaMaker to finish processing. I was not sure if anything was reported in "show details” after listing the contents of the folder that was dropped because the InstaMaker window became unresponsive and never relinquished control. I had to “Quit WineCX"… which of course made it impossible to scroll the “show details” field. It did appear as if there might have been something reported as the scroll bar seemed to have a good bit of room to scroll. Looking at the Apple utility “Activity Monitor.app” I notice that one of the (multiple) wine64-preloader processes continued to run and consume 4.5 - 5.5% of the CPU. After waiting some time (5 or 10 minutes) I tried Quitting InstaMaker. This appeared to work although in one case the wine processes continued to be present in Activity Monitor. (In this instance, when restarting the computer, the wine64-preloader processes kept the restart from happening and needed to be force-quit.) I tested several times with similar "user results” (the installer didn’t build and InstaMaker appeared to be frozen with the indeterminant-progress indicator spinning. I restarted the computer after several of the tests but this made no difference. I had a similar experience when running InstaMaker inside Parallels Desktop running a 64 bit version of Windows 10. InstaMaker’s indeterminant-progress indicator began spinning and that was it. I restarted Windows and tried again but with the same result. I’m sorry that I don’t have happier (or more useful) information. — Scott > On Oct 11, 2022, at 3:01 AM, matthias rebbe via use-livecode wrote: > > Hi again, > > for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... > > The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. > > You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. > > sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app > > Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online > > sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. > > There will be some errors saying that some files were not readable. You can ignore that. > > After that you can open the app without any error message. > > Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. > > Windows > https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip > > macOS Wine app > https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg > > Regards, > Matthias > > > >> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- > > > >> ivecode : >> >> Dear all, >> >> i am happy to announce that an updated version of InstaMaker is available. >> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >> >> What is new >> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >> >> Downloads: >> macOS Wine version >> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >> >> Windows x64 >> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >> >> >> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >> >> Regards, >> Matthias >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at elementarysoftware.com Wed Oct 12 09:19:13 2022 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 12 Oct 2022 06:19:13 -0700 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> Message-ID: Rats! My mistake. I had meant to send this privately. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Oct 12, 2022, at 6:15 AM, scott--- via use-livecode wrote: > > Hello Matthias, > > I was away from my computer for while and so only recently able to test your latest build. Unfortunately I was unable to get either one of them to build an installer. > > First I tested the Wine packaged version of InstaMaker. Your custom icon appeared correctly. The drag and drop did appear to work but I was never able to get InstaMaker to finish processing. I was not sure if anything was reported in "show details” after listing the contents of the folder that was dropped because the InstaMaker window became unresponsive and never relinquished control. I had to “Quit WineCX"… which of course made it impossible to scroll the “show details” field. It did appear as if there might have been something reported as the scroll bar seemed to have a good bit of room to scroll. > > Looking at the Apple utility “Activity Monitor.app” I notice that one of the (multiple) wine64-preloader processes continued to run and consume 4.5 - 5.5% of the CPU. After waiting some time (5 or 10 minutes) I tried Quitting InstaMaker. This appeared to work although in one case the wine processes continued to be present in Activity Monitor. (In this instance, when restarting the computer, the wine64-preloader processes kept the restart from happening and needed to be force-quit.) I tested several times with similar "user results” (the installer didn’t build and InstaMaker appeared to be frozen with the indeterminant-progress indicator spinning. I restarted the computer after several of the tests but this made no difference. > > I had a similar experience when running InstaMaker inside Parallels Desktop running a 64 bit version of Windows 10. InstaMaker’s indeterminant-progress indicator began spinning and that was it. I restarted Windows and tried again but with the same result. > > I’m sorry that I don’t have happier (or more useful) information. > > — > Scott > >> On Oct 11, 2022, at 3:01 AM, matthias rebbe via use-livecode wrote: >> >> Hi again, >> >> for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... >> >> The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. >> >> You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. >> >> sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app >> >> Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online >> >> sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. >> >> There will be some errors saying that some files were not readable. You can ignore that. >> >> After that you can open the app without any error message. >> >> Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. >> >> Windows >> https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip >> >> macOS Wine app >> https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg >> >> Regards, >> Matthias >> >> >> >>> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- >> >> >> >>> ivecode : >>> >>> Dear all, >>> >>> i am happy to announce that an updated version of InstaMaker is available. >>> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >>> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >>> >>> What is new >>> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >>> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >>> >>> Downloads: >>> macOS Wine version >>> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >>> >>> Windows x64 >>> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >>> >>> >>> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >>> >>> Regards, >>> Matthias >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Wed Oct 12 10:18:37 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 12 Oct 2022 17:18:37 +0300 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: Hello Klaus, Nothing should have changed between 9.6.8 and 9.6.9 rc1 RE legacy/adaptive icons. I guess you see this difference because either of these has changed: - the android device - the android version on the same device - the default launcher app - something else :) I believe that if you rebuild the same app with 9.6.8 you'll see the same results as with 9.6.9 rc1 if you deploy to the same android device. Kind regards, Panos On Wed, 12 Oct 2022 at 16:13, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 12.10.2022 um 15:08 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Klaus, > > > > What you see is the expected result. In fact, this is the reason one has > to > > use adaptive icons. You can use adaptive icons for non Google Play Store > > apps as well. > > > > So, when you use a legacy icon, which is a square png, this does not > > guarantee that the app icon in the Home screen will appear as a square > > icon. If the app launcher shows all icons as e.g. circle icons, or as > round > > rectangles, then there are two possible outcomes when you provide a > legacy > > icon: > > - either your app will stand out from the others (in a negative sense) > > because it will appear as the square icon among circle icons > > - or your app icon will appear as a circle that has the original square > > icon in it. > > I hope this makes sense :) > > yes, perfectly, thank you! > > So LC 9.6.8 did not behave as it should? > I mean the legacy icon looked as exspected on Android in 9.6.8 > and I did not change anythings since then, read update Android Studio > or something. > > > Kind regards, > > Panos > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Wed Oct 12 10:22:48 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 12 Oct 2022 16:22:48 +0200 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: <7C2F0D0F-9BA2-412A-A497-DD26EC0134AF@major-k.de> Hi Panos, > Am 12.10.2022 um 16:18 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > Nothing should have changed between 9.6.8 and 9.6.9 rc1 RE legacy/adaptive > icons. > > I guess you see this difference because either of these has changed: > - the android device > - the android version on the same device > - the default launcher app > - something else :) > > I believe that if you rebuild the same app with 9.6.8 you'll see the same > results as with 9.6.9 rc1 if you deploy to the same android device. OK, anyway, I'll vote for "something else" :-D Thanks! > Kind regards, > Panos Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From MikeKerner at roadrunner.com Wed Oct 12 10:49:41 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Oct 2022 10:49:41 -0400 Subject: clearing a polygrid/polylist Message-ID: How do you clear a polylist/polygrid? set the tsvdata of widget 1 to empty # throws an error -- 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." From matthias_livecode_150811 at m-r-d.de Wed Oct 12 11:15:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 12 Oct 2022 17:15:59 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> Message-ID: No problem. I've answered to your private email. > Am 12.10.2022 um 15:19 schrieb scott--- via use-livecode : > > Rats! My mistake. > > I had meant to send this privately. > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > > >> On Oct 12, 2022, at 6:15 AM, scott--- via use-livecode wrote: >> >> Hello Matthias, >> >> I was away from my computer for while and so only recently able to test your latest build. Unfortunately I was unable to get either one of them to build an installer. >> >> First I tested the Wine packaged version of InstaMaker. Your custom icon appeared correctly. The drag and drop did appear to work but I was never able to get InstaMaker to finish processing. I was not sure if anything was reported in "show details” after listing the contents of the folder that was dropped because the InstaMaker window became unresponsive and never relinquished control. I had to “Quit WineCX"… which of course made it impossible to scroll the “show details” field. It did appear as if there might have been something reported as the scroll bar seemed to have a good bit of room to scroll. >> >> Looking at the Apple utility “Activity Monitor.app” I notice that one of the (multiple) wine64-preloader processes continued to run and consume 4.5 - 5.5% of the CPU. After waiting some time (5 or 10 minutes) I tried Quitting InstaMaker. This appeared to work although in one case the wine processes continued to be present in Activity Monitor. (In this instance, when restarting the computer, the wine64-preloader processes kept the restart from happening and needed to be force-quit.) I tested several times with similar "user results” (the installer didn’t build and InstaMaker appeared to be frozen with the indeterminant-progress indicator spinning. I restarted the computer after several of the tests but this made no difference. >> >> I had a similar experience when running InstaMaker inside Parallels Desktop running a 64 bit version of Windows 10. InstaMaker’s indeterminant-progress indicator began spinning and that was it. I restarted Windows and tried again but with the same result. >> >> I’m sorry that I don’t have happier (or more useful) information. >> >> — >> Scott >> >>> On Oct 11, 2022, at 3:01 AM, matthias rebbe via use-livecode wrote: >>> >>> Hi again, >>> >>> for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... >>> >>> The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. >>> >>> You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. >>> >>> sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app >>> >>> Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online >>> >>> sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. >>> >>> There will be some errors saying that some files were not readable. You can ignore that. >>> >>> After that you can open the app without any error message. >>> >>> Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. >>> >>> Windows >>> https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip >>> >>> macOS Wine app >>> https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg >>> >>> Regards, >>> Matthias >>> >>> >>> >>>> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- >>> >>> >>> >>>> ivecode : >>>> >>>> Dear all, >>>> >>>> i am happy to announce that an updated version of InstaMaker is available. >>>> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >>>> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >>>> >>>> What is new >>>> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >>>> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >>>> >>>> Downloads: >>>> macOS Wine version >>>> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >>>> >>>> Windows x64 >>>> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >>>> >>>> >>>> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >>>> >>>> Regards, >>>> Matthias >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Wed Oct 12 15:47:42 2022 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 12 Oct 2022 20:47:42 +0100 Subject: clearing a polygrid/polylist In-Reply-To: References: Message-ID: <47c69815-262d-42c6-2c14-7e54a722235c@tweedly.net> For polygrid    set the pgdata of widget 1 to empty For polylist   set the datacontent of widget 2 to empty BUT beware - on my trivial test, this appears to cause the last character of the header to be removed !! I'll investigate some more and bug report it if it seems consistent. Alex On 12/10/2022 15:49, Mike Kerner via use-livecode wrote: > How do you clear a polylist/polygrid? > set the tsvdata of widget 1 to empty # throws an error > From MikeKerner at roadrunner.com Wed Oct 12 18:07:19 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Oct 2022 18:07:19 -0400 Subject: clearing a polygrid/polylist In-Reply-To: <47c69815-262d-42c6-2c14-7e54a722235c@tweedly.net> References: <47c69815-262d-42c6-2c14-7e54a722235c@tweedly.net> Message-ID: my original report is 23975, if you want to piggyback On Wed, Oct 12, 2022 at 3:48 PM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > For polygrid > > set the pgdata of widget 1 to empty > > For polylist > > set the datacontent of widget 2 to empty > > BUT beware - on my trivial test, this appears to cause the last > character of the header to be removed !! > > I'll investigate some more and bug report it if it seems consistent. > > Alex > > > On 12/10/2022 15:49, Mike Kerner via use-livecode wrote: > > How do you clear a polylist/polygrid? > > set the tsvdata of widget 1 to empty # throws an error > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From dan at clearvisiontech.com Wed Oct 12 18:40:15 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Oct 2022 22:40:15 +0000 Subject: Printing Woes Message-ID: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> I am getting several reports of clients that can't print from my Mac app built with 9.6.8. When we call "answer page setup", nothing happens (and the result is empty). It doesn’t happen on all computers... some work and some don’t. Anyone have any thoughts, insights or ideas? -Dan From matthias_livecode_150811 at m-r-d.de Wed Oct 12 19:35:37 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 13 Oct 2022 01:35:37 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Message-ID: <9006681F-7579-43BA-84D2-A22B730B3F9C@m-r-d.de> Hi again, this is my last post about this topic. I promise. ;) I've updated the InstaMaker download files on the server and deactivated the previous links. This are the new versions macOS https://dl.qck.nu/?dl=InstaMaker_macOS_Wine.zip Windows https://dl.qck.nu/?dl=InstaMaker_Win_x64_Setup.exe Or just visit https://instamaker.dermattes.de Regards Matthias > Am 11.10.2022 um 12:01 schrieb matthias rebbe via use-livecode : > > Hi again, > > for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... > > The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. > > You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. > > sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app > > Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online > > sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. > > There will be some errors saying that some files were not readable. You can ignore that. > > After that you can open the app without any error message. > > Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. > > Windows > https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip > > macOS Wine app > https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg > > Regards, > Matthias > > > >> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- > > > >> ivecode : >> >> Dear all, >> >> i am happy to announce that an updated version of InstaMaker is available. >> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >> >> What is new >> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >> >> Downloads: >> macOS Wine version >> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >> >> Windows x64 >> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >> >> >> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >> >> Regards, >> Matthias >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Thu Oct 13 05:28:36 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 12:28:36 +0300 Subject: Printing Woes In-Reply-To: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> Message-ID: Hello Dan, What is the MacOS version of the computers where "answer page setup" fails? Do they have anything else in common? Does the Console app show anything suspicious? Kind regards, Panos On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am getting several reports of clients that can't print from my Mac app > built with 9.6.8. When we call "answer page setup", nothing happens (and > the result is empty). It doesn’t happen on all computers... some work and > some don’t. Anyone have any thoughts, insights or ideas? > > -Dan > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Thu Oct 13 08:01:19 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 13 Oct 2022 14:01:19 +0200 Subject: Adaptive Icon for Android Message-ID: <388B884E-36BD-45FE-9147-F8812C1D26BE@major-k.de> Hi friends, I try to create an adaptive icon according to the LC lesson: LC 9.6.9 RC1, Android Studio 2021.3, macOS 12.6 However I get either: the generic ic-launcher icon or an error from LC telling me that an icon was not found in: AndroidManifest.xml I do not seem to be a able to get rid of this "ic-launcher" stuff, what am I doing wrong? Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jbv at souslelogo.com Thu Oct 13 08:15:31 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Thu, 13 Oct 2022 08:15:31 -0400 Subject: LC -> Applescript -> Chrome In-Reply-To: <892b479b4261350152cc06d568d7e47b@souslelogo.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> Message-ID: <7d94d0a1968f107874a31509e07235df@souslelogo.com> If anyone's interested, I think I have found the cause of my problem with Applescript in LC, and more specifically with the "click at" command. For months I've been using MouseTools as Terminal/shell application to emulate keyboard and/or mouse events. AFAIK MouseTools is pretty old and hasn't been updated in ages, and a recent Mac OSX update might have made its behavior erratic. Therefore I have switched to cliclick (https://www.bluem.net/), whose last update is from 2021 and that is much more easier to use, and things have improved (as far as I can see). Best From matthias_livecode_150811 at m-r-d.de Thu Oct 13 08:29:23 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 13 Oct 2022 14:29:23 +0200 Subject: LC -> Applescript -> Chrome In-Reply-To: <7d94d0a1968f107874a31509e07235df@souslelogo.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> <7d94d0a1968f107874a31509e07235df@souslelogo.com> Message-ID: > Am 13.10.2022 um 14:15 schrieb jbv via use-livecode : > > Therefore I have switched to cliclick (https://www.bluem.net/), > whose last update is from 2021 and that is much more easier to use, There is a newer version available. Github lists version 5.1 released 2022-08-14 https://github.com/BlueM/cliclick/releases > and things have improved (as far as I can see). > > Best > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Thu Oct 13 09:24:36 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 13 Oct 2022 13:24:36 +0000 Subject: Printing Woes In-Reply-To: References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> Message-ID: <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> Panos, The common denominator seems to be a Macbook Air. One client said: "We are using on Macintosh computers (2021 Macbook Air and Mac Studio desktops) and are seeing that the Page Setup and Print buttons do not seem to do anything." Another: "I am getting more inquiries about teachers not being able to print. They can run RCM on their MacBook Air but they cannot print. Their macOS is 10.14.6." Another was on a MacBook Air (2017), macOS 12.6. What do you mean by "Does the Console app show anything suspicious?" -Dan On 10/13/22, 2:30 AM, "use-livecode on behalf of panagiotis m via use-livecode" wrote: Hello Dan, What is the MacOS version of the computers where "answer page setup" fails? Do they have anything else in common? Does the Console app show anything suspicious? Kind regards, Panos On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am getting several reports of clients that can't print from my Mac app > built with 9.6.8. When we call "answer page setup", nothing happens (and > the result is empty). It doesn’t happen on all computers... some work and > some don’t. Anyone have any thoughts, insights or ideas? > > -Dan From merakosp at gmail.com Thu Oct 13 13:21:11 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 20:21:11 +0300 Subject: Adaptive Icon for Android In-Reply-To: <388B884E-36BD-45FE-9147-F8812C1D26BE@major-k.de> References: <388B884E-36BD-45FE-9147-F8812C1D26BE@major-k.de> Message-ID: Hello Klaus, What have you chosen as a Foreground layer (image, clip art or text) and what as a Background layer (color or image)? In fact, I suggest you file a report in quality.livecode.com and attach the sample stack and the icons so that we can investigate further. If the stack/icons are confidential feel free to email them to me directly Kind regards, Panos On Thu, 13 Oct 2022 at 15:01, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi friends, > > I try to create an adaptive icon according to the LC lesson: > < > https://lessons.livecode.com/m/4069/l/1496759-how-to-create-and-use-adaptive-icons-on-android > > > LC 9.6.9 RC1, Android Studio 2021.3, macOS 12.6 > > However I get either: > the generic ic-launcher icon > or > an error from LC telling me that an icon was not found in: > AndroidManifest.xml > > I do not seem to be a able to get rid of this "ic-launcher" stuff, > what am I doing wrong? > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Thu Oct 13 13:31:28 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 20:31:28 +0300 Subject: Printing Woes In-Reply-To: <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> Message-ID: Hello Dan, Thanks. You can open the Console app (/Applications/Utilities/Console), choose the current Mac in the Devices section (at the left) and filter the logs based on the standalone app id. The logs are showing in real time, so in your standalone app trigger a "answer page setup" command and check at this point if anything "suspicious" appears at the logs, such as an exception, an error or such. Hope this helps Kind regards, Panos -- On Thu, 13 Oct 2022 at 16:24, Dan Friedman wrote: > Panos, > > The common denominator seems to be a Macbook Air. > > One client said: "We are using on Macintosh computers (2021 Macbook Air > and Mac Studio desktops) and are seeing that the Page Setup and Print > buttons do not seem to do anything." > > Another: "I am getting more inquiries about teachers not being able to > print. They can run RCM on their MacBook Air but they cannot print. Their > macOS is 10.14.6." > > Another was on a MacBook Air (2017), macOS 12.6. > > What do you mean by "Does the Console app show anything suspicious?" > > > -Dan > > > > On 10/13/22, 2:30 AM, "use-livecode on behalf of panagiotis m via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Hello Dan, > > What is the MacOS version of the computers where "answer page setup" > fails? > Do they have anything else in common? Does the Console app show > anything > suspicious? > > Kind regards, > Panos > > On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I am getting several reports of clients that can't print from my Mac > app > > built with 9.6.8. When we call "answer page setup", nothing happens > (and > > the result is empty). It doesn’t happen on all computers... some > work and > > some don’t. Anyone have any thoughts, insights or ideas? > > > > -Dan > > From merakosp at gmail.com Thu Oct 13 14:54:50 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 21:54:50 +0300 Subject: Printing Woes In-Reply-To: References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> Message-ID: Hello Dan, Hmm interesting. I am wondering if it is a permissions issue / sandbox violation. How did you distribute this standalone? Was it via the AppStore? I am wondering if you had to sign it with the printing entitlement (com.apple.security.print) Also, it might be worth checking the System Settings -> Security and Privacy -> Privacy and see if the standalone has requested any special permissions (check probably the Full DIsk Access and the Automation sections). Kind regards, Panos On Thu, 13 Oct 2022 at 20:31, panagiotis m wrote: > Hello Dan, > > Thanks. You can open the Console app (/Applications/Utilities/Console), > choose the current Mac in the Devices section (at the left) and filter the > logs based on the standalone app id. The logs are showing in real time, so > in your standalone app trigger a "answer page setup" command and check at > this point if anything "suspicious" appears at the logs, such as an > exception, an error or such. > > Hope this helps > > Kind regards, > Panos > -- > > On Thu, 13 Oct 2022 at 16:24, Dan Friedman > wrote: > >> Panos, >> >> The common denominator seems to be a Macbook Air. >> >> One client said: "We are using on Macintosh computers (2021 Macbook Air >> and Mac Studio desktops) and are seeing that the Page Setup and Print >> buttons do not seem to do anything." >> >> Another: "I am getting more inquiries about teachers not being able to >> print. They can run RCM on their MacBook Air but they cannot print. Their >> macOS is 10.14.6." >> >> Another was on a MacBook Air (2017), macOS 12.6. >> >> What do you mean by "Does the Console app show anything suspicious?" >> >> >> -Dan >> >> >> >> On 10/13/22, 2:30 AM, "use-livecode on behalf of panagiotis m via >> use-livecode" > use-livecode at lists.runrev.com> wrote: >> >> Hello Dan, >> >> What is the MacOS version of the computers where "answer page setup" >> fails? >> Do they have anything else in common? Does the Console app show >> anything >> suspicious? >> >> Kind regards, >> Panos >> >> On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > I am getting several reports of clients that can't print from my >> Mac app >> > built with 9.6.8. When we call "answer page setup", nothing >> happens (and >> > the result is empty). It doesn’t happen on all computers... some >> work and >> > some don’t. Anyone have any thoughts, insights or ideas? >> > >> > -Dan >> >> From jbv at souslelogo.com Sun Oct 16 14:21:39 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sun, 16 Oct 2022 14:21:39 -0400 Subject: PHP -> curl -> LC Message-ID: <937208794402582b8d661c6e8c092b65@souslelogo.com> Hi list, In several of my web projects, I have a main php script that triggers various LC scripts for specific tasks that are often easier to code in xTalk. To trigger those LC scripts I use curl and urls in the form : https://domain.com/irev/script.lc?a=parameters But very often, the php and LC scripts are on the same server and on the same account, such as on-rev. Therefore I've always wondered if there was another way to trigger the LC scripts from PHP, like for example not using http, but "inside" the server, by addressing the LC script via "home/public_html/account/irev/script.lc" ... Of course, the idea is to be able to use parameters as well, and to return processed data. The main idea is : - to make the whole thing faster than via http - to keep things within the server and therefore more secure. Sorry if this sounds like a newbie question. Thank you in advance. jbv From stephen at barncard.com Sun Oct 16 17:32:42 2022 From: stephen at barncard.com (Stephen Barncard) Date: Sun, 16 Oct 2022 14:32:42 -0700 Subject: PHP -> curl -> LC In-Reply-To: <937208794402582b8d661c6e8c092b65@souslelogo.com> References: <937208794402582b8d661c6e8c092b65@souslelogo.com> Message-ID: Hi jbv, I think this can be done using the. [dot]htaccess file at the root of the website. I’ll try to dig up an example. On Sun, Oct 16, 2022 at 11:22 jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi list, > > In several of my web projects, I have a main php script that > triggers various LC scripts for specific tasks that are often > easier to code in xTalk. > To trigger those LC scripts I use curl and urls in the form : > https://domain.com/irev/script.lc?a=parameters > > But very often, the php and LC scripts are on the same server > and on the same account, such as on-rev. > Therefore I've always wondered if there was another way to > trigger the LC scripts from PHP, like for example not using > http, but "inside" the server, by addressing the LC script > via "home/public_html/account/irev/script.lc" ... > Of course, the idea is to be able to use parameters as well, > and to return processed data. > The main idea is : > - to make the whole thing faster than via http > - to keep things within the server and therefore more secure. > > Sorry if this sounds like a newbie question. > Thank you in advance. > > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From klaus at major-k.de Mon Oct 17 13:16:08 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Oct 2022 19:16:08 +0200 Subject: Mobile: Convert from screen to card coords Message-ID: Hi friends, I need some help, here a pic that shows my problem and my question: Brian Milby once provided a stack which does this, but I have to confess that I did not understand a word.. Thanks for any hints! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Mon Oct 17 13:53:59 2022 From: brian at milby7.com (Brian Milby) Date: Mon, 17 Oct 2022 13:53:59 -0400 Subject: Mobile: Convert from screen to card coords In-Reply-To: References: Message-ID: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. I think resizing to the actual screen is probably going to make more sense with that nav bar at the bottom. Brian Milby brian at milby7.com > On Oct 17, 2022, at 1:16 PM, Klaus major-k via use-livecode wrote: > > Hi friends, > > I need some help, here a pic that shows my problem and my question: > > > Brian Milby once provided a stack which does this, but I have to confess that I did > not understand a word.. > > Thanks for any hints! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Mon Oct 17 14:01:32 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Oct 2022 20:01:32 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> Message-ID: Hi Brian, > Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : > > Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. AH, YES! Thank you for your headsup, i always forget this fact! > In the image on the right, the nav bar is as low as it can go and receive touch interactions. > I think resizing to the actual screen is probably going to make more sense with that nav bar at the bottom. Yes, will try that. > Brian Milby > brian at milby7.com > >> On Oct 17, 2022, at 1:16 PM, Klaus major-k via use-livecode wrote: >> >> Hi friends, >> >> I need some help, here a pic that shows my problem and my question: >> >> >> Brian Milby once provided a stack which does this, but I have to confess that I did >> not understand a word.. >> >> Thanks for any hints! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From martyknappster at gmail.com Mon Oct 17 14:38:48 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 17 Oct 2022 11:38:48 -0700 Subject: Set behavior of standalone Message-ID: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> Is it possible to set the behavior of a standalone to an external script-only stack? I can't seem to get it to work. The goal is for me to be able to modify the behavior of our customer database app without having to recompile. What am I missing? Marty From paul at researchware.com Mon Oct 17 18:00:10 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Oct 2022 18:00:10 -0400 Subject: Long shot question about OpenCV Message-ID: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> Has anyone out there done any work at wrapping the OpenCV computer vision/image recognition open source library with LCB? See https://opencv.org/ I am particularly interested in simple face and/or object recognition in images - something where I can pass the library an image file (like a PNG) and it can return whether or not there is a face in the image and if yes/true, the rectangle within the image that bounds what it thinks is a face (or faces as I suppose it could return multiple rects). From ahsoftware at sonic.net Mon Oct 17 21:24:45 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 17 Oct 2022 18:24:45 -0700 Subject: Long shot question about OpenCV In-Reply-To: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> References: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> Message-ID: <578a037e-a113-1454-418c-b842c43f4981@sonic.net> On 10/17/22 15:00, Paul Dupuis via use-livecode wrote: > Has anyone out there done any work at wrapping the OpenCV computer > vision/image recognition open source library with LCB? > See https://opencv.org/ > > I am particularly interested in simple face and/or object recognition in > images - something where I can pass the library an image file (like a > PNG) and it can return whether or not there is a face in the image and > if yes/true, the rectangle within the image that bounds what it thinks > is a face (or faces as I suppose it could return multiple rects). Haven't tried this with LC (only done OpenCV with python), but for image recognition tensorflow is pretty easy to leverage with javascript. Takes a bit of training though. Might want to start with a pretrained model: https://basilebong.com/blog/image-recognition-with-tensorflow-js-1m74 -- Mark Wieder ahsoftware at gmail.com From jbv at souslelogo.com Tue Oct 18 04:19:12 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 18 Oct 2022 04:19:12 -0400 Subject: PHP -> curl -> LC In-Reply-To: References: <937208794402582b8d661c6e8c092b65@souslelogo.com> Message-ID: <7eaf9e1fe6d06a0318714a6014cc7b91@souslelogo.com> Hi Stephen, Thank you for your answer. Yes, I would be interested in some example using .htaccess, although my file is already full of rewriting rules and I'm afraid that it would add some conflicts... Best Le 2022-10-16 17:32, Stephen Barncard via use-livecode a crit : > Hi jbv, > > I think this can be done using the. [dot]htaccess file at the root of > the > website. > > Ill try to dig up an example. > > > On Sun, Oct 16, 2022 at 11:22 jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi list, >> >> In several of my web projects, I have a main php script that >> triggers various LC scripts for specific tasks that are often >> easier to code in xTalk. >> To trigger those LC scripts I use curl and urls in the form : >> https://domain.com/irev/script.lc?a=parameters >> >> But very often, the php and LC scripts are on the same server >> and on the same account, such as on-rev. >> Therefore I've always wondered if there was another way to >> trigger the LC scripts from PHP, like for example not using >> http, but "inside" the server, by addressing the LC script >> via "home/public_html/account/irev/script.lc" ... >> Of course, the idea is to be able to use parameters as well, >> and to return processed data. >> The main idea is : >> - to make the whole thing faster than via http >> - to keep things within the server and therefore more secure. >> >> Sorry if this sounds like a newbie question. >> Thank you in advance. >> >> jbv >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> From preid at reidit.co.uk Tue Oct 18 07:10:40 2022 From: preid at reidit.co.uk (preid at reidit.co.uk) Date: Tue, 18 Oct 2022 12:10:40 +0100 Subject: Processing WAV file sample data In-Reply-To: References: Message-ID: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> Hi I'm developing a project that will manipulate WAV files. The source files will be in the following form: - WAV stereo (2-ch), 48kHz, 16bit 16kbit, 2-15 secs duration, uncompressed The output will be a series of chunks from the source files, each being WAV mono (1,2,3,4 channels), 16kHz, as long as desired, uncompressed Does anyone know of any LiveCode extensions that let you extract the sample data from existing WAV files and build new WAV files by combining existing WAV files? So I'm looking for something like: WAV2bin - exports from original WAV to binary sample data WAVproc - processes 1 or more binary sample data files bin2WAV - converts sample data files to WAV Note the chopping up of the WAV files should run under Linux (if possible), but Mac otherwise. Any further data manipulations must work under Linux , but Mac would be OK as a fallback. Thanks Peter From jbv at souslelogo.com Tue Oct 18 07:47:10 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 18 Oct 2022 07:47:10 -0400 Subject: Processing WAV file sample data In-Reply-To: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> References: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> Message-ID: Hi, I have been working on something similar : a stack that reads samples from wav mono files and displays waveforms in a graphic control. It works on Mac & Windows, but I haven't used it for a year, and AFAIR the code isn't too clean... Le 2022-10-18 07:10, Peter Reid via use-livecode a crit : > Hi > > I'm developing a project that will manipulate WAV files. > > The source files will be in the following form: - > WAV stereo (2-ch), 48kHz, 16bit 16kbit, 2-15 secs duration, > uncompressed > > The output will be a series of chunks from the source files, each being > WAV mono (1,2,3,4 channels), 16kHz, as long as desired, uncompressed > > Does anyone know of any LiveCode extensions that let you extract the > sample data from existing WAV files and build new WAV files by > combining existing WAV files? > > So I'm looking for something like: > > WAV2bin - exports from original WAV to binary sample data > > WAVproc - processes 1 or more binary sample data files > > bin2WAV - converts sample data files to WAV > > Note the chopping up of the WAV files should run under Linux (if > possible), but Mac otherwise. Any further data manipulations must work > under Linux , but Mac would be OK as a fallback. > > Thanks > > Peter > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Oct 18 08:08:13 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Oct 2022 08:08:13 -0400 Subject: Processing WAV file sample data In-Reply-To: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> References: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> Message-ID: <4b417731-fc16-f1ee-2811-a1649f5eb986@researchware.com> ffmpeg will do this. While a video tool, it has robust capabilities for manipulating audio track or just audio files. In one of the Livecode Global problem solving sessions this summer examples of using ffmpeg from LC was demonstrated and the sample stack is available if you subscribed to the Global conference series. On 10/18/2022 7:10 AM, Peter Reid via use-livecode wrote: > Hi > > I'm developing a project that will manipulate WAV files. > > The source files will be in the following form: - > WAV stereo (2-ch), 48kHz, 16bit 16kbit, 2-15 secs duration, uncompressed > > The output will be a series of chunks from the source files, each being > WAV mono (1,2,3,4 channels), 16kHz, as long as desired, uncompressed > > Does anyone know of any LiveCode extensions that let you extract the sample data from existing WAV files and build new WAV files by combining existing WAV files? > > So I'm looking for something like: > > WAV2bin - exports from original WAV to binary sample data > > WAVproc - processes 1 or more binary sample data files > > bin2WAV - converts sample data files to WAV > > Note the chopping up of the WAV files should run under Linux (if possible), but Mac otherwise. Any further data manipulations must work under Linux , but Mac would be OK as a fallback. > > Thanks > > Peter > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Oct 18 08:12:21 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Oct 2022 08:12:21 -0400 Subject: Long shot question about OpenCV In-Reply-To: <578a037e-a113-1454-418c-b842c43f4981@sonic.net> References: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> <578a037e-a113-1454-418c-b842c43f4981@sonic.net> Message-ID: On 10/17/2022 9:24 PM, Mark Wieder via use-livecode wrote: > On 10/17/22 15:00, Paul Dupuis via use-livecode wrote: >> Has anyone out there done any work at wrapping the OpenCV computer >> vision/image recognition open source library with LCB? >> See https://opencv.org/ >> >> I am particularly interested in simple face and/or object recognition >> in images - something where I can pass the library an image file >> (like a PNG) and it can return whether or not there is a face in the >> image and if yes/true, the rectangle within the image that bounds >> what it thinks is a face (or faces as I suppose it could return >> multiple rects). > > Haven't tried this with LC (only done OpenCV with python), but for > image recognition tensorflow is pretty easy to leverage with > javascript. Takes a bit of training though. Might want to start with a > pretrained model: > > https://basilebong.com/blog/image-recognition-with-tensorflow-js-1m74 > Thank you Mark From klaus at major-k.de Tue Oct 18 08:55:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 14:55:16 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> Message-ID: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> Hi Brian, I knew I forgot something... > Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : > > Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. OK, I definitively understand that! But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates and I have no idea how to „convert" these to CARD coordinates. We need that to move the bottom/top controls up or down if neccessary, know what I mean? Any hints very welcome! > ... > Brian Milby Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Tue Oct 18 09:05:03 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 18 Oct 2022 09:05:03 -0400 Subject: Mobile: Convert from screen to card coords In-Reply-To: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> References: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> Message-ID: <240446D4-32A9-43CC-A5A6-5EC1E48FCA6D@milby7.com> When you use “none” as the mode, then screen and card coordinates will be the same. When the app starts you should get a resizeStack that provides the opportunity to adjust the layout. Brian Milby brian at milby7.com > On Oct 18, 2022, at 8:56 AM, Klaus major-k via use-livecode wrote: > > Hi Brian, > > I knew I forgot something... > >> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >> >> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. > > OK, I definitively understand that! > > But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates > and I have no idea how to „convert" these to CARD coordinates. > > We need that to move the bottom/top controls up or down if neccessary, > know what I mean? Any hints very welcome! > >> ... >> Brian Milby > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de From klaus at major-k.de Tue Oct 18 09:08:41 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 15:08:41 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <240446D4-32A9-43CC-A5A6-5EC1E48FCA6D@milby7.com> References: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <240446D4-32A9-43CC-A5A6-5EC1E48FCA6D@milby7.com> Message-ID: <94AFBE30-F875-419A-A415-A589B03CB89D@major-k.de> Hi Brian, > Am 18.10.2022 um 15:05 schrieb Brian Milby via use-livecode : > > When you use “none” as the mode, then screen and card coordinates will be the same. 8-) > When the app starts you should get a resizeStack that provides the opportunity to adjust the layout. Forgot to mention that I will use "showall" as fullscreenmode. > Brian Milby > brian at milby7.com > >> On Oct 18, 2022, at 8:56 AM, Klaus major-k via use-livecode wrote: >> >> Hi Brian, >> >> I knew I forgot something... >> >>> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >>> >>> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. >> >> OK, I definitively understand that! >> >> But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates >> and I have no idea how to „convert" these to CARD coordinates. >> >> We need that to move the bottom/top controls up or down if neccessary, >> know what I mean? Any hints very welcome! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From marksmithhfx at gmail.com Tue Oct 18 09:12:13 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Oct 2022 14:12:13 +0100 Subject: Mobile: Convert from screen to card coords In-Reply-To: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> Message-ID: <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> Hi Klaus, I don’t use fullscreen mode anymore. It’s much better looking if you position all of the controls yourself. Here’s an example that should get you started… command layoutTheControls put safeAreaRect() into lSafeAreaRect -- the rect where it is safe to position all of the controls -- position the header bar set the width of widget "Header Bar" to item 3 of lSafeAreaRect -- right set the top of widget "Header Bar" to item 2 of lSafeAreaRect set the left of widget "Header Bar" to 0 -- position the nav bar group set the width of group "NavBar" to item 3 of lSafeAreaRect -- right set the bottom of group "NavBar" to item 4 of lSafeAreaRect set the height of group "NavBar" to the height of widget "Navigation Bar" set the left of group "NavBar" to 0 -- position the navigation bar (inside the group) set the width of widget "Navigation Bar" to the width of group "NavBar" -- right set the bottom of widget "Navigation Bar" to the bottom of group "NavBar" set the left of widget "Navigation Bar" to the left of group "NavBar" -- everything else gets positioned relative to lSafeAreaRect and other objects on the page -- for example, lets say you have a group you want to position below the header bar that is full width put 1961522 into tID set the width of group id tID to item 3 of lSafeAreaRect -- right set the height of group id tID to 44 set the top of group id tID to the bottom of widget "Header Bar" + 6 set the left of group id tID to 12 etc, until all the objects on the page are positioned. Then test on various simulated iPhones to see how it is working and adjust as necessary. > On Oct 18, 2022, at 1:55 PM, Klaus major-k via use-livecode wrote: > > Hi Brian, > > I knew I forgot something... > >> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >> >> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. > > OK, I definitively understand that! > > But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates > and I have no idea how to „convert" these to CARD coordinates. > > We need that to move the bottom/top controls up or down if neccessary, > know what I mean? Any hints very welcome! > >> ... >> Brian Milby > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Oct 18 09:39:14 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 15:39:14 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> Message-ID: <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Hi Mark, > Am 18.10.2022 um 15:12 schrieb Mark Smith : > > Hi Klaus, I don’t use fullscreen mode anymore. It’s much better looking if you position all of the controls yourself. Here’s an example that should get you started… > > command layoutTheControls > ... > set the left of group id tID to 12 > > etc, until all the objects on the page are positioned. Then test on various simulated iPhones to see how it is working > and adjust as necessary. yes, sure, but i'd like to avoid this and currently only need an answer to my question. > On Oct 18, 2022, at 1:55 PM, Klaus major-k via use-livecode wrote: >> >> Hi Brian, >> I knew I forgot something... >>> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >>> >>> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. >> >> OK, I definitively understand that! >> >> But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates >> and I have no idea how to „convert" these to CARD coordinates. >> >> We need that to move the bottom/top controls up or down if neccessary, >> know what I mean? Any hints very welcome! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Tue Oct 18 11:25:15 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 18 Oct 2022 11:25:15 -0400 Subject: Mobile: Convert from screen to card coords In-Reply-To: <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Message-ID: Klaus, My setBackground handler doesn't give a direct translation, but does start it. https://github.com/bwmilby/mobileDemo/blob/48b89b37aba41afb5a7b90cfc9bdbbca9e7f052c/mobileDemo_Scripts/stack_MobileDemo_card_id_1002.livecodescript#L105 Since we are talking about portrait on mobile, the extra space will always be in the height direction. That simplifies a few things. The height of the screen from the card perspective will be: put tCardW / (tScreenW / tScreenH) into tNewH You will need 3 things to calculate positions. A ratio for each direction and a height offset. put (tNewH - tCardH) / 2 into tHOffset -- 1/2 of the extra pixels with be at the top put tNewH / tScreenH into tHRatio -- convert screen pixels to card pixels put tCardW / tScreenW into tWRatio -- convert screen pixels to card pixels Using this, you should be able to calculate a card XY value from a screen XY value (safe XY for example). put (tScreenY * tHRatio) - tHOffset into tCardY put (tScreenX * tWRatio) into tCardX This is without testing though. I'll try to do a test to validate my method. And remember, that anything placed outside the bounds of the card will just be there for looks and probably won't respond to touch. Thanks, Brian On Tue, Oct 18, 2022 at 9:39 AM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mark, > > > yes, sure, but i'd like to avoid this and currently only need an answer to > my question. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > From klaus at major-k.de Tue Oct 18 11:31:23 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 17:31:23 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Message-ID: <9AD029D3-2833-446F-8A6C-68B0EB753923@major-k.de> Hi Brian, > Am 18.10.2022 um 17:25 schrieb Brian Milby via use-livecode : > > Klaus, > > My setBackground handler doesn't give a direct translation, but does start it. > https://github.com/bwmilby/mobileDemo/blob/48b89b37aba41afb5a7b90cfc9bdbbca9e7f052c/mobileDemo_Scripts/stack_MobileDemo_card_id_1002.livecodescript#L105 > > Since we are talking about portrait on mobile, the extra space will always > be in the height direction. That simplifies a few things. The height of > the screen from the card perspective will be: > put tCardW / (tScreenW / tScreenH) into tNewH > You will need 3 things to calculate positions. A ratio for each direction > and a height offset. > put (tNewH - tCardH) / 2 into tHOffset -- 1/2 of the extra pixels with > be at the top > put tNewH / tScreenH into tHRatio -- convert screen pixels to card pixels > put tCardW / tScreenW into tWRatio -- convert screen pixels to card > pixels > > Using this, you should be able to calculate a card XY value from a screen > XY value (safe XY for example). > put (tScreenY * tHRatio) - tHOffset into tCardY > put (tScreenX * tWRatio) into tCardX ah, thanks a bunch, I begin to understand, was always weak in math. 8-) > This is without testing though. I'll try to do a test to validate my method. Thank you very much! > And remember, that anything placed outside the bounds of the card > will just be there for looks and probably won't respond to touch. I think I really got it! > Thanks, I have to thank! > Brian Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From gcanyon at gmail.com Tue Oct 18 16:46:01 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 18 Oct 2022 13:46:01 -0700 Subject: Set behavior of standalone In-Reply-To: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> References: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> Message-ID: If you mean set the behavior *after* creating the standalone, that should be possible, but it won't stick. You would have to set it each time. If you mean set a behavior of a e.g. a stack or a card (or anything) before creating the standalone, then it should be possible and should be permanent. Is it possible you're seeing some sort of path issue? On Mon, Oct 17, 2022 at 11:39 AM Marty Knapp via use-livecode < use-livecode at lists.runrev.com> wrote: > Is it possible to set the behavior of a standalone to an external > script-only stack? I can't seem to get it to work. The goal is for me to be > able to modify the behavior of our customer database app without having to > recompile. What am I missing? > > Marty > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From craig at starfirelighting.com Tue Oct 18 17:13:28 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 18 Oct 2022 17:13:28 -0400 Subject: Set behavior of standalone In-Reply-To: References: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> Message-ID: <508BF507-DE00-4E8C-B261-916A6D93B7F0@starfirelighting.com> The script only stack behavior not only should be set before the standalone is built, it must not reside in the executable. Craig > On Oct 18, 2022, at 4:46 PM, Geoff Canyon via use-livecode wrote: > > If you mean set the behavior *after* creating the standalone, that should > be possible, but it won't stick. You would have to set it each time. If you > mean set a behavior of a e.g. a stack or a card (or anything) before > creating the standalone, then it should be possible and should be > permanent. Is it possible you're seeing some sort of path issue? > > On Mon, Oct 17, 2022 at 11:39 AM Marty Knapp via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Is it possible to set the behavior of a standalone to an external >> script-only stack? I can't seem to get it to work. The goal is for me to be >> able to modify the behavior of our customer database app without having to >> recompile. What am I missing? >> >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Oct 18 17:19:18 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Oct 2022 16:19:18 -0500 Subject: Easy Android adaptive icons Message-ID: <212acc76-a61a-e162-dde4-75d2c6a8ef62@hyperactivesw.com> For anyone struggling with Android adaptive icons, or who like me doesn't want to deal with Android Studio just to make a single icon, I found this: https://easyappicon.com/ It does work and is quick and easy. The Android icons are all placed in a single folder and I think you can probably just point the Standalone Settings to that folder, though I renamed it "res" in case LC is looking for the Android Studio naming convention. It also makes iOS icons which seem to come along automatically. Those are all in a second folder which you can ignore, trash, or use for cross platform development. I tried several different online icon utilities and this one worked best for me. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Wed Oct 19 11:39:27 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 19 Oct 2022 17:39:27 +0200 Subject: Mobile: Convert from screen to card coords = ALREADY BUILD-IN! In-Reply-To: References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Message-ID: <6C8CBD85-6514-4558-840B-9C055B4E6274@major-k.de> Hi Brian, Panos showed me the already build-in solution! Just use globalloc() and localloc() to translate to and from screencoordinates/card coordinates also on "Mobile"! Just tested and as far as I can tell this works a charme! :-) A typical "slap on the forehead" thingie... > Am 18.10.2022 um 17:25 schrieb Brian Milby via use-livecode : > > Klaus, > > My setBackground handler doesn't give a direct translation, but does start > it. > https://github.com/bwmilby/mobileDemo/blob/48b89b37aba41afb5a7b90cfc9bdbbca9e7f052c/mobileDemo_Scripts/stack_MobileDemo_card_id_1002.livecodescript#L105 > Since we are talking about portrait on mobile, the extra space will always > be in the height direction. That simplifies a few things. The height of > the screen from the card perspective will be: > put tCardW / (tScreenW / tScreenH) into tNewH > You will need 3 things to calculate positions. A ratio for each direction > and a height offset. > put (tNewH - tCardH) / 2 into tHOffset -- 1/2 of the extra pixels with > be at the top > put tNewH / tScreenH into tHRatio -- convert screen pixels to card pixels > put tCardW / tScreenW into tWRatio -- convert screen pixels to card > pixels > Using this, you should be able to calculate a card XY value from a screen > XY value (safe XY for example). > put (tScreenY * tHRatio) - tHOffset into tCardY > put (tScreenX * tWRatio) into tCardX > > This is without testing though. I'll try to do a test to validate my > method. And remember, that anything placed outside the bounds of the card > will just be there for looks and probably won't respond to touch. > > Thanks, > Brian Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Thu Oct 20 11:31:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Oct 2022 11:31:51 -0400 Subject: revZIP library... Message-ID: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive  add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. My best option may be to just add up the uncompressed sizes of the files involved. Any clever ideas welcome! From sean at pidigital.co.uk Thu Oct 20 12:04:39 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 20 Oct 2022 17:04:39 +0100 Subject: revZIP library... In-Reply-To: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> Message-ID: <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Do you have no success with the revZipDescribeItem() function. This should give the compressed size directly after compression. Sean > On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode wrote: > > In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. > > This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. > > I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. > > Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. > > On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? > > I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. > > My best option may be to just add up the uncompressed sizes of the files involved. > > Any clever ideas welcome! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Thu Oct 20 13:48:55 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 20 Oct 2022 13:48:55 -0400 Subject: QR Code reader for desktop? Message-ID: Hi Folks, I hope everyone is doing great. I'm searching for a working solution for reading or scanning qr codes on the desktop? Windows and MacOS reading = open image and interpret qr code scan = open camera and detect qr code in the camera output I think on desktop I need to do a "read" instead of scan. There is this library ... which does not seem to work anymore, it returns an error. https://github.com/portilla/yBarcode Also I found a post by HH (RIP) where he talked about a library he wrote and that it would be in the sample stacks, but I cannot find it there. Are there any other working solutions? Thanks in advance Tom From paul at researchware.com Thu Oct 20 13:57:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Oct 2022 13:57:23 -0400 Subject: revZIP library... In-Reply-To: <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: <92c15c78-a0f3-9ea0-8f6a-11257a1e9d00@researchware.com> Sean, Thank you. I was searching the dictionary for revZip and did not see revZipDescribeItem, but from your post, I have found it and will try it. And of course, now I can see it when I get a list of APIs by just entering revZip in the Dictionary, so it was either a temporary Dictionary glitch or more likely my eyes playing tricks on me. -- Paul On 10/20/2022 12:04 PM, Pi Digital via use-livecode wrote: > Do you have no success with the revZipDescribeItem() function. This should give the compressed size directly after compression. > > Sean > > >> On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode wrote: >> >> In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. >> >> This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. >> >> I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. >> >> Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. >> >> On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? >> >> I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. >> >> My best option may be to just add up the uncompressed sizes of the files involved. >> >> Any clever ideas welcome! >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Oct 20 15:48:43 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 20 Oct 2022 12:48:43 -0700 Subject: Long shot question about OpenCV In-Reply-To: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> References: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> Message-ID: <9a266c2d-d95c-d9fd-8023-650b04524efd@sonic.net> On 10/17/22 15:00, Paul Dupuis via use-livecode wrote: > Has anyone out there done any work at wrapping the OpenCV computer > vision/image recognition open source library with LCB? You might also be interested in the upcoming OpenCV Face Recognition library. https://opencv.org/opencv-face-recognition/ -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Thu Oct 20 19:38:35 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Oct 2022 19:38:35 -0400 Subject: revZIP library... In-Reply-To: <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: Unfortunately, revvZipDescribeItem only returns a meaningful value for the compressed_size of an item if the archive has already been compressed. A new archive is only compressed on revZipCloseArchive (typically at the end, once all items/files have been added using revZipAddItemWithFile archivePath, itemName, filePath) revZipDescribeItem(archivePath, itemName) -- This function returns a comma delimited list of details in the form: index, crc, size, mtime, compressed_size, compression_method. In a test, I get the following. Item 5 of the function revZipDescribeItem is -1 for new item added to a new archive. Item 3 is the size, which is the uncompressed size in bytes, which I could also get through the 'detailed files'. 20220520_Cole Video Crossties Grooming.mp4 : 0 :0,0,1881779936,1653078796,-1,none : -1 Cole massage 2021 12Dec06.mp4 : -1 :0,0,284857583,1638822998,-1,none : -2 Equine Discomfort Ethogram Illustrated.pdf : -2 :0,0,10318431,1652185660,-1,none : -3 Equine Discomfort Ethogram paper.pdf : -3 :278290080,0,12407958,1652184150,-1,none : -4 The Horse Grimace Pain Scale with Images and Explanations.png : -4 :0,0,1420824,1653940632,-1,none : -5 I think I just need to go back to adding up the uncompressed sizes, either via revZipDescribeItem's item 3 or the detailed files, and raise a warning if I get to 2GB On 10/20/2022 12:04 PM, Pi Digital via use-livecode wrote: > Do you have no success with the revZipDescribeItem() function. This should give the compressed size directly after compression. > > Sean > > >> On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode wrote: >> >> In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. >> >> This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. >> >> I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. >> >> Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. >> >> On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? >> >> I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. >> >> My best option may be to just add up the uncompressed sizes of the files involved. >> >> Any clever ideas welcome! >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu Oct 20 22:59:33 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Fri, 21 Oct 2022 03:59:33 +0100 Subject: revZIP library... In-Reply-To: References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: It must be creating a temp file or placing it in memory somewhere. Is there perhaps a way to hack that and find out how many bytes are being stored? Just thinking out loud before catching some zzz's. I hope you find some solution. Sean On Fri, 21 Oct 2022 at 00:38, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Unfortunately, revvZipDescribeItem only returns a meaningful value for > the compressed_size of an item if the archive has already been > compressed. A new archive is only compressed on revZipCloseArchive > (typically at the end, once all items/files have been added using > revZipAddItemWithFile archivePath, itemName, filePath) > > revZipDescribeItem(archivePath, itemName) -- This function returns a > comma delimited list of details in the form: index, crc, size, mtime, > compressed_size, compression_method. > > In a test, I get the following. Item 5 of the function > revZipDescribeItem is -1 for new item added to a new archive. Item 3 is > the size, which is the uncompressed size in bytes, which I could also > get through the 'detailed files'. > > 20220520_Cole Video Crossties Grooming.mp4 : 0 > :0,0,1881779936,1653078796,-1,none : -1 > Cole massage 2021 12Dec06.mp4 : -1 :0,0,284857583,1638822998,-1,none : -2 > Equine Discomfort Ethogram Illustrated.pdf : -2 > :0,0,10318431,1652185660,-1,none : -3 > Equine Discomfort Ethogram paper.pdf : -3 > :278290080,0,12407958,1652184150,-1,none : -4 > The Horse Grimace Pain Scale with Images and Explanations.png : -4 > :0,0,1420824,1653940632,-1,none : -5 > > I think I just need to go back to adding up the uncompressed sizes, > either via revZipDescribeItem's item 3 or the detailed files, and raise > a warning if I get to 2GB > > > On 10/20/2022 12:04 PM, Pi Digital via use-livecode wrote: > > Do you have no success with the revZipDescribeItem() function. This > should give the compressed size directly after compression. > > > > Sean > > > > > >> On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> In addition to the revZIP library, whether building for 32 bit Windows > standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on > archives it can open and a 2GB limit on what it can save, there appears to > be NO mechanism to get the compressed size of an item (file) in the > archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, > nor any other API in the dictionary lets you get the compressed size of > something after compressing it. > >> > >> This is especially annoying with the 2GB limit on saving an archive and > that error only occurs when you call revZipCloseArchive at the end. That > means if a user of your application tries to archive a list of file that > are 50GB or some even larger number the code happily compresses everyone, > going well over 2GB until it tries to close and save the archive at the end > and ONLY after all that wasted time do you get an error. > >> > >> I can obviously get the uncompressed size of each file (using detailed > files) and keep a running total and IF that total hist 2GB then stop a > process that MIGHT fail in the end. However, perhaps their uncompressed > files are 2.5GB but when compressed would be 1.8gb and work. > >> > >> Folks have already suggested abandoning the revZIP library and using > shell to invoke native command line tools (although no call backs for a > progress bar is possible with CLI tools, which, is a BIG disadvantage to > that approach for our users). However, I really wish the revZIP library > just worked right. > >> > >> On a long shot, does anyone know of a clever trick using the revZIP > library, to get the compressed size of an item after you compress it? > >> > >> I suppose I could open the archive, compress 1 item, close the archive, > check the size of the archive via detailed files, and then open the > archive add the nest compressed file, close, measure the size and so on, > but I feel the overhead would slow down and already slow process even > further. > >> > >> My best option may be to just add up the uncompressed sizes of the > files involved. > >> > >> Any clever ideas welcome! > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dvglasgow at gmail.com Fri Oct 21 04:55:02 2022 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 21 Oct 2022 09:55:02 +0100 Subject: OT Re: revZIP library... In-Reply-To: References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: > On 21 Oct 2022, at 12:38 am, Paul Dupuis via use-livecode wrote: > > The Horse Grimace Pain Scale with Images and Explanations.png "Oh that’s interesting!", I thought, so tracked it down on Researchgate. Should have carried a bad vasectomy experience trigger warning! David G From neville.smythe at optusnet.com.au Sun Oct 23 03:26:52 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 23 Oct 2022 18:26:52 +1100 Subject: fontNames woes Message-ID: My grand project to compile a database of cross-platform LC font metrics is slowly progressing, though rather hindered by bugs in LC. In particular fontNames() produces inconsistent results between Mac and Windows (and is not available in Linux) and worse can produce incorrect results on the Mac. To demonstrate, start using font file Akshar[wght].ttf, which is one of the Google opentype fonts. This file includes 5 style variations, which are certainly all quite different fonts in appearance. The naming and style conventions for fonts are so complex that the bug is understandable — but its still a bug. On the Mac, fontNames() produces Akshar Light Akshar Light Akshar Light Medium Akshar Light SemiBold Akshar Light Bold This is a bug: the first two are supposed to be references to quite different variations (a Regular and Light version of Akshar). Since they have the same name one of them cannot be accessed by setting textFont. This list does not match the MacOS knowledge of the font. On Windows, fontNames() produces Akshar This is perhaps not a bug, but gives no way to access the 4 non-Regular versions of the font; the variations would be accessed by a Windows user or app by setting a style variation, but this cannot be done in LC. It also does not match what the Windows system knows about the fonts in the family.. If you look at Akshar[wght].ttf in the Mac Font Book application, you find that the system says the name of the font family is Akshar, with fonts Akshar Regular Akshar Light Akshar Medium Akshar SemiBold Akshar Bold If you look at Akshar[wght].ttf in the Windows Font Manager application, you find that the system says the name of the font family is Akshar Light, with fonts Akshar Akshar Light Akshar Medium Akshar SemiBold Akshar Bold Using Linux the Fonts application (Ubuntu) the family name appears as Akshar, Light (note the comma) and with named variations Regular, Light, Bold, Medium, SemiBold The LC function fontNames() is not implemented in Linux but there is a shell command fc-list which explains a lot. After parsing a little we get Akshar,Akshar Light Akshar,Akshar Light:style=Regular Akshar,Akshar Light:style=Bold Akshar,Akshar Light:style=Medium Akshar,Akshar Light:style=SemiBold Akshar,Akshar Light:style=Light,Regular The items before the colon are alternative names for the font. The first line with no styles attached give the family names – 2 alternative names, Mac uses #2, Win uses #1. So fonts can have many names, often including non-Roman script names. They also can have multiple styles, many being international names of English style names. Akshar is actually a comparatively straightforward case. Which names should be returned by fontNames() for each platform is clearly a difficult problem. Apart from the bug in the Mac version of fontNames(), there may be problems, which I cannot yet pin down, with using custom fonts in Windows as well. A stack which works in the IDE crashes as a standalone, the error dialog returning a seemingly irrelevant line for the source of the error so likely it is in the engine somewhere and almost certainly to do with fontNames. Furthermore even in the IDE there may be a problem with stop using font file, as it does not seem to clear the font cache after multiple use, which means fontNames() returns stale values. Finally of course there is fontStyles(), which has been dead for years on the Mac, and even when it did work returned only plain, italic, bold, bold-italic instead of the actual available font style variations — and even if it did would be useless because you can’t set such styles within LC. A vast number of modern fonts are just inaccessible from LC. Neville Smythe From paul at researchware.com Sun Oct 23 16:52:17 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 23 Oct 2022 16:52:17 -0400 Subject: Printing (Preview in LC/screen vs Printer/PDF) Message-ID: I know this topic has been covered previously, probably many many times, but my search skills are failing me. We have a "printing stack" in our app that, among other things, provides a "Print Preview" view. This takes the printer margins, page size, orientation, etc and creates a stack with the dimensions of the page and some guidelines showing the margins, headers, footers, and so on. A rectangle "PrintArea", is set to the available print area inside the margins. Whatever is being printed is then placed inside this "PrintArea". So if the contents of a field is being printed a field is sized fit inside the "PrintArea" and bottom of the field is adjusted by the pageHeights. If am image is being printed, the image is scaled to fit inside the "PrintArea" and so on. All well and good, except for images. If I size and image to fit ON THE SCREEN within the "PrintArea" and then I print it (to a Printer OR to PDF, the image appear are roughly 1/4 size. I assume this is the 72/75 dpi screen resolutions being put on a 300 dpi PDF or printer? Is there some easy Livecode trick to just get images to print in a PDF or on paper at the same size as seen on the screen? Thank you in advance! From roland.huettmann at gmail.com Sun Oct 23 16:52:37 2022 From: roland.huettmann at gmail.com (R.H.) Date: Sun, 23 Oct 2022 22:52:37 +0200 Subject: fontName woes Message-ID: I can confirm that on my Windows 64bit no font substyles are working in LiveCode. This really needs to be addressed, but may not be of such high priority, I assume. The text engine used is not bad but probably outdated. Or, maybe I am wrong? Or are there just name conflicts? Roland From paul at researchware.com Sun Oct 23 17:54:50 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 23 Oct 2022 17:54:50 -0400 Subject: Printing (Preview in LC/screen vs Printer/PDF) In-Reply-To: References: Message-ID: A correction. The images are reduced to 1/4 size ONLY when printing to PDF on Windows (printing to paper results in the image at expected size) This could be specific to Windows and the PDF "printer" (Foxit) being used. More testing is required. Premature posting ;-) On 10/23/2022 4:52 PM, Paul Dupuis via use-livecode wrote: > I know this topic has been covered previously, probably many many > times, but my search skills are failing me. > > We have a "printing stack" in our app that, among other things, > provides a "Print Preview" view. This takes the printer margins, page > size, orientation, etc and creates a stack with the dimensions of the > page and some guidelines showing the margins, headers, footers, and so > on. A rectangle "PrintArea", is set to the available print area inside > the margins. Whatever is being printed is then placed inside this > "PrintArea". So if the contents of a field is being printed a field is > sized fit inside the "PrintArea" and bottom of the field is adjusted > by the pageHeights. If am image is being printed, the image is scaled > to fit inside the "PrintArea" and so on. > > All well and good, except for images. If I size and image to fit ON > THE SCREEN within the "PrintArea" and then I print it (to a Printer OR > to PDF, the image appear are roughly 1/4 size. I assume this is the > 72/75 dpi screen resolutions being put on a 300 dpi PDF or printer? > > Is there some easy Livecode trick to just get images to print in a PDF > or on paper at the same size as seen on the screen? > > Thank you in advance! > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 25 13:28:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 19:28:59 +0200 Subject: Anyone any experience with Livecode under Ventura? Message-ID: Hi, the topic says it all Does anyone have already experience with Livecode under Ventura? Are there any known problems/bugs or so? Regards, Matthias From colinholgate at gmail.com Tue Oct 25 13:36:40 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 25 Oct 2022 11:36:40 -0600 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: Message-ID: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> I’m using 9.6.3, and it seems to work ok in Ventura. > On Oct 25, 2022, at 11:28 AM, matthias rebbe via use-livecode wrote: > > Hi, > > the topic says it all > > Does anyone have already experience with Livecode under Ventura? > Are there any known problems/bugs or so? > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 25 13:50:39 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 19:50:39 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> References: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> Message-ID: <29771525-CC72-42D4-B91D-31C002F7600D@m-r-d.de> Thanks Colin, then i will risk it to upgrade. ;) > Am 25.10.2022 um 19:36 schrieb Colin Holgate via use-livecode : > > I’m using 9.6.3, and it seems to work ok in Ventura. > > > >> On Oct 25, 2022, at 11:28 AM, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> the topic says it all >> >> Does anyone have already experience with Livecode under Ventura? >> Are there any known problems/bugs or so? >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Oct 25 13:54:32 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 25 Oct 2022 17:54:32 +0000 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <29771525-CC72-42D4-B91D-31C002F7600D@m-r-d.de> References: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> <29771525-CC72-42D4-B91D-31C002F7600D@m-r-d.de> Message-ID: <3A54B313-E408-4BD5-91FA-BD54CE1EAC4F@iotecdigital.com> If you have the resources, just do a Time Machine backup so you can recover if needed. I did an upgrade recently on my home iMac, and it completely borked the boot volume. Luckily I had a TM backup and it saved my arsenal. First time I've seen a MacOS upgrade bork a boot volume. Bob S > On Oct 25, 2022, at 10:50 , matthias rebbe via use-livecode wrote: > > Thanks Colin, then i will risk it to upgrade. ;) > > > >> Am 25.10.2022 um 19:36 schrieb Colin Holgate via use-livecode : >> >> I’m using 9.6.3, and it seems to work ok in Ventura. >> >> >> >>> On Oct 25, 2022, at 11:28 AM, matthias rebbe via use-livecode wrote: >>> >>> Hi, >>> >>> the topic says it all >>> >>> Does anyone have already experience with Livecode under Ventura? >>> Are there any known problems/bugs or so? >>> >>> Regards, >>> Matthias From irog at mac.com Tue Oct 25 14:02:35 2022 From: irog at mac.com (Roger Guay) Date: Tue, 25 Oct 2022 11:02:35 -0700 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: Message-ID: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> I just opened LC 10 on Ventura with no problem Cheers Roger > On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode wrote: > > Hi, > > the topic says it all > > Does anyone have already experience with Livecode under Ventura? > Are there any known problems/bugs or so? > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Oct 25 14:08:40 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 25 Oct 2022 21:08:40 +0300 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> References: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> Message-ID: I have been using 9.6.3 and 8.1.10 through all the beta versions of Mac OS 13, and there was a minor blip 3 betas back, and I sent a report about it to Apple. Since then, as far as I can tell, both of those versions work like a charm. On Tue, 25 Oct 2022, 21:03 Roger Guay via use-livecode, < use-livecode at lists.runrev.com> wrote: > I just opened LC 10 on Ventura with no problem > > Cheers > Roger > > > On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, > > > > the topic says it all > > > > Does anyone have already experience with Livecode under Ventura? > > Are there any known problems/bugs or so? > > > > Regards, > > Matthias > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From williamdesmet at gmail.com Tue Oct 25 14:08:22 2022 From: williamdesmet at gmail.com (William de Smet) Date: Tue, 25 Oct 2022 20:08:22 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> References: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> Message-ID: LC 9.6.9 (rc1) and LC 10.0.0. (dp4) works fine with me on Ventura. I had Xcode 13.2.1 installed but that version does not work anymore. I wonder which Xcode version I need now. Which Xcode version works with LC now? groeten, William Op di 25 okt. 2022 om 20:03 schreef Roger Guay via use-livecode < use-livecode at lists.runrev.com>: > I just opened LC 10 on Ventura with no problem > > Cheers > Roger > > > On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, > > > > the topic says it all > > > > Does anyone have already experience with Livecode under Ventura? > > Are there any known problems/bugs or so? > > > > Regards, > > Matthias > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hlowe at me.com Tue Oct 25 15:56:23 2022 From: hlowe at me.com (HENRY LOWE) Date: Tue, 25 Oct 2022 12:56:23 -0700 Subject: iPadOS 16.1 and Stage Manager Message-ID: <1158BAA3-E6FB-4FE1-BC9B-8F55C36D67FB@me.com> I have an iOS Livecode 9.6.8 app that runs on both iPhone and iPad. The app uses custom code to handle screen redraws on launch (screen size varies by device) and when a device's orientation changes. Tested the app today on an iPad running iPadOS 16.1 with Stage Manager active. Stage manager is a new (optional) multitasking system available in iPadOS 16.1 and MacOS Ventura. Of significance here is that Stage Manager allows the user to resize the app window by dragging a control in the bottom right corner of the app window. Prior to Stage Manager iPad app windows could not be manually resized. Under Stage Manager on iPad my app did not redraw correctly when the app’s window was manually resized. However adding a ResizeStack handler that called the appropriate redraw routines fixed the issue, though the screen redrawing is not a smooth as I would like. If you have a LC app that runs on the iPad you may need to handle user-controlled stack resizing under Stage Manager. In the course of investigating this issue I also discovered that you can use the latest Xcode simulators (version 14.1) to test Livecode apps on new iPhone and iPad device simulators. To do so: 1. Rename the version of the Xcode app required by Livecode (e.g. version 13.2) to 'Xcode 13.2’. 2. In Livecode Preferences -> Mobile Support select the Xcode 13.2 app as the location for iOS SDKs. 3. Download version Xcode 14.1 RC2 from the Apple Developer site. 4. When Xcode 14.1 is installed as Xcode app in the applications folder, launch Xcode and select ‘Simulator’ from the Xcode -> Open Developer Tool menu. 5. In the dock, control click (right click) on the Simulator icon select Options -> Keep in Dock - this allows you to launch the Simulator app at will. 6. With the desired simulated device open use Livecode’s Development -> Test to launch your app in the open Simulator. This has worked fine for me so far! Also (as others have pointed out), the Xcode 13.2 app is disabled under Mac OS Ventura. You can still select it as the source of Livecode’s iOS SDKs but you cannot launch the app. Henry Ascriva Health Informatics From matthias_livecode_150811 at m-r-d.de Tue Oct 25 16:38:08 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 22:38:08 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> Message-ID: <3B807CD8-0E0C-41EC-96BA-834AE875C15E@m-r-d.de> I just upgraded to Ventura and noticed that only Xcode 14 can be opened on Ventura. As LC 9.6.9 needs Xcode 13.2 on macOS 11 and above you can still use Xcode 13.2 in LC. Just add the "old" Xcode 13.2 app in LC preferences under Mobile Support and also change the path of the active developer directory back to Xcode 13.2 by running this command in Terminal sudo xcode-select -s > Am 25.10.2022 um 20:08 schrieb William de Smet via use-livecode : > > LC 9.6.9 (rc1) and LC 10.0.0. (dp4) works fine with me on Ventura. > > I had Xcode 13.2.1 installed but that version does not work anymore. > I wonder which Xcode version I need now. > Which Xcode version works with LC now? > > > > > groeten, > > William > > > > > Op di 25 okt. 2022 om 20:03 schreef Roger Guay via use-livecode < > use-livecode at lists.runrev.com>: > >> I just opened LC 10 on Ventura with no problem >> >> Cheers >> Roger >> >>> On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi, >>> >>> the topic says it all >>> >>> Does anyone have already experience with Livecode under Ventura? >>> Are there any known problems/bugs or so? >>> >>> Regards, >>> Matthias >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 25 16:39:01 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 22:39:01 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: Message-ID: <463275ED-DDD2-449F-B583-56E953B335CB@m-r-d.de> Thanks to all confirming that LC runs fine under Ventura. I've upgraded now and i am now testing.... Regards, Matthias > Am 25.10.2022 um 19:28 schrieb matthias rebbe via use-livecode : > > Hi, > > the topic says it all > > Does anyone have already experience with Livecode under Ventura? > Are there any known problems/bugs or so? > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Wed Oct 26 07:43:33 2022 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 26 Oct 2022 12:43:33 +0100 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <463275ED-DDD2-449F-B583-56E953B335CB@m-r-d.de> References: <463275ED-DDD2-449F-B583-56E953B335CB@m-r-d.de> Message-ID: <52FA73D4-E568-4D8D-BF5F-FD3A23DE9C2F@andregarzia.com> Just to flag a different experience here. I can’t get the simulator to launch under Ventura on a Macbook Air M1. I have Xcode 13.2 installed and have “xcode-select” set to it. The preferences for mobile development are set correctly and when I try to launch a mobile app for testing on the simulator it gets stuck in the “launching app” dialog forever. And yes, I tried launching the simulator manually by going inside the bundle and the simulator is working fine. > On 25 Oct 2022, at 21:39, matthias rebbe via use-livecode wrote: > > Thanks to all confirming that LC runs fine under Ventura. > > I've upgraded now and i am now testing.... > > > Regards, > Matthias > > >> Am 25.10.2022 um 19:28 schrieb matthias rebbe via use-livecode : >> >> Hi, >> >> the topic says it all >> >> Does anyone have already experience with Livecode under Ventura? >> Are there any known problems/bugs or so? >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Oct 27 15:40:58 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 27 Oct 2022 15:40:58 -0400 Subject: Export Snapshot (macOS) and XPDF External bugs? Message-ID: <802e8f17-fb81-5409-114d-814ad139a5d8@researchware.com> Combining two unrelated topics in one message: 1) I am seeing a bug under macOS in the export snapshot (of a player object) command. This is under LC 9.6.7 (and I think 9.6.8). We have a routine that takes a list of time codes in a movie, loads the movie into a player object, set the currentTime to each time code, uses export snapshot of the player to grab the displayed frame, and returns an array of the images. The possible bug is that occasionally one of the images returned will be rotated 90 degrees. We have NO code that rotates the image and the movie, from start to finish, does not not change the camera orientation. I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this? Is it a known bug? 2) Unrelated to the above, we also have a routine that takes a list of PDF image coordinates (5 number, the page number, and a rect on the page in PDF coordinates), loads the PDF using the XPDF EXTERNAL (XPDF-1.0.45, NOT the widget), goes to the page, and grabs the image, and returns an array of the images. The confirmed bug, is that the first time the XPDF Viewer is opened (via XPDFViewer_Open and then XPDFViewer_Set tName,"FILENAME",tFile to load the PDF file), the XPDF calls to grab the image:             put empty into tImageData             XPDFViewer_SelectImage tName,(item 1 of tRef),(item 2 of tRef),(item 3 of tRef),(item 4 of tRef),(item 5 of tRef)             XPDFViewer_GetSelectionImage tName, "tImageData"             put the result into tSize             set the width     of img "imageConvert" of stack "libHrAPI" to abs(item 1 of tSize)             set the height    of img "imageConvert" of stack "libHrAPI" to abs(item 2 of tSize)             set the imageData of img "imageConvert" of stack "libHrAPI" to tImageData             set the topLeft   of img "imageConvert" of stack "libHrAPI" to (0,0) return garbage in tImageData. The tize (tSize) is correct, but the image is not. This has a WORK-AROUND as this only occurs the first time the XPDF viewer is opened. So, if I am asking for images, I have a conditional that closes the XPDF External viewer (via XPDFViewer_Close tName) and then opens the PDF again behind the scenes. This causes all the returned PDF images to be correct for the same code. Again, I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this one? Is it also a known bug? Thank you in advance for any info of whether you have seen these possible bugs or know if the are related to an existing issue From matthias_livecode_150811 at m-r-d.de Fri Oct 28 01:23:41 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 28 Oct 2022 07:23:41 +0200 Subject: Export Snapshot (macOS) and XPDF External bugs? Message-ID: <2FCEC651-2788-4717-87FF-9B523D67591D@m-r-d.de> Hi Paul, regarding your export problem. How many snapshots per video are created? I just did a 3 tests here with a 123 minutes video (7418646 intervals with a timescale of 1000, .mp4 format) in 9.6.9RC1 and 9.6.8. and used a repeat loop to set the currentTime to create a snapshot on hard disk every 5, 3 and 1 minutes. In all cases it worked here. No snapshot was rotated. My export command was export snapshot from Player "myPlayer" to file ("~/downloads/livecodeexport/" & tCurrentTime & ".png") as PNG Is your snapshot command similar? Or are you using a mask or an other format? Are there more then 120 snapshots per video file? I tested here with a mac Studio on macOS 13.0 running LC both in x86 and native ARM mode. Regards, Matthias > Am 27.10.2022 um 21:40 schrieb Paul Dupuis via use-livecode : > > Combining two unrelated topics in one message: > > 1) I am seeing a bug under macOS in the export snapshot (of a player object) command. This is under LC 9.6.7 (and I think 9.6.8). We have a routine that takes a list of time codes in a movie, loads the movie into a player object, set the currentTime to each time code, uses export snapshot of the player to grab the displayed frame, and returns an array of the images. > > The possible bug is that occasionally one of the images returned will be rotated 90 degrees. We have NO code that rotates the image and the movie, from start to finish, does not not change the camera orientation. > > I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this? Is it a known bug? > > 2) Unrelated to the above, we also have a routine that takes a list of PDF image coordinates (5 number, the page number, and a rect on the page in PDF coordinates), loads the PDF using the XPDF EXTERNAL (XPDF-1.0.45, NOT the widget), goes to the page, and grabs the image, and returns an array of the images. > > The confirmed bug, is that the first time the XPDF Viewer is opened (via XPDFViewer_Open and then XPDFViewer_Set tName,"FILENAME",tFile to load the PDF file), the XPDF calls to grab the image: > put empty into tImageData > XPDFViewer_SelectImage tName,(item 1 of tRef),(item 2 of tRef),(item 3 of tRef),(item 4 of tRef),(item 5 of tRef) > XPDFViewer_GetSelectionImage tName, "tImageData" > put the result into tSize > set the width of img "imageConvert" of stack "libHrAPI" to abs(item 1 of tSize) > set the height of img "imageConvert" of stack "libHrAPI" to abs(item 2 of tSize) > set the imageData of img "imageConvert" of stack "libHrAPI" to tImageData > set the topLeft of img "imageConvert" of stack "libHrAPI" to (0,0) > return garbage in tImageData. The tize (tSize) is correct, but the image is not. > > This has a WORK-AROUND as this only occurs the first time the XPDF viewer is opened. So, if I am asking for images, I have a conditional that closes the XPDF External viewer (via XPDFViewer_Close tName) and then opens the PDF again behind the scenes. This causes all the returned PDF images to be correct for the same code. > > Again, I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this one? Is it also a known bug? > > Thank you in advance for any info of whether you have seen these possible bugs or know if the are related to an existing issue > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Fri Oct 28 07:58:47 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 28 Oct 2022 22:58:47 +1100 Subject: fontNames woes Message-ID: In my last post I alluded to an elusive problem on Windows 10 with the fontnames function. I think I have identified at least one circumstance where fontNames() causes a crash on Windows 10. If in a Windows standalone you call stop using font file foo.ttf and then try to get fontNames() without first calling start using font file bar.ttf for some font bar.ttf I get a crash (or, if I use a try wrapper or errorDialog handler, "error in statement get the fontNames”. Thereafter any call to fontNames will fail, so something is fatally corrupted). In the IDE the code works as if there had been no error but the list of fonts returned may be corrupted, it may for example contain foo.tff. The same code works without error on a Mac. Most apps will probably just start using some custom fonts when they launch, and then stop using them when cleaning up, so will not be affected by this bug. In my case I am examining a sequence of custom fonts, adding one at a time and removing it before processing the next. As it turns out I didn’t need to call fontNames() directly after stop using one font and before adding the next font. When this nugatory bit of code was rewritten it all worked happily - well, almost: in processing 4000 font files I still got that “error in statement” error 16 times, seemingly randomly and not fatally. Running the code again on just those 16 fonts had no problems, so it is not a case of corrupted fonts. Which means there is still a problem lurking there, my guess being that stop using font file can leave some font library in a fragile state. The Windows 10 system font cache is evidently well-known for being easily corrupted and perhaps that is what is going on here, but somehow I feel this is an LC problem because the font rendering itself seems to be OK. Anyway I have my data so I can ignore the problem for now: for those who came in late I am compiling a database of fonts to provide the different fontnames used by the 3 platforms for each font, and the lengths of rendered strings and their ascent and descent for cross-platform layout and vertical alignment. When that is done I shall put together a bug report for Quality Control. Neville Smythe From tom at makeshyft.com Fri Oct 28 23:17:06 2022 From: tom at makeshyft.com (Tom Glod) Date: Fri, 28 Oct 2022 23:17:06 -0400 Subject: fontNames woes In-Reply-To: References: Message-ID: Thanks Neville, for doing this research, noting your results in public and putting together the library of corresponding font names. Your effort will make it easier for livecode to fix things up. I have some plans for doing some more advanced font work, so I'm sure down the road it will help me also. Thanks again, Tom On Fri, Oct 28, 2022 at 8:00 AM Neville Smythe via use-livecode < use-livecode at lists.runrev.com> wrote: > In my last post I alluded to an elusive problem on Windows 10 with the > fontnames function. I think I have identified at least one circumstance > where fontNames() causes a crash on Windows 10. > > If in a Windows standalone you call > > stop using font file foo.ttf > > and then try to get fontNames() without first calling > > start using font file bar.ttf > > for some font bar.ttf > > I get a crash (or, if I use a try wrapper or errorDialog handler, "error > in statement get the fontNames”. Thereafter any call to fontNames will > fail, so something is fatally corrupted). In the IDE the code works as if > there had been no error but the list of fonts returned may be corrupted, > it may for example contain foo.tff. The same code works without error on a > Mac. > > Most apps will probably just start using some custom fonts when they > launch, and then stop using them when cleaning up, so will not be affected > by this bug. In my case I am examining a sequence of custom fonts, adding > one at a time and removing it before processing the next. > > As it turns out I didn’t need to call fontNames() directly after stop > using one font and before adding the next font. When this nugatory bit of > code was rewritten it all worked happily - well, almost: in processing 4000 > font files I still got that “error in statement” error 16 times, seemingly > randomly and not fatally. Running the code again on just those 16 fonts had > no problems, so it is not a case of corrupted fonts. Which means there is > still a problem lurking there, my guess being that stop using font file can > leave some font library in a fragile state. The Windows 10 system font > cache is evidently well-known for being easily corrupted and perhaps that > is what is going on here, but somehow I feel this is an LC problem because > the font rendering itself seems to be OK. > > Anyway I have my data so I can ignore the problem for now: for those who > came in late I am compiling a database of fonts to provide the different > fontnames used by the 3 platforms for each font, and the lengths of > rendered strings and their ascent and descent for cross-platform layout and > vertical alignment. When that is done I shall put together a bug report for > Quality Control. > > > Neville Smythe > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From neville.smythe at optusnet.com.au Sun Oct 30 19:37:40 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Mon, 31 Oct 2022 10:37:40 +1100 Subject: Cfross-platform font comparison Message-ID: As I am about to go on vacation this project delving into the Dark Arts may be on hold for a while, but a quick update of a former assertion is in order. I claimed that strings on the Mac and Windows now have the same rendered lengths for a given font and size. Turns out this is only 85% accurate. Of the 4000 fonts so far examined, 566 show some differences on the two platforms. Most of these fonts are obscure, some have differences in only one size of the 10 sizes I test, and in the vast majority the differences are quite small – 96% of all fonts tested have the same length or have a difference of less than 10%. The standout exception is NewYork.ttf, which showed a difference of up to 15% in string length. (Why? As intimated, font technology is a Dark Art,and I may be risking insanity.) I have yet to include the system fonts that come with Windows not also on the Mac, so there may be some more common fonts to add to the exceptions list. Note that Symbol.ttf on Windows is quite a different font from the Mac font of the same name. Neville Smythe From matthias_livecode_150811 at m-r-d.de Mon Oct 31 14:36:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 31 Oct 2022 19:36:34 +0100 Subject: Really OT, but i need the help of native English speakers Message-ID: Hi, i am selling my software through Fastspring. From time to time i get an invitation to answer a survey. Because i am very satisfied with Fastspring i am always happy to answer their surveys. Now i am stumbling over a question i do not understand and Google Translate is also not of great help. What exactly does this question mean? Could someone on this list please help and describe it with own words? I do not understand what they are asking me. I really don't get it. The question is: Please select the option that best defines your user persona of FastSpring's services. I really appreciate your help. Regards, Matthias From thatkeith at mac.com Mon Oct 31 14:43:26 2022 From: thatkeith at mac.com (Keith Martin) Date: Mon, 31 Oct 2022 18:43:26 +0000 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <0C141B7D-EEF2-4233-8D8F-7E51BAD0B4F8@mac.com> Hi Matthias, > The question is: > Please select the option that best defines your user persona of FastSpring's services. This isn’t a very well constructed English sentence, so the meaning is a little up to interpretation. In this kind of apparent context a user persona could refer to someone’s avatar, but that doesn’t seem right. What are the options that are offered? Keith --- Keith Martin Technical Writer | Reality Labs @ Meta Mobile +44.7436.028.638 London, UK -- From keith.clarke at me.com Mon Oct 31 14:47:00 2022 From: keith.clarke at me.com (Keith Clarke) Date: Mon, 31 Oct 2022 18:47:00 +0000 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <0284B5F4-47CA-4DF2-BA02-19633B2CD580@me.com> Hi Mathias, "Persona" often just means "role" or maybe "actor" from a development perspective, if that helps. So, their asking for the role you play in your use cases for their services. I'm guessing the list will include personas such as developer, seller, buyer, sysadmin, end-user. Hope that helps. Best Keith > On 31 Oct 2022, at 18:37, matthias rebbe via use-livecode wrote: > > Hi, > > i am selling my software through Fastspring. From time to time i get an invitation to answer a survey. Because i am very satisfied with Fastspring i am always happy to answer their surveys. > > Now i am stumbling over a question i do not understand and Google Translate is also not of great help. > What exactly does this question mean? Could someone on this list please help and describe it with own words? > I do not understand what they are asking me. I really don't get it. > > The question is: > Please select the option that best defines your user persona of FastSpring's services. > > I really appreciate your help. > > Regards, > Matthias > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Mon Oct 31 14:57:16 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 31 Oct 2022 19:57:16 +0100 Subject: Really OT, but i need the help of native English speakers In-Reply-To: <0284B5F4-47CA-4DF2-BA02-19633B2CD580@me.com> References: <0284B5F4-47CA-4DF2-BA02-19633B2CD580@me.com> Message-ID: Hi Keith, thanks, that makes sense. Thank you very much. Regards, Matthias > Am 31.10.2022 um 19:47 schrieb Keith Clarke via use-livecode : > > Hi Mathias, > "Persona" often just means "role" or maybe "actor" from a development perspective, if that helps. So, their asking for the role you play in your use cases for their services. I'm guessing the list will include personas such as developer, seller, buyer, sysadmin, end-user. > Hope that helps. > Best > Keith > > >> On 31 Oct 2022, at 18:37, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> i am selling my software through Fastspring. From time to time i get an invitation to answer a survey. Because i am very satisfied with Fastspring i am always happy to answer their surveys. >> >> Now i am stumbling over a question i do not understand and Google Translate is also not of great help. >> What exactly does this question mean? Could someone on this list please help and describe it with own words? >> I do not understand what they are asking me. I really don't get it. >> >> The question is: >> Please select the option that best defines your user persona of FastSpring's services. >> >> I really appreciate your help. >> >> Regards, >> Matthias >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Oct 31 15:05:57 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 31 Oct 2022 12:05:57 -0700 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: Matthias wrote: > Now i am stumbling over a question i do not understand and Google > Translate is also not of great help. > What exactly does this question mean? Could someone on this list > please help and describe it with own words? > I do not understand what they are asking me. I really don't get it. > > The question is: > Please select the option that best defines your user persona of > FastSpring's services. In a software development context, "persona" usually refers to part of the user experience practice in which the target audience is divided into segments, with each segment primarily distinguished by needs and workflows, often personalized with names or other details to facilitate team discussion. I covered personas briefly in my UX talk at the LC Global conference in 2018. A more complete discussion of personas in modern UX practice is here: https://www.uxdesigninstitute.com/blog/what-are-ux-personas/ -- Richard Gaskin Fourth World Systems From ahsoftware at sonic.net Mon Oct 31 15:40:08 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 31 Oct 2022 12:40:08 -0700 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> On 10/31/22 11:36, matthias rebbe via use-livecode wrote: > I do not understand what they are asking me. I really don't get it. > > The question is: > Please select the option that best defines your user persona of FastSpring's services. Yeah. I get the impression that whoever wrote that question wasn't a native English speaker. That question is one of those things where I decide that answering the survey isn't a good use of my time. -- Mark Wieder ahsoftware at gmail.com From mkoob at rogers.com Mon Oct 31 15:54:24 2022 From: mkoob at rogers.com (Martin Koob) Date: Mon, 31 Oct 2022 15:54:24 -0400 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <57D2C42E-3E99-4DFB-904E-05B2F371FE1B@rogers.com> Hi Also the question implies that there are a number of options to pick one from in the survey which means in LiveCode programming terms it would be a radio button) Are there options listed with the question? Martin > On Oct 31, 2022, at 2:36 PM, matthias rebbe via use-livecode wrote: > > The question is: > Please select the option that best defines your user persona of FastSpring's services. From bobsneidar at iotecdigital.com Mon Oct 31 16:12:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Oct 2022 20:12:19 +0000 Subject: Really OT, but i need the help of native English speakers In-Reply-To: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> References: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> Message-ID: <927DEEF5-7DBE-4517-88C3-D5AB46226FF3@iotecdigital.com> I feel the same way about surveys. I will answer short surveys, but the really long ones are I think a mechanism invented by upper management to get their customers to do their jobs for them. Bob S On Oct 31, 2022, at 12:40 , Mark Wieder via use-livecode > wrote: I do not understand what they are asking me. I really don't get it. The question is: Please select the option that best defines your user persona of FastSpring's services. Yeah. I get the impression that whoever wrote that question wasn't a native English speaker. That question is one of those things where I decide that answering the survey isn't a good use of my time. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Mon Oct 31 16:13:14 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 31 Oct 2022 21:13:14 +0100 Subject: Really OT, but i need the help of native English speakers In-Reply-To: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> References: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> Message-ID: <1A8EE008-B13B-4FF6-9BF8-3C57D3563ECF@m-r-d.de> It was the last question... ;) > Am 31.10.2022 um 20:40 schrieb Mark Wieder via use-livecode : > > On 10/31/22 11:36, matthias rebbe via use-livecode wrote: > >> I do not understand what they are asking me. I really don't get it. >> The question is: >> Please select the option that best defines your user persona of FastSpring's services. > > Yeah. I get the impression that whoever wrote that question wasn't a native English speaker. > That question is one of those things where I decide that answering the survey isn't a good use of my time. > > -- > Mark Wieder > ahsoftware at gmail.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bogdanoff at me.com Sat Oct 1 04:17:07 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 1 Oct 2022 01:17:07 -0700 Subject: Control or right click to show popup menu Message-ID: Hi, I want to control or right click on a line of text in a field to show a popup menu. So I’ve set the popup menu button to the loc of the mouse and it’s showing in place when the controlKey is down. However, the menu items won’t show while the control key is also down. Maybe I’m doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. Thanks, From richmondmathewson at gmail.com Sat Oct 1 05:08:13 2022 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 1 Oct 2022 12:08:13 +0300 Subject: Control or right click to show popup menu In-Reply-To: References: Message-ID: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> Why does this make me have a funny feeling you are still using a one-button mouse on a Macintosh? Certainly, I would stick with on mouseDown  MN   if MN is 3 then . . . Best, Richmond. On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote: > Hi, > > I want to control or right click on a line of text in a field to show a popup menu. So Ive set the popup menu button to the loc of the mouse and its showing in place when the controlKey is down. > > However, the menu items wont show while the control key is also down. > > Maybe Im doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. > > Thanks, > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kaveh at rivervalleytechnologies.com Sat Oct 1 07:30:21 2022 From: kaveh at rivervalleytechnologies.com (Kaveh) Date: Sat, 1 Oct 2022 12:30:21 +0100 Subject: RegEx to convert standard date to sql date In-Reply-To: <78BFC9D5-B6C4-45B3-BCEB-C9D00B494984@iotecdigital.com> References: <3AD0C9C1-5AA3-465B-A371-833CD66F8AB3@iotecdigital.com> <78BFC9D5-B6C4-45B3-BCEB-C9D00B494984@iotecdigital.com> Message-ID: Search for (\d\d)\/(\d\d)\/(\d\d\d\d) replace with \3\1\2 See here On Fri, 30 Sept 2022 at 23:46, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Well it's like this. I am working in a document management system, and > when I capture a date, I want to convert it to an sql date. I am not > working in Livecode for this. > > Bob S > > > > On Sep 30, 2022, at 10:38 , Jacques Clavel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Why not : > > set itemdel to "/" > > get tDate > > put item 3 of it & item 1 of it & item 2 of it into tSql > > > > JC > > > > Le ven. 30 sept. 2022 à 19:13, Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> a écrit : > > > >> I'm trying to convert a date format like mm/dd/yyyy to an sql date > format > >> yyyymmdd. Any ideas? Nothing I found on the interwebs seems to work. > >> > >> Bob S > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > -- > > Jacques Clavel > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 ● Twitter ● LinkedIn ● ORCID *Accelerating the Communication of Research* From craig at starfirelighting.com Mon Oct 3 09:47:29 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 3 Oct 2022 09:47:29 -0400 Subject: Control or right click to show popup menu In-Reply-To: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> References: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> Message-ID: <2AF0CD5F-F086-4EC2-BB5C-C0E8776C9707@starfirelighting.com> Hi. On a new card make a field and a pulldown menu button. Place a few lines of text in the field and lock it. In the field script: on mouseUp set the loc of btn 1 to the mouseloc click at the mouseLoc end mouseUp The menu opens at the line clicked on. This has been discussed extensively in the forums, if you want to search there. That discussion mainly dealt with loading the contents of the button with the field contents, or the selection of a particular menuItem once the menu itself was open. Craig > On Oct 1, 2022, at 5:08 AM, Richmond via use-livecode wrote: > > Why does this make me have a funny feeling you are still using a one-button mouse on a Macintosh? > > Certainly, I would stick with > > on mouseDown MN > if MN is 3 then . . . > > Best, Richmond. > > On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote: >> Hi, >> >> I want to control or right click on a line of text in a field to show a popup menu. So I’ve set the popup menu button to the loc of the mouse and it’s showing in place when the controlKey is down. >> >> However, the menu items won’t show while the control key is also down. >> >> Maybe I’m doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. >> >> Thanks, >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Oct 3 11:20:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Oct 2022 15:20:24 +0000 Subject: RegEx to convert standard date to sql date In-Reply-To: References: <3AD0C9C1-5AA3-465B-A371-833CD66F8AB3@iotecdigital.com> <78BFC9D5-B6C4-45B3-BCEB-C9D00B494984@iotecdigital.com> Message-ID: <211919FC-D9AE-46F0-BA46-78D1AFD5C314@iotecdigital.com> Thanks I'll try that. Looks like just what I neeed. Bob S On Oct 1, 2022, at 04:30 , Kaveh > wrote: Search for (\d\d)\/(\d\d)\/(\d\d\d\d) replace with \3\1\2 See here On Fri, 30 Sept 2022 at 23:46, Bob Sneidar via use-livecode > wrote: Well it's like this. I am working in a document management system, and when I capture a date, I want to convert it to an sql date. I am not working in Livecode for this. Bob S > On Sep 30, 2022, at 10:38 , Jacques Clavel via use-livecode > wrote: > > Why not : > set itemdel to "/" > get tDate > put item 3 of it & item 1 of it & item 2 of it into tSql > > JC > > Le ven. 30 sept. 2022 à 19:13, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> a écrit : > >> I'm trying to convert a date format like mm/dd/yyyy to an sql date format >> yyyymmdd. Any ideas? Nothing I found on the interwebs seems to work. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Jacques Clavel > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 ● Twitter ● LinkedIn ● ORCID Accelerating the Communication of Research From bobsneidar at iotecdigital.com Mon Oct 3 11:23:17 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Oct 2022 15:23:17 +0000 Subject: Quick and simple web demos? In-Reply-To: <1c2b91f5-739e-a661-d07e-7dc73d60df29@sonic.net> References: <4f9d310e-ac2f-9898-add9-39c1f6818e31@tweedly.net> <1c2b91f5-739e-a661-d07e-7dc73d60df29@sonic.net> Message-ID: This is so rediculously typical of any search features on any number of web sites. Copier partner portals are right up there. You can search for anything and get a plethora of everything EXCEPT anything you are searching for. Bob S > On Sep 30, 2022, at 18:03 , Mark Wieder via use-livecode wrote: > > On 9/30/22 17:11, Alex Tweedly via use-livecode wrote: > >> and the poor indexing/naming makes it tedious to try to find. > > ...and speaking of poor indexing etc... > I was looking for a way to point the svgicon widget to an external svg file and finding that for some reason this isn't built into the widget. So I want online to livecodeshare and typed "svg" into the search field. Upper case. > Lower case. > Didn't matter - I still got zero results, even though I know there are several stacks to deal with svg files. > > Thank you so much for your Sample Stacks plugin, which does the job SO much better than that stupid web site. Still don't have an answer to my problem, but at least I can search properly. Over time I've gradually been replacing parts of my development environment with improvements: tinyDictionary, etc. Waiting for someone to build a better Proj Browser. > > BTW... I typed "Sample stacks" into the web search field and got 57 hits, only one of which had anything to do with sample stacks. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bogdanoff at me.com Mon Oct 3 14:37:42 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 3 Oct 2022 11:37:42 -0700 Subject: Control or right click to show popup menu In-Reply-To: <2AF0CD5F-F086-4EC2-BB5C-C0E8776C9707@starfirelighting.com> References: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> <2AF0CD5F-F086-4EC2-BB5C-C0E8776C9707@starfirelighting.com> Message-ID: Thanks, Craig. That is exactly the solution if figured out over the weekend, use the click command to click at the mouseLoc. Peter > On Oct 3, 2022, at 6:47 AM, Craig Newman via use-livecode wrote: > > Hi. > > On a new card make a field and a pulldown menu button. Place a few lines of text in the field and lock it. In the field script: > on mouseUp > > set the loc of btn 1 to the mouseloc > > click at the mouseLoc > > end mouseUp > > The menu opens at the line clicked on. > > This has been discussed extensively in the forums, if you want to search there. That discussion mainly dealt with loading the contents of the button with the field contents, or the selection of a particular menuItem once the menu itself was open. > > Craig > >> On Oct 1, 2022, at 5:08 AM, Richmond via use-livecode wrote: >> >> Why does this make me have a funny feeling you are still using a one-button mouse on a Macintosh? >> >> Certainly, I would stick with >> >> on mouseDown MN >> if MN is 3 then . . . >> >> Best, Richmond. >> >> On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote: >>> Hi, >>> >>> I want to control or right click on a line of text in a field to show a popup menu. So I’ve set the popup menu button to the loc of the mouse and it’s showing in place when the controlKey is down. >>> >>> However, the menu items won’t show while the control key is also down. >>> >>> Maybe I’m doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. >>> >>> Thanks, >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Tue Oct 4 11:20:57 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Oct 2022 15:20:57 +0000 Subject: PDF Printing Message-ID: I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 From martyknappster at gmail.com Tue Oct 4 12:38:29 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Tue, 4 Oct 2022 09:38:29 -0700 Subject: PDF Printing In-Reply-To: References: Message-ID: <07B91C92-3FC6-4556-8645-DAF57E0D3104@gmail.com> It could be a corrupted font cache - I’ve found that can cause weird behavior as you’re describing. If you’re on a Mac, do a “safe reboot” (start up with the shift key pressed) and after it boots up, do a normal reboot. That will delete the current font caches and then rebuild them from scratch. It’s little harder to fix on Windows - if that is the case you might Google that. Worth a try anyway. Marty > On Oct 4, 2022, at 8:20 AM, Dan Friedman via use-livecode wrote: > > I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: > > on mouseUp currSName > put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF > > if printAsPDF then > ask file "Save As PDF:" with (currSName & ".pdf") > put it into pdfPath > open printing to pdf pdfPath > else > open printing with dialog > end if > > if the result is "Cancel" then > exit mouseUp > end if > > print card 1 of stack "GB_PReport" > close printing > end mouseUp > > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? > > LC 9.6.8 From rdimola at evergreeninfo.net Tue Oct 4 12:50:07 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 4 Oct 2022 12:50:07 -0400 Subject: PDF Printing In-Reply-To: References: Message-ID: <003301d8d811$5f0079e0$1d016da0$@net> Dan, How to delete Windows font cache: https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht ml Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, October 04, 2022 11:21 AM To: How to use LiveCode Cc: Dan Friedman Subject: PDF Printing I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Tue Oct 4 13:15:44 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Oct 2022 17:15:44 +0000 Subject: PDF Printing In-Reply-To: <003301d8d811$5f0079e0$1d016da0$@net> References: <003301d8d811$5f0079e0$1d016da0$@net> Message-ID: <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> Thank you for your thoughts, but do you really think a font cache is the issue? I have two computers in my office having this issue, and about a dozen Macs at my client's location -- that we know of so far! If it were a font issue, do you think one print method would be successful, and another wouldn't? If the font table was messed up, I would think it would be wacked for all methods. No? I could be wrong (I'm wrong all the time!) but, I think it's something in LC's internal PDF handling, or some property I need to set or reset. -Dan On 10/4/22, 9:51 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: Dan, How to delete Windows font cache: https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht ml Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, October 04, 2022 11:21 AM To: How to use LiveCode Cc: Dan Friedman Subject: PDF Printing I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 _______________________________________________ use-livecode mailing list use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Tue Oct 4 13:45:03 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 4 Oct 2022 13:45:03 -0400 Subject: PDF Printing In-Reply-To: <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> References: <003301d8d811$5f0079e0$1d016da0$@net> <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> Message-ID: <003701d8d819$0b543680$21fca380$@net> Your right... If all computers are doing it then font cache is probably not the issue. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: Dan Friedman [mailto:dan at clearvisiontech.com] Sent: Tuesday, October 04, 2022 1:16 PM To: How to use LiveCode Cc: Ralph DiMola Subject: Re: PDF Printing Thank you for your thoughts, but do you really think a font cache is the issue? I have two computers in my office having this issue, and about a dozen Macs at my client's location -- that we know of so far! If it were a font issue, do you think one print method would be successful, and another wouldn't? If the font table was messed up, I would think it would be wacked for all methods. No? I could be wrong (I'm wrong all the time!) but, I think it's something in LC's internal PDF handling, or some property I need to set or reset. -Dan On 10/4/22, 9:51 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: Dan, How to delete Windows font cache: https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht ml Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, October 04, 2022 11:21 AM To: How to use LiveCode Cc: Dan Friedman Subject: PDF Printing I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 _______________________________________________ use-livecode mailing list use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Tue Oct 4 14:08:08 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Tue, 4 Oct 2022 11:08:08 -0700 Subject: PDF Printing In-Reply-To: <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> References: <003301d8d811$5f0079e0$1d016da0$@net> <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> Message-ID: <8AB53EF9-D84F-4C37-A4AD-E20117E59B9E@gmail.com> If it was one computer, I’d say there was a good chance but more than one computer I’d say no. Problem must be elsewhere. Marty > On Oct 4, 2022, at 10:15 AM, Dan Friedman via use-livecode wrote: > > Thank you for your thoughts, but do you really think a font cache is the issue? I have two computers in my office having this issue, and about a dozen Macs at my client's location -- that we know of so far! If it were a font issue, do you think one print method would be successful, and another wouldn't? If the font table was messed up, I would think it would be wacked for all methods. No? > > I could be wrong (I'm wrong all the time!) but, I think it's something in LC's internal PDF handling, or some property I need to set or reset. > > -Dan > > > On 10/4/22, 9:51 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: > > Dan, > > How to delete Windows font cache: > https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht > ml > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Dan Friedman via use-livecode > Sent: Tuesday, October 04, 2022 11:21 AM > To: How to use LiveCode > Cc: Dan Friedman > Subject: PDF Printing > > I am getting different results using "open printing to pdf" vs standard > printing to a printer. I have a card with a single field on it with some > formatted text in it. If I print the card to a printer using "open > printing with dialog" it all looks perfect (even if I choose to save it to > PDF in the print dialog). But, if I use the "open printing to pdf" method, > it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I > am using: > > on mouseUp currSName > put (the hilite of btn "printAsPDF" of stack "ReportOptions") into > printAsPDF > > if printAsPDF then > ask file "Save As PDF:" with (currSName & ".pdf") > put it into pdfPath > open printing to pdf pdfPath > else > open printing with dialog > end if > > if the result is "Cancel" then > exit mouseUp > end if > > print card 1 of stack "GB_PReport" > close printing > end mouseUp > > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? > > LC 9.6.8 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Tue Oct 4 14:43:29 2022 From: mark at livecode.com (Mark Waddingham) Date: Tue, 04 Oct 2022 19:43:29 +0100 Subject: PDF Printing In-Reply-To: References: Message-ID: <1f3f8c36b3a82a37776e3ed6503ac483@livecode.com> On 2022-10-04 16:20, Dan Friedman via use-livecode wrote: > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - > https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? Someone had a similar problem in the past (Paul or Klaus maybe?) - it turned out that it was because no explicit font was set on the stack (or controls) - meaning that it was using the macOS 'theme' font. This isn't actually a 'discoverable' font in the various font related APIs - and appears to be (somewhat!) hard-coded in the various low-level Apple graphics rendering APIs. The PDF printer does use the correct fonts and metrics - and CoreText (on macOS) to do font layout - but the actual PDF generation is done using a cross-platform library (so the output is the same on all platforms) which relies on getting the 'real' font data for the given font (which it does not in this case) and not macOS (CoreGraphics-based) printing. The latter appears to be able to deal with the 'magic' fonts (unsurprising as its all Apple stuff), but our pdf printer cannot. If you set the stack to an explicit font then the problem should go away. Alternatively, if this is a mac-only product, you can use macOS's PDF printing capability by setting the printerOutput property to "file:" - on macOS the latter will generate a PDF (i.e. its the same as choosing 'Save As PDF' from the printer dialog). Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dan at clearvisiontech.com Tue Oct 4 15:39:50 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Oct 2022 19:39:50 +0000 Subject: PDF Printing In-Reply-To: <1f3f8c36b3a82a37776e3ed6503ac483@livecode.com> References: <1f3f8c36b3a82a37776e3ed6503ac483@livecode.com> Message-ID: <882D1E71-5AA6-41F4-8276-34EC2E03E74A@clearvisiontech.com> Mark, Genius! I can't thank you enough... That worked! Make sure that the field that holds the text has a valid font name and isn't inheriting a system-level font. That REALLY ought to be documented in the PDF routines in LC. As long as I have your ear... Whenever I call this, I get a blank page in the beginning of my PDF. I have checked that I'm not printing a blank page and have debugged this to death! Any thoughts on a blank page being included in a PDF? -Dan On 10/4/22, 11:44 AM, "use-livecode on behalf of Mark Waddingham via use-livecode" wrote: On 2022-10-04 16:20, Dan Friedman via use-livecode wrote: > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - > https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? Someone had a similar problem in the past (Paul or Klaus maybe?) - it turned out that it was because no explicit font was set on the stack (or controls) - meaning that it was using the macOS 'theme' font. This isn't actually a 'discoverable' font in the various font related APIs - and appears to be (somewhat!) hard-coded in the various low-level Apple graphics rendering APIs. The PDF printer does use the correct fonts and metrics - and CoreText (on macOS) to do font layout - but the actual PDF generation is done using a cross-platform library (so the output is the same on all platforms) which relies on getting the 'real' font data for the given font (which it does not in this case) and not macOS (CoreGraphics-based) printing. The latter appears to be able to deal with the 'magic' fonts (unsurprising as its all Apple stuff), but our pdf printer cannot. If you set the stack to an explicit font then the problem should go away. Alternatively, if this is a mac-only product, you can use macOS's PDF printing capability by setting the printerOutput property to "file:" - on macOS the latter will generate a PDF (i.e. its the same as choosing 'Save As PDF' from the printer dialog). Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Oct 5 16:53:11 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 5 Oct 2022 16:53:11 -0400 Subject: map widget offline Message-ID: has anyone messed around with using the map widget offline? i was in a hurricane zone, last week, and over the weekend. there was a fair amount of offline time, when having maps loaded into my droid phone would have been useful. the offline map apps that i can find have limited zoom capability. -- 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." From ahsoftware at sonic.net Wed Oct 5 17:22:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 5 Oct 2022 14:22:37 -0700 Subject: map widget offline In-Reply-To: References: Message-ID: On 10/5/22 13:53, Mike Kerner via use-livecode wrote: > has anyone messed around with using the map widget offline? > i was in a hurricane zone, last week, and over the weekend. there was a > fair amount of offline time, when having maps loaded into my droid phone > would have been useful. the offline map apps that i can find have limited > zoom capability. > I use Sygic for offline maps on my Android phone. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Thu Oct 6 15:46:08 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 6 Oct 2022 21:46:08 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers Message-ID: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Dear all, i am happy to announce that an updated version of InstaMaker is available. InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. What is new - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. Downloads: macOS Wine version https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip Windows x64 https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. Regards, Matthias From james at thehales.id.au Sat Oct 8 20:52:58 2022 From: james at thehales.id.au (James Hale) Date: Sun, 9 Oct 2022 11:52:58 +1100 Subject: SUB-to-SRT updated to convert YouTube transcripts Message-ID: <4EA45A23-8EF9-4A71-9D7D-52C78CC98B75@thehales.id.au> Hi all, I have just updated the sample stack "sub-to-srt" to now convert YouTube's transcripts (sbv extension) to set files. Perhaps it is age, but I am increasingly finding it difficult to catch all the words spoken in videos. The LivdCode videos posted on YouTube being a case in point. Although I have subscribed to most of the "global" events, and watch them when I can given the timezone differences, I find myself usually waiting until they are posted in my account page. Previously I would then download the YouTube version in order to have closed captions. Unfortunately the apps I use to download YouTubes no longer capture the captions. However while on YouTube you can show the transcript and copy the text. Doing so and saving the text file with a ".sbv" extension the "sub-to-srt" stack will now convert this into a correctly formatted ".srt" file which most media players can access. I use "sub-to-srt" as a standalone app on my Mac. To see the transcript of a YouTube video; Turn on captions, if not already turned on. It's the "CC" icon at the bottom of the video. Click the gear icon to adjust any available settings. At the end of the line of icons with "like" "dislike" etc you will see an ellipsis "…" Click on this and select "show transcript". It will appear to the right of the video. Simply select and copy the text. James From jacque at hyperactivesw.com Mon Oct 10 19:29:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 10 Oct 2022 18:29:04 -0500 Subject: TSNet cache error Message-ID: I have a browser widget in an Android app and I keep getting an error "tsnet: ERR_CACHE_MISS". This happens when using both the Test button and when installing a built Android app. I've cleared Chrome's cache, and deleted and reinstalled the app several times, but the widget won't connect. How would I fix the browser widget cache? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Tue Oct 11 02:07:44 2022 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 11 Oct 2022 17:07:44 +1100 Subject: on-rev mail server Message-ID: Is anyone having troubles with on-rev IMAP and SMTP servers? I've just upgraded my OS and all the passwords for the servers were blank but when I input them I don't get a connection. I restarted using my back-up HDD, which has all the boxes filled in, but it can't connect to the mail servers either. I thought I'd log in using cPanel to see if there was a hint there but I can't access the 'silica' server either; which led me to believe that the servers may be down but I can access all my web pages. Anyone else having issues or should I be contacting Heather? Thanks From jbv at souslelogo.com Tue Oct 11 02:57:14 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 11 Oct 2022 02:57:14 -0400 Subject: LC -> Applescript -> Chrome Message-ID: <892b479b4261350152cc06d568d7e47b@souslelogo.com> Hi list, I have a stack that interacts with Chrome via Applescript. It has been running fine for months. Suddenly, one command line began to stall the whole process, with the spinning wheel spinning forever. And when I run the same Applescript in the script editor, it still runs fine as before. The line is : tell application "System Events" to click at {x, y} I am using LC 9.6.8 What should I look at to fix the issue ? Thank you in advance. jb From matthias_livecode_150811 at m-r-d.de Tue Oct 11 02:58:33 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 11 Oct 2022 08:58:33 +0200 Subject: on-rev mail server In-Reply-To: References: Message-ID: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> Unfortunately i am not on Silica, but on Quartz. So i could just test with "my" server. I am able to login. So it is not a general problem, but only one with Silica. Maybe the db server part has problems. Anyway, if you think it's not urgent, then you could send an email to livecodehosting at livecode.com If you think it's urgent, then you can send an email to livecodehosting at livecode.com and put the word URGENT into the subject line at the beginning. This will speed the things a little bit up. Regards, Matthias > Am 11.10.2022 um 08:07 schrieb Kay C Lan via use-livecode : > > Is anyone having troubles with on-rev IMAP and SMTP servers? > > I've just upgraded my OS and all the passwords for the servers were > blank but when I input them I don't get a connection. > > I restarted using my back-up HDD, which has all the boxes filled in, > but it can't connect to the mail servers either. > > I thought I'd log in using cPanel to see if there was a hint there but > I can't access the 'silica' server either; which led me to believe > that the servers may be down but I can access all my web pages. > > Anyone else having issues or should I be contacting Heather? > > Thanks > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andy at db-integration.co.uk Tue Oct 11 03:13:01 2022 From: andy at db-integration.co.uk (Andy Marshman) Date: Tue, 11 Oct 2022 07:13:01 +0000 (UTC) Subject: on-rev mail server In-Reply-To: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> References: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> Message-ID: <529af426-4b30-4fce-a30f-68e6c590347b@db-integration.co.uk> Hi, I'm using the mail servers on Silica and both seem to be working fine for me. I can also log into my cpanel account without issue. If it helps I'm based in the UK Regards Andy 11 Oct 2022 07:59:41 matthias rebbe via use-livecode : > Unfortunately i am not on Silica, but on Quartz. So i could just test with "my" server. > I am able to login. > > So it is not a general problem, but only one with Silica. Maybe the db server part has problems. > > Anyway, if you think it's not urgent, then you could send an email to livecodehosting at livecode.com > > > If you think it's urgent, then you can send an email to livecodehosting at livecode.com   and put the word URGENT into the subject line at the beginning. This will speed the things a little bit up. > > Regards, > Matthias > > > >> Am 11.10.2022 um 08:07 schrieb Kay C Lan via use-livecode : >> >> Is anyone having troubles with on-rev IMAP and SMTP servers? >> >> I've just upgraded my OS and all the passwords for the servers were >> blank but when I input them I don't get a connection. >> >> I restarted using my back-up HDD, which has all the boxes filled in, >> but it can't connect to the mail servers either. >> >> I thought I'd log in using cPanel to see if there was a hint there but >> I can't access the 'silica' server either; which led me to believe >> that the servers may be down but I can access all my web pages. >> >> Anyone else having issues or should I be contacting Heather? >> >> Thanks >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 11 06:01:27 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 11 Oct 2022 12:01:27 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Message-ID: Hi again, for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. There will be some errors saying that some files were not readable. You can ignore that. After that you can open the app without any error message. Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. Windows https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip macOS Wine app https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg Regards, Matthias > Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- > ivecode : > > Dear all, > > i am happy to announce that an updated version of InstaMaker is available. > InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. > InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. > > What is new > - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows > - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. > > Downloads: > macOS Wine version > https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip > > Windows x64 > https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe > > > I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. > > Regards, > Matthias > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Tue Oct 11 06:14:36 2022 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 11 Oct 2022 21:14:36 +1100 Subject: on-rev mail server In-Reply-To: <529af426-4b30-4fce-a30f-68e6c590347b@db-integration.co.uk> References: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> <529af426-4b30-4fce-a30f-68e6c590347b@db-integration.co.uk> Message-ID: Thanks, I'm still having issues so I'll email livecodehosting. Thanks Matthias for the link. On Tue, Oct 11, 2022 at 6:13 PM Andy Marshman via use-livecode wrote: > > Hi, > > I'm using the mail servers on Silica and both seem to be working fine for me. I can also log into my cpanel account without issue. > > If it helps I'm based in the UK > > Regards > Andy > > 11 Oct 2022 07:59:41 matthias rebbe via use-livecode : > > > Unfortunately i am not on Silica, but on Quartz. So i could just test with "my" server. > > I am able to login. > > > > So it is not a general problem, but only one with Silica. Maybe the db server part has problems. > > > > Anyway, if you think it's not urgent, then you could send an email to livecodehosting at livecode.com > > > > > > If you think it's urgent, then you can send an email to livecodehosting at livecode.com and put the word URGENT into the subject line at the beginning. This will speed the things a little bit up. > > > > Regards, > > Matthias > > > > > > > >> Am 11.10.2022 um 08:07 schrieb Kay C Lan via use-livecode : > >> > >> Is anyone having troubles with on-rev IMAP and SMTP servers? > >> > >> I've just upgraded my OS and all the passwords for the servers were > >> blank but when I input them I don't get a connection. > >> > >> I restarted using my back-up HDD, which has all the boxes filled in, > >> but it can't connect to the mail servers either. > >> > >> I thought I'd log in using cPanel to see if there was a hint there but > >> I can't access the 'silica' server either; which led me to believe > >> that the servers may be down but I can access all my web pages. > >> > >> Anyone else having issues or should I be contacting Heather? > >> > >> Thanks > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Tue Oct 11 11:27:02 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 11 Oct 2022 18:27:02 +0300 Subject: TSNet cache error In-Reply-To: References: Message-ID: Hello Jacque, Have you tried doing: do "location.reload()" in widget "myBrowser" just after setting the browser widget url property. Kind regards, Panos -- On Tue, 11 Oct 2022 at 02:30, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a browser widget in an Android app and I keep getting an error > "tsnet: ERR_CACHE_MISS". > This happens when using both the Test button and when installing a built > Android app. > > I've cleared Chrome's cache, and deleted and reinstalled the app several > times, but the widget > won't connect. How would I fix the browser widget cache? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Oct 11 15:27:10 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 11 Oct 2022 12:27:10 -0700 Subject: LC -> Applescript -> Chrome In-Reply-To: <892b479b4261350152cc06d568d7e47b@souslelogo.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> Message-ID: <3370f25c-c179-7152-876f-a45a0ce337df@fourthworld.com> jbv wrote: > I have a stack that interacts with Chrome via Applescript. > It has been running fine for months. > Suddenly, one command line began to stall the whole process, > with the spinning wheel spinning forever. > > And when I run the same Applescript in the script editor, > it still runs fine as before. > The line is : > tell application "System Events" to click at {x, y} > I am using LC 9.6.8 > > What should I look at to fix the issue ? At first this struck me as potentially an intentional change from Apple for security purposes, but a quick DuckDuckGo search shows many having the same AppleScript issue with "click at": https://duckduckgo.com/?q=macOS+applescript+%22click+at%22 Interesting discussions, but I didn't see a proposed solution that works for Mavericks. I also didn't look that hard; there may be a fix out there. Or it may be a bug in macOS. But at least it isn't you. :) -- Richard Gaskin Fourth World Systems From paul at researchware.com Tue Oct 11 15:37:04 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Oct 2022 15:37:04 -0400 Subject: RANT (Mild): revZIP library Message-ID: We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. This just makes us look bad. Paul Dupuis Researchware From jbv at souslelogo.com Tue Oct 11 15:38:33 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 11 Oct 2022 15:38:33 -0400 Subject: LC -> Applescript -> Chrome In-Reply-To: <3370f25c-c179-7152-876f-a45a0ce337df@fourthworld.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> <3370f25c-c179-7152-876f-a45a0ce337df@fourthworld.com> Message-ID: Hi Richard, Thank you for your reply. Actually it's kind of weird : after running the script a few times in the Applescript editor, it started to work again in LC... May be it was something in my setup, I don't know. Best, Le 2022-10-11 15:27, Richard Gaskin via use-livecode a crit : > jbv wrote: >> I have a stack that interacts with Chrome via Applescript. >> It has been running fine for months. >> Suddenly, one command line began to stall the whole process, >> with the spinning wheel spinning forever. >> >> And when I run the same Applescript in the script editor, >> it still runs fine as before. >> The line is : >> tell application "System Events" to click at {x, y} >> I am using LC 9.6.8 >> >> What should I look at to fix the issue ? > > At first this struck me as potentially an intentional change from > Apple for security purposes, but a quick DuckDuckGo search shows many > having the same AppleScript issue with "click at": > https://duckduckgo.com/?q=macOS+applescript+%22click+at%22 > > Interesting discussions, but I didn't see a proposed solution that > works for Mavericks. I also didn't look that hard; there may be a fix > out there. Or it may be a bug in macOS. But at least it isn't you. :) From sean at pidigital.co.uk Tue Oct 11 16:34:28 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 11 Oct 2022 21:34:28 +0100 Subject: RANT (Mild): revZIP library In-Reply-To: References: Message-ID: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Hi Paul I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. I’m sure you’re capable of building the shell script but let us know if not. All the best Sean > On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: > > We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. > > We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. > > Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. > > Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. > > This just makes us look bad. > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Oct 11 17:14:38 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Oct 2022 17:14:38 -0400 Subject: RANT (Mild): revZIP library In-Reply-To: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: Thank you for the  history. Yes, using other ZIP tools via shell is a possibility, but one I would rather not do. While some researchers who use our app are very computer savvy, most are not. Having a LiveCode ZIP in a window with a nice UI that uses terminology our data analysis tool already uses to let them 'package' their data works well for usage and adoption. We're already doing invisible shell work-arounds for a number of engine bugs, with using ffmpg to replace Export Snapshot (see https://quality.livecode.com/show_bug.cgi?id=23694) the latest. I would just rather not add another 'work-around'. I was actually spending time today cleaning out an old work-around from when a minimized stack set one of its coordinates to -32000 as a way of indicating it was minimized (before the iconic property existed) and work-around fro when a stack was minimized it would get a 'resizeStack' message with a new width and height of 0,0. None of these apply any more but we don't always have time or awareness to remove work-arounds when they are fixed, which can sometimes be years after the work-around was put into place. Anyway, thank you for the suggested approach. It is actually really goo to know someone else has already done it. On 10/11/2022 4:34 PM, Pi Digital via use-livecode wrote: > Hi Paul > > I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. > > Im sure youre capable of building the shell script but let us know if not. > > All the best > Sean > > > >> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: >> >> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >> >> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >> >> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >> >> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >> >> This just makes us look bad. >> >> Paul Dupuis >> Researchware >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From phil at pdslabs.net Tue Oct 11 18:25:00 2022 From: phil at pdslabs.net (Phil Davis) Date: Tue, 11 Oct 2022 15:25:00 -0700 Subject: RANT (Mild): revZIP library In-Reply-To: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: <7043ccd6-4180-b49e-939a-e1eb9fa58895@pdslabs.net> Hi Sean, I wonder if you could open the unzipper as a process in LC. Then your app could probably receive realtime updates from it and let the user what's going on. I've done that before but it was a long time ago, so I have forgotten more than I remember. HTH - Phil Davis On 10/11/22 1:34 PM, Pi Digital via use-livecode wrote: > Hi Paul > > I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. > > Im sure youre capable of building the shell script but let us know if not. > > All the best > Sean > > > >> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: >> >> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >> >> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >> >> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >> >> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >> >> This just makes us look bad. >> >> Paul Dupuis >> Researchware >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis (503) 307-4363 From markclark at mac.com Tue Oct 11 18:40:15 2022 From: markclark at mac.com (Mark Clark) Date: Tue, 11 Oct 2022 17:40:15 -0500 Subject: RANT (Mild): revZIP library In-Reply-To: References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: <0D904D84-2F42-4693-B318-C5009CF9BF45@mac.com> Have you considered chunking the problem up and using compress v revZip library? I ran into something similar when I wanted to keep memory down for encrypting/decrypting multi-gig log files…got a lot of advice about just using shell—but for the same sorts of reasons as you I wanted to do things within lc. I used a standard 1MB chunk size so just added a visual working on '1 of n progress bar’. That might be more effort than it’s worth to you. Might be simpler to create 1 or more archives using the revZip library vs rolling your own. You’d need to stat the files to determine the sizes and # of archives and limit each to < 2GB. the detailed files (synonymous with the long files) Mark > On Oct 11, 2022, at 4:14 PM, Paul Dupuis via use-livecode > wrote: > > Thank you for the history. > > Yes, using other ZIP tools via shell is a possibility, but one I would rather not do. While some researchers who use our app are very computer savvy, most are not. Having a LiveCode ZIP in a window with a nice UI that uses terminology our data analysis tool already uses to let them 'package' their data works well for usage and adoption. > > We're already doing invisible shell work-arounds for a number of engine bugs, with using ffmpg to replace Export Snapshot (see https://quality.livecode.com/show_bug.cgi?id=23694 ) the latest. I would just rather not add another 'work-around'. I was actually spending time today cleaning out an old work-around from when a minimized stack set one of its coordinates to -32000 as a way of indicating it was minimized (before the iconic property existed) and work-around fro when a stack was minimized it would get a 'resizeStack' message with a new width and height of 0,0. None of these apply any more but we don't always have time or awareness to remove work-arounds when they are fixed, which can sometimes be years after the work-around was put into place. > > Anyway, thank you for the suggested approach. It is actually really goo to know someone else has already done it. > > > On 10/11/2022 4:34 PM, Pi Digital via use-livecode wrote: >> Hi Paul >> >> I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. >> >> I’m sure you’re capable of building the shell script but let us know if not. >> >> All the best >> Sean >> >> >> >>> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode > wrote: >>> >>> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859 ) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >>> >>> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >>> >>> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >>> >>> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >>> >>> This just makes us look bad. >>> >>> Paul Dupuis >>> Researchware >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mkoob at rogers.com Tue Oct 11 19:08:53 2022 From: mkoob at rogers.com (Martin Koob) Date: Tue, 11 Oct 2022 19:08:53 -0400 Subject: RANT (Mild): revZIP library In-Reply-To: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: The two bugs mentioned in this thread ( the revZip on Windows and the snapshot) sound like good candidates for the Top Ten Bugs survey that LiveCode Ltd. had run a year or so ago. It was a success it seemed and there was talk at the of running that survey again. Panos, Mark, Any plans for running round 2 of the Top 10 LiveCode Bugs survey in the near future? Martin Sent from my iPhone > On Oct 11, 2022, at 4:36 PM, Pi Digital via use-livecode wrote: > > Hi Paul > > I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. > > I’m sure you’re capable of building the shell script but let us know if not. > > All the best > Sean > > > >> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: >> >> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >> >> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >> >> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >> >> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >> >> This just makes us look bad. >> >> Paul Dupuis >> Researchware >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Wed Oct 12 02:35:17 2022 From: mark at livecode.com (Mark Waddingham) Date: Wed, 12 Oct 2022 07:35:17 +0100 Subject: RANT (Mild): revZIP library In-Reply-To: References: Message-ID: On 2022-10-11 20:37, Paul Dupuis via use-livecode wrote: > We just got bit by a 4+ year old bug (See > https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP > library on macOS can create and read ZIP archives over 2GB, BUT the > Windows library can not. Do you ship your app as a 64-bit windows exe? I wonder if its just a limitation of the library we use when compiled for 32-bit archs... Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From paul at researchware.com Wed Oct 12 08:09:44 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 12 Oct 2022 08:09:44 -0400 Subject: RANT (Mild): revZIP library In-Reply-To: References: Message-ID: On 10/12/2022 2:35 AM, Mark Waddingham via use-livecode wrote: > On 2022-10-11 20:37, Paul Dupuis via use-livecode wrote: >> We just got bit by a 4+ year old bug (See >> https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP >> library on macOS can create and read ZIP archives over 2GB, BUT the >> Windows library can not. > > Do you ship your app as a 64-bit windows exe? > > I wonder if its just a limitation of the library we use when compiled > for 32-bit archs... > > Warmest Regards, > > Mark. > > I thought you had nailed it as we build both 32 and 64 bit Windows EXEs and I might have been testing the wrong one, but I just rebuilt the app using LC 9.6.8 for 64-Bit Windows only (turned off the 32 bit build) and retested and get the same error as in the bug report occurs. ZIPs under 2GB unpack fine. Over 2GB produces the error "ziperr,Can't open file: Unknown error" as the result for calling revZipOpenArchive pArchive, "read" where pArchive is the filespec. I think we'll just add a file size check on Windows and advise that that customers will need to use a OS or 3rd party ZIP tool to move their research data if over 2GB. For many of our customers, this will never be an issue as their total research data will not even come close to 2GB. Some of our customer are using video data, and for them, a single video source (used for their research) can easily be over a GB itself or even over 2GB by itself. A research study can consist of several (or many) such sources. Unfortunately, with multi-mega pixel phones these days making capturing a lot of video very easy more researchers are using large video files in their research. From klaus at major-k.de Wed Oct 12 08:39:25 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 12 Oct 2022 14:39:25 +0200 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 Message-ID: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Hi friends, the subject says it all, and here a screenshot: LC 9.6.9 rc 1 on macOS 12.6. I remembered a posting on this list, that one need to first click "Adaptive icon" and then back to "Icon" to force the correct creation of the icon from a PNG file. Obviously this doesnt work Anyway, can I also use an "Adaptive icon" if the app is not meant for the Google Play Store? Not sure I remebered correctly in this respect. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From merakosp at gmail.com Wed Oct 12 09:08:10 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 12 Oct 2022 16:08:10 +0300 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: Hello Klaus, What you see is the expected result. In fact, this is the reason one has to use adaptive icons. You can use adaptive icons for non Google Play Store apps as well. So, when you use a legacy icon, which is a square png, this does not guarantee that the app icon in the Home screen will appear as a square icon. If the app launcher shows all icons as e.g. circle icons, or as round rectangles, then there are two possible outcomes when you provide a legacy icon: - either your app will stand out from the others (in a negative sense) because it will appear as the square icon among circle icons - or your app icon will appear as a circle that has the original square icon in it. I hope this makes sense :) Kind regards, Panos -- On Wed, 12 Oct 2022 at 15:40, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi friends, > > the subject says it all, and here a screenshot: > > > LC 9.6.9 rc 1 on macOS 12.6. > > I remembered a posting on this list, that one need to first click > "Adaptive icon" > and then back to "Icon" to force the correct creation of the icon from a > PNG file. > Obviously this doesnt work > > Anyway, can I also use an "Adaptive icon" if the app is not meant for the > Google Play Store? > Not sure I remebered correctly in this respect. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Wed Oct 12 09:12:59 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 12 Oct 2022 15:12:59 +0200 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: Hi Panos, > Am 12.10.2022 um 15:08 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > What you see is the expected result. In fact, this is the reason one has to > use adaptive icons. You can use adaptive icons for non Google Play Store > apps as well. > > So, when you use a legacy icon, which is a square png, this does not > guarantee that the app icon in the Home screen will appear as a square > icon. If the app launcher shows all icons as e.g. circle icons, or as round > rectangles, then there are two possible outcomes when you provide a legacy > icon: > - either your app will stand out from the others (in a negative sense) > because it will appear as the square icon among circle icons > - or your app icon will appear as a circle that has the original square > icon in it. > I hope this makes sense :) yes, perfectly, thank you! So LC 9.6.8 did not behave as it should? I mean the legacy icon looked as exspected on Android in 9.6.8 and I did not change anythings since then, read update Android Studio or something. > Kind regards, > Panos Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From scott at elementarysoftware.com Wed Oct 12 09:15:04 2022 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 12 Oct 2022 06:15:04 -0700 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Message-ID: <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> Hello Matthias, I was away from my computer for while and so only recently able to test your latest build. Unfortunately I was unable to get either one of them to build an installer. First I tested the Wine packaged version of InstaMaker. Your custom icon appeared correctly. The drag and drop did appear to work but I was never able to get InstaMaker to finish processing. I was not sure if anything was reported in "show details” after listing the contents of the folder that was dropped because the InstaMaker window became unresponsive and never relinquished control. I had to “Quit WineCX"… which of course made it impossible to scroll the “show details” field. It did appear as if there might have been something reported as the scroll bar seemed to have a good bit of room to scroll. Looking at the Apple utility “Activity Monitor.app” I notice that one of the (multiple) wine64-preloader processes continued to run and consume 4.5 - 5.5% of the CPU. After waiting some time (5 or 10 minutes) I tried Quitting InstaMaker. This appeared to work although in one case the wine processes continued to be present in Activity Monitor. (In this instance, when restarting the computer, the wine64-preloader processes kept the restart from happening and needed to be force-quit.) I tested several times with similar "user results” (the installer didn’t build and InstaMaker appeared to be frozen with the indeterminant-progress indicator spinning. I restarted the computer after several of the tests but this made no difference. I had a similar experience when running InstaMaker inside Parallels Desktop running a 64 bit version of Windows 10. InstaMaker’s indeterminant-progress indicator began spinning and that was it. I restarted Windows and tried again but with the same result. I’m sorry that I don’t have happier (or more useful) information. — Scott > On Oct 11, 2022, at 3:01 AM, matthias rebbe via use-livecode wrote: > > Hi again, > > for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... > > The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. > > You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. > > sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app > > Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online > > sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. > > There will be some errors saying that some files were not readable. You can ignore that. > > After that you can open the app without any error message. > > Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. > > Windows > https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip > > macOS Wine app > https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg > > Regards, > Matthias > > > >> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- > > > >> ivecode : >> >> Dear all, >> >> i am happy to announce that an updated version of InstaMaker is available. >> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >> >> What is new >> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >> >> Downloads: >> macOS Wine version >> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >> >> Windows x64 >> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >> >> >> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >> >> Regards, >> Matthias >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at elementarysoftware.com Wed Oct 12 09:19:13 2022 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 12 Oct 2022 06:19:13 -0700 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> Message-ID: Rats! My mistake. I had meant to send this privately. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Oct 12, 2022, at 6:15 AM, scott--- via use-livecode wrote: > > Hello Matthias, > > I was away from my computer for while and so only recently able to test your latest build. Unfortunately I was unable to get either one of them to build an installer. > > First I tested the Wine packaged version of InstaMaker. Your custom icon appeared correctly. The drag and drop did appear to work but I was never able to get InstaMaker to finish processing. I was not sure if anything was reported in "show details” after listing the contents of the folder that was dropped because the InstaMaker window became unresponsive and never relinquished control. I had to “Quit WineCX"… which of course made it impossible to scroll the “show details” field. It did appear as if there might have been something reported as the scroll bar seemed to have a good bit of room to scroll. > > Looking at the Apple utility “Activity Monitor.app” I notice that one of the (multiple) wine64-preloader processes continued to run and consume 4.5 - 5.5% of the CPU. After waiting some time (5 or 10 minutes) I tried Quitting InstaMaker. This appeared to work although in one case the wine processes continued to be present in Activity Monitor. (In this instance, when restarting the computer, the wine64-preloader processes kept the restart from happening and needed to be force-quit.) I tested several times with similar "user results” (the installer didn’t build and InstaMaker appeared to be frozen with the indeterminant-progress indicator spinning. I restarted the computer after several of the tests but this made no difference. > > I had a similar experience when running InstaMaker inside Parallels Desktop running a 64 bit version of Windows 10. InstaMaker’s indeterminant-progress indicator began spinning and that was it. I restarted Windows and tried again but with the same result. > > I’m sorry that I don’t have happier (or more useful) information. > > — > Scott > >> On Oct 11, 2022, at 3:01 AM, matthias rebbe via use-livecode wrote: >> >> Hi again, >> >> for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... >> >> The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. >> >> You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. >> >> sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app >> >> Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online >> >> sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. >> >> There will be some errors saying that some files were not readable. You can ignore that. >> >> After that you can open the app without any error message. >> >> Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. >> >> Windows >> https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip >> >> macOS Wine app >> https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg >> >> Regards, >> Matthias >> >> >> >>> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- >> >> >> >>> ivecode : >>> >>> Dear all, >>> >>> i am happy to announce that an updated version of InstaMaker is available. >>> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >>> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >>> >>> What is new >>> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >>> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >>> >>> Downloads: >>> macOS Wine version >>> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >>> >>> Windows x64 >>> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >>> >>> >>> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >>> >>> Regards, >>> Matthias >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Wed Oct 12 10:18:37 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 12 Oct 2022 17:18:37 +0300 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: Hello Klaus, Nothing should have changed between 9.6.8 and 9.6.9 rc1 RE legacy/adaptive icons. I guess you see this difference because either of these has changed: - the android device - the android version on the same device - the default launcher app - something else :) I believe that if you rebuild the same app with 9.6.8 you'll see the same results as with 9.6.9 rc1 if you deploy to the same android device. Kind regards, Panos On Wed, 12 Oct 2022 at 16:13, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 12.10.2022 um 15:08 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Klaus, > > > > What you see is the expected result. In fact, this is the reason one has > to > > use adaptive icons. You can use adaptive icons for non Google Play Store > > apps as well. > > > > So, when you use a legacy icon, which is a square png, this does not > > guarantee that the app icon in the Home screen will appear as a square > > icon. If the app launcher shows all icons as e.g. circle icons, or as > round > > rectangles, then there are two possible outcomes when you provide a > legacy > > icon: > > - either your app will stand out from the others (in a negative sense) > > because it will appear as the square icon among circle icons > > - or your app icon will appear as a circle that has the original square > > icon in it. > > I hope this makes sense :) > > yes, perfectly, thank you! > > So LC 9.6.8 did not behave as it should? > I mean the legacy icon looked as exspected on Android in 9.6.8 > and I did not change anythings since then, read update Android Studio > or something. > > > Kind regards, > > Panos > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Wed Oct 12 10:22:48 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 12 Oct 2022 16:22:48 +0200 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: <7C2F0D0F-9BA2-412A-A497-DD26EC0134AF@major-k.de> Hi Panos, > Am 12.10.2022 um 16:18 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > Nothing should have changed between 9.6.8 and 9.6.9 rc1 RE legacy/adaptive > icons. > > I guess you see this difference because either of these has changed: > - the android device > - the android version on the same device > - the default launcher app > - something else :) > > I believe that if you rebuild the same app with 9.6.8 you'll see the same > results as with 9.6.9 rc1 if you deploy to the same android device. OK, anyway, I'll vote for "something else" :-D Thanks! > Kind regards, > Panos Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From MikeKerner at roadrunner.com Wed Oct 12 10:49:41 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Oct 2022 10:49:41 -0400 Subject: clearing a polygrid/polylist Message-ID: How do you clear a polylist/polygrid? set the tsvdata of widget 1 to empty # throws an error -- 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." From matthias_livecode_150811 at m-r-d.de Wed Oct 12 11:15:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 12 Oct 2022 17:15:59 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> Message-ID: No problem. I've answered to your private email. > Am 12.10.2022 um 15:19 schrieb scott--- via use-livecode : > > Rats! My mistake. > > I had meant to send this privately. > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > > >> On Oct 12, 2022, at 6:15 AM, scott--- via use-livecode wrote: >> >> Hello Matthias, >> >> I was away from my computer for while and so only recently able to test your latest build. Unfortunately I was unable to get either one of them to build an installer. >> >> First I tested the Wine packaged version of InstaMaker. Your custom icon appeared correctly. The drag and drop did appear to work but I was never able to get InstaMaker to finish processing. I was not sure if anything was reported in "show details” after listing the contents of the folder that was dropped because the InstaMaker window became unresponsive and never relinquished control. I had to “Quit WineCX"… which of course made it impossible to scroll the “show details” field. It did appear as if there might have been something reported as the scroll bar seemed to have a good bit of room to scroll. >> >> Looking at the Apple utility “Activity Monitor.app” I notice that one of the (multiple) wine64-preloader processes continued to run and consume 4.5 - 5.5% of the CPU. After waiting some time (5 or 10 minutes) I tried Quitting InstaMaker. This appeared to work although in one case the wine processes continued to be present in Activity Monitor. (In this instance, when restarting the computer, the wine64-preloader processes kept the restart from happening and needed to be force-quit.) I tested several times with similar "user results” (the installer didn’t build and InstaMaker appeared to be frozen with the indeterminant-progress indicator spinning. I restarted the computer after several of the tests but this made no difference. >> >> I had a similar experience when running InstaMaker inside Parallels Desktop running a 64 bit version of Windows 10. InstaMaker’s indeterminant-progress indicator began spinning and that was it. I restarted Windows and tried again but with the same result. >> >> I’m sorry that I don’t have happier (or more useful) information. >> >> — >> Scott >> >>> On Oct 11, 2022, at 3:01 AM, matthias rebbe via use-livecode wrote: >>> >>> Hi again, >>> >>> for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... >>> >>> The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. >>> >>> You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. >>> >>> sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app >>> >>> Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online >>> >>> sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. >>> >>> There will be some errors saying that some files were not readable. You can ignore that. >>> >>> After that you can open the app without any error message. >>> >>> Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. >>> >>> Windows >>> https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip >>> >>> macOS Wine app >>> https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg >>> >>> Regards, >>> Matthias >>> >>> >>> >>>> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- >>> >>> >>> >>>> ivecode : >>>> >>>> Dear all, >>>> >>>> i am happy to announce that an updated version of InstaMaker is available. >>>> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >>>> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >>>> >>>> What is new >>>> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >>>> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >>>> >>>> Downloads: >>>> macOS Wine version >>>> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >>>> >>>> Windows x64 >>>> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >>>> >>>> >>>> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >>>> >>>> Regards, >>>> Matthias >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Wed Oct 12 15:47:42 2022 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 12 Oct 2022 20:47:42 +0100 Subject: clearing a polygrid/polylist In-Reply-To: References: Message-ID: <47c69815-262d-42c6-2c14-7e54a722235c@tweedly.net> For polygrid    set the pgdata of widget 1 to empty For polylist   set the datacontent of widget 2 to empty BUT beware - on my trivial test, this appears to cause the last character of the header to be removed !! I'll investigate some more and bug report it if it seems consistent. Alex On 12/10/2022 15:49, Mike Kerner via use-livecode wrote: > How do you clear a polylist/polygrid? > set the tsvdata of widget 1 to empty # throws an error > From MikeKerner at roadrunner.com Wed Oct 12 18:07:19 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Oct 2022 18:07:19 -0400 Subject: clearing a polygrid/polylist In-Reply-To: <47c69815-262d-42c6-2c14-7e54a722235c@tweedly.net> References: <47c69815-262d-42c6-2c14-7e54a722235c@tweedly.net> Message-ID: my original report is 23975, if you want to piggyback On Wed, Oct 12, 2022 at 3:48 PM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > For polygrid > > set the pgdata of widget 1 to empty > > For polylist > > set the datacontent of widget 2 to empty > > BUT beware - on my trivial test, this appears to cause the last > character of the header to be removed !! > > I'll investigate some more and bug report it if it seems consistent. > > Alex > > > On 12/10/2022 15:49, Mike Kerner via use-livecode wrote: > > How do you clear a polylist/polygrid? > > set the tsvdata of widget 1 to empty # throws an error > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From dan at clearvisiontech.com Wed Oct 12 18:40:15 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Oct 2022 22:40:15 +0000 Subject: Printing Woes Message-ID: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> I am getting several reports of clients that can't print from my Mac app built with 9.6.8. When we call "answer page setup", nothing happens (and the result is empty). It doesn’t happen on all computers... some work and some don’t. Anyone have any thoughts, insights or ideas? -Dan From matthias_livecode_150811 at m-r-d.de Wed Oct 12 19:35:37 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 13 Oct 2022 01:35:37 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Message-ID: <9006681F-7579-43BA-84D2-A22B730B3F9C@m-r-d.de> Hi again, this is my last post about this topic. I promise. ;) I've updated the InstaMaker download files on the server and deactivated the previous links. This are the new versions macOS https://dl.qck.nu/?dl=InstaMaker_macOS_Wine.zip Windows https://dl.qck.nu/?dl=InstaMaker_Win_x64_Setup.exe Or just visit https://instamaker.dermattes.de Regards Matthias > Am 11.10.2022 um 12:01 schrieb matthias rebbe via use-livecode : > > Hi again, > > for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... > > The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. > > You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. > > sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app > > Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online > > sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. > > There will be some errors saying that some files were not readable. You can ignore that. > > After that you can open the app without any error message. > > Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. > > Windows > https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip > > macOS Wine app > https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg > > Regards, > Matthias > > > >> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- > > > >> ivecode : >> >> Dear all, >> >> i am happy to announce that an updated version of InstaMaker is available. >> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >> >> What is new >> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >> >> Downloads: >> macOS Wine version >> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >> >> Windows x64 >> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >> >> >> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >> >> Regards, >> Matthias >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Thu Oct 13 05:28:36 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 12:28:36 +0300 Subject: Printing Woes In-Reply-To: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> Message-ID: Hello Dan, What is the MacOS version of the computers where "answer page setup" fails? Do they have anything else in common? Does the Console app show anything suspicious? Kind regards, Panos On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am getting several reports of clients that can't print from my Mac app > built with 9.6.8. When we call "answer page setup", nothing happens (and > the result is empty). It doesn’t happen on all computers... some work and > some don’t. Anyone have any thoughts, insights or ideas? > > -Dan > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Thu Oct 13 08:01:19 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 13 Oct 2022 14:01:19 +0200 Subject: Adaptive Icon for Android Message-ID: <388B884E-36BD-45FE-9147-F8812C1D26BE@major-k.de> Hi friends, I try to create an adaptive icon according to the LC lesson: LC 9.6.9 RC1, Android Studio 2021.3, macOS 12.6 However I get either: the generic ic-launcher icon or an error from LC telling me that an icon was not found in: AndroidManifest.xml I do not seem to be a able to get rid of this "ic-launcher" stuff, what am I doing wrong? Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jbv at souslelogo.com Thu Oct 13 08:15:31 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Thu, 13 Oct 2022 08:15:31 -0400 Subject: LC -> Applescript -> Chrome In-Reply-To: <892b479b4261350152cc06d568d7e47b@souslelogo.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> Message-ID: <7d94d0a1968f107874a31509e07235df@souslelogo.com> If anyone's interested, I think I have found the cause of my problem with Applescript in LC, and more specifically with the "click at" command. For months I've been using MouseTools as Terminal/shell application to emulate keyboard and/or mouse events. AFAIK MouseTools is pretty old and hasn't been updated in ages, and a recent Mac OSX update might have made its behavior erratic. Therefore I have switched to cliclick (https://www.bluem.net/), whose last update is from 2021 and that is much more easier to use, and things have improved (as far as I can see). Best From matthias_livecode_150811 at m-r-d.de Thu Oct 13 08:29:23 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 13 Oct 2022 14:29:23 +0200 Subject: LC -> Applescript -> Chrome In-Reply-To: <7d94d0a1968f107874a31509e07235df@souslelogo.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> <7d94d0a1968f107874a31509e07235df@souslelogo.com> Message-ID: > Am 13.10.2022 um 14:15 schrieb jbv via use-livecode : > > Therefore I have switched to cliclick (https://www.bluem.net/), > whose last update is from 2021 and that is much more easier to use, There is a newer version available. Github lists version 5.1 released 2022-08-14 https://github.com/BlueM/cliclick/releases > and things have improved (as far as I can see). > > Best > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Thu Oct 13 09:24:36 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 13 Oct 2022 13:24:36 +0000 Subject: Printing Woes In-Reply-To: References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> Message-ID: <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> Panos, The common denominator seems to be a Macbook Air. One client said: "We are using on Macintosh computers (2021 Macbook Air and Mac Studio desktops) and are seeing that the Page Setup and Print buttons do not seem to do anything." Another: "I am getting more inquiries about teachers not being able to print. They can run RCM on their MacBook Air but they cannot print. Their macOS is 10.14.6." Another was on a MacBook Air (2017), macOS 12.6. What do you mean by "Does the Console app show anything suspicious?" -Dan On 10/13/22, 2:30 AM, "use-livecode on behalf of panagiotis m via use-livecode" wrote: Hello Dan, What is the MacOS version of the computers where "answer page setup" fails? Do they have anything else in common? Does the Console app show anything suspicious? Kind regards, Panos On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am getting several reports of clients that can't print from my Mac app > built with 9.6.8. When we call "answer page setup", nothing happens (and > the result is empty). It doesn’t happen on all computers... some work and > some don’t. Anyone have any thoughts, insights or ideas? > > -Dan From merakosp at gmail.com Thu Oct 13 13:21:11 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 20:21:11 +0300 Subject: Adaptive Icon for Android In-Reply-To: <388B884E-36BD-45FE-9147-F8812C1D26BE@major-k.de> References: <388B884E-36BD-45FE-9147-F8812C1D26BE@major-k.de> Message-ID: Hello Klaus, What have you chosen as a Foreground layer (image, clip art or text) and what as a Background layer (color or image)? In fact, I suggest you file a report in quality.livecode.com and attach the sample stack and the icons so that we can investigate further. If the stack/icons are confidential feel free to email them to me directly Kind regards, Panos On Thu, 13 Oct 2022 at 15:01, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi friends, > > I try to create an adaptive icon according to the LC lesson: > < > https://lessons.livecode.com/m/4069/l/1496759-how-to-create-and-use-adaptive-icons-on-android > > > LC 9.6.9 RC1, Android Studio 2021.3, macOS 12.6 > > However I get either: > the generic ic-launcher icon > or > an error from LC telling me that an icon was not found in: > AndroidManifest.xml > > I do not seem to be a able to get rid of this "ic-launcher" stuff, > what am I doing wrong? > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Thu Oct 13 13:31:28 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 20:31:28 +0300 Subject: Printing Woes In-Reply-To: <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> Message-ID: Hello Dan, Thanks. You can open the Console app (/Applications/Utilities/Console), choose the current Mac in the Devices section (at the left) and filter the logs based on the standalone app id. The logs are showing in real time, so in your standalone app trigger a "answer page setup" command and check at this point if anything "suspicious" appears at the logs, such as an exception, an error or such. Hope this helps Kind regards, Panos -- On Thu, 13 Oct 2022 at 16:24, Dan Friedman wrote: > Panos, > > The common denominator seems to be a Macbook Air. > > One client said: "We are using on Macintosh computers (2021 Macbook Air > and Mac Studio desktops) and are seeing that the Page Setup and Print > buttons do not seem to do anything." > > Another: "I am getting more inquiries about teachers not being able to > print. They can run RCM on their MacBook Air but they cannot print. Their > macOS is 10.14.6." > > Another was on a MacBook Air (2017), macOS 12.6. > > What do you mean by "Does the Console app show anything suspicious?" > > > -Dan > > > > On 10/13/22, 2:30 AM, "use-livecode on behalf of panagiotis m via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Hello Dan, > > What is the MacOS version of the computers where "answer page setup" > fails? > Do they have anything else in common? Does the Console app show > anything > suspicious? > > Kind regards, > Panos > > On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I am getting several reports of clients that can't print from my Mac > app > > built with 9.6.8. When we call "answer page setup", nothing happens > (and > > the result is empty). It doesn’t happen on all computers... some > work and > > some don’t. Anyone have any thoughts, insights or ideas? > > > > -Dan > > From merakosp at gmail.com Thu Oct 13 14:54:50 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 21:54:50 +0300 Subject: Printing Woes In-Reply-To: References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> Message-ID: Hello Dan, Hmm interesting. I am wondering if it is a permissions issue / sandbox violation. How did you distribute this standalone? Was it via the AppStore? I am wondering if you had to sign it with the printing entitlement (com.apple.security.print) Also, it might be worth checking the System Settings -> Security and Privacy -> Privacy and see if the standalone has requested any special permissions (check probably the Full DIsk Access and the Automation sections). Kind regards, Panos On Thu, 13 Oct 2022 at 20:31, panagiotis m wrote: > Hello Dan, > > Thanks. You can open the Console app (/Applications/Utilities/Console), > choose the current Mac in the Devices section (at the left) and filter the > logs based on the standalone app id. The logs are showing in real time, so > in your standalone app trigger a "answer page setup" command and check at > this point if anything "suspicious" appears at the logs, such as an > exception, an error or such. > > Hope this helps > > Kind regards, > Panos > -- > > On Thu, 13 Oct 2022 at 16:24, Dan Friedman > wrote: > >> Panos, >> >> The common denominator seems to be a Macbook Air. >> >> One client said: "We are using on Macintosh computers (2021 Macbook Air >> and Mac Studio desktops) and are seeing that the Page Setup and Print >> buttons do not seem to do anything." >> >> Another: "I am getting more inquiries about teachers not being able to >> print. They can run RCM on their MacBook Air but they cannot print. Their >> macOS is 10.14.6." >> >> Another was on a MacBook Air (2017), macOS 12.6. >> >> What do you mean by "Does the Console app show anything suspicious?" >> >> >> -Dan >> >> >> >> On 10/13/22, 2:30 AM, "use-livecode on behalf of panagiotis m via >> use-livecode" > use-livecode at lists.runrev.com> wrote: >> >> Hello Dan, >> >> What is the MacOS version of the computers where "answer page setup" >> fails? >> Do they have anything else in common? Does the Console app show >> anything >> suspicious? >> >> Kind regards, >> Panos >> >> On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > I am getting several reports of clients that can't print from my >> Mac app >> > built with 9.6.8. When we call "answer page setup", nothing >> happens (and >> > the result is empty). It doesn’t happen on all computers... some >> work and >> > some don’t. Anyone have any thoughts, insights or ideas? >> > >> > -Dan >> >> From jbv at souslelogo.com Sun Oct 16 14:21:39 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sun, 16 Oct 2022 14:21:39 -0400 Subject: PHP -> curl -> LC Message-ID: <937208794402582b8d661c6e8c092b65@souslelogo.com> Hi list, In several of my web projects, I have a main php script that triggers various LC scripts for specific tasks that are often easier to code in xTalk. To trigger those LC scripts I use curl and urls in the form : https://domain.com/irev/script.lc?a=parameters But very often, the php and LC scripts are on the same server and on the same account, such as on-rev. Therefore I've always wondered if there was another way to trigger the LC scripts from PHP, like for example not using http, but "inside" the server, by addressing the LC script via "home/public_html/account/irev/script.lc" ... Of course, the idea is to be able to use parameters as well, and to return processed data. The main idea is : - to make the whole thing faster than via http - to keep things within the server and therefore more secure. Sorry if this sounds like a newbie question. Thank you in advance. jbv From stephen at barncard.com Sun Oct 16 17:32:42 2022 From: stephen at barncard.com (Stephen Barncard) Date: Sun, 16 Oct 2022 14:32:42 -0700 Subject: PHP -> curl -> LC In-Reply-To: <937208794402582b8d661c6e8c092b65@souslelogo.com> References: <937208794402582b8d661c6e8c092b65@souslelogo.com> Message-ID: Hi jbv, I think this can be done using the. [dot]htaccess file at the root of the website. I’ll try to dig up an example. On Sun, Oct 16, 2022 at 11:22 jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi list, > > In several of my web projects, I have a main php script that > triggers various LC scripts for specific tasks that are often > easier to code in xTalk. > To trigger those LC scripts I use curl and urls in the form : > https://domain.com/irev/script.lc?a=parameters > > But very often, the php and LC scripts are on the same server > and on the same account, such as on-rev. > Therefore I've always wondered if there was another way to > trigger the LC scripts from PHP, like for example not using > http, but "inside" the server, by addressing the LC script > via "home/public_html/account/irev/script.lc" ... > Of course, the idea is to be able to use parameters as well, > and to return processed data. > The main idea is : > - to make the whole thing faster than via http > - to keep things within the server and therefore more secure. > > Sorry if this sounds like a newbie question. > Thank you in advance. > > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From klaus at major-k.de Mon Oct 17 13:16:08 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Oct 2022 19:16:08 +0200 Subject: Mobile: Convert from screen to card coords Message-ID: Hi friends, I need some help, here a pic that shows my problem and my question: Brian Milby once provided a stack which does this, but I have to confess that I did not understand a word.. Thanks for any hints! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Mon Oct 17 13:53:59 2022 From: brian at milby7.com (Brian Milby) Date: Mon, 17 Oct 2022 13:53:59 -0400 Subject: Mobile: Convert from screen to card coords In-Reply-To: References: Message-ID: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. I think resizing to the actual screen is probably going to make more sense with that nav bar at the bottom. Brian Milby brian at milby7.com > On Oct 17, 2022, at 1:16 PM, Klaus major-k via use-livecode wrote: > > Hi friends, > > I need some help, here a pic that shows my problem and my question: > > > Brian Milby once provided a stack which does this, but I have to confess that I did > not understand a word.. > > Thanks for any hints! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Mon Oct 17 14:01:32 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Oct 2022 20:01:32 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> Message-ID: Hi Brian, > Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : > > Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. AH, YES! Thank you for your headsup, i always forget this fact! > In the image on the right, the nav bar is as low as it can go and receive touch interactions. > I think resizing to the actual screen is probably going to make more sense with that nav bar at the bottom. Yes, will try that. > Brian Milby > brian at milby7.com > >> On Oct 17, 2022, at 1:16 PM, Klaus major-k via use-livecode wrote: >> >> Hi friends, >> >> I need some help, here a pic that shows my problem and my question: >> >> >> Brian Milby once provided a stack which does this, but I have to confess that I did >> not understand a word.. >> >> Thanks for any hints! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From martyknappster at gmail.com Mon Oct 17 14:38:48 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 17 Oct 2022 11:38:48 -0700 Subject: Set behavior of standalone Message-ID: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> Is it possible to set the behavior of a standalone to an external script-only stack? I can't seem to get it to work. The goal is for me to be able to modify the behavior of our customer database app without having to recompile. What am I missing? Marty From paul at researchware.com Mon Oct 17 18:00:10 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Oct 2022 18:00:10 -0400 Subject: Long shot question about OpenCV Message-ID: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> Has anyone out there done any work at wrapping the OpenCV computer vision/image recognition open source library with LCB? See https://opencv.org/ I am particularly interested in simple face and/or object recognition in images - something where I can pass the library an image file (like a PNG) and it can return whether or not there is a face in the image and if yes/true, the rectangle within the image that bounds what it thinks is a face (or faces as I suppose it could return multiple rects). From ahsoftware at sonic.net Mon Oct 17 21:24:45 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 17 Oct 2022 18:24:45 -0700 Subject: Long shot question about OpenCV In-Reply-To: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> References: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> Message-ID: <578a037e-a113-1454-418c-b842c43f4981@sonic.net> On 10/17/22 15:00, Paul Dupuis via use-livecode wrote: > Has anyone out there done any work at wrapping the OpenCV computer > vision/image recognition open source library with LCB? > See https://opencv.org/ > > I am particularly interested in simple face and/or object recognition in > images - something where I can pass the library an image file (like a > PNG) and it can return whether or not there is a face in the image and > if yes/true, the rectangle within the image that bounds what it thinks > is a face (or faces as I suppose it could return multiple rects). Haven't tried this with LC (only done OpenCV with python), but for image recognition tensorflow is pretty easy to leverage with javascript. Takes a bit of training though. Might want to start with a pretrained model: https://basilebong.com/blog/image-recognition-with-tensorflow-js-1m74 -- Mark Wieder ahsoftware at gmail.com From jbv at souslelogo.com Tue Oct 18 04:19:12 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 18 Oct 2022 04:19:12 -0400 Subject: PHP -> curl -> LC In-Reply-To: References: <937208794402582b8d661c6e8c092b65@souslelogo.com> Message-ID: <7eaf9e1fe6d06a0318714a6014cc7b91@souslelogo.com> Hi Stephen, Thank you for your answer. Yes, I would be interested in some example using .htaccess, although my file is already full of rewriting rules and I'm afraid that it would add some conflicts... Best Le 2022-10-16 17:32, Stephen Barncard via use-livecode a crit : > Hi jbv, > > I think this can be done using the. [dot]htaccess file at the root of > the > website. > > Ill try to dig up an example. > > > On Sun, Oct 16, 2022 at 11:22 jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi list, >> >> In several of my web projects, I have a main php script that >> triggers various LC scripts for specific tasks that are often >> easier to code in xTalk. >> To trigger those LC scripts I use curl and urls in the form : >> https://domain.com/irev/script.lc?a=parameters >> >> But very often, the php and LC scripts are on the same server >> and on the same account, such as on-rev. >> Therefore I've always wondered if there was another way to >> trigger the LC scripts from PHP, like for example not using >> http, but "inside" the server, by addressing the LC script >> via "home/public_html/account/irev/script.lc" ... >> Of course, the idea is to be able to use parameters as well, >> and to return processed data. >> The main idea is : >> - to make the whole thing faster than via http >> - to keep things within the server and therefore more secure. >> >> Sorry if this sounds like a newbie question. >> Thank you in advance. >> >> jbv >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> From preid at reidit.co.uk Tue Oct 18 07:10:40 2022 From: preid at reidit.co.uk (preid at reidit.co.uk) Date: Tue, 18 Oct 2022 12:10:40 +0100 Subject: Processing WAV file sample data In-Reply-To: References: Message-ID: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> Hi I'm developing a project that will manipulate WAV files. The source files will be in the following form: - WAV stereo (2-ch), 48kHz, 16bit 16kbit, 2-15 secs duration, uncompressed The output will be a series of chunks from the source files, each being WAV mono (1,2,3,4 channels), 16kHz, as long as desired, uncompressed Does anyone know of any LiveCode extensions that let you extract the sample data from existing WAV files and build new WAV files by combining existing WAV files? So I'm looking for something like: WAV2bin - exports from original WAV to binary sample data WAVproc - processes 1 or more binary sample data files bin2WAV - converts sample data files to WAV Note the chopping up of the WAV files should run under Linux (if possible), but Mac otherwise. Any further data manipulations must work under Linux , but Mac would be OK as a fallback. Thanks Peter From jbv at souslelogo.com Tue Oct 18 07:47:10 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 18 Oct 2022 07:47:10 -0400 Subject: Processing WAV file sample data In-Reply-To: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> References: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> Message-ID: Hi, I have been working on something similar : a stack that reads samples from wav mono files and displays waveforms in a graphic control. It works on Mac & Windows, but I haven't used it for a year, and AFAIR the code isn't too clean... Le 2022-10-18 07:10, Peter Reid via use-livecode a crit : > Hi > > I'm developing a project that will manipulate WAV files. > > The source files will be in the following form: - > WAV stereo (2-ch), 48kHz, 16bit 16kbit, 2-15 secs duration, > uncompressed > > The output will be a series of chunks from the source files, each being > WAV mono (1,2,3,4 channels), 16kHz, as long as desired, uncompressed > > Does anyone know of any LiveCode extensions that let you extract the > sample data from existing WAV files and build new WAV files by > combining existing WAV files? > > So I'm looking for something like: > > WAV2bin - exports from original WAV to binary sample data > > WAVproc - processes 1 or more binary sample data files > > bin2WAV - converts sample data files to WAV > > Note the chopping up of the WAV files should run under Linux (if > possible), but Mac otherwise. Any further data manipulations must work > under Linux , but Mac would be OK as a fallback. > > Thanks > > Peter > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Oct 18 08:08:13 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Oct 2022 08:08:13 -0400 Subject: Processing WAV file sample data In-Reply-To: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> References: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> Message-ID: <4b417731-fc16-f1ee-2811-a1649f5eb986@researchware.com> ffmpeg will do this. While a video tool, it has robust capabilities for manipulating audio track or just audio files. In one of the Livecode Global problem solving sessions this summer examples of using ffmpeg from LC was demonstrated and the sample stack is available if you subscribed to the Global conference series. On 10/18/2022 7:10 AM, Peter Reid via use-livecode wrote: > Hi > > I'm developing a project that will manipulate WAV files. > > The source files will be in the following form: - > WAV stereo (2-ch), 48kHz, 16bit 16kbit, 2-15 secs duration, uncompressed > > The output will be a series of chunks from the source files, each being > WAV mono (1,2,3,4 channels), 16kHz, as long as desired, uncompressed > > Does anyone know of any LiveCode extensions that let you extract the sample data from existing WAV files and build new WAV files by combining existing WAV files? > > So I'm looking for something like: > > WAV2bin - exports from original WAV to binary sample data > > WAVproc - processes 1 or more binary sample data files > > bin2WAV - converts sample data files to WAV > > Note the chopping up of the WAV files should run under Linux (if possible), but Mac otherwise. Any further data manipulations must work under Linux , but Mac would be OK as a fallback. > > Thanks > > Peter > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Oct 18 08:12:21 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Oct 2022 08:12:21 -0400 Subject: Long shot question about OpenCV In-Reply-To: <578a037e-a113-1454-418c-b842c43f4981@sonic.net> References: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> <578a037e-a113-1454-418c-b842c43f4981@sonic.net> Message-ID: On 10/17/2022 9:24 PM, Mark Wieder via use-livecode wrote: > On 10/17/22 15:00, Paul Dupuis via use-livecode wrote: >> Has anyone out there done any work at wrapping the OpenCV computer >> vision/image recognition open source library with LCB? >> See https://opencv.org/ >> >> I am particularly interested in simple face and/or object recognition >> in images - something where I can pass the library an image file >> (like a PNG) and it can return whether or not there is a face in the >> image and if yes/true, the rectangle within the image that bounds >> what it thinks is a face (or faces as I suppose it could return >> multiple rects). > > Haven't tried this with LC (only done OpenCV with python), but for > image recognition tensorflow is pretty easy to leverage with > javascript. Takes a bit of training though. Might want to start with a > pretrained model: > > https://basilebong.com/blog/image-recognition-with-tensorflow-js-1m74 > Thank you Mark From klaus at major-k.de Tue Oct 18 08:55:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 14:55:16 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> Message-ID: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> Hi Brian, I knew I forgot something... > Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : > > Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. OK, I definitively understand that! But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates and I have no idea how to „convert" these to CARD coordinates. We need that to move the bottom/top controls up or down if neccessary, know what I mean? Any hints very welcome! > ... > Brian Milby Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Tue Oct 18 09:05:03 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 18 Oct 2022 09:05:03 -0400 Subject: Mobile: Convert from screen to card coords In-Reply-To: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> References: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> Message-ID: <240446D4-32A9-43CC-A5A6-5EC1E48FCA6D@milby7.com> When you use “none” as the mode, then screen and card coordinates will be the same. When the app starts you should get a resizeStack that provides the opportunity to adjust the layout. Brian Milby brian at milby7.com > On Oct 18, 2022, at 8:56 AM, Klaus major-k via use-livecode wrote: > > Hi Brian, > > I knew I forgot something... > >> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >> >> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. > > OK, I definitively understand that! > > But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates > and I have no idea how to „convert" these to CARD coordinates. > > We need that to move the bottom/top controls up or down if neccessary, > know what I mean? Any hints very welcome! > >> ... >> Brian Milby > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de From klaus at major-k.de Tue Oct 18 09:08:41 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 15:08:41 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <240446D4-32A9-43CC-A5A6-5EC1E48FCA6D@milby7.com> References: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <240446D4-32A9-43CC-A5A6-5EC1E48FCA6D@milby7.com> Message-ID: <94AFBE30-F875-419A-A415-A589B03CB89D@major-k.de> Hi Brian, > Am 18.10.2022 um 15:05 schrieb Brian Milby via use-livecode : > > When you use “none” as the mode, then screen and card coordinates will be the same. 8-) > When the app starts you should get a resizeStack that provides the opportunity to adjust the layout. Forgot to mention that I will use "showall" as fullscreenmode. > Brian Milby > brian at milby7.com > >> On Oct 18, 2022, at 8:56 AM, Klaus major-k via use-livecode wrote: >> >> Hi Brian, >> >> I knew I forgot something... >> >>> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >>> >>> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. >> >> OK, I definitively understand that! >> >> But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates >> and I have no idea how to „convert" these to CARD coordinates. >> >> We need that to move the bottom/top controls up or down if neccessary, >> know what I mean? Any hints very welcome! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From marksmithhfx at gmail.com Tue Oct 18 09:12:13 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Oct 2022 14:12:13 +0100 Subject: Mobile: Convert from screen to card coords In-Reply-To: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> Message-ID: <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> Hi Klaus, I don’t use fullscreen mode anymore. It’s much better looking if you position all of the controls yourself. Here’s an example that should get you started… command layoutTheControls put safeAreaRect() into lSafeAreaRect -- the rect where it is safe to position all of the controls -- position the header bar set the width of widget "Header Bar" to item 3 of lSafeAreaRect -- right set the top of widget "Header Bar" to item 2 of lSafeAreaRect set the left of widget "Header Bar" to 0 -- position the nav bar group set the width of group "NavBar" to item 3 of lSafeAreaRect -- right set the bottom of group "NavBar" to item 4 of lSafeAreaRect set the height of group "NavBar" to the height of widget "Navigation Bar" set the left of group "NavBar" to 0 -- position the navigation bar (inside the group) set the width of widget "Navigation Bar" to the width of group "NavBar" -- right set the bottom of widget "Navigation Bar" to the bottom of group "NavBar" set the left of widget "Navigation Bar" to the left of group "NavBar" -- everything else gets positioned relative to lSafeAreaRect and other objects on the page -- for example, lets say you have a group you want to position below the header bar that is full width put 1961522 into tID set the width of group id tID to item 3 of lSafeAreaRect -- right set the height of group id tID to 44 set the top of group id tID to the bottom of widget "Header Bar" + 6 set the left of group id tID to 12 etc, until all the objects on the page are positioned. Then test on various simulated iPhones to see how it is working and adjust as necessary. > On Oct 18, 2022, at 1:55 PM, Klaus major-k via use-livecode wrote: > > Hi Brian, > > I knew I forgot something... > >> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >> >> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. > > OK, I definitively understand that! > > But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates > and I have no idea how to „convert" these to CARD coordinates. > > We need that to move the bottom/top controls up or down if neccessary, > know what I mean? Any hints very welcome! > >> ... >> Brian Milby > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Oct 18 09:39:14 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 15:39:14 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> Message-ID: <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Hi Mark, > Am 18.10.2022 um 15:12 schrieb Mark Smith : > > Hi Klaus, I don’t use fullscreen mode anymore. It’s much better looking if you position all of the controls yourself. Here’s an example that should get you started… > > command layoutTheControls > ... > set the left of group id tID to 12 > > etc, until all the objects on the page are positioned. Then test on various simulated iPhones to see how it is working > and adjust as necessary. yes, sure, but i'd like to avoid this and currently only need an answer to my question. > On Oct 18, 2022, at 1:55 PM, Klaus major-k via use-livecode wrote: >> >> Hi Brian, >> I knew I forgot something... >>> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >>> >>> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. >> >> OK, I definitively understand that! >> >> But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates >> and I have no idea how to „convert" these to CARD coordinates. >> >> We need that to move the bottom/top controls up or down if neccessary, >> know what I mean? Any hints very welcome! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Tue Oct 18 11:25:15 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 18 Oct 2022 11:25:15 -0400 Subject: Mobile: Convert from screen to card coords In-Reply-To: <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Message-ID: Klaus, My setBackground handler doesn't give a direct translation, but does start it. https://github.com/bwmilby/mobileDemo/blob/48b89b37aba41afb5a7b90cfc9bdbbca9e7f052c/mobileDemo_Scripts/stack_MobileDemo_card_id_1002.livecodescript#L105 Since we are talking about portrait on mobile, the extra space will always be in the height direction. That simplifies a few things. The height of the screen from the card perspective will be: put tCardW / (tScreenW / tScreenH) into tNewH You will need 3 things to calculate positions. A ratio for each direction and a height offset. put (tNewH - tCardH) / 2 into tHOffset -- 1/2 of the extra pixels with be at the top put tNewH / tScreenH into tHRatio -- convert screen pixels to card pixels put tCardW / tScreenW into tWRatio -- convert screen pixels to card pixels Using this, you should be able to calculate a card XY value from a screen XY value (safe XY for example). put (tScreenY * tHRatio) - tHOffset into tCardY put (tScreenX * tWRatio) into tCardX This is without testing though. I'll try to do a test to validate my method. And remember, that anything placed outside the bounds of the card will just be there for looks and probably won't respond to touch. Thanks, Brian On Tue, Oct 18, 2022 at 9:39 AM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mark, > > > yes, sure, but i'd like to avoid this and currently only need an answer to > my question. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > From klaus at major-k.de Tue Oct 18 11:31:23 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 17:31:23 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Message-ID: <9AD029D3-2833-446F-8A6C-68B0EB753923@major-k.de> Hi Brian, > Am 18.10.2022 um 17:25 schrieb Brian Milby via use-livecode : > > Klaus, > > My setBackground handler doesn't give a direct translation, but does start it. > https://github.com/bwmilby/mobileDemo/blob/48b89b37aba41afb5a7b90cfc9bdbbca9e7f052c/mobileDemo_Scripts/stack_MobileDemo_card_id_1002.livecodescript#L105 > > Since we are talking about portrait on mobile, the extra space will always > be in the height direction. That simplifies a few things. The height of > the screen from the card perspective will be: > put tCardW / (tScreenW / tScreenH) into tNewH > You will need 3 things to calculate positions. A ratio for each direction > and a height offset. > put (tNewH - tCardH) / 2 into tHOffset -- 1/2 of the extra pixels with > be at the top > put tNewH / tScreenH into tHRatio -- convert screen pixels to card pixels > put tCardW / tScreenW into tWRatio -- convert screen pixels to card > pixels > > Using this, you should be able to calculate a card XY value from a screen > XY value (safe XY for example). > put (tScreenY * tHRatio) - tHOffset into tCardY > put (tScreenX * tWRatio) into tCardX ah, thanks a bunch, I begin to understand, was always weak in math. 8-) > This is without testing though. I'll try to do a test to validate my method. Thank you very much! > And remember, that anything placed outside the bounds of the card > will just be there for looks and probably won't respond to touch. I think I really got it! > Thanks, I have to thank! > Brian Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From gcanyon at gmail.com Tue Oct 18 16:46:01 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 18 Oct 2022 13:46:01 -0700 Subject: Set behavior of standalone In-Reply-To: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> References: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> Message-ID: If you mean set the behavior *after* creating the standalone, that should be possible, but it won't stick. You would have to set it each time. If you mean set a behavior of a e.g. a stack or a card (or anything) before creating the standalone, then it should be possible and should be permanent. Is it possible you're seeing some sort of path issue? On Mon, Oct 17, 2022 at 11:39 AM Marty Knapp via use-livecode < use-livecode at lists.runrev.com> wrote: > Is it possible to set the behavior of a standalone to an external > script-only stack? I can't seem to get it to work. The goal is for me to be > able to modify the behavior of our customer database app without having to > recompile. What am I missing? > > Marty > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From craig at starfirelighting.com Tue Oct 18 17:13:28 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 18 Oct 2022 17:13:28 -0400 Subject: Set behavior of standalone In-Reply-To: References: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> Message-ID: <508BF507-DE00-4E8C-B261-916A6D93B7F0@starfirelighting.com> The script only stack behavior not only should be set before the standalone is built, it must not reside in the executable. Craig > On Oct 18, 2022, at 4:46 PM, Geoff Canyon via use-livecode wrote: > > If you mean set the behavior *after* creating the standalone, that should > be possible, but it won't stick. You would have to set it each time. If you > mean set a behavior of a e.g. a stack or a card (or anything) before > creating the standalone, then it should be possible and should be > permanent. Is it possible you're seeing some sort of path issue? > > On Mon, Oct 17, 2022 at 11:39 AM Marty Knapp via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Is it possible to set the behavior of a standalone to an external >> script-only stack? I can't seem to get it to work. The goal is for me to be >> able to modify the behavior of our customer database app without having to >> recompile. What am I missing? >> >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Oct 18 17:19:18 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Oct 2022 16:19:18 -0500 Subject: Easy Android adaptive icons Message-ID: <212acc76-a61a-e162-dde4-75d2c6a8ef62@hyperactivesw.com> For anyone struggling with Android adaptive icons, or who like me doesn't want to deal with Android Studio just to make a single icon, I found this: https://easyappicon.com/ It does work and is quick and easy. The Android icons are all placed in a single folder and I think you can probably just point the Standalone Settings to that folder, though I renamed it "res" in case LC is looking for the Android Studio naming convention. It also makes iOS icons which seem to come along automatically. Those are all in a second folder which you can ignore, trash, or use for cross platform development. I tried several different online icon utilities and this one worked best for me. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Wed Oct 19 11:39:27 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 19 Oct 2022 17:39:27 +0200 Subject: Mobile: Convert from screen to card coords = ALREADY BUILD-IN! In-Reply-To: References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Message-ID: <6C8CBD85-6514-4558-840B-9C055B4E6274@major-k.de> Hi Brian, Panos showed me the already build-in solution! Just use globalloc() and localloc() to translate to and from screencoordinates/card coordinates also on "Mobile"! Just tested and as far as I can tell this works a charme! :-) A typical "slap on the forehead" thingie... > Am 18.10.2022 um 17:25 schrieb Brian Milby via use-livecode : > > Klaus, > > My setBackground handler doesn't give a direct translation, but does start > it. > https://github.com/bwmilby/mobileDemo/blob/48b89b37aba41afb5a7b90cfc9bdbbca9e7f052c/mobileDemo_Scripts/stack_MobileDemo_card_id_1002.livecodescript#L105 > Since we are talking about portrait on mobile, the extra space will always > be in the height direction. That simplifies a few things. The height of > the screen from the card perspective will be: > put tCardW / (tScreenW / tScreenH) into tNewH > You will need 3 things to calculate positions. A ratio for each direction > and a height offset. > put (tNewH - tCardH) / 2 into tHOffset -- 1/2 of the extra pixels with > be at the top > put tNewH / tScreenH into tHRatio -- convert screen pixels to card pixels > put tCardW / tScreenW into tWRatio -- convert screen pixels to card > pixels > Using this, you should be able to calculate a card XY value from a screen > XY value (safe XY for example). > put (tScreenY * tHRatio) - tHOffset into tCardY > put (tScreenX * tWRatio) into tCardX > > This is without testing though. I'll try to do a test to validate my > method. And remember, that anything placed outside the bounds of the card > will just be there for looks and probably won't respond to touch. > > Thanks, > Brian Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Thu Oct 20 11:31:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Oct 2022 11:31:51 -0400 Subject: revZIP library... Message-ID: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive  add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. My best option may be to just add up the uncompressed sizes of the files involved. Any clever ideas welcome! From sean at pidigital.co.uk Thu Oct 20 12:04:39 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 20 Oct 2022 17:04:39 +0100 Subject: revZIP library... In-Reply-To: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> Message-ID: <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Do you have no success with the revZipDescribeItem() function. This should give the compressed size directly after compression. Sean > On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode wrote: > > In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. > > This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. > > I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. > > Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. > > On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? > > I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. > > My best option may be to just add up the uncompressed sizes of the files involved. > > Any clever ideas welcome! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Thu Oct 20 13:48:55 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 20 Oct 2022 13:48:55 -0400 Subject: QR Code reader for desktop? Message-ID: Hi Folks, I hope everyone is doing great. I'm searching for a working solution for reading or scanning qr codes on the desktop? Windows and MacOS reading = open image and interpret qr code scan = open camera and detect qr code in the camera output I think on desktop I need to do a "read" instead of scan. There is this library ... which does not seem to work anymore, it returns an error. https://github.com/portilla/yBarcode Also I found a post by HH (RIP) where he talked about a library he wrote and that it would be in the sample stacks, but I cannot find it there. Are there any other working solutions? Thanks in advance Tom From paul at researchware.com Thu Oct 20 13:57:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Oct 2022 13:57:23 -0400 Subject: revZIP library... In-Reply-To: <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: <92c15c78-a0f3-9ea0-8f6a-11257a1e9d00@researchware.com> Sean, Thank you. I was searching the dictionary for revZip and did not see revZipDescribeItem, but from your post, I have found it and will try it. And of course, now I can see it when I get a list of APIs by just entering revZip in the Dictionary, so it was either a temporary Dictionary glitch or more likely my eyes playing tricks on me. -- Paul On 10/20/2022 12:04 PM, Pi Digital via use-livecode wrote: > Do you have no success with the revZipDescribeItem() function. This should give the compressed size directly after compression. > > Sean > > >> On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode wrote: >> >> In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. >> >> This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. >> >> I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. >> >> Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. >> >> On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? >> >> I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. >> >> My best option may be to just add up the uncompressed sizes of the files involved. >> >> Any clever ideas welcome! >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Oct 20 15:48:43 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 20 Oct 2022 12:48:43 -0700 Subject: Long shot question about OpenCV In-Reply-To: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> References: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> Message-ID: <9a266c2d-d95c-d9fd-8023-650b04524efd@sonic.net> On 10/17/22 15:00, Paul Dupuis via use-livecode wrote: > Has anyone out there done any work at wrapping the OpenCV computer > vision/image recognition open source library with LCB? You might also be interested in the upcoming OpenCV Face Recognition library. https://opencv.org/opencv-face-recognition/ -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Thu Oct 20 19:38:35 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Oct 2022 19:38:35 -0400 Subject: revZIP library... In-Reply-To: <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: Unfortunately, revvZipDescribeItem only returns a meaningful value for the compressed_size of an item if the archive has already been compressed. A new archive is only compressed on revZipCloseArchive (typically at the end, once all items/files have been added using revZipAddItemWithFile archivePath, itemName, filePath) revZipDescribeItem(archivePath, itemName) -- This function returns a comma delimited list of details in the form: index, crc, size, mtime, compressed_size, compression_method. In a test, I get the following. Item 5 of the function revZipDescribeItem is -1 for new item added to a new archive. Item 3 is the size, which is the uncompressed size in bytes, which I could also get through the 'detailed files'. 20220520_Cole Video Crossties Grooming.mp4 : 0 :0,0,1881779936,1653078796,-1,none : -1 Cole massage 2021 12Dec06.mp4 : -1 :0,0,284857583,1638822998,-1,none : -2 Equine Discomfort Ethogram Illustrated.pdf : -2 :0,0,10318431,1652185660,-1,none : -3 Equine Discomfort Ethogram paper.pdf : -3 :278290080,0,12407958,1652184150,-1,none : -4 The Horse Grimace Pain Scale with Images and Explanations.png : -4 :0,0,1420824,1653940632,-1,none : -5 I think I just need to go back to adding up the uncompressed sizes, either via revZipDescribeItem's item 3 or the detailed files, and raise a warning if I get to 2GB On 10/20/2022 12:04 PM, Pi Digital via use-livecode wrote: > Do you have no success with the revZipDescribeItem() function. This should give the compressed size directly after compression. > > Sean > > >> On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode wrote: >> >> In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. >> >> This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. >> >> I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. >> >> Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. >> >> On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? >> >> I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. >> >> My best option may be to just add up the uncompressed sizes of the files involved. >> >> Any clever ideas welcome! >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu Oct 20 22:59:33 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Fri, 21 Oct 2022 03:59:33 +0100 Subject: revZIP library... In-Reply-To: References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: It must be creating a temp file or placing it in memory somewhere. Is there perhaps a way to hack that and find out how many bytes are being stored? Just thinking out loud before catching some zzz's. I hope you find some solution. Sean On Fri, 21 Oct 2022 at 00:38, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Unfortunately, revvZipDescribeItem only returns a meaningful value for > the compressed_size of an item if the archive has already been > compressed. A new archive is only compressed on revZipCloseArchive > (typically at the end, once all items/files have been added using > revZipAddItemWithFile archivePath, itemName, filePath) > > revZipDescribeItem(archivePath, itemName) -- This function returns a > comma delimited list of details in the form: index, crc, size, mtime, > compressed_size, compression_method. > > In a test, I get the following. Item 5 of the function > revZipDescribeItem is -1 for new item added to a new archive. Item 3 is > the size, which is the uncompressed size in bytes, which I could also > get through the 'detailed files'. > > 20220520_Cole Video Crossties Grooming.mp4 : 0 > :0,0,1881779936,1653078796,-1,none : -1 > Cole massage 2021 12Dec06.mp4 : -1 :0,0,284857583,1638822998,-1,none : -2 > Equine Discomfort Ethogram Illustrated.pdf : -2 > :0,0,10318431,1652185660,-1,none : -3 > Equine Discomfort Ethogram paper.pdf : -3 > :278290080,0,12407958,1652184150,-1,none : -4 > The Horse Grimace Pain Scale with Images and Explanations.png : -4 > :0,0,1420824,1653940632,-1,none : -5 > > I think I just need to go back to adding up the uncompressed sizes, > either via revZipDescribeItem's item 3 or the detailed files, and raise > a warning if I get to 2GB > > > On 10/20/2022 12:04 PM, Pi Digital via use-livecode wrote: > > Do you have no success with the revZipDescribeItem() function. This > should give the compressed size directly after compression. > > > > Sean > > > > > >> On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> In addition to the revZIP library, whether building for 32 bit Windows > standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on > archives it can open and a 2GB limit on what it can save, there appears to > be NO mechanism to get the compressed size of an item (file) in the > archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, > nor any other API in the dictionary lets you get the compressed size of > something after compressing it. > >> > >> This is especially annoying with the 2GB limit on saving an archive and > that error only occurs when you call revZipCloseArchive at the end. That > means if a user of your application tries to archive a list of file that > are 50GB or some even larger number the code happily compresses everyone, > going well over 2GB until it tries to close and save the archive at the end > and ONLY after all that wasted time do you get an error. > >> > >> I can obviously get the uncompressed size of each file (using detailed > files) and keep a running total and IF that total hist 2GB then stop a > process that MIGHT fail in the end. However, perhaps their uncompressed > files are 2.5GB but when compressed would be 1.8gb and work. > >> > >> Folks have already suggested abandoning the revZIP library and using > shell to invoke native command line tools (although no call backs for a > progress bar is possible with CLI tools, which, is a BIG disadvantage to > that approach for our users). However, I really wish the revZIP library > just worked right. > >> > >> On a long shot, does anyone know of a clever trick using the revZIP > library, to get the compressed size of an item after you compress it? > >> > >> I suppose I could open the archive, compress 1 item, close the archive, > check the size of the archive via detailed files, and then open the > archive add the nest compressed file, close, measure the size and so on, > but I feel the overhead would slow down and already slow process even > further. > >> > >> My best option may be to just add up the uncompressed sizes of the > files involved. > >> > >> Any clever ideas welcome! > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dvglasgow at gmail.com Fri Oct 21 04:55:02 2022 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 21 Oct 2022 09:55:02 +0100 Subject: OT Re: revZIP library... In-Reply-To: References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: > On 21 Oct 2022, at 12:38 am, Paul Dupuis via use-livecode wrote: > > The Horse Grimace Pain Scale with Images and Explanations.png "Oh that’s interesting!", I thought, so tracked it down on Researchgate. Should have carried a bad vasectomy experience trigger warning! David G From neville.smythe at optusnet.com.au Sun Oct 23 03:26:52 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 23 Oct 2022 18:26:52 +1100 Subject: fontNames woes Message-ID: My grand project to compile a database of cross-platform LC font metrics is slowly progressing, though rather hindered by bugs in LC. In particular fontNames() produces inconsistent results between Mac and Windows (and is not available in Linux) and worse can produce incorrect results on the Mac. To demonstrate, start using font file Akshar[wght].ttf, which is one of the Google opentype fonts. This file includes 5 style variations, which are certainly all quite different fonts in appearance. The naming and style conventions for fonts are so complex that the bug is understandable — but its still a bug. On the Mac, fontNames() produces Akshar Light Akshar Light Akshar Light Medium Akshar Light SemiBold Akshar Light Bold This is a bug: the first two are supposed to be references to quite different variations (a Regular and Light version of Akshar). Since they have the same name one of them cannot be accessed by setting textFont. This list does not match the MacOS knowledge of the font. On Windows, fontNames() produces Akshar This is perhaps not a bug, but gives no way to access the 4 non-Regular versions of the font; the variations would be accessed by a Windows user or app by setting a style variation, but this cannot be done in LC. It also does not match what the Windows system knows about the fonts in the family.. If you look at Akshar[wght].ttf in the Mac Font Book application, you find that the system says the name of the font family is Akshar, with fonts Akshar Regular Akshar Light Akshar Medium Akshar SemiBold Akshar Bold If you look at Akshar[wght].ttf in the Windows Font Manager application, you find that the system says the name of the font family is Akshar Light, with fonts Akshar Akshar Light Akshar Medium Akshar SemiBold Akshar Bold Using Linux the Fonts application (Ubuntu) the family name appears as Akshar, Light (note the comma) and with named variations Regular, Light, Bold, Medium, SemiBold The LC function fontNames() is not implemented in Linux but there is a shell command fc-list which explains a lot. After parsing a little we get Akshar,Akshar Light Akshar,Akshar Light:style=Regular Akshar,Akshar Light:style=Bold Akshar,Akshar Light:style=Medium Akshar,Akshar Light:style=SemiBold Akshar,Akshar Light:style=Light,Regular The items before the colon are alternative names for the font. The first line with no styles attached give the family names – 2 alternative names, Mac uses #2, Win uses #1. So fonts can have many names, often including non-Roman script names. They also can have multiple styles, many being international names of English style names. Akshar is actually a comparatively straightforward case. Which names should be returned by fontNames() for each platform is clearly a difficult problem. Apart from the bug in the Mac version of fontNames(), there may be problems, which I cannot yet pin down, with using custom fonts in Windows as well. A stack which works in the IDE crashes as a standalone, the error dialog returning a seemingly irrelevant line for the source of the error so likely it is in the engine somewhere and almost certainly to do with fontNames. Furthermore even in the IDE there may be a problem with stop using font file, as it does not seem to clear the font cache after multiple use, which means fontNames() returns stale values. Finally of course there is fontStyles(), which has been dead for years on the Mac, and even when it did work returned only plain, italic, bold, bold-italic instead of the actual available font style variations — and even if it did would be useless because you can’t set such styles within LC. A vast number of modern fonts are just inaccessible from LC. Neville Smythe From paul at researchware.com Sun Oct 23 16:52:17 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 23 Oct 2022 16:52:17 -0400 Subject: Printing (Preview in LC/screen vs Printer/PDF) Message-ID: I know this topic has been covered previously, probably many many times, but my search skills are failing me. We have a "printing stack" in our app that, among other things, provides a "Print Preview" view. This takes the printer margins, page size, orientation, etc and creates a stack with the dimensions of the page and some guidelines showing the margins, headers, footers, and so on. A rectangle "PrintArea", is set to the available print area inside the margins. Whatever is being printed is then placed inside this "PrintArea". So if the contents of a field is being printed a field is sized fit inside the "PrintArea" and bottom of the field is adjusted by the pageHeights. If am image is being printed, the image is scaled to fit inside the "PrintArea" and so on. All well and good, except for images. If I size and image to fit ON THE SCREEN within the "PrintArea" and then I print it (to a Printer OR to PDF, the image appear are roughly 1/4 size. I assume this is the 72/75 dpi screen resolutions being put on a 300 dpi PDF or printer? Is there some easy Livecode trick to just get images to print in a PDF or on paper at the same size as seen on the screen? Thank you in advance! From roland.huettmann at gmail.com Sun Oct 23 16:52:37 2022 From: roland.huettmann at gmail.com (R.H.) Date: Sun, 23 Oct 2022 22:52:37 +0200 Subject: fontName woes Message-ID: I can confirm that on my Windows 64bit no font substyles are working in LiveCode. This really needs to be addressed, but may not be of such high priority, I assume. The text engine used is not bad but probably outdated. Or, maybe I am wrong? Or are there just name conflicts? Roland From paul at researchware.com Sun Oct 23 17:54:50 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 23 Oct 2022 17:54:50 -0400 Subject: Printing (Preview in LC/screen vs Printer/PDF) In-Reply-To: References: Message-ID: A correction. The images are reduced to 1/4 size ONLY when printing to PDF on Windows (printing to paper results in the image at expected size) This could be specific to Windows and the PDF "printer" (Foxit) being used. More testing is required. Premature posting ;-) On 10/23/2022 4:52 PM, Paul Dupuis via use-livecode wrote: > I know this topic has been covered previously, probably many many > times, but my search skills are failing me. > > We have a "printing stack" in our app that, among other things, > provides a "Print Preview" view. This takes the printer margins, page > size, orientation, etc and creates a stack with the dimensions of the > page and some guidelines showing the margins, headers, footers, and so > on. A rectangle "PrintArea", is set to the available print area inside > the margins. Whatever is being printed is then placed inside this > "PrintArea". So if the contents of a field is being printed a field is > sized fit inside the "PrintArea" and bottom of the field is adjusted > by the pageHeights. If am image is being printed, the image is scaled > to fit inside the "PrintArea" and so on. > > All well and good, except for images. If I size and image to fit ON > THE SCREEN within the "PrintArea" and then I print it (to a Printer OR > to PDF, the image appear are roughly 1/4 size. I assume this is the > 72/75 dpi screen resolutions being put on a 300 dpi PDF or printer? > > Is there some easy Livecode trick to just get images to print in a PDF > or on paper at the same size as seen on the screen? > > Thank you in advance! > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 25 13:28:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 19:28:59 +0200 Subject: Anyone any experience with Livecode under Ventura? Message-ID: Hi, the topic says it all Does anyone have already experience with Livecode under Ventura? Are there any known problems/bugs or so? Regards, Matthias From colinholgate at gmail.com Tue Oct 25 13:36:40 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 25 Oct 2022 11:36:40 -0600 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: Message-ID: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> I’m using 9.6.3, and it seems to work ok in Ventura. > On Oct 25, 2022, at 11:28 AM, matthias rebbe via use-livecode wrote: > > Hi, > > the topic says it all > > Does anyone have already experience with Livecode under Ventura? > Are there any known problems/bugs or so? > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 25 13:50:39 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 19:50:39 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> References: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> Message-ID: <29771525-CC72-42D4-B91D-31C002F7600D@m-r-d.de> Thanks Colin, then i will risk it to upgrade. ;) > Am 25.10.2022 um 19:36 schrieb Colin Holgate via use-livecode : > > I’m using 9.6.3, and it seems to work ok in Ventura. > > > >> On Oct 25, 2022, at 11:28 AM, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> the topic says it all >> >> Does anyone have already experience with Livecode under Ventura? >> Are there any known problems/bugs or so? >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Oct 25 13:54:32 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 25 Oct 2022 17:54:32 +0000 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <29771525-CC72-42D4-B91D-31C002F7600D@m-r-d.de> References: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> <29771525-CC72-42D4-B91D-31C002F7600D@m-r-d.de> Message-ID: <3A54B313-E408-4BD5-91FA-BD54CE1EAC4F@iotecdigital.com> If you have the resources, just do a Time Machine backup so you can recover if needed. I did an upgrade recently on my home iMac, and it completely borked the boot volume. Luckily I had a TM backup and it saved my arsenal. First time I've seen a MacOS upgrade bork a boot volume. Bob S > On Oct 25, 2022, at 10:50 , matthias rebbe via use-livecode wrote: > > Thanks Colin, then i will risk it to upgrade. ;) > > > >> Am 25.10.2022 um 19:36 schrieb Colin Holgate via use-livecode : >> >> I’m using 9.6.3, and it seems to work ok in Ventura. >> >> >> >>> On Oct 25, 2022, at 11:28 AM, matthias rebbe via use-livecode wrote: >>> >>> Hi, >>> >>> the topic says it all >>> >>> Does anyone have already experience with Livecode under Ventura? >>> Are there any known problems/bugs or so? >>> >>> Regards, >>> Matthias From irog at mac.com Tue Oct 25 14:02:35 2022 From: irog at mac.com (Roger Guay) Date: Tue, 25 Oct 2022 11:02:35 -0700 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: Message-ID: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> I just opened LC 10 on Ventura with no problem Cheers Roger > On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode wrote: > > Hi, > > the topic says it all > > Does anyone have already experience with Livecode under Ventura? > Are there any known problems/bugs or so? > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Oct 25 14:08:40 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 25 Oct 2022 21:08:40 +0300 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> References: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> Message-ID: I have been using 9.6.3 and 8.1.10 through all the beta versions of Mac OS 13, and there was a minor blip 3 betas back, and I sent a report about it to Apple. Since then, as far as I can tell, both of those versions work like a charm. On Tue, 25 Oct 2022, 21:03 Roger Guay via use-livecode, < use-livecode at lists.runrev.com> wrote: > I just opened LC 10 on Ventura with no problem > > Cheers > Roger > > > On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, > > > > the topic says it all > > > > Does anyone have already experience with Livecode under Ventura? > > Are there any known problems/bugs or so? > > > > Regards, > > Matthias > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From williamdesmet at gmail.com Tue Oct 25 14:08:22 2022 From: williamdesmet at gmail.com (William de Smet) Date: Tue, 25 Oct 2022 20:08:22 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> References: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> Message-ID: LC 9.6.9 (rc1) and LC 10.0.0. (dp4) works fine with me on Ventura. I had Xcode 13.2.1 installed but that version does not work anymore. I wonder which Xcode version I need now. Which Xcode version works with LC now? groeten, William Op di 25 okt. 2022 om 20:03 schreef Roger Guay via use-livecode < use-livecode at lists.runrev.com>: > I just opened LC 10 on Ventura with no problem > > Cheers > Roger > > > On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, > > > > the topic says it all > > > > Does anyone have already experience with Livecode under Ventura? > > Are there any known problems/bugs or so? > > > > Regards, > > Matthias > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hlowe at me.com Tue Oct 25 15:56:23 2022 From: hlowe at me.com (HENRY LOWE) Date: Tue, 25 Oct 2022 12:56:23 -0700 Subject: iPadOS 16.1 and Stage Manager Message-ID: <1158BAA3-E6FB-4FE1-BC9B-8F55C36D67FB@me.com> I have an iOS Livecode 9.6.8 app that runs on both iPhone and iPad. The app uses custom code to handle screen redraws on launch (screen size varies by device) and when a device's orientation changes. Tested the app today on an iPad running iPadOS 16.1 with Stage Manager active. Stage manager is a new (optional) multitasking system available in iPadOS 16.1 and MacOS Ventura. Of significance here is that Stage Manager allows the user to resize the app window by dragging a control in the bottom right corner of the app window. Prior to Stage Manager iPad app windows could not be manually resized. Under Stage Manager on iPad my app did not redraw correctly when the app’s window was manually resized. However adding a ResizeStack handler that called the appropriate redraw routines fixed the issue, though the screen redrawing is not a smooth as I would like. If you have a LC app that runs on the iPad you may need to handle user-controlled stack resizing under Stage Manager. In the course of investigating this issue I also discovered that you can use the latest Xcode simulators (version 14.1) to test Livecode apps on new iPhone and iPad device simulators. To do so: 1. Rename the version of the Xcode app required by Livecode (e.g. version 13.2) to 'Xcode 13.2’. 2. In Livecode Preferences -> Mobile Support select the Xcode 13.2 app as the location for iOS SDKs. 3. Download version Xcode 14.1 RC2 from the Apple Developer site. 4. When Xcode 14.1 is installed as Xcode app in the applications folder, launch Xcode and select ‘Simulator’ from the Xcode -> Open Developer Tool menu. 5. In the dock, control click (right click) on the Simulator icon select Options -> Keep in Dock - this allows you to launch the Simulator app at will. 6. With the desired simulated device open use Livecode’s Development -> Test to launch your app in the open Simulator. This has worked fine for me so far! Also (as others have pointed out), the Xcode 13.2 app is disabled under Mac OS Ventura. You can still select it as the source of Livecode’s iOS SDKs but you cannot launch the app. Henry Ascriva Health Informatics From matthias_livecode_150811 at m-r-d.de Tue Oct 25 16:38:08 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 22:38:08 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> Message-ID: <3B807CD8-0E0C-41EC-96BA-834AE875C15E@m-r-d.de> I just upgraded to Ventura and noticed that only Xcode 14 can be opened on Ventura. As LC 9.6.9 needs Xcode 13.2 on macOS 11 and above you can still use Xcode 13.2 in LC. Just add the "old" Xcode 13.2 app in LC preferences under Mobile Support and also change the path of the active developer directory back to Xcode 13.2 by running this command in Terminal sudo xcode-select -s > Am 25.10.2022 um 20:08 schrieb William de Smet via use-livecode : > > LC 9.6.9 (rc1) and LC 10.0.0. (dp4) works fine with me on Ventura. > > I had Xcode 13.2.1 installed but that version does not work anymore. > I wonder which Xcode version I need now. > Which Xcode version works with LC now? > > > > > groeten, > > William > > > > > Op di 25 okt. 2022 om 20:03 schreef Roger Guay via use-livecode < > use-livecode at lists.runrev.com>: > >> I just opened LC 10 on Ventura with no problem >> >> Cheers >> Roger >> >>> On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi, >>> >>> the topic says it all >>> >>> Does anyone have already experience with Livecode under Ventura? >>> Are there any known problems/bugs or so? >>> >>> Regards, >>> Matthias >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 25 16:39:01 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 22:39:01 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: Message-ID: <463275ED-DDD2-449F-B583-56E953B335CB@m-r-d.de> Thanks to all confirming that LC runs fine under Ventura. I've upgraded now and i am now testing.... Regards, Matthias > Am 25.10.2022 um 19:28 schrieb matthias rebbe via use-livecode : > > Hi, > > the topic says it all > > Does anyone have already experience with Livecode under Ventura? > Are there any known problems/bugs or so? > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Wed Oct 26 07:43:33 2022 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 26 Oct 2022 12:43:33 +0100 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <463275ED-DDD2-449F-B583-56E953B335CB@m-r-d.de> References: <463275ED-DDD2-449F-B583-56E953B335CB@m-r-d.de> Message-ID: <52FA73D4-E568-4D8D-BF5F-FD3A23DE9C2F@andregarzia.com> Just to flag a different experience here. I can’t get the simulator to launch under Ventura on a Macbook Air M1. I have Xcode 13.2 installed and have “xcode-select” set to it. The preferences for mobile development are set correctly and when I try to launch a mobile app for testing on the simulator it gets stuck in the “launching app” dialog forever. And yes, I tried launching the simulator manually by going inside the bundle and the simulator is working fine. > On 25 Oct 2022, at 21:39, matthias rebbe via use-livecode wrote: > > Thanks to all confirming that LC runs fine under Ventura. > > I've upgraded now and i am now testing.... > > > Regards, > Matthias > > >> Am 25.10.2022 um 19:28 schrieb matthias rebbe via use-livecode : >> >> Hi, >> >> the topic says it all >> >> Does anyone have already experience with Livecode under Ventura? >> Are there any known problems/bugs or so? >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Oct 27 15:40:58 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 27 Oct 2022 15:40:58 -0400 Subject: Export Snapshot (macOS) and XPDF External bugs? Message-ID: <802e8f17-fb81-5409-114d-814ad139a5d8@researchware.com> Combining two unrelated topics in one message: 1) I am seeing a bug under macOS in the export snapshot (of a player object) command. This is under LC 9.6.7 (and I think 9.6.8). We have a routine that takes a list of time codes in a movie, loads the movie into a player object, set the currentTime to each time code, uses export snapshot of the player to grab the displayed frame, and returns an array of the images. The possible bug is that occasionally one of the images returned will be rotated 90 degrees. We have NO code that rotates the image and the movie, from start to finish, does not not change the camera orientation. I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this? Is it a known bug? 2) Unrelated to the above, we also have a routine that takes a list of PDF image coordinates (5 number, the page number, and a rect on the page in PDF coordinates), loads the PDF using the XPDF EXTERNAL (XPDF-1.0.45, NOT the widget), goes to the page, and grabs the image, and returns an array of the images. The confirmed bug, is that the first time the XPDF Viewer is opened (via XPDFViewer_Open and then XPDFViewer_Set tName,"FILENAME",tFile to load the PDF file), the XPDF calls to grab the image:             put empty into tImageData             XPDFViewer_SelectImage tName,(item 1 of tRef),(item 2 of tRef),(item 3 of tRef),(item 4 of tRef),(item 5 of tRef)             XPDFViewer_GetSelectionImage tName, "tImageData"             put the result into tSize             set the width     of img "imageConvert" of stack "libHrAPI" to abs(item 1 of tSize)             set the height    of img "imageConvert" of stack "libHrAPI" to abs(item 2 of tSize)             set the imageData of img "imageConvert" of stack "libHrAPI" to tImageData             set the topLeft   of img "imageConvert" of stack "libHrAPI" to (0,0) return garbage in tImageData. The tize (tSize) is correct, but the image is not. This has a WORK-AROUND as this only occurs the first time the XPDF viewer is opened. So, if I am asking for images, I have a conditional that closes the XPDF External viewer (via XPDFViewer_Close tName) and then opens the PDF again behind the scenes. This causes all the returned PDF images to be correct for the same code. Again, I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this one? Is it also a known bug? Thank you in advance for any info of whether you have seen these possible bugs or know if the are related to an existing issue From matthias_livecode_150811 at m-r-d.de Fri Oct 28 01:23:41 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 28 Oct 2022 07:23:41 +0200 Subject: Export Snapshot (macOS) and XPDF External bugs? Message-ID: <2FCEC651-2788-4717-87FF-9B523D67591D@m-r-d.de> Hi Paul, regarding your export problem. How many snapshots per video are created? I just did a 3 tests here with a 123 minutes video (7418646 intervals with a timescale of 1000, .mp4 format) in 9.6.9RC1 and 9.6.8. and used a repeat loop to set the currentTime to create a snapshot on hard disk every 5, 3 and 1 minutes. In all cases it worked here. No snapshot was rotated. My export command was export snapshot from Player "myPlayer" to file ("~/downloads/livecodeexport/" & tCurrentTime & ".png") as PNG Is your snapshot command similar? Or are you using a mask or an other format? Are there more then 120 snapshots per video file? I tested here with a mac Studio on macOS 13.0 running LC both in x86 and native ARM mode. Regards, Matthias > Am 27.10.2022 um 21:40 schrieb Paul Dupuis via use-livecode : > > Combining two unrelated topics in one message: > > 1) I am seeing a bug under macOS in the export snapshot (of a player object) command. This is under LC 9.6.7 (and I think 9.6.8). We have a routine that takes a list of time codes in a movie, loads the movie into a player object, set the currentTime to each time code, uses export snapshot of the player to grab the displayed frame, and returns an array of the images. > > The possible bug is that occasionally one of the images returned will be rotated 90 degrees. We have NO code that rotates the image and the movie, from start to finish, does not not change the camera orientation. > > I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this? Is it a known bug? > > 2) Unrelated to the above, we also have a routine that takes a list of PDF image coordinates (5 number, the page number, and a rect on the page in PDF coordinates), loads the PDF using the XPDF EXTERNAL (XPDF-1.0.45, NOT the widget), goes to the page, and grabs the image, and returns an array of the images. > > The confirmed bug, is that the first time the XPDF Viewer is opened (via XPDFViewer_Open and then XPDFViewer_Set tName,"FILENAME",tFile to load the PDF file), the XPDF calls to grab the image: > put empty into tImageData > XPDFViewer_SelectImage tName,(item 1 of tRef),(item 2 of tRef),(item 3 of tRef),(item 4 of tRef),(item 5 of tRef) > XPDFViewer_GetSelectionImage tName, "tImageData" > put the result into tSize > set the width of img "imageConvert" of stack "libHrAPI" to abs(item 1 of tSize) > set the height of img "imageConvert" of stack "libHrAPI" to abs(item 2 of tSize) > set the imageData of img "imageConvert" of stack "libHrAPI" to tImageData > set the topLeft of img "imageConvert" of stack "libHrAPI" to (0,0) > return garbage in tImageData. The tize (tSize) is correct, but the image is not. > > This has a WORK-AROUND as this only occurs the first time the XPDF viewer is opened. So, if I am asking for images, I have a conditional that closes the XPDF External viewer (via XPDFViewer_Close tName) and then opens the PDF again behind the scenes. This causes all the returned PDF images to be correct for the same code. > > Again, I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this one? Is it also a known bug? > > Thank you in advance for any info of whether you have seen these possible bugs or know if the are related to an existing issue > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Fri Oct 28 07:58:47 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 28 Oct 2022 22:58:47 +1100 Subject: fontNames woes Message-ID: In my last post I alluded to an elusive problem on Windows 10 with the fontnames function. I think I have identified at least one circumstance where fontNames() causes a crash on Windows 10. If in a Windows standalone you call stop using font file foo.ttf and then try to get fontNames() without first calling start using font file bar.ttf for some font bar.ttf I get a crash (or, if I use a try wrapper or errorDialog handler, "error in statement get the fontNames”. Thereafter any call to fontNames will fail, so something is fatally corrupted). In the IDE the code works as if there had been no error but the list of fonts returned may be corrupted, it may for example contain foo.tff. The same code works without error on a Mac. Most apps will probably just start using some custom fonts when they launch, and then stop using them when cleaning up, so will not be affected by this bug. In my case I am examining a sequence of custom fonts, adding one at a time and removing it before processing the next. As it turns out I didn’t need to call fontNames() directly after stop using one font and before adding the next font. When this nugatory bit of code was rewritten it all worked happily - well, almost: in processing 4000 font files I still got that “error in statement” error 16 times, seemingly randomly and not fatally. Running the code again on just those 16 fonts had no problems, so it is not a case of corrupted fonts. Which means there is still a problem lurking there, my guess being that stop using font file can leave some font library in a fragile state. The Windows 10 system font cache is evidently well-known for being easily corrupted and perhaps that is what is going on here, but somehow I feel this is an LC problem because the font rendering itself seems to be OK. Anyway I have my data so I can ignore the problem for now: for those who came in late I am compiling a database of fonts to provide the different fontnames used by the 3 platforms for each font, and the lengths of rendered strings and their ascent and descent for cross-platform layout and vertical alignment. When that is done I shall put together a bug report for Quality Control. Neville Smythe From tom at makeshyft.com Fri Oct 28 23:17:06 2022 From: tom at makeshyft.com (Tom Glod) Date: Fri, 28 Oct 2022 23:17:06 -0400 Subject: fontNames woes In-Reply-To: References: Message-ID: Thanks Neville, for doing this research, noting your results in public and putting together the library of corresponding font names. Your effort will make it easier for livecode to fix things up. I have some plans for doing some more advanced font work, so I'm sure down the road it will help me also. Thanks again, Tom On Fri, Oct 28, 2022 at 8:00 AM Neville Smythe via use-livecode < use-livecode at lists.runrev.com> wrote: > In my last post I alluded to an elusive problem on Windows 10 with the > fontnames function. I think I have identified at least one circumstance > where fontNames() causes a crash on Windows 10. > > If in a Windows standalone you call > > stop using font file foo.ttf > > and then try to get fontNames() without first calling > > start using font file bar.ttf > > for some font bar.ttf > > I get a crash (or, if I use a try wrapper or errorDialog handler, "error > in statement get the fontNames”. Thereafter any call to fontNames will > fail, so something is fatally corrupted). In the IDE the code works as if > there had been no error but the list of fonts returned may be corrupted, > it may for example contain foo.tff. The same code works without error on a > Mac. > > Most apps will probably just start using some custom fonts when they > launch, and then stop using them when cleaning up, so will not be affected > by this bug. In my case I am examining a sequence of custom fonts, adding > one at a time and removing it before processing the next. > > As it turns out I didn’t need to call fontNames() directly after stop > using one font and before adding the next font. When this nugatory bit of > code was rewritten it all worked happily - well, almost: in processing 4000 > font files I still got that “error in statement” error 16 times, seemingly > randomly and not fatally. Running the code again on just those 16 fonts had > no problems, so it is not a case of corrupted fonts. Which means there is > still a problem lurking there, my guess being that stop using font file can > leave some font library in a fragile state. The Windows 10 system font > cache is evidently well-known for being easily corrupted and perhaps that > is what is going on here, but somehow I feel this is an LC problem because > the font rendering itself seems to be OK. > > Anyway I have my data so I can ignore the problem for now: for those who > came in late I am compiling a database of fonts to provide the different > fontnames used by the 3 platforms for each font, and the lengths of > rendered strings and their ascent and descent for cross-platform layout and > vertical alignment. When that is done I shall put together a bug report for > Quality Control. > > > Neville Smythe > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From neville.smythe at optusnet.com.au Sun Oct 30 19:37:40 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Mon, 31 Oct 2022 10:37:40 +1100 Subject: Cfross-platform font comparison Message-ID: As I am about to go on vacation this project delving into the Dark Arts may be on hold for a while, but a quick update of a former assertion is in order. I claimed that strings on the Mac and Windows now have the same rendered lengths for a given font and size. Turns out this is only 85% accurate. Of the 4000 fonts so far examined, 566 show some differences on the two platforms. Most of these fonts are obscure, some have differences in only one size of the 10 sizes I test, and in the vast majority the differences are quite small – 96% of all fonts tested have the same length or have a difference of less than 10%. The standout exception is NewYork.ttf, which showed a difference of up to 15% in string length. (Why? As intimated, font technology is a Dark Art,and I may be risking insanity.) I have yet to include the system fonts that come with Windows not also on the Mac, so there may be some more common fonts to add to the exceptions list. Note that Symbol.ttf on Windows is quite a different font from the Mac font of the same name. Neville Smythe From matthias_livecode_150811 at m-r-d.de Mon Oct 31 14:36:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 31 Oct 2022 19:36:34 +0100 Subject: Really OT, but i need the help of native English speakers Message-ID: Hi, i am selling my software through Fastspring. From time to time i get an invitation to answer a survey. Because i am very satisfied with Fastspring i am always happy to answer their surveys. Now i am stumbling over a question i do not understand and Google Translate is also not of great help. What exactly does this question mean? Could someone on this list please help and describe it with own words? I do not understand what they are asking me. I really don't get it. The question is: Please select the option that best defines your user persona of FastSpring's services. I really appreciate your help. Regards, Matthias From thatkeith at mac.com Mon Oct 31 14:43:26 2022 From: thatkeith at mac.com (Keith Martin) Date: Mon, 31 Oct 2022 18:43:26 +0000 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <0C141B7D-EEF2-4233-8D8F-7E51BAD0B4F8@mac.com> Hi Matthias, > The question is: > Please select the option that best defines your user persona of FastSpring's services. This isn’t a very well constructed English sentence, so the meaning is a little up to interpretation. In this kind of apparent context a user persona could refer to someone’s avatar, but that doesn’t seem right. What are the options that are offered? Keith --- Keith Martin Technical Writer | Reality Labs @ Meta Mobile +44.7436.028.638 London, UK -- From keith.clarke at me.com Mon Oct 31 14:47:00 2022 From: keith.clarke at me.com (Keith Clarke) Date: Mon, 31 Oct 2022 18:47:00 +0000 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <0284B5F4-47CA-4DF2-BA02-19633B2CD580@me.com> Hi Mathias, "Persona" often just means "role" or maybe "actor" from a development perspective, if that helps. So, their asking for the role you play in your use cases for their services. I'm guessing the list will include personas such as developer, seller, buyer, sysadmin, end-user. Hope that helps. Best Keith > On 31 Oct 2022, at 18:37, matthias rebbe via use-livecode wrote: > > Hi, > > i am selling my software through Fastspring. From time to time i get an invitation to answer a survey. Because i am very satisfied with Fastspring i am always happy to answer their surveys. > > Now i am stumbling over a question i do not understand and Google Translate is also not of great help. > What exactly does this question mean? Could someone on this list please help and describe it with own words? > I do not understand what they are asking me. I really don't get it. > > The question is: > Please select the option that best defines your user persona of FastSpring's services. > > I really appreciate your help. > > Regards, > Matthias > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Mon Oct 31 14:57:16 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 31 Oct 2022 19:57:16 +0100 Subject: Really OT, but i need the help of native English speakers In-Reply-To: <0284B5F4-47CA-4DF2-BA02-19633B2CD580@me.com> References: <0284B5F4-47CA-4DF2-BA02-19633B2CD580@me.com> Message-ID: Hi Keith, thanks, that makes sense. Thank you very much. Regards, Matthias > Am 31.10.2022 um 19:47 schrieb Keith Clarke via use-livecode : > > Hi Mathias, > "Persona" often just means "role" or maybe "actor" from a development perspective, if that helps. So, their asking for the role you play in your use cases for their services. I'm guessing the list will include personas such as developer, seller, buyer, sysadmin, end-user. > Hope that helps. > Best > Keith > > >> On 31 Oct 2022, at 18:37, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> i am selling my software through Fastspring. From time to time i get an invitation to answer a survey. Because i am very satisfied with Fastspring i am always happy to answer their surveys. >> >> Now i am stumbling over a question i do not understand and Google Translate is also not of great help. >> What exactly does this question mean? Could someone on this list please help and describe it with own words? >> I do not understand what they are asking me. I really don't get it. >> >> The question is: >> Please select the option that best defines your user persona of FastSpring's services. >> >> I really appreciate your help. >> >> Regards, >> Matthias >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Oct 31 15:05:57 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 31 Oct 2022 12:05:57 -0700 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: Matthias wrote: > Now i am stumbling over a question i do not understand and Google > Translate is also not of great help. > What exactly does this question mean? Could someone on this list > please help and describe it with own words? > I do not understand what they are asking me. I really don't get it. > > The question is: > Please select the option that best defines your user persona of > FastSpring's services. In a software development context, "persona" usually refers to part of the user experience practice in which the target audience is divided into segments, with each segment primarily distinguished by needs and workflows, often personalized with names or other details to facilitate team discussion. I covered personas briefly in my UX talk at the LC Global conference in 2018. A more complete discussion of personas in modern UX practice is here: https://www.uxdesigninstitute.com/blog/what-are-ux-personas/ -- Richard Gaskin Fourth World Systems From ahsoftware at sonic.net Mon Oct 31 15:40:08 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 31 Oct 2022 12:40:08 -0700 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> On 10/31/22 11:36, matthias rebbe via use-livecode wrote: > I do not understand what they are asking me. I really don't get it. > > The question is: > Please select the option that best defines your user persona of FastSpring's services. Yeah. I get the impression that whoever wrote that question wasn't a native English speaker. That question is one of those things where I decide that answering the survey isn't a good use of my time. -- Mark Wieder ahsoftware at gmail.com From mkoob at rogers.com Mon Oct 31 15:54:24 2022 From: mkoob at rogers.com (Martin Koob) Date: Mon, 31 Oct 2022 15:54:24 -0400 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <57D2C42E-3E99-4DFB-904E-05B2F371FE1B@rogers.com> Hi Also the question implies that there are a number of options to pick one from in the survey which means in LiveCode programming terms it would be a radio button) Are there options listed with the question? Martin > On Oct 31, 2022, at 2:36 PM, matthias rebbe via use-livecode wrote: > > The question is: > Please select the option that best defines your user persona of FastSpring's services. From bobsneidar at iotecdigital.com Mon Oct 31 16:12:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Oct 2022 20:12:19 +0000 Subject: Really OT, but i need the help of native English speakers In-Reply-To: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> References: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> Message-ID: <927DEEF5-7DBE-4517-88C3-D5AB46226FF3@iotecdigital.com> I feel the same way about surveys. I will answer short surveys, but the really long ones are I think a mechanism invented by upper management to get their customers to do their jobs for them. Bob S On Oct 31, 2022, at 12:40 , Mark Wieder via use-livecode > wrote: I do not understand what they are asking me. I really don't get it. The question is: Please select the option that best defines your user persona of FastSpring's services. Yeah. I get the impression that whoever wrote that question wasn't a native English speaker. That question is one of those things where I decide that answering the survey isn't a good use of my time. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Mon Oct 31 16:13:14 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 31 Oct 2022 21:13:14 +0100 Subject: Really OT, but i need the help of native English speakers In-Reply-To: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> References: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> Message-ID: <1A8EE008-B13B-4FF6-9BF8-3C57D3563ECF@m-r-d.de> It was the last question... ;) > Am 31.10.2022 um 20:40 schrieb Mark Wieder via use-livecode : > > On 10/31/22 11:36, matthias rebbe via use-livecode wrote: > >> I do not understand what they are asking me. I really don't get it. >> The question is: >> Please select the option that best defines your user persona of FastSpring's services. > > Yeah. I get the impression that whoever wrote that question wasn't a native English speaker. > That question is one of those things where I decide that answering the survey isn't a good use of my time. > > -- > Mark Wieder > ahsoftware at gmail.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bogdanoff at me.com Sat Oct 1 04:17:07 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 1 Oct 2022 01:17:07 -0700 Subject: Control or right click to show popup menu Message-ID: Hi, I want to control or right click on a line of text in a field to show a popup menu. So I’ve set the popup menu button to the loc of the mouse and it’s showing in place when the controlKey is down. However, the menu items won’t show while the control key is also down. Maybe I’m doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. Thanks, From richmondmathewson at gmail.com Sat Oct 1 05:08:13 2022 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 1 Oct 2022 12:08:13 +0300 Subject: Control or right click to show popup menu In-Reply-To: References: Message-ID: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> Why does this make me have a funny feeling you are still using a one-button mouse on a Macintosh? Certainly, I would stick with on mouseDown  MN   if MN is 3 then . . . Best, Richmond. On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote: > Hi, > > I want to control or right click on a line of text in a field to show a popup menu. So Ive set the popup menu button to the loc of the mouse and its showing in place when the controlKey is down. > > However, the menu items wont show while the control key is also down. > > Maybe Im doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. > > Thanks, > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kaveh at rivervalleytechnologies.com Sat Oct 1 07:30:21 2022 From: kaveh at rivervalleytechnologies.com (Kaveh) Date: Sat, 1 Oct 2022 12:30:21 +0100 Subject: RegEx to convert standard date to sql date In-Reply-To: <78BFC9D5-B6C4-45B3-BCEB-C9D00B494984@iotecdigital.com> References: <3AD0C9C1-5AA3-465B-A371-833CD66F8AB3@iotecdigital.com> <78BFC9D5-B6C4-45B3-BCEB-C9D00B494984@iotecdigital.com> Message-ID: Search for (\d\d)\/(\d\d)\/(\d\d\d\d) replace with \3\1\2 See here On Fri, 30 Sept 2022 at 23:46, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Well it's like this. I am working in a document management system, and > when I capture a date, I want to convert it to an sql date. I am not > working in Livecode for this. > > Bob S > > > > On Sep 30, 2022, at 10:38 , Jacques Clavel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Why not : > > set itemdel to "/" > > get tDate > > put item 3 of it & item 1 of it & item 2 of it into tSql > > > > JC > > > > Le ven. 30 sept. 2022 à 19:13, Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> a écrit : > > > >> I'm trying to convert a date format like mm/dd/yyyy to an sql date > format > >> yyyymmdd. Any ideas? Nothing I found on the interwebs seems to work. > >> > >> Bob S > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > -- > > Jacques Clavel > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 ● Twitter ● LinkedIn ● ORCID *Accelerating the Communication of Research* From craig at starfirelighting.com Mon Oct 3 09:47:29 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 3 Oct 2022 09:47:29 -0400 Subject: Control or right click to show popup menu In-Reply-To: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> References: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> Message-ID: <2AF0CD5F-F086-4EC2-BB5C-C0E8776C9707@starfirelighting.com> Hi. On a new card make a field and a pulldown menu button. Place a few lines of text in the field and lock it. In the field script: on mouseUp set the loc of btn 1 to the mouseloc click at the mouseLoc end mouseUp The menu opens at the line clicked on. This has been discussed extensively in the forums, if you want to search there. That discussion mainly dealt with loading the contents of the button with the field contents, or the selection of a particular menuItem once the menu itself was open. Craig > On Oct 1, 2022, at 5:08 AM, Richmond via use-livecode wrote: > > Why does this make me have a funny feeling you are still using a one-button mouse on a Macintosh? > > Certainly, I would stick with > > on mouseDown MN > if MN is 3 then . . . > > Best, Richmond. > > On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote: >> Hi, >> >> I want to control or right click on a line of text in a field to show a popup menu. So I’ve set the popup menu button to the loc of the mouse and it’s showing in place when the controlKey is down. >> >> However, the menu items won’t show while the control key is also down. >> >> Maybe I’m doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. >> >> Thanks, >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Oct 3 11:20:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Oct 2022 15:20:24 +0000 Subject: RegEx to convert standard date to sql date In-Reply-To: References: <3AD0C9C1-5AA3-465B-A371-833CD66F8AB3@iotecdigital.com> <78BFC9D5-B6C4-45B3-BCEB-C9D00B494984@iotecdigital.com> Message-ID: <211919FC-D9AE-46F0-BA46-78D1AFD5C314@iotecdigital.com> Thanks I'll try that. Looks like just what I neeed. Bob S On Oct 1, 2022, at 04:30 , Kaveh > wrote: Search for (\d\d)\/(\d\d)\/(\d\d\d\d) replace with \3\1\2 See here On Fri, 30 Sept 2022 at 23:46, Bob Sneidar via use-livecode > wrote: Well it's like this. I am working in a document management system, and when I capture a date, I want to convert it to an sql date. I am not working in Livecode for this. Bob S > On Sep 30, 2022, at 10:38 , Jacques Clavel via use-livecode > wrote: > > Why not : > set itemdel to "/" > get tDate > put item 3 of it & item 1 of it & item 2 of it into tSql > > JC > > Le ven. 30 sept. 2022 à 19:13, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> a écrit : > >> I'm trying to convert a date format like mm/dd/yyyy to an sql date format >> yyyymmdd. Any ideas? Nothing I found on the interwebs seems to work. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Jacques Clavel > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 ● Twitter ● LinkedIn ● ORCID Accelerating the Communication of Research From bobsneidar at iotecdigital.com Mon Oct 3 11:23:17 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 3 Oct 2022 15:23:17 +0000 Subject: Quick and simple web demos? In-Reply-To: <1c2b91f5-739e-a661-d07e-7dc73d60df29@sonic.net> References: <4f9d310e-ac2f-9898-add9-39c1f6818e31@tweedly.net> <1c2b91f5-739e-a661-d07e-7dc73d60df29@sonic.net> Message-ID: This is so rediculously typical of any search features on any number of web sites. Copier partner portals are right up there. You can search for anything and get a plethora of everything EXCEPT anything you are searching for. Bob S > On Sep 30, 2022, at 18:03 , Mark Wieder via use-livecode wrote: > > On 9/30/22 17:11, Alex Tweedly via use-livecode wrote: > >> and the poor indexing/naming makes it tedious to try to find. > > ...and speaking of poor indexing etc... > I was looking for a way to point the svgicon widget to an external svg file and finding that for some reason this isn't built into the widget. So I want online to livecodeshare and typed "svg" into the search field. Upper case. > Lower case. > Didn't matter - I still got zero results, even though I know there are several stacks to deal with svg files. > > Thank you so much for your Sample Stacks plugin, which does the job SO much better than that stupid web site. Still don't have an answer to my problem, but at least I can search properly. Over time I've gradually been replacing parts of my development environment with improvements: tinyDictionary, etc. Waiting for someone to build a better Proj Browser. > > BTW... I typed "Sample stacks" into the web search field and got 57 hits, only one of which had anything to do with sample stacks. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bogdanoff at me.com Mon Oct 3 14:37:42 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 3 Oct 2022 11:37:42 -0700 Subject: Control or right click to show popup menu In-Reply-To: <2AF0CD5F-F086-4EC2-BB5C-C0E8776C9707@starfirelighting.com> References: <4dacd1f1-60a7-2995-0140-b6729767ce18@gmail.com> <2AF0CD5F-F086-4EC2-BB5C-C0E8776C9707@starfirelighting.com> Message-ID: Thanks, Craig. That is exactly the solution if figured out over the weekend, use the click command to click at the mouseLoc. Peter > On Oct 3, 2022, at 6:47 AM, Craig Newman via use-livecode wrote: > > Hi. > > On a new card make a field and a pulldown menu button. Place a few lines of text in the field and lock it. In the field script: > on mouseUp > > set the loc of btn 1 to the mouseloc > > click at the mouseLoc > > end mouseUp > > The menu opens at the line clicked on. > > This has been discussed extensively in the forums, if you want to search there. That discussion mainly dealt with loading the contents of the button with the field contents, or the selection of a particular menuItem once the menu itself was open. > > Craig > >> On Oct 1, 2022, at 5:08 AM, Richmond via use-livecode wrote: >> >> Why does this make me have a funny feeling you are still using a one-button mouse on a Macintosh? >> >> Certainly, I would stick with >> >> on mouseDown MN >> if MN is 3 then . . . >> >> Best, Richmond. >> >> On 1.10.22 11:17, Peter Bogdanoff via use-livecode wrote: >>> Hi, >>> >>> I want to control or right click on a line of text in a field to show a popup menu. So I’ve set the popup menu button to the loc of the mouse and it’s showing in place when the controlKey is down. >>> >>> However, the menu items won’t show while the control key is also down. >>> >>> Maybe I’m doing this wrong. In my application, how do make this work: the user holds down the control key or right click to do editing via choices provided by some kind of popup menu? Both Mac and Windows. >>> >>> Thanks, >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Tue Oct 4 11:20:57 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Oct 2022 15:20:57 +0000 Subject: PDF Printing Message-ID: I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 From martyknappster at gmail.com Tue Oct 4 12:38:29 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Tue, 4 Oct 2022 09:38:29 -0700 Subject: PDF Printing In-Reply-To: References: Message-ID: <07B91C92-3FC6-4556-8645-DAF57E0D3104@gmail.com> It could be a corrupted font cache - I’ve found that can cause weird behavior as you’re describing. If you’re on a Mac, do a “safe reboot” (start up with the shift key pressed) and after it boots up, do a normal reboot. That will delete the current font caches and then rebuild them from scratch. It’s little harder to fix on Windows - if that is the case you might Google that. Worth a try anyway. Marty > On Oct 4, 2022, at 8:20 AM, Dan Friedman via use-livecode wrote: > > I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: > > on mouseUp currSName > put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF > > if printAsPDF then > ask file "Save As PDF:" with (currSName & ".pdf") > put it into pdfPath > open printing to pdf pdfPath > else > open printing with dialog > end if > > if the result is "Cancel" then > exit mouseUp > end if > > print card 1 of stack "GB_PReport" > close printing > end mouseUp > > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? > > LC 9.6.8 From rdimola at evergreeninfo.net Tue Oct 4 12:50:07 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 4 Oct 2022 12:50:07 -0400 Subject: PDF Printing In-Reply-To: References: Message-ID: <003301d8d811$5f0079e0$1d016da0$@net> Dan, How to delete Windows font cache: https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht ml Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, October 04, 2022 11:21 AM To: How to use LiveCode Cc: Dan Friedman Subject: PDF Printing I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Tue Oct 4 13:15:44 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Oct 2022 17:15:44 +0000 Subject: PDF Printing In-Reply-To: <003301d8d811$5f0079e0$1d016da0$@net> References: <003301d8d811$5f0079e0$1d016da0$@net> Message-ID: <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> Thank you for your thoughts, but do you really think a font cache is the issue? I have two computers in my office having this issue, and about a dozen Macs at my client's location -- that we know of so far! If it were a font issue, do you think one print method would be successful, and another wouldn't? If the font table was messed up, I would think it would be wacked for all methods. No? I could be wrong (I'm wrong all the time!) but, I think it's something in LC's internal PDF handling, or some property I need to set or reset. -Dan On 10/4/22, 9:51 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: Dan, How to delete Windows font cache: https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht ml Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, October 04, 2022 11:21 AM To: How to use LiveCode Cc: Dan Friedman Subject: PDF Printing I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 _______________________________________________ use-livecode mailing list use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Tue Oct 4 13:45:03 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 4 Oct 2022 13:45:03 -0400 Subject: PDF Printing In-Reply-To: <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> References: <003301d8d811$5f0079e0$1d016da0$@net> <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> Message-ID: <003701d8d819$0b543680$21fca380$@net> Your right... If all computers are doing it then font cache is probably not the issue. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: Dan Friedman [mailto:dan at clearvisiontech.com] Sent: Tuesday, October 04, 2022 1:16 PM To: How to use LiveCode Cc: Ralph DiMola Subject: Re: PDF Printing Thank you for your thoughts, but do you really think a font cache is the issue? I have two computers in my office having this issue, and about a dozen Macs at my client's location -- that we know of so far! If it were a font issue, do you think one print method would be successful, and another wouldn't? If the font table was messed up, I would think it would be wacked for all methods. No? I could be wrong (I'm wrong all the time!) but, I think it's something in LC's internal PDF handling, or some property I need to set or reset. -Dan On 10/4/22, 9:51 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: Dan, How to delete Windows font cache: https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht ml Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Tuesday, October 04, 2022 11:21 AM To: How to use LiveCode Cc: Dan Friedman Subject: PDF Printing I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using: on mouseUp currSName put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF if printAsPDF then ask file "Save As PDF:" with (currSName & ".pdf") put it into pdfPath open printing to pdf pdfPath else open printing with dialog end if if the result is "Cancel" then exit mouseUp end if print card 1 of stack "GB_PReport" close printing end mouseUp Here are examples of the printouts (the PDFs): Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf Any thoughts or ideas? LC 9.6.8 _______________________________________________ use-livecode mailing list use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Tue Oct 4 14:08:08 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Tue, 4 Oct 2022 11:08:08 -0700 Subject: PDF Printing In-Reply-To: <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> References: <003301d8d811$5f0079e0$1d016da0$@net> <91329AA9-41CD-4B99-947E-ABD30A1E47CC@clearvisiontech.com> Message-ID: <8AB53EF9-D84F-4C37-A4AD-E20117E59B9E@gmail.com> If it was one computer, I’d say there was a good chance but more than one computer I’d say no. Problem must be elsewhere. Marty > On Oct 4, 2022, at 10:15 AM, Dan Friedman via use-livecode wrote: > > Thank you for your thoughts, but do you really think a font cache is the issue? I have two computers in my office having this issue, and about a dozen Macs at my client's location -- that we know of so far! If it were a font issue, do you think one print method would be successful, and another wouldn't? If the font table was messed up, I would think it would be wacked for all methods. No? > > I could be wrong (I'm wrong all the time!) but, I think it's something in LC's internal PDF handling, or some property I need to set or reset. > > -Dan > > > On 10/4/22, 9:51 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" wrote: > > Dan, > > How to delete Windows font cache: > https://www.tenforums.com/tutorials/54452-rebuild-font-cache-windows-10-a.ht > ml > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Dan Friedman via use-livecode > Sent: Tuesday, October 04, 2022 11:21 AM > To: How to use LiveCode > Cc: Dan Friedman > Subject: PDF Printing > > I am getting different results using "open printing to pdf" vs standard > printing to a printer. I have a card with a single field on it with some > formatted text in it. If I print the card to a printer using "open > printing with dialog" it all looks perfect (even if I choose to save it to > PDF in the print dialog). But, if I use the "open printing to pdf" method, > it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I > am using: > > on mouseUp currSName > put (the hilite of btn "printAsPDF" of stack "ReportOptions") into > printAsPDF > > if printAsPDF then > ask file "Save As PDF:" with (currSName & ".pdf") > put it into pdfPath > open printing to pdf pdfPath > else > open printing with dialog > end if > > if the result is "Cancel" then > exit mouseUp > end if > > print card 1 of stack "GB_PReport" > close printing > end mouseUp > > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? > > LC 9.6.8 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Tue Oct 4 14:43:29 2022 From: mark at livecode.com (Mark Waddingham) Date: Tue, 04 Oct 2022 19:43:29 +0100 Subject: PDF Printing In-Reply-To: References: Message-ID: <1f3f8c36b3a82a37776e3ed6503ac483@livecode.com> On 2022-10-04 16:20, Dan Friedman via use-livecode wrote: > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - > https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? Someone had a similar problem in the past (Paul or Klaus maybe?) - it turned out that it was because no explicit font was set on the stack (or controls) - meaning that it was using the macOS 'theme' font. This isn't actually a 'discoverable' font in the various font related APIs - and appears to be (somewhat!) hard-coded in the various low-level Apple graphics rendering APIs. The PDF printer does use the correct fonts and metrics - and CoreText (on macOS) to do font layout - but the actual PDF generation is done using a cross-platform library (so the output is the same on all platforms) which relies on getting the 'real' font data for the given font (which it does not in this case) and not macOS (CoreGraphics-based) printing. The latter appears to be able to deal with the 'magic' fonts (unsurprising as its all Apple stuff), but our pdf printer cannot. If you set the stack to an explicit font then the problem should go away. Alternatively, if this is a mac-only product, you can use macOS's PDF printing capability by setting the printerOutput property to "file:" - on macOS the latter will generate a PDF (i.e. its the same as choosing 'Save As PDF' from the printer dialog). Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dan at clearvisiontech.com Tue Oct 4 15:39:50 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 4 Oct 2022 19:39:50 +0000 Subject: PDF Printing In-Reply-To: <1f3f8c36b3a82a37776e3ed6503ac483@livecode.com> References: <1f3f8c36b3a82a37776e3ed6503ac483@livecode.com> Message-ID: <882D1E71-5AA6-41F4-8276-34EC2E03E74A@clearvisiontech.com> Mark, Genius! I can't thank you enough... That worked! Make sure that the field that holds the text has a valid font name and isn't inheriting a system-level font. That REALLY ought to be documented in the PDF routines in LC. As long as I have your ear... Whenever I call this, I get a blank page in the beginning of my PDF. I have checked that I'm not printing a blank page and have debugged this to death! Any thoughts on a blank page being included in a PDF? -Dan On 10/4/22, 11:44 AM, "use-livecode on behalf of Mark Waddingham via use-livecode" wrote: On 2022-10-04 16:20, Dan Friedman via use-livecode wrote: > Here are examples of the printouts (the PDFs): > Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf > Print to Printer - > https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf > > Any thoughts or ideas? Someone had a similar problem in the past (Paul or Klaus maybe?) - it turned out that it was because no explicit font was set on the stack (or controls) - meaning that it was using the macOS 'theme' font. This isn't actually a 'discoverable' font in the various font related APIs - and appears to be (somewhat!) hard-coded in the various low-level Apple graphics rendering APIs. The PDF printer does use the correct fonts and metrics - and CoreText (on macOS) to do font layout - but the actual PDF generation is done using a cross-platform library (so the output is the same on all platforms) which relies on getting the 'real' font data for the given font (which it does not in this case) and not macOS (CoreGraphics-based) printing. The latter appears to be able to deal with the 'magic' fonts (unsurprising as its all Apple stuff), but our pdf printer cannot. If you set the stack to an explicit font then the problem should go away. Alternatively, if this is a mac-only product, you can use macOS's PDF printing capability by setting the printerOutput property to "file:" - on macOS the latter will generate a PDF (i.e. its the same as choosing 'Save As PDF' from the printer dialog). Hope this helps! Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Oct 5 16:53:11 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 5 Oct 2022 16:53:11 -0400 Subject: map widget offline Message-ID: has anyone messed around with using the map widget offline? i was in a hurricane zone, last week, and over the weekend. there was a fair amount of offline time, when having maps loaded into my droid phone would have been useful. the offline map apps that i can find have limited zoom capability. -- 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." From ahsoftware at sonic.net Wed Oct 5 17:22:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 5 Oct 2022 14:22:37 -0700 Subject: map widget offline In-Reply-To: References: Message-ID: On 10/5/22 13:53, Mike Kerner via use-livecode wrote: > has anyone messed around with using the map widget offline? > i was in a hurricane zone, last week, and over the weekend. there was a > fair amount of offline time, when having maps loaded into my droid phone > would have been useful. the offline map apps that i can find have limited > zoom capability. > I use Sygic for offline maps on my Android phone. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Thu Oct 6 15:46:08 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 6 Oct 2022 21:46:08 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers Message-ID: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Dear all, i am happy to announce that an updated version of InstaMaker is available. InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. What is new - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. Downloads: macOS Wine version https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip Windows x64 https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. Regards, Matthias From james at thehales.id.au Sat Oct 8 20:52:58 2022 From: james at thehales.id.au (James Hale) Date: Sun, 9 Oct 2022 11:52:58 +1100 Subject: SUB-to-SRT updated to convert YouTube transcripts Message-ID: <4EA45A23-8EF9-4A71-9D7D-52C78CC98B75@thehales.id.au> Hi all, I have just updated the sample stack "sub-to-srt" to now convert YouTube's transcripts (sbv extension) to set files. Perhaps it is age, but I am increasingly finding it difficult to catch all the words spoken in videos. The LivdCode videos posted on YouTube being a case in point. Although I have subscribed to most of the "global" events, and watch them when I can given the timezone differences, I find myself usually waiting until they are posted in my account page. Previously I would then download the YouTube version in order to have closed captions. Unfortunately the apps I use to download YouTubes no longer capture the captions. However while on YouTube you can show the transcript and copy the text. Doing so and saving the text file with a ".sbv" extension the "sub-to-srt" stack will now convert this into a correctly formatted ".srt" file which most media players can access. I use "sub-to-srt" as a standalone app on my Mac. To see the transcript of a YouTube video; Turn on captions, if not already turned on. It's the "CC" icon at the bottom of the video. Click the gear icon to adjust any available settings. At the end of the line of icons with "like" "dislike" etc you will see an ellipsis "…" Click on this and select "show transcript". It will appear to the right of the video. Simply select and copy the text. James From jacque at hyperactivesw.com Mon Oct 10 19:29:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 10 Oct 2022 18:29:04 -0500 Subject: TSNet cache error Message-ID: I have a browser widget in an Android app and I keep getting an error "tsnet: ERR_CACHE_MISS". This happens when using both the Test button and when installing a built Android app. I've cleared Chrome's cache, and deleted and reinstalled the app several times, but the widget won't connect. How would I fix the browser widget cache? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lan.kc.macmail at gmail.com Tue Oct 11 02:07:44 2022 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 11 Oct 2022 17:07:44 +1100 Subject: on-rev mail server Message-ID: Is anyone having troubles with on-rev IMAP and SMTP servers? I've just upgraded my OS and all the passwords for the servers were blank but when I input them I don't get a connection. I restarted using my back-up HDD, which has all the boxes filled in, but it can't connect to the mail servers either. I thought I'd log in using cPanel to see if there was a hint there but I can't access the 'silica' server either; which led me to believe that the servers may be down but I can access all my web pages. Anyone else having issues or should I be contacting Heather? Thanks From jbv at souslelogo.com Tue Oct 11 02:57:14 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 11 Oct 2022 02:57:14 -0400 Subject: LC -> Applescript -> Chrome Message-ID: <892b479b4261350152cc06d568d7e47b@souslelogo.com> Hi list, I have a stack that interacts with Chrome via Applescript. It has been running fine for months. Suddenly, one command line began to stall the whole process, with the spinning wheel spinning forever. And when I run the same Applescript in the script editor, it still runs fine as before. The line is : tell application "System Events" to click at {x, y} I am using LC 9.6.8 What should I look at to fix the issue ? Thank you in advance. jb From matthias_livecode_150811 at m-r-d.de Tue Oct 11 02:58:33 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 11 Oct 2022 08:58:33 +0200 Subject: on-rev mail server In-Reply-To: References: Message-ID: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> Unfortunately i am not on Silica, but on Quartz. So i could just test with "my" server. I am able to login. So it is not a general problem, but only one with Silica. Maybe the db server part has problems. Anyway, if you think it's not urgent, then you could send an email to livecodehosting at livecode.com If you think it's urgent, then you can send an email to livecodehosting at livecode.com and put the word URGENT into the subject line at the beginning. This will speed the things a little bit up. Regards, Matthias > Am 11.10.2022 um 08:07 schrieb Kay C Lan via use-livecode : > > Is anyone having troubles with on-rev IMAP and SMTP servers? > > I've just upgraded my OS and all the passwords for the servers were > blank but when I input them I don't get a connection. > > I restarted using my back-up HDD, which has all the boxes filled in, > but it can't connect to the mail servers either. > > I thought I'd log in using cPanel to see if there was a hint there but > I can't access the 'silica' server either; which led me to believe > that the servers may be down but I can access all my web pages. > > Anyone else having issues or should I be contacting Heather? > > Thanks > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andy at db-integration.co.uk Tue Oct 11 03:13:01 2022 From: andy at db-integration.co.uk (Andy Marshman) Date: Tue, 11 Oct 2022 07:13:01 +0000 (UTC) Subject: on-rev mail server In-Reply-To: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> References: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> Message-ID: <529af426-4b30-4fce-a30f-68e6c590347b@db-integration.co.uk> Hi, I'm using the mail servers on Silica and both seem to be working fine for me. I can also log into my cpanel account without issue. If it helps I'm based in the UK Regards Andy 11 Oct 2022 07:59:41 matthias rebbe via use-livecode : > Unfortunately i am not on Silica, but on Quartz. So i could just test with "my" server. > I am able to login. > > So it is not a general problem, but only one with Silica. Maybe the db server part has problems. > > Anyway, if you think it's not urgent, then you could send an email to livecodehosting at livecode.com > > > If you think it's urgent, then you can send an email to livecodehosting at livecode.com   and put the word URGENT into the subject line at the beginning. This will speed the things a little bit up. > > Regards, > Matthias > > > >> Am 11.10.2022 um 08:07 schrieb Kay C Lan via use-livecode : >> >> Is anyone having troubles with on-rev IMAP and SMTP servers? >> >> I've just upgraded my OS and all the passwords for the servers were >> blank but when I input them I don't get a connection. >> >> I restarted using my back-up HDD, which has all the boxes filled in, >> but it can't connect to the mail servers either. >> >> I thought I'd log in using cPanel to see if there was a hint there but >> I can't access the 'silica' server either; which led me to believe >> that the servers may be down but I can access all my web pages. >> >> Anyone else having issues or should I be contacting Heather? >> >> Thanks >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 11 06:01:27 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 11 Oct 2022 12:01:27 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Message-ID: Hi again, for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. There will be some errors saying that some files were not readable. You can ignore that. After that you can open the app without any error message. Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. Windows https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip macOS Wine app https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg Regards, Matthias > Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- > ivecode : > > Dear all, > > i am happy to announce that an updated version of InstaMaker is available. > InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. > InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. > > What is new > - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows > - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. > > Downloads: > macOS Wine version > https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip > > Windows x64 > https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe > > > I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. > > Regards, > Matthias > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Tue Oct 11 06:14:36 2022 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 11 Oct 2022 21:14:36 +1100 Subject: on-rev mail server In-Reply-To: <529af426-4b30-4fce-a30f-68e6c590347b@db-integration.co.uk> References: <31414280-279E-42D0-AD35-B13218CF01D0@m-r-d.de> <529af426-4b30-4fce-a30f-68e6c590347b@db-integration.co.uk> Message-ID: Thanks, I'm still having issues so I'll email livecodehosting. Thanks Matthias for the link. On Tue, Oct 11, 2022 at 6:13 PM Andy Marshman via use-livecode wrote: > > Hi, > > I'm using the mail servers on Silica and both seem to be working fine for me. I can also log into my cpanel account without issue. > > If it helps I'm based in the UK > > Regards > Andy > > 11 Oct 2022 07:59:41 matthias rebbe via use-livecode : > > > Unfortunately i am not on Silica, but on Quartz. So i could just test with "my" server. > > I am able to login. > > > > So it is not a general problem, but only one with Silica. Maybe the db server part has problems. > > > > Anyway, if you think it's not urgent, then you could send an email to livecodehosting at livecode.com > > > > > > If you think it's urgent, then you can send an email to livecodehosting at livecode.com and put the word URGENT into the subject line at the beginning. This will speed the things a little bit up. > > > > Regards, > > Matthias > > > > > > > >> Am 11.10.2022 um 08:07 schrieb Kay C Lan via use-livecode : > >> > >> Is anyone having troubles with on-rev IMAP and SMTP servers? > >> > >> I've just upgraded my OS and all the passwords for the servers were > >> blank but when I input them I don't get a connection. > >> > >> I restarted using my back-up HDD, which has all the boxes filled in, > >> but it can't connect to the mail servers either. > >> > >> I thought I'd log in using cPanel to see if there was a hint there but > >> I can't access the 'silica' server either; which led me to believe > >> that the servers may be down but I can access all my web pages. > >> > >> Anyone else having issues or should I be contacting Heather? > >> > >> Thanks > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Tue Oct 11 11:27:02 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 11 Oct 2022 18:27:02 +0300 Subject: TSNet cache error In-Reply-To: References: Message-ID: Hello Jacque, Have you tried doing: do "location.reload()" in widget "myBrowser" just after setting the browser widget url property. Kind regards, Panos -- On Tue, 11 Oct 2022 at 02:30, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a browser widget in an Android app and I keep getting an error > "tsnet: ERR_CACHE_MISS". > This happens when using both the Test button and when installing a built > Android app. > > I've cleared Chrome's cache, and deleted and reinstalled the app several > times, but the widget > won't connect. How would I fix the browser widget cache? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Oct 11 15:27:10 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 11 Oct 2022 12:27:10 -0700 Subject: LC -> Applescript -> Chrome In-Reply-To: <892b479b4261350152cc06d568d7e47b@souslelogo.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> Message-ID: <3370f25c-c179-7152-876f-a45a0ce337df@fourthworld.com> jbv wrote: > I have a stack that interacts with Chrome via Applescript. > It has been running fine for months. > Suddenly, one command line began to stall the whole process, > with the spinning wheel spinning forever. > > And when I run the same Applescript in the script editor, > it still runs fine as before. > The line is : > tell application "System Events" to click at {x, y} > I am using LC 9.6.8 > > What should I look at to fix the issue ? At first this struck me as potentially an intentional change from Apple for security purposes, but a quick DuckDuckGo search shows many having the same AppleScript issue with "click at": https://duckduckgo.com/?q=macOS+applescript+%22click+at%22 Interesting discussions, but I didn't see a proposed solution that works for Mavericks. I also didn't look that hard; there may be a fix out there. Or it may be a bug in macOS. But at least it isn't you. :) -- Richard Gaskin Fourth World Systems From paul at researchware.com Tue Oct 11 15:37:04 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Oct 2022 15:37:04 -0400 Subject: RANT (Mild): revZIP library Message-ID: We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. This just makes us look bad. Paul Dupuis Researchware From jbv at souslelogo.com Tue Oct 11 15:38:33 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 11 Oct 2022 15:38:33 -0400 Subject: LC -> Applescript -> Chrome In-Reply-To: <3370f25c-c179-7152-876f-a45a0ce337df@fourthworld.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> <3370f25c-c179-7152-876f-a45a0ce337df@fourthworld.com> Message-ID: Hi Richard, Thank you for your reply. Actually it's kind of weird : after running the script a few times in the Applescript editor, it started to work again in LC... May be it was something in my setup, I don't know. Best, Le 2022-10-11 15:27, Richard Gaskin via use-livecode a crit : > jbv wrote: >> I have a stack that interacts with Chrome via Applescript. >> It has been running fine for months. >> Suddenly, one command line began to stall the whole process, >> with the spinning wheel spinning forever. >> >> And when I run the same Applescript in the script editor, >> it still runs fine as before. >> The line is : >> tell application "System Events" to click at {x, y} >> I am using LC 9.6.8 >> >> What should I look at to fix the issue ? > > At first this struck me as potentially an intentional change from > Apple for security purposes, but a quick DuckDuckGo search shows many > having the same AppleScript issue with "click at": > https://duckduckgo.com/?q=macOS+applescript+%22click+at%22 > > Interesting discussions, but I didn't see a proposed solution that > works for Mavericks. I also didn't look that hard; there may be a fix > out there. Or it may be a bug in macOS. But at least it isn't you. :) From sean at pidigital.co.uk Tue Oct 11 16:34:28 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 11 Oct 2022 21:34:28 +0100 Subject: RANT (Mild): revZIP library In-Reply-To: References: Message-ID: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Hi Paul I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. I’m sure you’re capable of building the shell script but let us know if not. All the best Sean > On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: > > We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. > > We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. > > Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. > > Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. > > This just makes us look bad. > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Oct 11 17:14:38 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Oct 2022 17:14:38 -0400 Subject: RANT (Mild): revZIP library In-Reply-To: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: Thank you for the  history. Yes, using other ZIP tools via shell is a possibility, but one I would rather not do. While some researchers who use our app are very computer savvy, most are not. Having a LiveCode ZIP in a window with a nice UI that uses terminology our data analysis tool already uses to let them 'package' their data works well for usage and adoption. We're already doing invisible shell work-arounds for a number of engine bugs, with using ffmpg to replace Export Snapshot (see https://quality.livecode.com/show_bug.cgi?id=23694) the latest. I would just rather not add another 'work-around'. I was actually spending time today cleaning out an old work-around from when a minimized stack set one of its coordinates to -32000 as a way of indicating it was minimized (before the iconic property existed) and work-around fro when a stack was minimized it would get a 'resizeStack' message with a new width and height of 0,0. None of these apply any more but we don't always have time or awareness to remove work-arounds when they are fixed, which can sometimes be years after the work-around was put into place. Anyway, thank you for the suggested approach. It is actually really goo to know someone else has already done it. On 10/11/2022 4:34 PM, Pi Digital via use-livecode wrote: > Hi Paul > > I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. > > Im sure youre capable of building the shell script but let us know if not. > > All the best > Sean > > > >> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: >> >> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >> >> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >> >> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >> >> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >> >> This just makes us look bad. >> >> Paul Dupuis >> Researchware >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From phil at pdslabs.net Tue Oct 11 18:25:00 2022 From: phil at pdslabs.net (Phil Davis) Date: Tue, 11 Oct 2022 15:25:00 -0700 Subject: RANT (Mild): revZIP library In-Reply-To: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: <7043ccd6-4180-b49e-939a-e1eb9fa58895@pdslabs.net> Hi Sean, I wonder if you could open the unzipper as a process in LC. Then your app could probably receive realtime updates from it and let the user what's going on. I've done that before but it was a long time ago, so I have forgotten more than I remember. HTH - Phil Davis On 10/11/22 1:34 PM, Pi Digital via use-livecode wrote: > Hi Paul > > I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. > > Im sure youre capable of building the shell script but let us know if not. > > All the best > Sean > > > >> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: >> >> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >> >> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >> >> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >> >> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >> >> This just makes us look bad. >> >> Paul Dupuis >> Researchware >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis (503) 307-4363 From markclark at mac.com Tue Oct 11 18:40:15 2022 From: markclark at mac.com (Mark Clark) Date: Tue, 11 Oct 2022 17:40:15 -0500 Subject: RANT (Mild): revZIP library In-Reply-To: References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: <0D904D84-2F42-4693-B318-C5009CF9BF45@mac.com> Have you considered chunking the problem up and using compress v revZip library? I ran into something similar when I wanted to keep memory down for encrypting/decrypting multi-gig log files…got a lot of advice about just using shell—but for the same sorts of reasons as you I wanted to do things within lc. I used a standard 1MB chunk size so just added a visual working on '1 of n progress bar’. That might be more effort than it’s worth to you. Might be simpler to create 1 or more archives using the revZip library vs rolling your own. You’d need to stat the files to determine the sizes and # of archives and limit each to < 2GB. the detailed files (synonymous with the long files) Mark > On Oct 11, 2022, at 4:14 PM, Paul Dupuis via use-livecode > wrote: > > Thank you for the history. > > Yes, using other ZIP tools via shell is a possibility, but one I would rather not do. While some researchers who use our app are very computer savvy, most are not. Having a LiveCode ZIP in a window with a nice UI that uses terminology our data analysis tool already uses to let them 'package' their data works well for usage and adoption. > > We're already doing invisible shell work-arounds for a number of engine bugs, with using ffmpg to replace Export Snapshot (see https://quality.livecode.com/show_bug.cgi?id=23694 ) the latest. I would just rather not add another 'work-around'. I was actually spending time today cleaning out an old work-around from when a minimized stack set one of its coordinates to -32000 as a way of indicating it was minimized (before the iconic property existed) and work-around fro when a stack was minimized it would get a 'resizeStack' message with a new width and height of 0,0. None of these apply any more but we don't always have time or awareness to remove work-arounds when they are fixed, which can sometimes be years after the work-around was put into place. > > Anyway, thank you for the suggested approach. It is actually really goo to know someone else has already done it. > > > On 10/11/2022 4:34 PM, Pi Digital via use-livecode wrote: >> Hi Paul >> >> I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. >> >> I’m sure you’re capable of building the shell script but let us know if not. >> >> All the best >> Sean >> >> >> >>> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode > wrote: >>> >>> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859 ) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >>> >>> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >>> >>> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >>> >>> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >>> >>> This just makes us look bad. >>> >>> Paul Dupuis >>> Researchware >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mkoob at rogers.com Tue Oct 11 19:08:53 2022 From: mkoob at rogers.com (Martin Koob) Date: Tue, 11 Oct 2022 19:08:53 -0400 Subject: RANT (Mild): revZIP library In-Reply-To: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> References: <6ADC6B99-BE71-449B-909E-69450775BF30@pidigital.co.uk> Message-ID: The two bugs mentioned in this thread ( the revZip on Windows and the snapshot) sound like good candidates for the Top Ten Bugs survey that LiveCode Ltd. had run a year or so ago. It was a success it seemed and there was talk at the of running that survey again. Panos, Mark, Any plans for running round 2 of the Top 10 LiveCode Bugs survey in the near future? Martin Sent from my iPhone > On Oct 11, 2022, at 4:36 PM, Pi Digital via use-livecode wrote: > > Hi Paul > > I got affected by that and other win revzip issues too. I ended up parsing them through a shell script and using windows built in unzipper. Of course the downfall with that is a lack of feedback on progress which, for large files like this, requires a great deal of time to process and feedback is almost a necessity. I made the shell visible just so that the customer was aware of its progress. It was ugly in terms of UIX but it got us out of a short term hole. I hope you can get a more long term solution. > > I’m sure you’re capable of building the shell script but let us know if not. > > All the best > Sean > > > >> On 11 Oct 2022, at 20:37, Paul Dupuis via use-livecode wrote: >> >> We just got bit by a 4+ year old bug (See https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP library on macOS can create and read ZIP archives over 2GB, BUT the Windows library can not. >> >> We distribute our desktop research application as "cross-platform" for macOS and Windows and just had a researcher on macOS build a "package" (our term for a custom ZIP archive our LiveCode app can make of the researcher's data files) over 2GB and sent to their Window colleague who can NOT open it. >> >> Yes, we walked the Windows researcher through unzipping the archive with WinZIP and accessing all the data files manually, but so much for the "elegance" of our app being cross-platform due to using LiveCode. >> >> Now, do we add code to check the size and prohibit macOS users from creating "packages" over 2GB so if they are sent to a Windows researcher, they can be opened OR do we just warn the Windows researcher if the archive is over 2GB that they will not be able to open it? Neither is a good option. >> >> This just makes us look bad. >> >> Paul Dupuis >> Researchware >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Wed Oct 12 02:35:17 2022 From: mark at livecode.com (Mark Waddingham) Date: Wed, 12 Oct 2022 07:35:17 +0100 Subject: RANT (Mild): revZIP library In-Reply-To: References: Message-ID: On 2022-10-11 20:37, Paul Dupuis via use-livecode wrote: > We just got bit by a 4+ year old bug (See > https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP > library on macOS can create and read ZIP archives over 2GB, BUT the > Windows library can not. Do you ship your app as a 64-bit windows exe? I wonder if its just a limitation of the library we use when compiled for 32-bit archs... Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From paul at researchware.com Wed Oct 12 08:09:44 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 12 Oct 2022 08:09:44 -0400 Subject: RANT (Mild): revZIP library In-Reply-To: References: Message-ID: On 10/12/2022 2:35 AM, Mark Waddingham via use-livecode wrote: > On 2022-10-11 20:37, Paul Dupuis via use-livecode wrote: >> We just got bit by a 4+ year old bug (See >> https://quality.livecode.com/show_bug.cgi?id=20859) where the revZIP >> library on macOS can create and read ZIP archives over 2GB, BUT the >> Windows library can not. > > Do you ship your app as a 64-bit windows exe? > > I wonder if its just a limitation of the library we use when compiled > for 32-bit archs... > > Warmest Regards, > > Mark. > > I thought you had nailed it as we build both 32 and 64 bit Windows EXEs and I might have been testing the wrong one, but I just rebuilt the app using LC 9.6.8 for 64-Bit Windows only (turned off the 32 bit build) and retested and get the same error as in the bug report occurs. ZIPs under 2GB unpack fine. Over 2GB produces the error "ziperr,Can't open file: Unknown error" as the result for calling revZipOpenArchive pArchive, "read" where pArchive is the filespec. I think we'll just add a file size check on Windows and advise that that customers will need to use a OS or 3rd party ZIP tool to move their research data if over 2GB. For many of our customers, this will never be an issue as their total research data will not even come close to 2GB. Some of our customer are using video data, and for them, a single video source (used for their research) can easily be over a GB itself or even over 2GB by itself. A research study can consist of several (or many) such sources. Unfortunately, with multi-mega pixel phones these days making capturing a lot of video very easy more researchers are using large video files in their research. From klaus at major-k.de Wed Oct 12 08:39:25 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 12 Oct 2022 14:39:25 +0200 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 Message-ID: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Hi friends, the subject says it all, and here a screenshot: LC 9.6.9 rc 1 on macOS 12.6. I remembered a posting on this list, that one need to first click "Adaptive icon" and then back to "Icon" to force the correct creation of the icon from a PNG file. Obviously this doesnt work Anyway, can I also use an "Adaptive icon" if the app is not meant for the Google Play Store? Not sure I remebered correctly in this respect. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From merakosp at gmail.com Wed Oct 12 09:08:10 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 12 Oct 2022 16:08:10 +0300 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: Hello Klaus, What you see is the expected result. In fact, this is the reason one has to use adaptive icons. You can use adaptive icons for non Google Play Store apps as well. So, when you use a legacy icon, which is a square png, this does not guarantee that the app icon in the Home screen will appear as a square icon. If the app launcher shows all icons as e.g. circle icons, or as round rectangles, then there are two possible outcomes when you provide a legacy icon: - either your app will stand out from the others (in a negative sense) because it will appear as the square icon among circle icons - or your app icon will appear as a circle that has the original square icon in it. I hope this makes sense :) Kind regards, Panos -- On Wed, 12 Oct 2022 at 15:40, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi friends, > > the subject says it all, and here a screenshot: > > > LC 9.6.9 rc 1 on macOS 12.6. > > I remembered a posting on this list, that one need to first click > "Adaptive icon" > and then back to "Icon" to force the correct creation of the icon from a > PNG file. > Obviously this doesnt work > > Anyway, can I also use an "Adaptive icon" if the app is not meant for the > Google Play Store? > Not sure I remebered correctly in this respect. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Wed Oct 12 09:12:59 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 12 Oct 2022 15:12:59 +0200 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: Hi Panos, > Am 12.10.2022 um 15:08 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > What you see is the expected result. In fact, this is the reason one has to > use adaptive icons. You can use adaptive icons for non Google Play Store > apps as well. > > So, when you use a legacy icon, which is a square png, this does not > guarantee that the app icon in the Home screen will appear as a square > icon. If the app launcher shows all icons as e.g. circle icons, or as round > rectangles, then there are two possible outcomes when you provide a legacy > icon: > - either your app will stand out from the others (in a negative sense) > because it will appear as the square icon among circle icons > - or your app icon will appear as a circle that has the original square > icon in it. > I hope this makes sense :) yes, perfectly, thank you! So LC 9.6.8 did not behave as it should? I mean the legacy icon looked as exspected on Android in 9.6.8 and I did not change anythings since then, read update Android Studio or something. > Kind regards, > Panos Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From scott at elementarysoftware.com Wed Oct 12 09:15:04 2022 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 12 Oct 2022 06:15:04 -0700 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Message-ID: <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> Hello Matthias, I was away from my computer for while and so only recently able to test your latest build. Unfortunately I was unable to get either one of them to build an installer. First I tested the Wine packaged version of InstaMaker. Your custom icon appeared correctly. The drag and drop did appear to work but I was never able to get InstaMaker to finish processing. I was not sure if anything was reported in "show details” after listing the contents of the folder that was dropped because the InstaMaker window became unresponsive and never relinquished control. I had to “Quit WineCX"… which of course made it impossible to scroll the “show details” field. It did appear as if there might have been something reported as the scroll bar seemed to have a good bit of room to scroll. Looking at the Apple utility “Activity Monitor.app” I notice that one of the (multiple) wine64-preloader processes continued to run and consume 4.5 - 5.5% of the CPU. After waiting some time (5 or 10 minutes) I tried Quitting InstaMaker. This appeared to work although in one case the wine processes continued to be present in Activity Monitor. (In this instance, when restarting the computer, the wine64-preloader processes kept the restart from happening and needed to be force-quit.) I tested several times with similar "user results” (the installer didn’t build and InstaMaker appeared to be frozen with the indeterminant-progress indicator spinning. I restarted the computer after several of the tests but this made no difference. I had a similar experience when running InstaMaker inside Parallels Desktop running a 64 bit version of Windows 10. InstaMaker’s indeterminant-progress indicator began spinning and that was it. I restarted Windows and tried again but with the same result. I’m sorry that I don’t have happier (or more useful) information. — Scott > On Oct 11, 2022, at 3:01 AM, matthias rebbe via use-livecode wrote: > > Hi again, > > for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... > > The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. > > You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. > > sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app > > Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online > > sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. > > There will be some errors saying that some files were not readable. You can ignore that. > > After that you can open the app without any error message. > > Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. > > Windows > https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip > > macOS Wine app > https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg > > Regards, > Matthias > > > >> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- > > > >> ivecode : >> >> Dear all, >> >> i am happy to announce that an updated version of InstaMaker is available. >> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >> >> What is new >> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >> >> Downloads: >> macOS Wine version >> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >> >> Windows x64 >> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >> >> >> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >> >> Regards, >> Matthias >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at elementarysoftware.com Wed Oct 12 09:19:13 2022 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 12 Oct 2022 06:19:13 -0700 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> Message-ID: Rats! My mistake. I had meant to send this privately. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Oct 12, 2022, at 6:15 AM, scott--- via use-livecode wrote: > > Hello Matthias, > > I was away from my computer for while and so only recently able to test your latest build. Unfortunately I was unable to get either one of them to build an installer. > > First I tested the Wine packaged version of InstaMaker. Your custom icon appeared correctly. The drag and drop did appear to work but I was never able to get InstaMaker to finish processing. I was not sure if anything was reported in "show details” after listing the contents of the folder that was dropped because the InstaMaker window became unresponsive and never relinquished control. I had to “Quit WineCX"… which of course made it impossible to scroll the “show details” field. It did appear as if there might have been something reported as the scroll bar seemed to have a good bit of room to scroll. > > Looking at the Apple utility “Activity Monitor.app” I notice that one of the (multiple) wine64-preloader processes continued to run and consume 4.5 - 5.5% of the CPU. After waiting some time (5 or 10 minutes) I tried Quitting InstaMaker. This appeared to work although in one case the wine processes continued to be present in Activity Monitor. (In this instance, when restarting the computer, the wine64-preloader processes kept the restart from happening and needed to be force-quit.) I tested several times with similar "user results” (the installer didn’t build and InstaMaker appeared to be frozen with the indeterminant-progress indicator spinning. I restarted the computer after several of the tests but this made no difference. > > I had a similar experience when running InstaMaker inside Parallels Desktop running a 64 bit version of Windows 10. InstaMaker’s indeterminant-progress indicator began spinning and that was it. I restarted Windows and tried again but with the same result. > > I’m sorry that I don’t have happier (or more useful) information. > > — > Scott > >> On Oct 11, 2022, at 3:01 AM, matthias rebbe via use-livecode wrote: >> >> Hi again, >> >> for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... >> >> The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. >> >> You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. >> >> sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app >> >> Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online >> >> sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. >> >> There will be some errors saying that some files were not readable. You can ignore that. >> >> After that you can open the app without any error message. >> >> Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. >> >> Windows >> https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip >> >> macOS Wine app >> https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg >> >> Regards, >> Matthias >> >> >> >>> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- >> >> >> >>> ivecode : >>> >>> Dear all, >>> >>> i am happy to announce that an updated version of InstaMaker is available. >>> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >>> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >>> >>> What is new >>> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >>> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >>> >>> Downloads: >>> macOS Wine version >>> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >>> >>> Windows x64 >>> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >>> >>> >>> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >>> >>> Regards, >>> Matthias >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Wed Oct 12 10:18:37 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 12 Oct 2022 17:18:37 +0300 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: Hello Klaus, Nothing should have changed between 9.6.8 and 9.6.9 rc1 RE legacy/adaptive icons. I guess you see this difference because either of these has changed: - the android device - the android version on the same device - the default launcher app - something else :) I believe that if you rebuild the same app with 9.6.8 you'll see the same results as with 9.6.9 rc1 if you deploy to the same android device. Kind regards, Panos On Wed, 12 Oct 2022 at 16:13, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 12.10.2022 um 15:08 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Klaus, > > > > What you see is the expected result. In fact, this is the reason one has > to > > use adaptive icons. You can use adaptive icons for non Google Play Store > > apps as well. > > > > So, when you use a legacy icon, which is a square png, this does not > > guarantee that the app icon in the Home screen will appear as a square > > icon. If the app launcher shows all icons as e.g. circle icons, or as > round > > rectangles, then there are two possible outcomes when you provide a > legacy > > icon: > > - either your app will stand out from the others (in a negative sense) > > because it will appear as the square icon among circle icons > > - or your app icon will appear as a circle that has the original square > > icon in it. > > I hope this makes sense :) > > yes, perfectly, thank you! > > So LC 9.6.8 did not behave as it should? > I mean the legacy icon looked as exspected on Android in 9.6.8 > and I did not change anythings since then, read update Android Studio > or something. > > > Kind regards, > > Panos > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Wed Oct 12 10:22:48 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 12 Oct 2022 16:22:48 +0200 Subject: "normal" Android app icon looks strange in LC 9.6.9 rc1 In-Reply-To: References: <866C6839-D5D7-49B4-BB7A-01BFB2446726@major-k.de> Message-ID: <7C2F0D0F-9BA2-412A-A497-DD26EC0134AF@major-k.de> Hi Panos, > Am 12.10.2022 um 16:18 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > Nothing should have changed between 9.6.8 and 9.6.9 rc1 RE legacy/adaptive > icons. > > I guess you see this difference because either of these has changed: > - the android device > - the android version on the same device > - the default launcher app > - something else :) > > I believe that if you rebuild the same app with 9.6.8 you'll see the same > results as with 9.6.9 rc1 if you deploy to the same android device. OK, anyway, I'll vote for "something else" :-D Thanks! > Kind regards, > Panos Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From MikeKerner at roadrunner.com Wed Oct 12 10:49:41 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Oct 2022 10:49:41 -0400 Subject: clearing a polygrid/polylist Message-ID: How do you clear a polylist/polygrid? set the tsvdata of widget 1 to empty # throws an error -- 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." From matthias_livecode_150811 at m-r-d.de Wed Oct 12 11:15:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 12 Oct 2022 17:15:59 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> <92943B42-CED3-4F7B-9376-CCC17A79DFF7@elementarysoftware.com> Message-ID: No problem. I've answered to your private email. > Am 12.10.2022 um 15:19 schrieb scott--- via use-livecode : > > Rats! My mistake. > > I had meant to send this privately. > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > > >> On Oct 12, 2022, at 6:15 AM, scott--- via use-livecode wrote: >> >> Hello Matthias, >> >> I was away from my computer for while and so only recently able to test your latest build. Unfortunately I was unable to get either one of them to build an installer. >> >> First I tested the Wine packaged version of InstaMaker. Your custom icon appeared correctly. The drag and drop did appear to work but I was never able to get InstaMaker to finish processing. I was not sure if anything was reported in "show details” after listing the contents of the folder that was dropped because the InstaMaker window became unresponsive and never relinquished control. I had to “Quit WineCX"… which of course made it impossible to scroll the “show details” field. It did appear as if there might have been something reported as the scroll bar seemed to have a good bit of room to scroll. >> >> Looking at the Apple utility “Activity Monitor.app” I notice that one of the (multiple) wine64-preloader processes continued to run and consume 4.5 - 5.5% of the CPU. After waiting some time (5 or 10 minutes) I tried Quitting InstaMaker. This appeared to work although in one case the wine processes continued to be present in Activity Monitor. (In this instance, when restarting the computer, the wine64-preloader processes kept the restart from happening and needed to be force-quit.) I tested several times with similar "user results” (the installer didn’t build and InstaMaker appeared to be frozen with the indeterminant-progress indicator spinning. I restarted the computer after several of the tests but this made no difference. >> >> I had a similar experience when running InstaMaker inside Parallels Desktop running a 64 bit version of Windows 10. InstaMaker’s indeterminant-progress indicator began spinning and that was it. I restarted Windows and tried again but with the same result. >> >> I’m sorry that I don’t have happier (or more useful) information. >> >> — >> Scott >> >>> On Oct 11, 2022, at 3:01 AM, matthias rebbe via use-livecode wrote: >>> >>> Hi again, >>> >>> for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... >>> >>> The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. >>> >>> You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. >>> >>> sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app >>> >>> Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online >>> >>> sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. >>> >>> There will be some errors saying that some files were not readable. You can ignore that. >>> >>> After that you can open the app without any error message. >>> >>> Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. >>> >>> Windows >>> https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip >>> >>> macOS Wine app >>> https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg >>> >>> Regards, >>> Matthias >>> >>> >>> >>>> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- >>> >>> >>> >>>> ivecode : >>>> >>>> Dear all, >>>> >>>> i am happy to announce that an updated version of InstaMaker is available. >>>> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >>>> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >>>> >>>> What is new >>>> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >>>> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >>>> >>>> Downloads: >>>> macOS Wine version >>>> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >>>> >>>> Windows x64 >>>> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >>>> >>>> >>>> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >>>> >>>> Regards, >>>> Matthias >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Wed Oct 12 15:47:42 2022 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 12 Oct 2022 20:47:42 +0100 Subject: clearing a polygrid/polylist In-Reply-To: References: Message-ID: <47c69815-262d-42c6-2c14-7e54a722235c@tweedly.net> For polygrid    set the pgdata of widget 1 to empty For polylist   set the datacontent of widget 2 to empty BUT beware - on my trivial test, this appears to cause the last character of the header to be removed !! I'll investigate some more and bug report it if it seems consistent. Alex On 12/10/2022 15:49, Mike Kerner via use-livecode wrote: > How do you clear a polylist/polygrid? > set the tsvdata of widget 1 to empty # throws an error > From MikeKerner at roadrunner.com Wed Oct 12 18:07:19 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 12 Oct 2022 18:07:19 -0400 Subject: clearing a polygrid/polylist In-Reply-To: <47c69815-262d-42c6-2c14-7e54a722235c@tweedly.net> References: <47c69815-262d-42c6-2c14-7e54a722235c@tweedly.net> Message-ID: my original report is 23975, if you want to piggyback On Wed, Oct 12, 2022 at 3:48 PM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > For polygrid > > set the pgdata of widget 1 to empty > > For polylist > > set the datacontent of widget 2 to empty > > BUT beware - on my trivial test, this appears to cause the last > character of the header to be removed !! > > I'll investigate some more and bug report it if it seems consistent. > > Alex > > > On 12/10/2022 15:49, Mike Kerner via use-livecode wrote: > > How do you clear a polylist/polygrid? > > set the tsvdata of widget 1 to empty # throws an error > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From dan at clearvisiontech.com Wed Oct 12 18:40:15 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Oct 2022 22:40:15 +0000 Subject: Printing Woes Message-ID: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> I am getting several reports of clients that can't print from my Mac app built with 9.6.8. When we call "answer page setup", nothing happens (and the result is empty). It doesn’t happen on all computers... some work and some don’t. Anyone have any thoughts, insights or ideas? -Dan From matthias_livecode_150811 at m-r-d.de Wed Oct 12 19:35:37 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 13 Oct 2022 01:35:37 +0200 Subject: [OT] new version of InstaMaker Windows /macOS Vine with support for x64 Installers In-Reply-To: References: <1C9D920F-2A83-4BD5-BDC1-FD3A7B0D69FB@m-r-d.de> Message-ID: <9006681F-7579-43BA-84D2-A22B730B3F9C@m-r-d.de> Hi again, this is my last post about this topic. I promise. ;) I've updated the InstaMaker download files on the server and deactivated the previous links. This are the new versions macOS https://dl.qck.nu/?dl=InstaMaker_macOS_Wine.zip Windows https://dl.qck.nu/?dl=InstaMaker_Win_x64_Setup.exe Or just visit https://instamaker.dermattes.de Regards Matthias > Am 11.10.2022 um 12:01 schrieb matthias rebbe via use-livecode : > > Hi again, > > for those who might have downloaded the Wine version of InstaMaker and ran into an error saying that the app is damaged and should be moved into the Trash... > > The DMG is okay, but due to the nature of the complete Wine file, which does not need Wine to be installed on your Mac, it is not notarized and some macOS versions come with this error message. > > You could solve this by remove the quarantine attribut from the app. To do this, open the Terminal.app and enter the following. > > sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app > > Replace /path/to/MyApp.app with the complete path to the Wine app. The easiest way is to type online > > sudo xattr -r -d com.apple.quarantine and then drag the app from finder windows into the terminal window. This copies the complete path to the command line. > > There will be some errors saying that some files were not readable. You can ignore that. > > After that you can open the app without any error message. > > Btw. there is a newer version of InstaMaker available with some bug fixing and improvements. Thanks to Scott Morrow for testing and feedback. > > Windows > https://dl.qck.nu/?dl=InstaMaker_1.0.5_Setup.exe.zip > > macOS Wine app > https://dl.qck.nu/?dl=InstaMaker_1.0.5.dmg > > Regards, > Matthias > > > >> Am 06.10.2022 um 21:46 schrieb matthias rebbe via use- > > > >> ivecode : >> >> Dear all, >> >> i am happy to announce that an updated version of InstaMaker is available. >> InstaMaker is a Wrapper for Inno Setup, a free installer for Windows programs. >> InstaMaker makes it easier to create Installers for your Livecode Windows standalones with Inno Setup. >> >> What is new >> - InstaMaker now allows to create also installers for Windows x64 applications on x64 editions of Windows >> - A new Wine version of InstaMaker for macOS is available. It allows to create the Windows Installers directly on macOS. >> >> Downloads: >> macOS Wine version >> https://dl.qck.nu/?dl=InstaMaker_1.0.4_RC1.app.zip >> >> Windows x64 >> https://dl.qck.nu/?dl=InstaMaker_Setup_x64.exe >> >> >> I would be very grateful if someone could test the new versions and would give some feedback if all works as expected. >> >> Regards, >> Matthias >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Thu Oct 13 05:28:36 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 12:28:36 +0300 Subject: Printing Woes In-Reply-To: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> Message-ID: Hello Dan, What is the MacOS version of the computers where "answer page setup" fails? Do they have anything else in common? Does the Console app show anything suspicious? Kind regards, Panos On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am getting several reports of clients that can't print from my Mac app > built with 9.6.8. When we call "answer page setup", nothing happens (and > the result is empty). It doesn’t happen on all computers... some work and > some don’t. Anyone have any thoughts, insights or ideas? > > -Dan > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From klaus at major-k.de Thu Oct 13 08:01:19 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 13 Oct 2022 14:01:19 +0200 Subject: Adaptive Icon for Android Message-ID: <388B884E-36BD-45FE-9147-F8812C1D26BE@major-k.de> Hi friends, I try to create an adaptive icon according to the LC lesson: LC 9.6.9 RC1, Android Studio 2021.3, macOS 12.6 However I get either: the generic ic-launcher icon or an error from LC telling me that an icon was not found in: AndroidManifest.xml I do not seem to be a able to get rid of this "ic-launcher" stuff, what am I doing wrong? Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jbv at souslelogo.com Thu Oct 13 08:15:31 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Thu, 13 Oct 2022 08:15:31 -0400 Subject: LC -> Applescript -> Chrome In-Reply-To: <892b479b4261350152cc06d568d7e47b@souslelogo.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> Message-ID: <7d94d0a1968f107874a31509e07235df@souslelogo.com> If anyone's interested, I think I have found the cause of my problem with Applescript in LC, and more specifically with the "click at" command. For months I've been using MouseTools as Terminal/shell application to emulate keyboard and/or mouse events. AFAIK MouseTools is pretty old and hasn't been updated in ages, and a recent Mac OSX update might have made its behavior erratic. Therefore I have switched to cliclick (https://www.bluem.net/), whose last update is from 2021 and that is much more easier to use, and things have improved (as far as I can see). Best From matthias_livecode_150811 at m-r-d.de Thu Oct 13 08:29:23 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 13 Oct 2022 14:29:23 +0200 Subject: LC -> Applescript -> Chrome In-Reply-To: <7d94d0a1968f107874a31509e07235df@souslelogo.com> References: <892b479b4261350152cc06d568d7e47b@souslelogo.com> <7d94d0a1968f107874a31509e07235df@souslelogo.com> Message-ID: > Am 13.10.2022 um 14:15 schrieb jbv via use-livecode : > > Therefore I have switched to cliclick (https://www.bluem.net/), > whose last update is from 2021 and that is much more easier to use, There is a newer version available. Github lists version 5.1 released 2022-08-14 https://github.com/BlueM/cliclick/releases > and things have improved (as far as I can see). > > Best > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Thu Oct 13 09:24:36 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 13 Oct 2022 13:24:36 +0000 Subject: Printing Woes In-Reply-To: References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> Message-ID: <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> Panos, The common denominator seems to be a Macbook Air. One client said: "We are using on Macintosh computers (2021 Macbook Air and Mac Studio desktops) and are seeing that the Page Setup and Print buttons do not seem to do anything." Another: "I am getting more inquiries about teachers not being able to print. They can run RCM on their MacBook Air but they cannot print. Their macOS is 10.14.6." Another was on a MacBook Air (2017), macOS 12.6. What do you mean by "Does the Console app show anything suspicious?" -Dan On 10/13/22, 2:30 AM, "use-livecode on behalf of panagiotis m via use-livecode" wrote: Hello Dan, What is the MacOS version of the computers where "answer page setup" fails? Do they have anything else in common? Does the Console app show anything suspicious? Kind regards, Panos On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I am getting several reports of clients that can't print from my Mac app > built with 9.6.8. When we call "answer page setup", nothing happens (and > the result is empty). It doesn’t happen on all computers... some work and > some don’t. Anyone have any thoughts, insights or ideas? > > -Dan From merakosp at gmail.com Thu Oct 13 13:21:11 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 20:21:11 +0300 Subject: Adaptive Icon for Android In-Reply-To: <388B884E-36BD-45FE-9147-F8812C1D26BE@major-k.de> References: <388B884E-36BD-45FE-9147-F8812C1D26BE@major-k.de> Message-ID: Hello Klaus, What have you chosen as a Foreground layer (image, clip art or text) and what as a Background layer (color or image)? In fact, I suggest you file a report in quality.livecode.com and attach the sample stack and the icons so that we can investigate further. If the stack/icons are confidential feel free to email them to me directly Kind regards, Panos On Thu, 13 Oct 2022 at 15:01, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi friends, > > I try to create an adaptive icon according to the LC lesson: > < > https://lessons.livecode.com/m/4069/l/1496759-how-to-create-and-use-adaptive-icons-on-android > > > LC 9.6.9 RC1, Android Studio 2021.3, macOS 12.6 > > However I get either: > the generic ic-launcher icon > or > an error from LC telling me that an icon was not found in: > AndroidManifest.xml > > I do not seem to be a able to get rid of this "ic-launcher" stuff, > what am I doing wrong? > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Thu Oct 13 13:31:28 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 20:31:28 +0300 Subject: Printing Woes In-Reply-To: <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> Message-ID: Hello Dan, Thanks. You can open the Console app (/Applications/Utilities/Console), choose the current Mac in the Devices section (at the left) and filter the logs based on the standalone app id. The logs are showing in real time, so in your standalone app trigger a "answer page setup" command and check at this point if anything "suspicious" appears at the logs, such as an exception, an error or such. Hope this helps Kind regards, Panos -- On Thu, 13 Oct 2022 at 16:24, Dan Friedman wrote: > Panos, > > The common denominator seems to be a Macbook Air. > > One client said: "We are using on Macintosh computers (2021 Macbook Air > and Mac Studio desktops) and are seeing that the Page Setup and Print > buttons do not seem to do anything." > > Another: "I am getting more inquiries about teachers not being able to > print. They can run RCM on their MacBook Air but they cannot print. Their > macOS is 10.14.6." > > Another was on a MacBook Air (2017), macOS 12.6. > > What do you mean by "Does the Console app show anything suspicious?" > > > -Dan > > > > On 10/13/22, 2:30 AM, "use-livecode on behalf of panagiotis m via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Hello Dan, > > What is the MacOS version of the computers where "answer page setup" > fails? > Do they have anything else in common? Does the Console app show > anything > suspicious? > > Kind regards, > Panos > > On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I am getting several reports of clients that can't print from my Mac > app > > built with 9.6.8. When we call "answer page setup", nothing happens > (and > > the result is empty). It doesn’t happen on all computers... some > work and > > some don’t. Anyone have any thoughts, insights or ideas? > > > > -Dan > > From merakosp at gmail.com Thu Oct 13 14:54:50 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 13 Oct 2022 21:54:50 +0300 Subject: Printing Woes In-Reply-To: References: <84B33665-FC7A-47F8-B54F-45841A83D3CA@clearvisiontech.com> <47CEA3DD-74AF-4DE5-AA91-FDD800EC09FF@clearvisiontech.com> Message-ID: Hello Dan, Hmm interesting. I am wondering if it is a permissions issue / sandbox violation. How did you distribute this standalone? Was it via the AppStore? I am wondering if you had to sign it with the printing entitlement (com.apple.security.print) Also, it might be worth checking the System Settings -> Security and Privacy -> Privacy and see if the standalone has requested any special permissions (check probably the Full DIsk Access and the Automation sections). Kind regards, Panos On Thu, 13 Oct 2022 at 20:31, panagiotis m wrote: > Hello Dan, > > Thanks. You can open the Console app (/Applications/Utilities/Console), > choose the current Mac in the Devices section (at the left) and filter the > logs based on the standalone app id. The logs are showing in real time, so > in your standalone app trigger a "answer page setup" command and check at > this point if anything "suspicious" appears at the logs, such as an > exception, an error or such. > > Hope this helps > > Kind regards, > Panos > -- > > On Thu, 13 Oct 2022 at 16:24, Dan Friedman > wrote: > >> Panos, >> >> The common denominator seems to be a Macbook Air. >> >> One client said: "We are using on Macintosh computers (2021 Macbook Air >> and Mac Studio desktops) and are seeing that the Page Setup and Print >> buttons do not seem to do anything." >> >> Another: "I am getting more inquiries about teachers not being able to >> print. They can run RCM on their MacBook Air but they cannot print. Their >> macOS is 10.14.6." >> >> Another was on a MacBook Air (2017), macOS 12.6. >> >> What do you mean by "Does the Console app show anything suspicious?" >> >> >> -Dan >> >> >> >> On 10/13/22, 2:30 AM, "use-livecode on behalf of panagiotis m via >> use-livecode" > use-livecode at lists.runrev.com> wrote: >> >> Hello Dan, >> >> What is the MacOS version of the computers where "answer page setup" >> fails? >> Do they have anything else in common? Does the Console app show >> anything >> suspicious? >> >> Kind regards, >> Panos >> >> On Thu, 13 Oct 2022 at 01:41, Dan Friedman via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > I am getting several reports of clients that can't print from my >> Mac app >> > built with 9.6.8. When we call "answer page setup", nothing >> happens (and >> > the result is empty). It doesn’t happen on all computers... some >> work and >> > some don’t. Anyone have any thoughts, insights or ideas? >> > >> > -Dan >> >> From jbv at souslelogo.com Sun Oct 16 14:21:39 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sun, 16 Oct 2022 14:21:39 -0400 Subject: PHP -> curl -> LC Message-ID: <937208794402582b8d661c6e8c092b65@souslelogo.com> Hi list, In several of my web projects, I have a main php script that triggers various LC scripts for specific tasks that are often easier to code in xTalk. To trigger those LC scripts I use curl and urls in the form : https://domain.com/irev/script.lc?a=parameters But very often, the php and LC scripts are on the same server and on the same account, such as on-rev. Therefore I've always wondered if there was another way to trigger the LC scripts from PHP, like for example not using http, but "inside" the server, by addressing the LC script via "home/public_html/account/irev/script.lc" ... Of course, the idea is to be able to use parameters as well, and to return processed data. The main idea is : - to make the whole thing faster than via http - to keep things within the server and therefore more secure. Sorry if this sounds like a newbie question. Thank you in advance. jbv From stephen at barncard.com Sun Oct 16 17:32:42 2022 From: stephen at barncard.com (Stephen Barncard) Date: Sun, 16 Oct 2022 14:32:42 -0700 Subject: PHP -> curl -> LC In-Reply-To: <937208794402582b8d661c6e8c092b65@souslelogo.com> References: <937208794402582b8d661c6e8c092b65@souslelogo.com> Message-ID: Hi jbv, I think this can be done using the. [dot]htaccess file at the root of the website. I’ll try to dig up an example. On Sun, Oct 16, 2022 at 11:22 jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi list, > > In several of my web projects, I have a main php script that > triggers various LC scripts for specific tasks that are often > easier to code in xTalk. > To trigger those LC scripts I use curl and urls in the form : > https://domain.com/irev/script.lc?a=parameters > > But very often, the php and LC scripts are on the same server > and on the same account, such as on-rev. > Therefore I've always wondered if there was another way to > trigger the LC scripts from PHP, like for example not using > http, but "inside" the server, by addressing the LC script > via "home/public_html/account/irev/script.lc" ... > Of course, the idea is to be able to use parameters as well, > and to return processed data. > The main idea is : > - to make the whole thing faster than via http > - to keep things within the server and therefore more secure. > > Sorry if this sounds like a newbie question. > Thank you in advance. > > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From klaus at major-k.de Mon Oct 17 13:16:08 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Oct 2022 19:16:08 +0200 Subject: Mobile: Convert from screen to card coords Message-ID: Hi friends, I need some help, here a pic that shows my problem and my question: Brian Milby once provided a stack which does this, but I have to confess that I did not understand a word.. Thanks for any hints! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Mon Oct 17 13:53:59 2022 From: brian at milby7.com (Brian Milby) Date: Mon, 17 Oct 2022 13:53:59 -0400 Subject: Mobile: Convert from screen to card coords In-Reply-To: References: Message-ID: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. I think resizing to the actual screen is probably going to make more sense with that nav bar at the bottom. Brian Milby brian at milby7.com > On Oct 17, 2022, at 1:16 PM, Klaus major-k via use-livecode wrote: > > Hi friends, > > I need some help, here a pic that shows my problem and my question: > > > Brian Milby once provided a stack which does this, but I have to confess that I did > not understand a word.. > > Thanks for any hints! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Mon Oct 17 14:01:32 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Oct 2022 20:01:32 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> Message-ID: Hi Brian, > Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : > > Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. AH, YES! Thank you for your headsup, i always forget this fact! > In the image on the right, the nav bar is as low as it can go and receive touch interactions. > I think resizing to the actual screen is probably going to make more sense with that nav bar at the bottom. Yes, will try that. > Brian Milby > brian at milby7.com > >> On Oct 17, 2022, at 1:16 PM, Klaus major-k via use-livecode wrote: >> >> Hi friends, >> >> I need some help, here a pic that shows my problem and my question: >> >> >> Brian Milby once provided a stack which does this, but I have to confess that I did >> not understand a word.. >> >> Thanks for any hints! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From martyknappster at gmail.com Mon Oct 17 14:38:48 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 17 Oct 2022 11:38:48 -0700 Subject: Set behavior of standalone Message-ID: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> Is it possible to set the behavior of a standalone to an external script-only stack? I can't seem to get it to work. The goal is for me to be able to modify the behavior of our customer database app without having to recompile. What am I missing? Marty From paul at researchware.com Mon Oct 17 18:00:10 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Oct 2022 18:00:10 -0400 Subject: Long shot question about OpenCV Message-ID: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> Has anyone out there done any work at wrapping the OpenCV computer vision/image recognition open source library with LCB? See https://opencv.org/ I am particularly interested in simple face and/or object recognition in images - something where I can pass the library an image file (like a PNG) and it can return whether or not there is a face in the image and if yes/true, the rectangle within the image that bounds what it thinks is a face (or faces as I suppose it could return multiple rects). From ahsoftware at sonic.net Mon Oct 17 21:24:45 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 17 Oct 2022 18:24:45 -0700 Subject: Long shot question about OpenCV In-Reply-To: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> References: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> Message-ID: <578a037e-a113-1454-418c-b842c43f4981@sonic.net> On 10/17/22 15:00, Paul Dupuis via use-livecode wrote: > Has anyone out there done any work at wrapping the OpenCV computer > vision/image recognition open source library with LCB? > See https://opencv.org/ > > I am particularly interested in simple face and/or object recognition in > images - something where I can pass the library an image file (like a > PNG) and it can return whether or not there is a face in the image and > if yes/true, the rectangle within the image that bounds what it thinks > is a face (or faces as I suppose it could return multiple rects). Haven't tried this with LC (only done OpenCV with python), but for image recognition tensorflow is pretty easy to leverage with javascript. Takes a bit of training though. Might want to start with a pretrained model: https://basilebong.com/blog/image-recognition-with-tensorflow-js-1m74 -- Mark Wieder ahsoftware at gmail.com From jbv at souslelogo.com Tue Oct 18 04:19:12 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 18 Oct 2022 04:19:12 -0400 Subject: PHP -> curl -> LC In-Reply-To: References: <937208794402582b8d661c6e8c092b65@souslelogo.com> Message-ID: <7eaf9e1fe6d06a0318714a6014cc7b91@souslelogo.com> Hi Stephen, Thank you for your answer. Yes, I would be interested in some example using .htaccess, although my file is already full of rewriting rules and I'm afraid that it would add some conflicts... Best Le 2022-10-16 17:32, Stephen Barncard via use-livecode a crit : > Hi jbv, > > I think this can be done using the. [dot]htaccess file at the root of > the > website. > > Ill try to dig up an example. > > > On Sun, Oct 16, 2022 at 11:22 jbv via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi list, >> >> In several of my web projects, I have a main php script that >> triggers various LC scripts for specific tasks that are often >> easier to code in xTalk. >> To trigger those LC scripts I use curl and urls in the form : >> https://domain.com/irev/script.lc?a=parameters >> >> But very often, the php and LC scripts are on the same server >> and on the same account, such as on-rev. >> Therefore I've always wondered if there was another way to >> trigger the LC scripts from PHP, like for example not using >> http, but "inside" the server, by addressing the LC script >> via "home/public_html/account/irev/script.lc" ... >> Of course, the idea is to be able to use parameters as well, >> and to return processed data. >> The main idea is : >> - to make the whole thing faster than via http >> - to keep things within the server and therefore more secure. >> >> Sorry if this sounds like a newbie question. >> Thank you in advance. >> >> jbv >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> From preid at reidit.co.uk Tue Oct 18 07:10:40 2022 From: preid at reidit.co.uk (preid at reidit.co.uk) Date: Tue, 18 Oct 2022 12:10:40 +0100 Subject: Processing WAV file sample data In-Reply-To: References: Message-ID: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> Hi I'm developing a project that will manipulate WAV files. The source files will be in the following form: - WAV stereo (2-ch), 48kHz, 16bit 16kbit, 2-15 secs duration, uncompressed The output will be a series of chunks from the source files, each being WAV mono (1,2,3,4 channels), 16kHz, as long as desired, uncompressed Does anyone know of any LiveCode extensions that let you extract the sample data from existing WAV files and build new WAV files by combining existing WAV files? So I'm looking for something like: WAV2bin - exports from original WAV to binary sample data WAVproc - processes 1 or more binary sample data files bin2WAV - converts sample data files to WAV Note the chopping up of the WAV files should run under Linux (if possible), but Mac otherwise. Any further data manipulations must work under Linux , but Mac would be OK as a fallback. Thanks Peter From jbv at souslelogo.com Tue Oct 18 07:47:10 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 18 Oct 2022 07:47:10 -0400 Subject: Processing WAV file sample data In-Reply-To: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> References: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> Message-ID: Hi, I have been working on something similar : a stack that reads samples from wav mono files and displays waveforms in a graphic control. It works on Mac & Windows, but I haven't used it for a year, and AFAIR the code isn't too clean... Le 2022-10-18 07:10, Peter Reid via use-livecode a crit : > Hi > > I'm developing a project that will manipulate WAV files. > > The source files will be in the following form: - > WAV stereo (2-ch), 48kHz, 16bit 16kbit, 2-15 secs duration, > uncompressed > > The output will be a series of chunks from the source files, each being > WAV mono (1,2,3,4 channels), 16kHz, as long as desired, uncompressed > > Does anyone know of any LiveCode extensions that let you extract the > sample data from existing WAV files and build new WAV files by > combining existing WAV files? > > So I'm looking for something like: > > WAV2bin - exports from original WAV to binary sample data > > WAVproc - processes 1 or more binary sample data files > > bin2WAV - converts sample data files to WAV > > Note the chopping up of the WAV files should run under Linux (if > possible), but Mac otherwise. Any further data manipulations must work > under Linux , but Mac would be OK as a fallback. > > Thanks > > Peter > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Oct 18 08:08:13 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Oct 2022 08:08:13 -0400 Subject: Processing WAV file sample data In-Reply-To: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> References: <3FDF9F4D-981F-4BB4-9833-AA1FC5128A2F@reidit.co.uk> Message-ID: <4b417731-fc16-f1ee-2811-a1649f5eb986@researchware.com> ffmpeg will do this. While a video tool, it has robust capabilities for manipulating audio track or just audio files. In one of the Livecode Global problem solving sessions this summer examples of using ffmpeg from LC was demonstrated and the sample stack is available if you subscribed to the Global conference series. On 10/18/2022 7:10 AM, Peter Reid via use-livecode wrote: > Hi > > I'm developing a project that will manipulate WAV files. > > The source files will be in the following form: - > WAV stereo (2-ch), 48kHz, 16bit 16kbit, 2-15 secs duration, uncompressed > > The output will be a series of chunks from the source files, each being > WAV mono (1,2,3,4 channels), 16kHz, as long as desired, uncompressed > > Does anyone know of any LiveCode extensions that let you extract the sample data from existing WAV files and build new WAV files by combining existing WAV files? > > So I'm looking for something like: > > WAV2bin - exports from original WAV to binary sample data > > WAVproc - processes 1 or more binary sample data files > > bin2WAV - converts sample data files to WAV > > Note the chopping up of the WAV files should run under Linux (if possible), but Mac otherwise. Any further data manipulations must work under Linux , but Mac would be OK as a fallback. > > Thanks > > Peter > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Oct 18 08:12:21 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 18 Oct 2022 08:12:21 -0400 Subject: Long shot question about OpenCV In-Reply-To: <578a037e-a113-1454-418c-b842c43f4981@sonic.net> References: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> <578a037e-a113-1454-418c-b842c43f4981@sonic.net> Message-ID: On 10/17/2022 9:24 PM, Mark Wieder via use-livecode wrote: > On 10/17/22 15:00, Paul Dupuis via use-livecode wrote: >> Has anyone out there done any work at wrapping the OpenCV computer >> vision/image recognition open source library with LCB? >> See https://opencv.org/ >> >> I am particularly interested in simple face and/or object recognition >> in images - something where I can pass the library an image file >> (like a PNG) and it can return whether or not there is a face in the >> image and if yes/true, the rectangle within the image that bounds >> what it thinks is a face (or faces as I suppose it could return >> multiple rects). > > Haven't tried this with LC (only done OpenCV with python), but for > image recognition tensorflow is pretty easy to leverage with > javascript. Takes a bit of training though. Might want to start with a > pretrained model: > > https://basilebong.com/blog/image-recognition-with-tensorflow-js-1m74 > Thank you Mark From klaus at major-k.de Tue Oct 18 08:55:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 14:55:16 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> Message-ID: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> Hi Brian, I knew I forgot something... > Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : > > Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. OK, I definitively understand that! But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates and I have no idea how to „convert" these to CARD coordinates. We need that to move the bottom/top controls up or down if neccessary, know what I mean? Any hints very welcome! > ... > Brian Milby Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Tue Oct 18 09:05:03 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 18 Oct 2022 09:05:03 -0400 Subject: Mobile: Convert from screen to card coords In-Reply-To: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> References: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> Message-ID: <240446D4-32A9-43CC-A5A6-5EC1E48FCA6D@milby7.com> When you use “none” as the mode, then screen and card coordinates will be the same. When the app starts you should get a resizeStack that provides the opportunity to adjust the layout. Brian Milby brian at milby7.com > On Oct 18, 2022, at 8:56 AM, Klaus major-k via use-livecode wrote: > > Hi Brian, > > I knew I forgot something... > >> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >> >> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. > > OK, I definitively understand that! > > But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates > and I have no idea how to „convert" these to CARD coordinates. > > We need that to move the bottom/top controls up or down if neccessary, > know what I mean? Any hints very welcome! > >> ... >> Brian Milby > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de From klaus at major-k.de Tue Oct 18 09:08:41 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 15:08:41 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <240446D4-32A9-43CC-A5A6-5EC1E48FCA6D@milby7.com> References: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <240446D4-32A9-43CC-A5A6-5EC1E48FCA6D@milby7.com> Message-ID: <94AFBE30-F875-419A-A415-A589B03CB89D@major-k.de> Hi Brian, > Am 18.10.2022 um 15:05 schrieb Brian Milby via use-livecode : > > When you use “none” as the mode, then screen and card coordinates will be the same. 8-) > When the app starts you should get a resizeStack that provides the opportunity to adjust the layout. Forgot to mention that I will use "showall" as fullscreenmode. > Brian Milby > brian at milby7.com > >> On Oct 18, 2022, at 8:56 AM, Klaus major-k via use-livecode wrote: >> >> Hi Brian, >> >> I knew I forgot something... >> >>> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >>> >>> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. >> >> OK, I definitively understand that! >> >> But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates >> and I have no idea how to „convert" these to CARD coordinates. >> >> We need that to move the bottom/top controls up or down if neccessary, >> know what I mean? Any hints very welcome! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From marksmithhfx at gmail.com Tue Oct 18 09:12:13 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Oct 2022 14:12:13 +0100 Subject: Mobile: Convert from screen to card coords In-Reply-To: <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> Message-ID: <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> Hi Klaus, I don’t use fullscreen mode anymore. It’s much better looking if you position all of the controls yourself. Here’s an example that should get you started… command layoutTheControls put safeAreaRect() into lSafeAreaRect -- the rect where it is safe to position all of the controls -- position the header bar set the width of widget "Header Bar" to item 3 of lSafeAreaRect -- right set the top of widget "Header Bar" to item 2 of lSafeAreaRect set the left of widget "Header Bar" to 0 -- position the nav bar group set the width of group "NavBar" to item 3 of lSafeAreaRect -- right set the bottom of group "NavBar" to item 4 of lSafeAreaRect set the height of group "NavBar" to the height of widget "Navigation Bar" set the left of group "NavBar" to 0 -- position the navigation bar (inside the group) set the width of widget "Navigation Bar" to the width of group "NavBar" -- right set the bottom of widget "Navigation Bar" to the bottom of group "NavBar" set the left of widget "Navigation Bar" to the left of group "NavBar" -- everything else gets positioned relative to lSafeAreaRect and other objects on the page -- for example, lets say you have a group you want to position below the header bar that is full width put 1961522 into tID set the width of group id tID to item 3 of lSafeAreaRect -- right set the height of group id tID to 44 set the top of group id tID to the bottom of widget "Header Bar" + 6 set the left of group id tID to 12 etc, until all the objects on the page are positioned. Then test on various simulated iPhones to see how it is working and adjust as necessary. > On Oct 18, 2022, at 1:55 PM, Klaus major-k via use-livecode wrote: > > Hi Brian, > > I knew I forgot something... > >> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >> >> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. > > OK, I definitively understand that! > > But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates > and I have no idea how to „convert" these to CARD coordinates. > > We need that to move the bottom/top controls up or down if neccessary, > know what I mean? Any hints very welcome! > >> ... >> Brian Milby > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Oct 18 09:39:14 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 15:39:14 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> Message-ID: <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Hi Mark, > Am 18.10.2022 um 15:12 schrieb Mark Smith : > > Hi Klaus, I don’t use fullscreen mode anymore. It’s much better looking if you position all of the controls yourself. Here’s an example that should get you started… > > command layoutTheControls > ... > set the left of group id tID to 12 > > etc, until all the objects on the page are positioned. Then test on various simulated iPhones to see how it is working > and adjust as necessary. yes, sure, but i'd like to avoid this and currently only need an answer to my question. > On Oct 18, 2022, at 1:55 PM, Klaus major-k via use-livecode wrote: >> >> Hi Brian, >> I knew I forgot something... >>> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode : >>> >>> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions. >> >> OK, I definitively understand that! >> >> But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates >> and I have no idea how to „convert" these to CARD coordinates. >> >> We need that to move the bottom/top controls up or down if neccessary, >> know what I mean? Any hints very welcome! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Tue Oct 18 11:25:15 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 18 Oct 2022 11:25:15 -0400 Subject: Mobile: Convert from screen to card coords In-Reply-To: <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Message-ID: Klaus, My setBackground handler doesn't give a direct translation, but does start it. https://github.com/bwmilby/mobileDemo/blob/48b89b37aba41afb5a7b90cfc9bdbbca9e7f052c/mobileDemo_Scripts/stack_MobileDemo_card_id_1002.livecodescript#L105 Since we are talking about portrait on mobile, the extra space will always be in the height direction. That simplifies a few things. The height of the screen from the card perspective will be: put tCardW / (tScreenW / tScreenH) into tNewH You will need 3 things to calculate positions. A ratio for each direction and a height offset. put (tNewH - tCardH) / 2 into tHOffset -- 1/2 of the extra pixels with be at the top put tNewH / tScreenH into tHRatio -- convert screen pixels to card pixels put tCardW / tScreenW into tWRatio -- convert screen pixels to card pixels Using this, you should be able to calculate a card XY value from a screen XY value (safe XY for example). put (tScreenY * tHRatio) - tHOffset into tCardY put (tScreenX * tWRatio) into tCardX This is without testing though. I'll try to do a test to validate my method. And remember, that anything placed outside the bounds of the card will just be there for looks and probably won't respond to touch. Thanks, Brian On Tue, Oct 18, 2022 at 9:39 AM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mark, > > > yes, sure, but i'd like to avoid this and currently only need an answer to > my question. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > From klaus at major-k.de Tue Oct 18 11:31:23 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Oct 2022 17:31:23 +0200 Subject: Mobile: Convert from screen to card coords In-Reply-To: References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Message-ID: <9AD029D3-2833-446F-8A6C-68B0EB753923@major-k.de> Hi Brian, > Am 18.10.2022 um 17:25 schrieb Brian Milby via use-livecode : > > Klaus, > > My setBackground handler doesn't give a direct translation, but does start it. > https://github.com/bwmilby/mobileDemo/blob/48b89b37aba41afb5a7b90cfc9bdbbca9e7f052c/mobileDemo_Scripts/stack_MobileDemo_card_id_1002.livecodescript#L105 > > Since we are talking about portrait on mobile, the extra space will always > be in the height direction. That simplifies a few things. The height of > the screen from the card perspective will be: > put tCardW / (tScreenW / tScreenH) into tNewH > You will need 3 things to calculate positions. A ratio for each direction > and a height offset. > put (tNewH - tCardH) / 2 into tHOffset -- 1/2 of the extra pixels with > be at the top > put tNewH / tScreenH into tHRatio -- convert screen pixels to card pixels > put tCardW / tScreenW into tWRatio -- convert screen pixels to card > pixels > > Using this, you should be able to calculate a card XY value from a screen > XY value (safe XY for example). > put (tScreenY * tHRatio) - tHOffset into tCardY > put (tScreenX * tWRatio) into tCardX ah, thanks a bunch, I begin to understand, was always weak in math. 8-) > This is without testing though. I'll try to do a test to validate my method. Thank you very much! > And remember, that anything placed outside the bounds of the card > will just be there for looks and probably won't respond to touch. I think I really got it! > Thanks, I have to thank! > Brian Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From gcanyon at gmail.com Tue Oct 18 16:46:01 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 18 Oct 2022 13:46:01 -0700 Subject: Set behavior of standalone In-Reply-To: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> References: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> Message-ID: If you mean set the behavior *after* creating the standalone, that should be possible, but it won't stick. You would have to set it each time. If you mean set a behavior of a e.g. a stack or a card (or anything) before creating the standalone, then it should be possible and should be permanent. Is it possible you're seeing some sort of path issue? On Mon, Oct 17, 2022 at 11:39 AM Marty Knapp via use-livecode < use-livecode at lists.runrev.com> wrote: > Is it possible to set the behavior of a standalone to an external > script-only stack? I can't seem to get it to work. The goal is for me to be > able to modify the behavior of our customer database app without having to > recompile. What am I missing? > > Marty > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From craig at starfirelighting.com Tue Oct 18 17:13:28 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 18 Oct 2022 17:13:28 -0400 Subject: Set behavior of standalone In-Reply-To: References: <98D64D00-9825-4A06-857B-59C0E07FE640@gmail.com> Message-ID: <508BF507-DE00-4E8C-B261-916A6D93B7F0@starfirelighting.com> The script only stack behavior not only should be set before the standalone is built, it must not reside in the executable. Craig > On Oct 18, 2022, at 4:46 PM, Geoff Canyon via use-livecode wrote: > > If you mean set the behavior *after* creating the standalone, that should > be possible, but it won't stick. You would have to set it each time. If you > mean set a behavior of a e.g. a stack or a card (or anything) before > creating the standalone, then it should be possible and should be > permanent. Is it possible you're seeing some sort of path issue? > > On Mon, Oct 17, 2022 at 11:39 AM Marty Knapp via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Is it possible to set the behavior of a standalone to an external >> script-only stack? I can't seem to get it to work. The goal is for me to be >> able to modify the behavior of our customer database app without having to >> recompile. What am I missing? >> >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Oct 18 17:19:18 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Oct 2022 16:19:18 -0500 Subject: Easy Android adaptive icons Message-ID: <212acc76-a61a-e162-dde4-75d2c6a8ef62@hyperactivesw.com> For anyone struggling with Android adaptive icons, or who like me doesn't want to deal with Android Studio just to make a single icon, I found this: https://easyappicon.com/ It does work and is quick and easy. The Android icons are all placed in a single folder and I think you can probably just point the Standalone Settings to that folder, though I renamed it "res" in case LC is looking for the Android Studio naming convention. It also makes iOS icons which seem to come along automatically. Those are all in a second folder which you can ignore, trash, or use for cross platform development. I tried several different online icon utilities and this one worked best for me. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Wed Oct 19 11:39:27 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 19 Oct 2022 17:39:27 +0200 Subject: Mobile: Convert from screen to card coords = ALREADY BUILD-IN! In-Reply-To: References: <58B0F0D2-5570-41A9-B7DC-8C9C8E40F106@milby7.com> <2C0D9450-EE6C-4309-9BC7-1B5B60FBB6EC@major-k.de> <9746BE84-15B5-4FA9-B566-48036AB67067@gmail.com> <2C46877D-3FD7-4A0C-9D4B-2961C78F25C1@major-k.de> Message-ID: <6C8CBD85-6514-4558-840B-9C055B4E6274@major-k.de> Hi Brian, Panos showed me the already build-in solution! Just use globalloc() and localloc() to translate to and from screencoordinates/card coordinates also on "Mobile"! Just tested and as far as I can tell this works a charme! :-) A typical "slap on the forehead" thingie... > Am 18.10.2022 um 17:25 schrieb Brian Milby via use-livecode : > > Klaus, > > My setBackground handler doesn't give a direct translation, but does start > it. > https://github.com/bwmilby/mobileDemo/blob/48b89b37aba41afb5a7b90cfc9bdbbca9e7f052c/mobileDemo_Scripts/stack_MobileDemo_card_id_1002.livecodescript#L105 > Since we are talking about portrait on mobile, the extra space will always > be in the height direction. That simplifies a few things. The height of > the screen from the card perspective will be: > put tCardW / (tScreenW / tScreenH) into tNewH > You will need 3 things to calculate positions. A ratio for each direction > and a height offset. > put (tNewH - tCardH) / 2 into tHOffset -- 1/2 of the extra pixels with > be at the top > put tNewH / tScreenH into tHRatio -- convert screen pixels to card pixels > put tCardW / tScreenW into tWRatio -- convert screen pixels to card > pixels > Using this, you should be able to calculate a card XY value from a screen > XY value (safe XY for example). > put (tScreenY * tHRatio) - tHOffset into tCardY > put (tScreenX * tWRatio) into tCardX > > This is without testing though. I'll try to do a test to validate my > method. And remember, that anything placed outside the bounds of the card > will just be there for looks and probably won't respond to touch. > > Thanks, > Brian Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Thu Oct 20 11:31:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Oct 2022 11:31:51 -0400 Subject: revZIP library... Message-ID: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive  add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. My best option may be to just add up the uncompressed sizes of the files involved. Any clever ideas welcome! From sean at pidigital.co.uk Thu Oct 20 12:04:39 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 20 Oct 2022 17:04:39 +0100 Subject: revZIP library... In-Reply-To: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> Message-ID: <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Do you have no success with the revZipDescribeItem() function. This should give the compressed size directly after compression. Sean > On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode wrote: > > In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. > > This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. > > I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. > > Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. > > On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? > > I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. > > My best option may be to just add up the uncompressed sizes of the files involved. > > Any clever ideas welcome! > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Thu Oct 20 13:48:55 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 20 Oct 2022 13:48:55 -0400 Subject: QR Code reader for desktop? Message-ID: Hi Folks, I hope everyone is doing great. I'm searching for a working solution for reading or scanning qr codes on the desktop? Windows and MacOS reading = open image and interpret qr code scan = open camera and detect qr code in the camera output I think on desktop I need to do a "read" instead of scan. There is this library ... which does not seem to work anymore, it returns an error. https://github.com/portilla/yBarcode Also I found a post by HH (RIP) where he talked about a library he wrote and that it would be in the sample stacks, but I cannot find it there. Are there any other working solutions? Thanks in advance Tom From paul at researchware.com Thu Oct 20 13:57:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Oct 2022 13:57:23 -0400 Subject: revZIP library... In-Reply-To: <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: <92c15c78-a0f3-9ea0-8f6a-11257a1e9d00@researchware.com> Sean, Thank you. I was searching the dictionary for revZip and did not see revZipDescribeItem, but from your post, I have found it and will try it. And of course, now I can see it when I get a list of APIs by just entering revZip in the Dictionary, so it was either a temporary Dictionary glitch or more likely my eyes playing tricks on me. -- Paul On 10/20/2022 12:04 PM, Pi Digital via use-livecode wrote: > Do you have no success with the revZipDescribeItem() function. This should give the compressed size directly after compression. > > Sean > > >> On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode wrote: >> >> In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. >> >> This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. >> >> I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. >> >> Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. >> >> On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? >> >> I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. >> >> My best option may be to just add up the uncompressed sizes of the files involved. >> >> Any clever ideas welcome! >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Oct 20 15:48:43 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 20 Oct 2022 12:48:43 -0700 Subject: Long shot question about OpenCV In-Reply-To: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> References: <4ed2f79a-cff5-6afc-fbd7-866eb0909ee5@researchware.com> Message-ID: <9a266c2d-d95c-d9fd-8023-650b04524efd@sonic.net> On 10/17/22 15:00, Paul Dupuis via use-livecode wrote: > Has anyone out there done any work at wrapping the OpenCV computer > vision/image recognition open source library with LCB? You might also be interested in the upcoming OpenCV Face Recognition library. https://opencv.org/opencv-face-recognition/ -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Thu Oct 20 19:38:35 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 20 Oct 2022 19:38:35 -0400 Subject: revZIP library... In-Reply-To: <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: Unfortunately, revvZipDescribeItem only returns a meaningful value for the compressed_size of an item if the archive has already been compressed. A new archive is only compressed on revZipCloseArchive (typically at the end, once all items/files have been added using revZipAddItemWithFile archivePath, itemName, filePath) revZipDescribeItem(archivePath, itemName) -- This function returns a comma delimited list of details in the form: index, crc, size, mtime, compressed_size, compression_method. In a test, I get the following. Item 5 of the function revZipDescribeItem is -1 for new item added to a new archive. Item 3 is the size, which is the uncompressed size in bytes, which I could also get through the 'detailed files'. 20220520_Cole Video Crossties Grooming.mp4 : 0 :0,0,1881779936,1653078796,-1,none : -1 Cole massage 2021 12Dec06.mp4 : -1 :0,0,284857583,1638822998,-1,none : -2 Equine Discomfort Ethogram Illustrated.pdf : -2 :0,0,10318431,1652185660,-1,none : -3 Equine Discomfort Ethogram paper.pdf : -3 :278290080,0,12407958,1652184150,-1,none : -4 The Horse Grimace Pain Scale with Images and Explanations.png : -4 :0,0,1420824,1653940632,-1,none : -5 I think I just need to go back to adding up the uncompressed sizes, either via revZipDescribeItem's item 3 or the detailed files, and raise a warning if I get to 2GB On 10/20/2022 12:04 PM, Pi Digital via use-livecode wrote: > Do you have no success with the revZipDescribeItem() function. This should give the compressed size directly after compression. > > Sean > > >> On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode wrote: >> >> In addition to the revZIP library, whether building for 32 bit Windows standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on archives it can open and a 2GB limit on what it can save, there appears to be NO mechanism to get the compressed size of an item (file) in the archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, nor any other API in the dictionary lets you get the compressed size of something after compressing it. >> >> This is especially annoying with the 2GB limit on saving an archive and that error only occurs when you call revZipCloseArchive at the end. That means if a user of your application tries to archive a list of file that are 50GB or some even larger number the code happily compresses everyone, going well over 2GB until it tries to close and save the archive at the end and ONLY after all that wasted time do you get an error. >> >> I can obviously get the uncompressed size of each file (using detailed files) and keep a running total and IF that total hist 2GB then stop a process that MIGHT fail in the end. However, perhaps their uncompressed files are 2.5GB but when compressed would be 1.8gb and work. >> >> Folks have already suggested abandoning the revZIP library and using shell to invoke native command line tools (although no call backs for a progress bar is possible with CLI tools, which, is a BIG disadvantage to that approach for our users). However, I really wish the revZIP library just worked right. >> >> On a long shot, does anyone know of a clever trick using the revZIP library, to get the compressed size of an item after you compress it? >> >> I suppose I could open the archive, compress 1 item, close the archive, check the size of the archive via detailed files, and then open the archive add the nest compressed file, close, measure the size and so on, but I feel the overhead would slow down and already slow process even further. >> >> My best option may be to just add up the uncompressed sizes of the files involved. >> >> Any clever ideas welcome! >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Thu Oct 20 22:59:33 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Fri, 21 Oct 2022 03:59:33 +0100 Subject: revZIP library... In-Reply-To: References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: It must be creating a temp file or placing it in memory somewhere. Is there perhaps a way to hack that and find out how many bytes are being stored? Just thinking out loud before catching some zzz's. I hope you find some solution. Sean On Fri, 21 Oct 2022 at 00:38, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Unfortunately, revvZipDescribeItem only returns a meaningful value for > the compressed_size of an item if the archive has already been > compressed. A new archive is only compressed on revZipCloseArchive > (typically at the end, once all items/files have been added using > revZipAddItemWithFile archivePath, itemName, filePath) > > revZipDescribeItem(archivePath, itemName) -- This function returns a > comma delimited list of details in the form: index, crc, size, mtime, > compressed_size, compression_method. > > In a test, I get the following. Item 5 of the function > revZipDescribeItem is -1 for new item added to a new archive. Item 3 is > the size, which is the uncompressed size in bytes, which I could also > get through the 'detailed files'. > > 20220520_Cole Video Crossties Grooming.mp4 : 0 > :0,0,1881779936,1653078796,-1,none : -1 > Cole massage 2021 12Dec06.mp4 : -1 :0,0,284857583,1638822998,-1,none : -2 > Equine Discomfort Ethogram Illustrated.pdf : -2 > :0,0,10318431,1652185660,-1,none : -3 > Equine Discomfort Ethogram paper.pdf : -3 > :278290080,0,12407958,1652184150,-1,none : -4 > The Horse Grimace Pain Scale with Images and Explanations.png : -4 > :0,0,1420824,1653940632,-1,none : -5 > > I think I just need to go back to adding up the uncompressed sizes, > either via revZipDescribeItem's item 3 or the detailed files, and raise > a warning if I get to 2GB > > > On 10/20/2022 12:04 PM, Pi Digital via use-livecode wrote: > > Do you have no success with the revZipDescribeItem() function. This > should give the compressed size directly after compression. > > > > Sean > > > > > >> On 20 Oct 2022, at 16:31, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> In addition to the revZIP library, whether building for 32 bit Windows > standalone or 64-bit Standalones, still (as of LC 9.6.8) has a 2GB limit on > archives it can open and a 2GB limit on what it can save, there appears to > be NO mechanism to get the compressed size of an item (file) in the > archive. Neither the revZipAddItemWithFile nor the revZipAddItemWithData, > nor any other API in the dictionary lets you get the compressed size of > something after compressing it. > >> > >> This is especially annoying with the 2GB limit on saving an archive and > that error only occurs when you call revZipCloseArchive at the end. That > means if a user of your application tries to archive a list of file that > are 50GB or some even larger number the code happily compresses everyone, > going well over 2GB until it tries to close and save the archive at the end > and ONLY after all that wasted time do you get an error. > >> > >> I can obviously get the uncompressed size of each file (using detailed > files) and keep a running total and IF that total hist 2GB then stop a > process that MIGHT fail in the end. However, perhaps their uncompressed > files are 2.5GB but when compressed would be 1.8gb and work. > >> > >> Folks have already suggested abandoning the revZIP library and using > shell to invoke native command line tools (although no call backs for a > progress bar is possible with CLI tools, which, is a BIG disadvantage to > that approach for our users). However, I really wish the revZIP library > just worked right. > >> > >> On a long shot, does anyone know of a clever trick using the revZIP > library, to get the compressed size of an item after you compress it? > >> > >> I suppose I could open the archive, compress 1 item, close the archive, > check the size of the archive via detailed files, and then open the > archive add the nest compressed file, close, measure the size and so on, > but I feel the overhead would slow down and already slow process even > further. > >> > >> My best option may be to just add up the uncompressed sizes of the > files involved. > >> > >> Any clever ideas welcome! > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dvglasgow at gmail.com Fri Oct 21 04:55:02 2022 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 21 Oct 2022 09:55:02 +0100 Subject: OT Re: revZIP library... In-Reply-To: References: <0284b76e-ab2e-d5aa-efb5-c9ef90202f00@researchware.com> <63D89DA0-5E4F-44C8-8756-5D838FD775C7@pidigital.co.uk> Message-ID: > On 21 Oct 2022, at 12:38 am, Paul Dupuis via use-livecode wrote: > > The Horse Grimace Pain Scale with Images and Explanations.png "Oh that’s interesting!", I thought, so tracked it down on Researchgate. Should have carried a bad vasectomy experience trigger warning! David G From neville.smythe at optusnet.com.au Sun Oct 23 03:26:52 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 23 Oct 2022 18:26:52 +1100 Subject: fontNames woes Message-ID: My grand project to compile a database of cross-platform LC font metrics is slowly progressing, though rather hindered by bugs in LC. In particular fontNames() produces inconsistent results between Mac and Windows (and is not available in Linux) and worse can produce incorrect results on the Mac. To demonstrate, start using font file Akshar[wght].ttf, which is one of the Google opentype fonts. This file includes 5 style variations, which are certainly all quite different fonts in appearance. The naming and style conventions for fonts are so complex that the bug is understandable — but its still a bug. On the Mac, fontNames() produces Akshar Light Akshar Light Akshar Light Medium Akshar Light SemiBold Akshar Light Bold This is a bug: the first two are supposed to be references to quite different variations (a Regular and Light version of Akshar). Since they have the same name one of them cannot be accessed by setting textFont. This list does not match the MacOS knowledge of the font. On Windows, fontNames() produces Akshar This is perhaps not a bug, but gives no way to access the 4 non-Regular versions of the font; the variations would be accessed by a Windows user or app by setting a style variation, but this cannot be done in LC. It also does not match what the Windows system knows about the fonts in the family.. If you look at Akshar[wght].ttf in the Mac Font Book application, you find that the system says the name of the font family is Akshar, with fonts Akshar Regular Akshar Light Akshar Medium Akshar SemiBold Akshar Bold If you look at Akshar[wght].ttf in the Windows Font Manager application, you find that the system says the name of the font family is Akshar Light, with fonts Akshar Akshar Light Akshar Medium Akshar SemiBold Akshar Bold Using Linux the Fonts application (Ubuntu) the family name appears as Akshar, Light (note the comma) and with named variations Regular, Light, Bold, Medium, SemiBold The LC function fontNames() is not implemented in Linux but there is a shell command fc-list which explains a lot. After parsing a little we get Akshar,Akshar Light Akshar,Akshar Light:style=Regular Akshar,Akshar Light:style=Bold Akshar,Akshar Light:style=Medium Akshar,Akshar Light:style=SemiBold Akshar,Akshar Light:style=Light,Regular The items before the colon are alternative names for the font. The first line with no styles attached give the family names – 2 alternative names, Mac uses #2, Win uses #1. So fonts can have many names, often including non-Roman script names. They also can have multiple styles, many being international names of English style names. Akshar is actually a comparatively straightforward case. Which names should be returned by fontNames() for each platform is clearly a difficult problem. Apart from the bug in the Mac version of fontNames(), there may be problems, which I cannot yet pin down, with using custom fonts in Windows as well. A stack which works in the IDE crashes as a standalone, the error dialog returning a seemingly irrelevant line for the source of the error so likely it is in the engine somewhere and almost certainly to do with fontNames. Furthermore even in the IDE there may be a problem with stop using font file, as it does not seem to clear the font cache after multiple use, which means fontNames() returns stale values. Finally of course there is fontStyles(), which has been dead for years on the Mac, and even when it did work returned only plain, italic, bold, bold-italic instead of the actual available font style variations — and even if it did would be useless because you can’t set such styles within LC. A vast number of modern fonts are just inaccessible from LC. Neville Smythe From paul at researchware.com Sun Oct 23 16:52:17 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 23 Oct 2022 16:52:17 -0400 Subject: Printing (Preview in LC/screen vs Printer/PDF) Message-ID: I know this topic has been covered previously, probably many many times, but my search skills are failing me. We have a "printing stack" in our app that, among other things, provides a "Print Preview" view. This takes the printer margins, page size, orientation, etc and creates a stack with the dimensions of the page and some guidelines showing the margins, headers, footers, and so on. A rectangle "PrintArea", is set to the available print area inside the margins. Whatever is being printed is then placed inside this "PrintArea". So if the contents of a field is being printed a field is sized fit inside the "PrintArea" and bottom of the field is adjusted by the pageHeights. If am image is being printed, the image is scaled to fit inside the "PrintArea" and so on. All well and good, except for images. If I size and image to fit ON THE SCREEN within the "PrintArea" and then I print it (to a Printer OR to PDF, the image appear are roughly 1/4 size. I assume this is the 72/75 dpi screen resolutions being put on a 300 dpi PDF or printer? Is there some easy Livecode trick to just get images to print in a PDF or on paper at the same size as seen on the screen? Thank you in advance! From roland.huettmann at gmail.com Sun Oct 23 16:52:37 2022 From: roland.huettmann at gmail.com (R.H.) Date: Sun, 23 Oct 2022 22:52:37 +0200 Subject: fontName woes Message-ID: I can confirm that on my Windows 64bit no font substyles are working in LiveCode. This really needs to be addressed, but may not be of such high priority, I assume. The text engine used is not bad but probably outdated. Or, maybe I am wrong? Or are there just name conflicts? Roland From paul at researchware.com Sun Oct 23 17:54:50 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 23 Oct 2022 17:54:50 -0400 Subject: Printing (Preview in LC/screen vs Printer/PDF) In-Reply-To: References: Message-ID: A correction. The images are reduced to 1/4 size ONLY when printing to PDF on Windows (printing to paper results in the image at expected size) This could be specific to Windows and the PDF "printer" (Foxit) being used. More testing is required. Premature posting ;-) On 10/23/2022 4:52 PM, Paul Dupuis via use-livecode wrote: > I know this topic has been covered previously, probably many many > times, but my search skills are failing me. > > We have a "printing stack" in our app that, among other things, > provides a "Print Preview" view. This takes the printer margins, page > size, orientation, etc and creates a stack with the dimensions of the > page and some guidelines showing the margins, headers, footers, and so > on. A rectangle "PrintArea", is set to the available print area inside > the margins. Whatever is being printed is then placed inside this > "PrintArea". So if the contents of a field is being printed a field is > sized fit inside the "PrintArea" and bottom of the field is adjusted > by the pageHeights. If am image is being printed, the image is scaled > to fit inside the "PrintArea" and so on. > > All well and good, except for images. If I size and image to fit ON > THE SCREEN within the "PrintArea" and then I print it (to a Printer OR > to PDF, the image appear are roughly 1/4 size. I assume this is the > 72/75 dpi screen resolutions being put on a 300 dpi PDF or printer? > > Is there some easy Livecode trick to just get images to print in a PDF > or on paper at the same size as seen on the screen? > > Thank you in advance! > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 25 13:28:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 19:28:59 +0200 Subject: Anyone any experience with Livecode under Ventura? Message-ID: Hi, the topic says it all Does anyone have already experience with Livecode under Ventura? Are there any known problems/bugs or so? Regards, Matthias From colinholgate at gmail.com Tue Oct 25 13:36:40 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Tue, 25 Oct 2022 11:36:40 -0600 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: Message-ID: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> I’m using 9.6.3, and it seems to work ok in Ventura. > On Oct 25, 2022, at 11:28 AM, matthias rebbe via use-livecode wrote: > > Hi, > > the topic says it all > > Does anyone have already experience with Livecode under Ventura? > Are there any known problems/bugs or so? > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 25 13:50:39 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 19:50:39 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> References: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> Message-ID: <29771525-CC72-42D4-B91D-31C002F7600D@m-r-d.de> Thanks Colin, then i will risk it to upgrade. ;) > Am 25.10.2022 um 19:36 schrieb Colin Holgate via use-livecode : > > I’m using 9.6.3, and it seems to work ok in Ventura. > > > >> On Oct 25, 2022, at 11:28 AM, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> the topic says it all >> >> Does anyone have already experience with Livecode under Ventura? >> Are there any known problems/bugs or so? >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Oct 25 13:54:32 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 25 Oct 2022 17:54:32 +0000 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <29771525-CC72-42D4-B91D-31C002F7600D@m-r-d.de> References: <26B197D3-EE52-4125-988B-E1C45543C6C4@gmail.com> <29771525-CC72-42D4-B91D-31C002F7600D@m-r-d.de> Message-ID: <3A54B313-E408-4BD5-91FA-BD54CE1EAC4F@iotecdigital.com> If you have the resources, just do a Time Machine backup so you can recover if needed. I did an upgrade recently on my home iMac, and it completely borked the boot volume. Luckily I had a TM backup and it saved my arsenal. First time I've seen a MacOS upgrade bork a boot volume. Bob S > On Oct 25, 2022, at 10:50 , matthias rebbe via use-livecode wrote: > > Thanks Colin, then i will risk it to upgrade. ;) > > > >> Am 25.10.2022 um 19:36 schrieb Colin Holgate via use-livecode : >> >> I’m using 9.6.3, and it seems to work ok in Ventura. >> >> >> >>> On Oct 25, 2022, at 11:28 AM, matthias rebbe via use-livecode wrote: >>> >>> Hi, >>> >>> the topic says it all >>> >>> Does anyone have already experience with Livecode under Ventura? >>> Are there any known problems/bugs or so? >>> >>> Regards, >>> Matthias From irog at mac.com Tue Oct 25 14:02:35 2022 From: irog at mac.com (Roger Guay) Date: Tue, 25 Oct 2022 11:02:35 -0700 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: Message-ID: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> I just opened LC 10 on Ventura with no problem Cheers Roger > On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode wrote: > > Hi, > > the topic says it all > > Does anyone have already experience with Livecode under Ventura? > Are there any known problems/bugs or so? > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Oct 25 14:08:40 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 25 Oct 2022 21:08:40 +0300 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> References: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> Message-ID: I have been using 9.6.3 and 8.1.10 through all the beta versions of Mac OS 13, and there was a minor blip 3 betas back, and I sent a report about it to Apple. Since then, as far as I can tell, both of those versions work like a charm. On Tue, 25 Oct 2022, 21:03 Roger Guay via use-livecode, < use-livecode at lists.runrev.com> wrote: > I just opened LC 10 on Ventura with no problem > > Cheers > Roger > > > On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, > > > > the topic says it all > > > > Does anyone have already experience with Livecode under Ventura? > > Are there any known problems/bugs or so? > > > > Regards, > > Matthias > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From williamdesmet at gmail.com Tue Oct 25 14:08:22 2022 From: williamdesmet at gmail.com (William de Smet) Date: Tue, 25 Oct 2022 20:08:22 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> References: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> Message-ID: LC 9.6.9 (rc1) and LC 10.0.0. (dp4) works fine with me on Ventura. I had Xcode 13.2.1 installed but that version does not work anymore. I wonder which Xcode version I need now. Which Xcode version works with LC now? groeten, William Op di 25 okt. 2022 om 20:03 schreef Roger Guay via use-livecode < use-livecode at lists.runrev.com>: > I just opened LC 10 on Ventura with no problem > > Cheers > Roger > > > On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, > > > > the topic says it all > > > > Does anyone have already experience with Livecode under Ventura? > > Are there any known problems/bugs or so? > > > > Regards, > > Matthias > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hlowe at me.com Tue Oct 25 15:56:23 2022 From: hlowe at me.com (HENRY LOWE) Date: Tue, 25 Oct 2022 12:56:23 -0700 Subject: iPadOS 16.1 and Stage Manager Message-ID: <1158BAA3-E6FB-4FE1-BC9B-8F55C36D67FB@me.com> I have an iOS Livecode 9.6.8 app that runs on both iPhone and iPad. The app uses custom code to handle screen redraws on launch (screen size varies by device) and when a device's orientation changes. Tested the app today on an iPad running iPadOS 16.1 with Stage Manager active. Stage manager is a new (optional) multitasking system available in iPadOS 16.1 and MacOS Ventura. Of significance here is that Stage Manager allows the user to resize the app window by dragging a control in the bottom right corner of the app window. Prior to Stage Manager iPad app windows could not be manually resized. Under Stage Manager on iPad my app did not redraw correctly when the app’s window was manually resized. However adding a ResizeStack handler that called the appropriate redraw routines fixed the issue, though the screen redrawing is not a smooth as I would like. If you have a LC app that runs on the iPad you may need to handle user-controlled stack resizing under Stage Manager. In the course of investigating this issue I also discovered that you can use the latest Xcode simulators (version 14.1) to test Livecode apps on new iPhone and iPad device simulators. To do so: 1. Rename the version of the Xcode app required by Livecode (e.g. version 13.2) to 'Xcode 13.2’. 2. In Livecode Preferences -> Mobile Support select the Xcode 13.2 app as the location for iOS SDKs. 3. Download version Xcode 14.1 RC2 from the Apple Developer site. 4. When Xcode 14.1 is installed as Xcode app in the applications folder, launch Xcode and select ‘Simulator’ from the Xcode -> Open Developer Tool menu. 5. In the dock, control click (right click) on the Simulator icon select Options -> Keep in Dock - this allows you to launch the Simulator app at will. 6. With the desired simulated device open use Livecode’s Development -> Test to launch your app in the open Simulator. This has worked fine for me so far! Also (as others have pointed out), the Xcode 13.2 app is disabled under Mac OS Ventura. You can still select it as the source of Livecode’s iOS SDKs but you cannot launch the app. Henry Ascriva Health Informatics From matthias_livecode_150811 at m-r-d.de Tue Oct 25 16:38:08 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 22:38:08 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: <6499A834-FEE7-44BA-80F8-9AC1ED067737@mac.com> Message-ID: <3B807CD8-0E0C-41EC-96BA-834AE875C15E@m-r-d.de> I just upgraded to Ventura and noticed that only Xcode 14 can be opened on Ventura. As LC 9.6.9 needs Xcode 13.2 on macOS 11 and above you can still use Xcode 13.2 in LC. Just add the "old" Xcode 13.2 app in LC preferences under Mobile Support and also change the path of the active developer directory back to Xcode 13.2 by running this command in Terminal sudo xcode-select -s > Am 25.10.2022 um 20:08 schrieb William de Smet via use-livecode : > > LC 9.6.9 (rc1) and LC 10.0.0. (dp4) works fine with me on Ventura. > > I had Xcode 13.2.1 installed but that version does not work anymore. > I wonder which Xcode version I need now. > Which Xcode version works with LC now? > > > > > groeten, > > William > > > > > Op di 25 okt. 2022 om 20:03 schreef Roger Guay via use-livecode < > use-livecode at lists.runrev.com>: > >> I just opened LC 10 on Ventura with no problem >> >> Cheers >> Roger >> >>> On Oct 25, 2022, at 10:28 AM, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi, >>> >>> the topic says it all >>> >>> Does anyone have already experience with Livecode under Ventura? >>> Are there any known problems/bugs or so? >>> >>> Regards, >>> Matthias >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 25 16:39:01 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Oct 2022 22:39:01 +0200 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: References: Message-ID: <463275ED-DDD2-449F-B583-56E953B335CB@m-r-d.de> Thanks to all confirming that LC runs fine under Ventura. I've upgraded now and i am now testing.... Regards, Matthias > Am 25.10.2022 um 19:28 schrieb matthias rebbe via use-livecode : > > Hi, > > the topic says it all > > Does anyone have already experience with Livecode under Ventura? > Are there any known problems/bugs or so? > > Regards, > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Wed Oct 26 07:43:33 2022 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 26 Oct 2022 12:43:33 +0100 Subject: Anyone any experience with Livecode under Ventura? In-Reply-To: <463275ED-DDD2-449F-B583-56E953B335CB@m-r-d.de> References: <463275ED-DDD2-449F-B583-56E953B335CB@m-r-d.de> Message-ID: <52FA73D4-E568-4D8D-BF5F-FD3A23DE9C2F@andregarzia.com> Just to flag a different experience here. I can’t get the simulator to launch under Ventura on a Macbook Air M1. I have Xcode 13.2 installed and have “xcode-select” set to it. The preferences for mobile development are set correctly and when I try to launch a mobile app for testing on the simulator it gets stuck in the “launching app” dialog forever. And yes, I tried launching the simulator manually by going inside the bundle and the simulator is working fine. > On 25 Oct 2022, at 21:39, matthias rebbe via use-livecode wrote: > > Thanks to all confirming that LC runs fine under Ventura. > > I've upgraded now and i am now testing.... > > > Regards, > Matthias > > >> Am 25.10.2022 um 19:28 schrieb matthias rebbe via use-livecode : >> >> Hi, >> >> the topic says it all >> >> Does anyone have already experience with Livecode under Ventura? >> Are there any known problems/bugs or so? >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Oct 27 15:40:58 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 27 Oct 2022 15:40:58 -0400 Subject: Export Snapshot (macOS) and XPDF External bugs? Message-ID: <802e8f17-fb81-5409-114d-814ad139a5d8@researchware.com> Combining two unrelated topics in one message: 1) I am seeing a bug under macOS in the export snapshot (of a player object) command. This is under LC 9.6.7 (and I think 9.6.8). We have a routine that takes a list of time codes in a movie, loads the movie into a player object, set the currentTime to each time code, uses export snapshot of the player to grab the displayed frame, and returns an array of the images. The possible bug is that occasionally one of the images returned will be rotated 90 degrees. We have NO code that rotates the image and the movie, from start to finish, does not not change the camera orientation. I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this? Is it a known bug? 2) Unrelated to the above, we also have a routine that takes a list of PDF image coordinates (5 number, the page number, and a rect on the page in PDF coordinates), loads the PDF using the XPDF EXTERNAL (XPDF-1.0.45, NOT the widget), goes to the page, and grabs the image, and returns an array of the images. The confirmed bug, is that the first time the XPDF Viewer is opened (via XPDFViewer_Open and then XPDFViewer_Set tName,"FILENAME",tFile to load the PDF file), the XPDF calls to grab the image:             put empty into tImageData             XPDFViewer_SelectImage tName,(item 1 of tRef),(item 2 of tRef),(item 3 of tRef),(item 4 of tRef),(item 5 of tRef)             XPDFViewer_GetSelectionImage tName, "tImageData"             put the result into tSize             set the width     of img "imageConvert" of stack "libHrAPI" to abs(item 1 of tSize)             set the height    of img "imageConvert" of stack "libHrAPI" to abs(item 2 of tSize)             set the imageData of img "imageConvert" of stack "libHrAPI" to tImageData             set the topLeft   of img "imageConvert" of stack "libHrAPI" to (0,0) return garbage in tImageData. The tize (tSize) is correct, but the image is not. This has a WORK-AROUND as this only occurs the first time the XPDF viewer is opened. So, if I am asking for images, I have a conditional that closes the XPDF External viewer (via XPDFViewer_Close tName) and then opens the PDF again behind the scenes. This causes all the returned PDF images to be correct for the same code. Again, I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this one? Is it also a known bug? Thank you in advance for any info of whether you have seen these possible bugs or know if the are related to an existing issue From matthias_livecode_150811 at m-r-d.de Fri Oct 28 01:23:41 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 28 Oct 2022 07:23:41 +0200 Subject: Export Snapshot (macOS) and XPDF External bugs? Message-ID: <2FCEC651-2788-4717-87FF-9B523D67591D@m-r-d.de> Hi Paul, regarding your export problem. How many snapshots per video are created? I just did a 3 tests here with a 123 minutes video (7418646 intervals with a timescale of 1000, .mp4 format) in 9.6.9RC1 and 9.6.8. and used a repeat loop to set the currentTime to create a snapshot on hard disk every 5, 3 and 1 minutes. In all cases it worked here. No snapshot was rotated. My export command was export snapshot from Player "myPlayer" to file ("~/downloads/livecodeexport/" & tCurrentTime & ".png") as PNG Is your snapshot command similar? Or are you using a mask or an other format? Are there more then 120 snapshots per video file? I tested here with a mac Studio on macOS 13.0 running LC both in x86 and native ARM mode. Regards, Matthias > Am 27.10.2022 um 21:40 schrieb Paul Dupuis via use-livecode : > > Combining two unrelated topics in one message: > > 1) I am seeing a bug under macOS in the export snapshot (of a player object) command. This is under LC 9.6.7 (and I think 9.6.8). We have a routine that takes a list of time codes in a movie, loads the movie into a player object, set the currentTime to each time code, uses export snapshot of the player to grab the displayed frame, and returns an array of the images. > > The possible bug is that occasionally one of the images returned will be rotated 90 degrees. We have NO code that rotates the image and the movie, from start to finish, does not not change the camera orientation. > > I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this? Is it a known bug? > > 2) Unrelated to the above, we also have a routine that takes a list of PDF image coordinates (5 number, the page number, and a rect on the page in PDF coordinates), loads the PDF using the XPDF EXTERNAL (XPDF-1.0.45, NOT the widget), goes to the page, and grabs the image, and returns an array of the images. > > The confirmed bug, is that the first time the XPDF Viewer is opened (via XPDFViewer_Open and then XPDFViewer_Set tName,"FILENAME",tFile to load the PDF file), the XPDF calls to grab the image: > put empty into tImageData > XPDFViewer_SelectImage tName,(item 1 of tRef),(item 2 of tRef),(item 3 of tRef),(item 4 of tRef),(item 5 of tRef) > XPDFViewer_GetSelectionImage tName, "tImageData" > put the result into tSize > set the width of img "imageConvert" of stack "libHrAPI" to abs(item 1 of tSize) > set the height of img "imageConvert" of stack "libHrAPI" to abs(item 2 of tSize) > set the imageData of img "imageConvert" of stack "libHrAPI" to tImageData > set the topLeft of img "imageConvert" of stack "libHrAPI" to (0,0) > return garbage in tImageData. The tize (tSize) is correct, but the image is not. > > This has a WORK-AROUND as this only occurs the first time the XPDF viewer is opened. So, if I am asking for images, I have a conditional that closes the XPDF External viewer (via XPDFViewer_Close tName) and then opens the PDF again behind the scenes. This causes all the returned PDF images to be correct for the same code. > > Again, I have not had the time/bandwidth to develop a reproducible recipe or test stack (yet). My question is: Has anyone seen anything like this one? Is it also a known bug? > > Thank you in advance for any info of whether you have seen these possible bugs or know if the are related to an existing issue > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Fri Oct 28 07:58:47 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 28 Oct 2022 22:58:47 +1100 Subject: fontNames woes Message-ID: In my last post I alluded to an elusive problem on Windows 10 with the fontnames function. I think I have identified at least one circumstance where fontNames() causes a crash on Windows 10. If in a Windows standalone you call stop using font file foo.ttf and then try to get fontNames() without first calling start using font file bar.ttf for some font bar.ttf I get a crash (or, if I use a try wrapper or errorDialog handler, "error in statement get the fontNames”. Thereafter any call to fontNames will fail, so something is fatally corrupted). In the IDE the code works as if there had been no error but the list of fonts returned may be corrupted, it may for example contain foo.tff. The same code works without error on a Mac. Most apps will probably just start using some custom fonts when they launch, and then stop using them when cleaning up, so will not be affected by this bug. In my case I am examining a sequence of custom fonts, adding one at a time and removing it before processing the next. As it turns out I didn’t need to call fontNames() directly after stop using one font and before adding the next font. When this nugatory bit of code was rewritten it all worked happily - well, almost: in processing 4000 font files I still got that “error in statement” error 16 times, seemingly randomly and not fatally. Running the code again on just those 16 fonts had no problems, so it is not a case of corrupted fonts. Which means there is still a problem lurking there, my guess being that stop using font file can leave some font library in a fragile state. The Windows 10 system font cache is evidently well-known for being easily corrupted and perhaps that is what is going on here, but somehow I feel this is an LC problem because the font rendering itself seems to be OK. Anyway I have my data so I can ignore the problem for now: for those who came in late I am compiling a database of fonts to provide the different fontnames used by the 3 platforms for each font, and the lengths of rendered strings and their ascent and descent for cross-platform layout and vertical alignment. When that is done I shall put together a bug report for Quality Control. Neville Smythe From tom at makeshyft.com Fri Oct 28 23:17:06 2022 From: tom at makeshyft.com (Tom Glod) Date: Fri, 28 Oct 2022 23:17:06 -0400 Subject: fontNames woes In-Reply-To: References: Message-ID: Thanks Neville, for doing this research, noting your results in public and putting together the library of corresponding font names. Your effort will make it easier for livecode to fix things up. I have some plans for doing some more advanced font work, so I'm sure down the road it will help me also. Thanks again, Tom On Fri, Oct 28, 2022 at 8:00 AM Neville Smythe via use-livecode < use-livecode at lists.runrev.com> wrote: > In my last post I alluded to an elusive problem on Windows 10 with the > fontnames function. I think I have identified at least one circumstance > where fontNames() causes a crash on Windows 10. > > If in a Windows standalone you call > > stop using font file foo.ttf > > and then try to get fontNames() without first calling > > start using font file bar.ttf > > for some font bar.ttf > > I get a crash (or, if I use a try wrapper or errorDialog handler, "error > in statement get the fontNames”. Thereafter any call to fontNames will > fail, so something is fatally corrupted). In the IDE the code works as if > there had been no error but the list of fonts returned may be corrupted, > it may for example contain foo.tff. The same code works without error on a > Mac. > > Most apps will probably just start using some custom fonts when they > launch, and then stop using them when cleaning up, so will not be affected > by this bug. In my case I am examining a sequence of custom fonts, adding > one at a time and removing it before processing the next. > > As it turns out I didn’t need to call fontNames() directly after stop > using one font and before adding the next font. When this nugatory bit of > code was rewritten it all worked happily - well, almost: in processing 4000 > font files I still got that “error in statement” error 16 times, seemingly > randomly and not fatally. Running the code again on just those 16 fonts had > no problems, so it is not a case of corrupted fonts. Which means there is > still a problem lurking there, my guess being that stop using font file can > leave some font library in a fragile state. The Windows 10 system font > cache is evidently well-known for being easily corrupted and perhaps that > is what is going on here, but somehow I feel this is an LC problem because > the font rendering itself seems to be OK. > > Anyway I have my data so I can ignore the problem for now: for those who > came in late I am compiling a database of fonts to provide the different > fontnames used by the 3 platforms for each font, and the lengths of > rendered strings and their ascent and descent for cross-platform layout and > vertical alignment. When that is done I shall put together a bug report for > Quality Control. > > > Neville Smythe > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From neville.smythe at optusnet.com.au Sun Oct 30 19:37:40 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Mon, 31 Oct 2022 10:37:40 +1100 Subject: Cfross-platform font comparison Message-ID: As I am about to go on vacation this project delving into the Dark Arts may be on hold for a while, but a quick update of a former assertion is in order. I claimed that strings on the Mac and Windows now have the same rendered lengths for a given font and size. Turns out this is only 85% accurate. Of the 4000 fonts so far examined, 566 show some differences on the two platforms. Most of these fonts are obscure, some have differences in only one size of the 10 sizes I test, and in the vast majority the differences are quite small – 96% of all fonts tested have the same length or have a difference of less than 10%. The standout exception is NewYork.ttf, which showed a difference of up to 15% in string length. (Why? As intimated, font technology is a Dark Art,and I may be risking insanity.) I have yet to include the system fonts that come with Windows not also on the Mac, so there may be some more common fonts to add to the exceptions list. Note that Symbol.ttf on Windows is quite a different font from the Mac font of the same name. Neville Smythe From matthias_livecode_150811 at m-r-d.de Mon Oct 31 14:36:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 31 Oct 2022 19:36:34 +0100 Subject: Really OT, but i need the help of native English speakers Message-ID: Hi, i am selling my software through Fastspring. From time to time i get an invitation to answer a survey. Because i am very satisfied with Fastspring i am always happy to answer their surveys. Now i am stumbling over a question i do not understand and Google Translate is also not of great help. What exactly does this question mean? Could someone on this list please help and describe it with own words? I do not understand what they are asking me. I really don't get it. The question is: Please select the option that best defines your user persona of FastSpring's services. I really appreciate your help. Regards, Matthias From thatkeith at mac.com Mon Oct 31 14:43:26 2022 From: thatkeith at mac.com (Keith Martin) Date: Mon, 31 Oct 2022 18:43:26 +0000 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <0C141B7D-EEF2-4233-8D8F-7E51BAD0B4F8@mac.com> Hi Matthias, > The question is: > Please select the option that best defines your user persona of FastSpring's services. This isn’t a very well constructed English sentence, so the meaning is a little up to interpretation. In this kind of apparent context a user persona could refer to someone’s avatar, but that doesn’t seem right. What are the options that are offered? Keith --- Keith Martin Technical Writer | Reality Labs @ Meta Mobile +44.7436.028.638 London, UK -- From keith.clarke at me.com Mon Oct 31 14:47:00 2022 From: keith.clarke at me.com (Keith Clarke) Date: Mon, 31 Oct 2022 18:47:00 +0000 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <0284B5F4-47CA-4DF2-BA02-19633B2CD580@me.com> Hi Mathias, "Persona" often just means "role" or maybe "actor" from a development perspective, if that helps. So, their asking for the role you play in your use cases for their services. I'm guessing the list will include personas such as developer, seller, buyer, sysadmin, end-user. Hope that helps. Best Keith > On 31 Oct 2022, at 18:37, matthias rebbe via use-livecode wrote: > > Hi, > > i am selling my software through Fastspring. From time to time i get an invitation to answer a survey. Because i am very satisfied with Fastspring i am always happy to answer their surveys. > > Now i am stumbling over a question i do not understand and Google Translate is also not of great help. > What exactly does this question mean? Could someone on this list please help and describe it with own words? > I do not understand what they are asking me. I really don't get it. > > The question is: > Please select the option that best defines your user persona of FastSpring's services. > > I really appreciate your help. > > Regards, > Matthias > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Mon Oct 31 14:57:16 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 31 Oct 2022 19:57:16 +0100 Subject: Really OT, but i need the help of native English speakers In-Reply-To: <0284B5F4-47CA-4DF2-BA02-19633B2CD580@me.com> References: <0284B5F4-47CA-4DF2-BA02-19633B2CD580@me.com> Message-ID: Hi Keith, thanks, that makes sense. Thank you very much. Regards, Matthias > Am 31.10.2022 um 19:47 schrieb Keith Clarke via use-livecode : > > Hi Mathias, > "Persona" often just means "role" or maybe "actor" from a development perspective, if that helps. So, their asking for the role you play in your use cases for their services. I'm guessing the list will include personas such as developer, seller, buyer, sysadmin, end-user. > Hope that helps. > Best > Keith > > >> On 31 Oct 2022, at 18:37, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> i am selling my software through Fastspring. From time to time i get an invitation to answer a survey. Because i am very satisfied with Fastspring i am always happy to answer their surveys. >> >> Now i am stumbling over a question i do not understand and Google Translate is also not of great help. >> What exactly does this question mean? Could someone on this list please help and describe it with own words? >> I do not understand what they are asking me. I really don't get it. >> >> The question is: >> Please select the option that best defines your user persona of FastSpring's services. >> >> I really appreciate your help. >> >> Regards, >> Matthias >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Oct 31 15:05:57 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 31 Oct 2022 12:05:57 -0700 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: Matthias wrote: > Now i am stumbling over a question i do not understand and Google > Translate is also not of great help. > What exactly does this question mean? Could someone on this list > please help and describe it with own words? > I do not understand what they are asking me. I really don't get it. > > The question is: > Please select the option that best defines your user persona of > FastSpring's services. In a software development context, "persona" usually refers to part of the user experience practice in which the target audience is divided into segments, with each segment primarily distinguished by needs and workflows, often personalized with names or other details to facilitate team discussion. I covered personas briefly in my UX talk at the LC Global conference in 2018. A more complete discussion of personas in modern UX practice is here: https://www.uxdesigninstitute.com/blog/what-are-ux-personas/ -- Richard Gaskin Fourth World Systems From ahsoftware at sonic.net Mon Oct 31 15:40:08 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 31 Oct 2022 12:40:08 -0700 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> On 10/31/22 11:36, matthias rebbe via use-livecode wrote: > I do not understand what they are asking me. I really don't get it. > > The question is: > Please select the option that best defines your user persona of FastSpring's services. Yeah. I get the impression that whoever wrote that question wasn't a native English speaker. That question is one of those things where I decide that answering the survey isn't a good use of my time. -- Mark Wieder ahsoftware at gmail.com From mkoob at rogers.com Mon Oct 31 15:54:24 2022 From: mkoob at rogers.com (Martin Koob) Date: Mon, 31 Oct 2022 15:54:24 -0400 Subject: Really OT, but i need the help of native English speakers In-Reply-To: References: Message-ID: <57D2C42E-3E99-4DFB-904E-05B2F371FE1B@rogers.com> Hi Also the question implies that there are a number of options to pick one from in the survey which means in LiveCode programming terms it would be a radio button) Are there options listed with the question? Martin > On Oct 31, 2022, at 2:36 PM, matthias rebbe via use-livecode wrote: > > The question is: > Please select the option that best defines your user persona of FastSpring's services. From bobsneidar at iotecdigital.com Mon Oct 31 16:12:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Oct 2022 20:12:19 +0000 Subject: Really OT, but i need the help of native English speakers In-Reply-To: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> References: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> Message-ID: <927DEEF5-7DBE-4517-88C3-D5AB46226FF3@iotecdigital.com> I feel the same way about surveys. I will answer short surveys, but the really long ones are I think a mechanism invented by upper management to get their customers to do their jobs for them. Bob S On Oct 31, 2022, at 12:40 , Mark Wieder via use-livecode > wrote: I do not understand what they are asking me. I really don't get it. The question is: Please select the option that best defines your user persona of FastSpring's services. Yeah. I get the impression that whoever wrote that question wasn't a native English speaker. That question is one of those things where I decide that answering the survey isn't a good use of my time. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Mon Oct 31 16:13:14 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 31 Oct 2022 21:13:14 +0100 Subject: Really OT, but i need the help of native English speakers In-Reply-To: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> References: <31e0f98e-0e0f-f919-31ba-5cd4308c1867@sonic.net> Message-ID: <1A8EE008-B13B-4FF6-9BF8-3C57D3563ECF@m-r-d.de> It was the last question... ;) > Am 31.10.2022 um 20:40 schrieb Mark Wieder via use-livecode : > > On 10/31/22 11:36, matthias rebbe via use-livecode wrote: > >> I do not understand what they are asking me. I really don't get it. >> The question is: >> Please select the option that best defines your user persona of FastSpring's services. > > Yeah. I get the impression that whoever wrote that question wasn't a native English speaker. > That question is one of those things where I decide that answering the survey isn't a good use of my time. > > -- > Mark Wieder > ahsoftware at gmail.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode