From bobsneidar at iotecdigital.com Tue May 3 18:00:02 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 May 2022 22:00:02 +0000 Subject: getProp and passing values Message-ID: <5C185F9D-C7C3-43A6-B7BE-9A46347CD191@iotecdigital.com> Hi all. I seem to recall the ability to define a virtual custom property in such a way that I could for example code: put the maingriddata ["customers"] of card "Main" into tCustomersA As is I cannot pass args to a getprop handler. I can only pass args to a setProp handler. Any ideas? I checked the dictionary and lessons. Not a peep. Bob S From bobsneidar at iotecdigital.com Tue May 3 18:12:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 May 2022 22:12:24 +0000 Subject: getProp and passing values In-Reply-To: <5C185F9D-C7C3-43A6-B7BE-9A46347CD191@iotecdigital.com> References: <5C185F9D-C7C3-43A6-B7BE-9A46347CD191@iotecdigital.com> Message-ID: NVM I figured it out (again). Given that lGridDataA is a script local containing an array of all the datagrid arrays: The getProp handler needs to be written like this: getProp maingriddata [pKey] if pKey is not empty then return lGridDataA [pKey] else return lGridDataA end if end maingridData Bob S > On May 3, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: > > Hi all. > > I seem to recall the ability to define a virtual custom property in such a way that I could for example code: > > put the maingriddata ["customers"] of card "Main" into tCustomersA > > As is I cannot pass args to a getprop handler. I can only pass args to a setProp handler. > > Any ideas? I checked the dictionary and lessons. Not a peep. > > 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 From neville.smythe at optusnet.com.au Wed May 4 10:47:47 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Thu, 5 May 2022 00:47:47 +1000 Subject: Zip file problem on Mac Message-ID: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. This has worked fine until macOS Monterey or LiveCode 9.6.x Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make the rev zip tool fail. Can anyone verify the following? On my Mac, the Archive Utility in Monterey, which automagically unzips files when a zip file is downloaded by Safari or double-clicked, now unsets the execute bit on the application (more precisely, on the executable file in the bundle). Which means the user gets a “This application could not be opened”, with no options to continue, when they try to launch the unzipped app. A terminal savvy user can use chmod x+ to make the app launchable, but I can hardly expect the ordinary user to have to do that. The execute bit is definitely set in the archive, because TheUnarchiver, a free third party decompression tool, unzips the file leaving the app launchable. This also suggests that the problem is not in my code. I can see why Granny Apple might have thought this was a good idea, executables in zip files are a the major sources of trojans, but if Apple has made this change it is a bit nasty because there is no obvious way to override the behaviour. If I use the Archive Utility to actually create the zip file from the standalone app bundle rather than using the rev tools, and then double-click it to decompress, the file unzips with the execute bit set. This shows the archive produced by revZip is not the same as that expected by the Archive Utility. It also suggests a workaround would be to use Archive Utility from a shell command (it is not AppleScriptable – bad Apple!). From a cursory search on Stackoverflow, the command line would be (this is not yet tested and the post is 5 years old) ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip to create the zip file for the Mac platform. The post says that is what the Archive Utility uses to compress files. Probably the rev zip tools use zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. Neville From matthias_livecode_150811 at m-r-d.de Wed May 4 18:35:07 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 5 May 2022 00:35:07 +0200 Subject: Zip file problem on Mac In-Reply-To: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> Message-ID: <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> Neville, i can confirm that behavior even under BigSur. I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. So it seems the LC's zip library does not store the permissions in the zip. According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. But... As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. At least Keka seems to have such feature according to its change log Changes in version 1.0.11 But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. Matthias > Am 04.05.2022 um 16:47 schrieb Neville Smythe via use-livecode : > > I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. > > This has worked fine until macOS Monterey or LiveCode 9.6.x > > Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make the rev zip tool fail. Can anyone verify the following? > > On my Mac, the Archive Utility in Monterey, which automagically unzips files when a zip file is downloaded by Safari or double-clicked, now unsets the execute bit on the application (more precisely, on the executable file in the bundle). Which means the user gets a “This application could not be opened”, with no options to continue, when they try to launch the unzipped app. A terminal savvy user can use chmod x+ to make the app launchable, but I can hardly expect the ordinary user to have to do that. The execute bit is definitely set in the archive, because TheUnarchiver, a free third party decompression tool, unzips the file leaving the app launchable. This also suggests that the problem is not in my code. > > I can see why Granny Apple might have thought this was a good idea, executables in zip files are a the major sources of trojans, but if Apple has made this change it is a bit nasty because there is no obvious way to override the behaviour. > > If I use the Archive Utility to actually create the zip file from the standalone app bundle rather than using the rev tools, and then double-click it to decompress, the file unzips with the execute bit set. This shows the archive produced by revZip is not the same as that expected by the Archive Utility. It also suggests a workaround would be to use Archive Utility from a shell command (it is not AppleScriptable – bad Apple!). From a cursory search on Stackoverflow, the command line would be (this is not yet tested and the post is 5 years old) > > ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip > > to create the zip file for the Mac platform. The post says that is what the Archive Utility uses to compress files. Probably the rev zip tools use zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. > > Neville > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu May 5 11:06:43 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 May 2022 15:06:43 +0000 Subject: Zip file problem on Mac In-Reply-To: <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> Message-ID: <3450E5C1-FD72-4482-A059-F369CD9708FA@iotecdigital.com> Open a bug report and I will +1 it. Bob S > On May 4, 2022, at 15:35 , matthias rebbe via use-livecode wrote: > > Neville, i can confirm that behavior even under BigSur. > > I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. > > Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. > So it seems the LC's zip library does not store the permissions in the zip. > > According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. > But... > As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. > > So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. > At least Keka seems to have such feature according to its change log Changes in version 1.0.11 > > > But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. > > > Matthias > > >> Am 04.05.2022 um 16:47 schrieb Neville Smythe via use-livecode : >> >> I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. >> >> This has worked fine until macOS Monterey or LiveCode 9.6.x >> >> Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make the rev zip tool fail. Can anyone verify the following? >> >> On my Mac, the Archive Utility in Monterey, which automagically unzips files when a zip file is downloaded by Safari or double-clicked, now unsets the execute bit on the application (more precisely, on the executable file in the bundle). Which means the user gets a “This application could not be opened”, with no options to continue, when they try to launch the unzipped app. A terminal savvy user can use chmod x+ to make the app launchable, but I can hardly expect the ordinary user to have to do that. The execute bit is definitely set in the archive, because TheUnarchiver, a free third party decompression tool, unzips the file leaving the app launchable. This also suggests that the problem is not in my code. >> >> I can see why Granny Apple might have thought this was a good idea, executables in zip files are a the major sources of trojans, but if Apple has made this change it is a bit nasty because there is no obvious way to override the behaviour. >> >> If I use the Archive Utility to actually create the zip file from the standalone app bundle rather than using the rev tools, and then double-click it to decompress, the file unzips with the execute bit set. This shows the archive produced by revZip is not the same as that expected by the Archive Utility. It also suggests a workaround would be to use Archive Utility from a shell command (it is not AppleScriptable – bad Apple!). From a cursory search on Stackoverflow, the command line would be (this is not yet tested and the post is 5 years old) >> >> ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip >> >> to create the zip file for the Mac platform. The post says that is what the Archive Utility uses to compress files. Probably the rev zip tools use zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. >> >> Neville >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 5 12:16:32 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 5 May 2022 19:16:32 +0300 Subject: Zip file problem on Mac In-Reply-To: <3450E5C1-FD72-4482-A059-F369CD9708FA@iotecdigital.com> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <3450E5C1-FD72-4482-A059-F369CD9708FA@iotecdigital.com> Message-ID: Hello all, This sounds like this enhancement request https://quality.livecode.com/show_bug.cgi?id=9642 Kind regards, Panos -- On Thu, 5 May 2022 at 18:08, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Open a bug report and I will +1 it. > > Bob S > > > > On May 4, 2022, at 15:35 , matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Neville, i can confirm that behavior even under BigSur. > > > > I've created a small standalone with LC 10DP3 on BigSur and created 2 > zip files from the output folder using LC's zip library and using shell > command zip. > > > > Running the shell command 'zipinfo' to analyse both zip files showed, > that the zip created with LC's zip library did not contain any executable > permissions while the zip created with macOS zip shell command did contain > the permissions. > > So it seems the LC's zip library does not store the permissions in the > zip. > > > > According to your comment about The Unarchiver. Yes, i can also confirm > that The Unarchiver and also Keka can extract the zip file created with LC > and the standalone in the extracted folder is executable again. > > But... > > As zipinfo did list all the files wihtout any executable permissions, i > unzipped the zip with the shell command 'unzip' and that standalone was not > executable again. All files showed exact those permissions that zipinfo > showed before. > > > > So i assume the following: Keka and The Unarchive seem to correct file > permissions when they detect a folder structure that seems to be an app > bundle. But that's just an assumption. > > At least Keka seems to have such feature according to its change log > Changes in version 1.0.11 > > > > > > But anyway. The LC zip library ignores the permission when creating an > archive. If this worked before with older versions of LC i cannot say, as > i always used the zip shell command or tools like Keka. > > > > > > Matthias > > > > > >> Am 04.05.2022 um 16:47 schrieb Neville Smythe via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> I distribute a Mac standalone via a zip file, created using > revZipOpenArchive etc. > >> > >> This has worked fine until macOS Monterey or LiveCode 9.6.x > >> > >> Either a bug has been introduced into the revZip tools in 9.6.x, or I > have a corrupted version, or the Mac Archive Utility has changed so as to > make the rev zip tool fail. Can anyone verify the following? > >> > >> On my Mac, the Archive Utility in Monterey, which automagically unzips > files when a zip file is downloaded by Safari or double-clicked, now unsets > the execute bit on the application (more precisely, on the executable file > in the bundle). Which means the user gets a “This application could not be > opened”, with no options to continue, when they try to launch the unzipped > app. A terminal savvy user can use chmod x+ to make the app launchable, but > I can hardly expect the ordinary user to have to do that. The execute bit > is definitely set in the archive, because TheUnarchiver, a free third party > decompression tool, unzips the file leaving the app launchable. This also > suggests that the problem is not in my code. > >> > >> I can see why Granny Apple might have thought this was a good idea, > executables in zip files are a the major sources of trojans, but if Apple > has made this change it is a bit nasty because there is no obvious way to > override the behaviour. > >> > >> If I use the Archive Utility to actually create the zip file from the > standalone app bundle rather than using the rev tools, and then > double-click it to decompress, the file unzips with the execute bit set. > This shows the archive produced by revZip is not the same as that expected > by the Archive Utility. It also suggests a workaround would be to use > Archive Utility from a shell command (it is not AppleScriptable – bad > Apple!). From a cursory search on Stackoverflow, the command line would be > (this is not yet tested and the post is 5 years old) > >> > >> ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip > >> > >> to create the zip file for the Mac platform. The post says that is what > the Archive Utility uses to compress files. Probably the rev zip tools use > zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. > >> > >> Neville > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 harrison at all-auctions.com Thu May 5 13:33:14 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 5 May 2022 13:33:14 -0400 Subject: Visual Dissolve Times In-Reply-To: <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> Message-ID: <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Greetings LiveCoders, I was playing around with the visual dissolve effect and I wanted to be able to specify an amount of time for the effect. In my case I wanted it to do the effect in 0.75 seconds (3/4 of a second). We only get choices of very fast fast normal slow very slow When I tried the very fast setting, the fastest time I got was about 1 second. Is there anyway to make it faster? Thanks Rick From tore.nilsen at me.com Thu May 5 13:45:36 2022 From: tore.nilsen at me.com (Tore Nilsen) Date: Thu, 5 May 2022 19:45:36 +0200 Subject: Visual Dissolve Times In-Reply-To: <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Message-ID: You can set the effectRate to speed up or down the visual effects. Lower number increases the speed. Look it up in the Dictionary for more precise explanation. Best regards Tore Nilsen > 5. mai 2022 kl. 19:33 skrev Rick Harrison via use-livecode : > > Greetings LiveCoders, > > I was playing around with the visual dissolve effect > and I wanted to be able to specify an amount of > time for the effect. In my case I wanted it to > do the effect in 0.75 seconds (3/4 of a second). > > We only get choices of > > very fast > fast > normal > slow > very slow > > When I tried the very fast setting, the > fastest time I got was about 1 second. > > Is there anyway to make it faster? > > Thanks > > Rick > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 5 13:53:40 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 5 May 2022 19:53:40 +0200 Subject: Visual Dissolve Times In-Reply-To: References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Message-ID: Hi Tore and Rick, > Am 05.05.2022 um 19:45 schrieb Tore Nilsen via use-livecode : > > You can set the effectRate to speed up or down the visual effects. Lower number increases the speed. Look it up in the Dictionary for more precise explanation. exactly! The fact that "the effectrate" will only take effect with the "very slow" parameter is a bit mentally challenging however! :-D ... set the effectrate to 500 ## millisecs hide image 1 with visual effect dissolve VERY SLOW ## :-D ... > Best regards > Tore Nilsen > >> 5. mai 2022 kl. 19:33 skrev Rick Harrison via use-livecode : >> >> Greetings LiveCoders, >> >> I was playing around with the visual dissolve effect >> and I wanted to be able to specify an amount of >> time for the effect. In my case I wanted it to >> do the effect in 0.75 seconds (3/4 of a second). >> >> We only get choices of >> >> very fast >> fast >> normal >> slow >> very slow >> >> When I tried the very fast setting, the >> fastest time I got was about 1 second. >> >> Is there anyway to make it faster? >> >> Thanks >> >> Rick Best Klaus > -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From harrison at all-auctions.com Thu May 5 14:49:37 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 5 May 2022 14:49:37 -0400 Subject: Visual Dissolve Times In-Reply-To: References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Message-ID: <66460160-EA0A-436C-AE31-9B5C8A4B294D@all-auctions.com> Hi Tore, set the effectRate.. Cool! Thanks Tore! > On May 5, 2022, at 1:45 PM, Tore Nilsen via use-livecode wrote: > > You can set the effectRate to speed up or down the visual effects. Lower number increases the speed. Look it up in the Dictionary for more precise explanation. > > Best regards > Tore Nilsen From neville.smythe at optusnet.com.au Thu May 5 19:59:44 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 6 May 2022 09:59:44 +1000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: I have submitting a report to QC (Bug 23698 ) Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly. So the problem is nothing to do with Apple. TheUnarchiver and Keka changing the permissions to what they think they ought to be sounds well-intentioned but highly problematic (what’s the meme for the opposite of an overprotective nanny? Busybody big sister?) Your last comment caused me to realise that I have only changed very recently to automating the process of creating the zip files as a post-standalone build-process using revZip. Previously I created the zip files by hand, and my beta-tester uses Windows. Thought I was being clever. So the bug in the LC implementation may have been present for a long time. Neville > > Neville, i can confirm that behavior even under BigSur. > > I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. > > Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. > So it seems the LC's zip library does not store the permissions in the zip. > > According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. > But... > As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. > > So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. > At least Keka seems to have such feature according to its change log Changes in version 1.0.11 > > > But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. > > > Matthias > > From matthias_livecode_150811 at m-r-d.de Fri May 6 03:09:02 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 6 May 2022 09:09:02 +0200 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: Hm, is it really a bug or does revZip just stick to the zip specs? > Am 06.05.2022 um 01:59 schrieb Neville Smythe via use-livecode : > > I have submitting a report to QC (Bug 23698 ) > > Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly. > > So the problem is nothing to do with Apple. TheUnarchiver and Keka changing the permissions to what they think they ought to be sounds well-intentioned but highly problematic (what’s the meme for the opposite of an overprotective nanny? Busybody big sister?) > > Your last comment caused me to realise that I have only changed very recently to automating the process of creating the zip files as a post-standalone build-process using revZip. Previously I created the zip files by hand, and my beta-tester uses Windows. Thought I was being clever. So the bug in the LC implementation may have been present for a long time. > > Neville > >> >> Neville, i can confirm that behavior even under BigSur. >> >> I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. >> >> Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. >> So it seems the LC's zip library does not store the permissions in the zip. >> >> According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. >> But... >> As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. >> >> So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. >> At least Keka seems to have such feature according to its change log Changes in version 1.0.11 >> >> >> But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. >> >> >> 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 bobsneidar at iotecdigital.com Fri May 6 11:09:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 May 2022 15:09:51 +0000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <714A2529-DBFA-4FFB-892F-653FDACC8F98@iotecdigital.com> Should be an enhancement request. Bob S > On May 6, 2022, at 24:09 , matthias rebbe via use-livecode wrote: > > Hm, > is it really a bug or does revZip just stick to the zip specs? From waprothero at gmail.com Fri May 6 16:40:42 2022 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 May 2022 13:40:42 -0700 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: Message-ID: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Folks: I have a nasty accounting problem and need to somehow get data into Quicken (or perhaps find another management program). My question is whether it’s possible (or known) how to take csv data (easy) and convert to acceptable QIF form, which quicken requires. Best, Bill Prothero William Prothero waprothero at gmail.com From bobsneidar at iotecdigital.com Fri May 6 16:48:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 May 2022 20:48:26 +0000 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: Is QIF a text based format, or is it encrypted? If the latter (and it probably is), it is doubtful that there is a way to do this without software (of which there are some options if you google it). Bob S > On May 6, 2022, at 13:40 , William Prothero via use-livecode wrote: > > Folks: > I have a nasty accounting problem and need to somehow get data into Quicken (or perhaps find another management program). My question is whether it’s possible (or known) how to take csv data (easy) and convert to acceptable QIF form, which quicken requires. > > Best, > Bill Prothero > > William Prothero > waprothero 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 brian at milby7.com Fri May 6 16:49:45 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 6 May 2022 16:49:45 -0400 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <0DC03651-8604-4197-BEDB-EE3003AC5E18@milby7.com> It is a bug somewhere. See this big report: https://quality.livecode.com/show_bug.cgi?id=21447 I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. Thanks, Brian Sent from my iPhone > On May 6, 2022, at 3:10 AM, matthias rebbe via use-livecode wrote: > > Hm, > is it really a bug or does revZip just stick to the zip specs? > > > >> Am 06.05.2022 um 01:59 schrieb Neville Smythe via use-livecode : >> >> I have submitting a report to QC (Bug 23698 ) >> >> Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly. >> >> So the problem is nothing to do with Apple. TheUnarchiver and Keka changing the permissions to what they think they ought to be sounds well-intentioned but highly problematic (what’s the meme for the opposite of an overprotective nanny? Busybody big sister?) >> >> Your last comment caused me to realise that I have only changed very recently to automating the process of creating the zip files as a post-standalone build-process using revZip. Previously I created the zip files by hand, and my beta-tester uses Windows. Thought I was being clever. So the bug in the LC implementation may have been present for a long time. >> >> Neville >> >>> >>> Neville, i can confirm that behavior even under BigSur. >>> >>> I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. >>> >>> Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. >>> So it seems the LC's zip library does not store the permissions in the zip. >>> >>> According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. >>> But... >>> As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. >>> >>> So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. >>> At least Keka seems to have such feature according to its change log Changes in version 1.0.11 >>> >>> >>> But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. >>> >>> >>> 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 richmondmathewson at gmail.com Fri May 6 17:12:14 2022 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 7 May 2022 00:12:14 +0300 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: <88841474-c5b9-c0a5-1761-458bf5f39056@gmail.com> Awkward: Whackypedia says: "Different (and incompatible) versions of Quicken run on Windows and Macintosh systems." and "the absence of a common cross-platform file format" so getting data "into Quicken" could mean several things. "newer versions of Quicken for Mac use an SQLite database" So, my first question is going to be, 'which version of Quicken are you talking about?' and my second one is going to be, 'Windows or Mac?' and my third one is, 'Doesn't the person with this problem still have access to the version of quicken they previously used?' On 6.05.22 23:48, Bob Sneidar via use-livecode wrote: > Is QIF a text based format, or is it encrypted? If the latter (and it probably is), it is doubtful that there is a way to do this without software (of which there are some options if you google it). > > Bob S > > >> On May 6, 2022, at 13:40 , William Prothero via use-livecode wrote: >> >> Folks: >> I have a nasty accounting problem and need to somehow get data into Quicken (or perhaps find another management program). My question is whether its possible (or known) how to take csv data (easy) and convert to acceptable QIF form, which quicken requires. >> >> Best, >> Bill Prothero >> >> William Prothero >> waprothero 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri May 6 17:16:54 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 6 May 2022 17:16:54 -0400 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: why did you ask about another management program? what up? On Fri, May 6, 2022 at 4:41 PM William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Folks: > I have a nasty accounting problem and need to somehow get data into > Quicken (or perhaps find another management program). My question is > whether it’s possible (or known) how to take csv data (easy) and convert to > acceptable QIF form, which quicken requires. > > Best, > Bill Prothero > > William Prothero > waprothero 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 > -- 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 waprothero at gmail.com Fri May 6 18:45:36 2022 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 May 2022 15:45:36 -0700 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: Mike: Wellll, I notice that many folks are asking questions about merging and sorting lots of data using DataGrid, and databases, and I have a possible need for getting csv data into Quicken, on a Mac. I’m trying to see if a livecode solution fits my problem. It’s kinda like folks talking about using Livecode to format data for export to Excell. I had wondered if anybody on this list had faced this problem, and trying to format for Quicken, which is a very popular financial app. I’m not hopeful, but thought I’d check. I’m also considering just doing this completely in Livecode. There seem to be many pathways to financial management. Bank statement downloads don’t list the name of the person who made the transaction (at least some don’t), online payment systems (Converge, for example) allow csv downloads and it’s possible to get a csv formatted file of transactions that include payee name, address, phone, etc that I would like to keep. Merging these csv downloads with bank statements that list “Batches”, which often contain numerous credit card purchases, could be an onerous hand editing job..the kind I hate. I’m trying to streamline this task. Then there are the other online payment sites ……. WooCommerce, etc, which would presumably not involve Livecode programming. I’m not ready to go that way yet, hoping for something I know a bit more about. An approach connecting some of these various formats of financial data to Quicken (using Livecode) would require a livecode output to a quicken interchange format (QIF). In short (or was it “long”), if nobody has tried this, no worries, please ignore this post. I’m just doing “Do Diligence”. Best, Bill Prothero > On May 6, 2022, at 2:16 PM, Mike Kerner via use-livecode wrote: > > why did you ask about another management program? what up? > > On Fri, May 6, 2022 at 4:41 PM William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Folks: >> I have a nasty accounting problem and need to somehow get data into >> Quicken (or perhaps find another management program). My question is >> whether it’s possible (or known) how to take csv data (easy) and convert to >> acceptable QIF form, which quicken requires. >> >> Best, >> Bill Prothero >> >> William Prothero >> waprothero 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 >> > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode William Prothero waprothero at gmail.com From martyknappster at gmail.com Fri May 6 18:52:06 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Fri, 6 May 2022 15:52:06 -0700 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: <526FBEDE-DAA5-4B50-BF1F-25467E8B352C@gmail.com> I have a crude little LC utility stack that converts a CSV file to QIF - that would give you a start. Just contact me off list and I can send that to you if you want. Marty Knapp > On May 6, 2022, at 3:45 PM, William Prothero via use-livecode wrote: > > Mike: > Wellll, I notice that many folks are asking questions about merging and sorting lots of data using DataGrid, and databases, and I have a possible need for getting csv data into Quicken, on a Mac. I’m trying to see if a livecode solution fits my problem. It’s kinda like folks talking about using Livecode to format data for export to Excell. I had wondered if anybody on this list had faced this problem, and trying to format for Quicken, which is a very popular financial app. I’m not hopeful, but thought I’d check. > > I’m also considering just doing this completely in Livecode. There seem to be many pathways to financial management. Bank statement downloads don’t list the name of the person who made the transaction (at least some don’t), online payment systems (Converge, for example) allow csv downloads and it’s possible to get a csv formatted file of transactions that include payee name, address, phone, etc that I would like to keep. Merging these csv downloads with bank statements that list “Batches”, which often contain numerous credit card purchases, could be an onerous hand editing job..the kind I hate. I’m trying to streamline this task. > > Then there are the other online payment sites ……. WooCommerce, etc, which would presumably not involve Livecode programming. I’m not ready to go that way yet, hoping for something I know a bit more about. > > An approach connecting some of these various formats of financial data to Quicken (using Livecode) would require a livecode output to a quicken interchange format (QIF). > > In short (or was it “long”), if nobody has tried this, no worries, please ignore this post. I’m just doing “Do Diligence”. > > Best, > Bill Prothero From neville.smythe at optusnet.com.au Sat May 7 02:19:08 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sat, 7 May 2022 16:19:08 +1000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <47B441DF-1F6A-4731-AC3B-87E3AE4C5F60@optusnet.com.au> > On 7 May 2022, at 2:00 am, use-livecode-request at lists.runrev.com wrote: > > This sounds like this enhancement request > https://quality.livecode.com/show_bug.cgi?id=9642 Thanks Panos for pointing out this is a duplicate to bug 9642, an enhancement request since 2011. I did do a quick search but clearly not very thoroughly. The comments in that request hint that it is an OSX specific thing to include the execute permission flag in the zip files, and maybe the revZip tools are just following the zip specs as Matthias says, but I’m not sure about either. The original zip description said it included a copy of the file directory, but that was in the context of MSDOS which didn’t have an execute flag. Whether permissions are included in the archive does depend on the tool used to create the zip file and the platform. There is a long and confuseing thread on Stackoverflow about producing zip files which include execute permissions. Recall my objective was to use LC to post-process the standalone build to produce a compressed file of each of the Mac, Windows and Linux standalones created by LC, and to do this whether the development platform was a Mac, Windows or a Linux box. At the time zip appeared to be the obvious choice. I haven’t checked what the OSX shell command zip produces, but the Mac version produced by the default archiver (in effect the shell command ditto) does include the x flag. As Matthias notes one can check this using zipInfo or its equivalent unzip -Z on any platform. But it is not just Mac specific in the sense that Linux will happily decompress the Mac-created Linux standalone into an executable – at least on Ubuntu unzip -Z reports that x is set to true. On Windows unzip -Z looks at the .exe extension to decide if the file is executable rather than looking at unix permissions, so the Windows standalone will decompress into a launchable app (and I guess that is the reasoning behind TheUnarchiver and Keka setting the permission when unzipping a file with .app file extension on a Mac, even if the permission is not set in the archive itself). So I can achieve my objective if the development platform is a Mac using a shell command from LC. On Linux I don’t know what shell command would work. Windows not being unix-based clearly requires something more than just zip to set the permissions in the archives of the two non-Windows standalones. The clever people at LC know how to set unix permissions for the unix standalones themselves from the Windows IDE but it's beyond my skillset I’m afraid. I had hoped this could all be done in LC without going to platform-specific tools. So the requested enhancement would be nice. But I won’t hold my breath. From neville.smythe at optusnet.com.au Sat May 7 02:36:01 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sat, 7 May 2022 16:36:01 +1000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: The pulldownmenu bug I reported has been confirmed: bug 23693 To remind the reader: On a Mac, when a user select a menu item from a pulldown menu button, the menuPick message is sent first followed by a mouseLeave message (generated as the mouse leaves the button rect to select the menu item). On Windows, the mouseLeave is sent immediately, followed by menuPick. The Mac order is correct, the mouseLeave should be delayed until the displayed menu is dismissed. Linux has the same incorrect behaviour as Windows. The same situation applies to popupmenus and option menu buttons: the Mac has the correct order, Windows and Linux incorrect. However for the combobox button, all three platforms give the wrong message order! And one last twist, although the Mac implementation gives the correct order for 3 menu buttons, it sends the mouseLeave message twice, once immediately after the menuPick, and then again when the mouse is released. Neville From williamdesmet at gmail.com Sat May 7 04:06:01 2022 From: williamdesmet at gmail.com (William de Smet) Date: Sat, 7 May 2022 10:06:01 +0200 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 Message-ID: Hi there, Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. Building the app is no problem and gives no error message on my Mac Putting the app with Xcode on my iPad however gives an error: Unable to Install App I checked the Provisioning Profile but the iPad is listed on it. I did know this because there are other apps on it. I did work before. Am I overseeing something? , greetings, William From ambassador at fourthworld.com Sat May 7 16:42:30 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 7 May 2022 13:42:30 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. Background: ---------- MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. And until the port to MacOS, all platforms behaved consistently. So why the Mac change? Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. The Here-And-Now: ---------------- Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: Looking Forward: --------------- Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. What do you need from mouseLeave during a menu drop? What are you doing in response to that message? There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. -- Richard Gaskin Fourth World Systems Neville Smythe wrote: > The pulldownmenu bug I reported has been confirmed: bug 23693 > > > To remind the reader: On a Mac, when a user select a menu item from > a pulldown menu button, the menuPick message is sent first followed > by a mouseLeave message (generated as the mouse leaves the button > rect to select the menu item). On Windows, the mouseLeave is sent > immediately, followed by menuPick. > > The Mac order is correct, the mouseLeave should be delayed until the > displayed menu is dismissed. > > Linux has the same incorrect behaviour as Windows. > > The same situation applies to popupmenus and option menu buttons: > the Mac has the correct order, Windows and Linux incorrect. > > However for the combobox button, all three platforms give the wrong > message order! > > And one last twist, although the Mac implementation gives the correct > order for 3 menu buttons, it sends the mouseLeave message twice, once > immediately after the menuPick, and then again when the mouse is > released. > > Neville From bobsneidar at iotecdigital.com Sat May 7 17:35:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 7 May 2022 21:35:51 +0000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> References: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> Message-ID: Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? Sent from my iPhone > On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: > > It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. > > > Background: > ---------- > MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. > > On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. > > And until the port to MacOS, all platforms behaved consistently. > > So why the Mac change? > > Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. > > Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). > > So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. > > The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. > > So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. > > This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). > > It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. > > If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. > > On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. > > I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? > > All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. > > > > The Here-And-Now: > ---------------- > Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. > > They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. > > I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: > > > > Looking Forward: > --------------- > Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. > > What do you need from mouseLeave during a menu drop? What are you doing in response to that message? > > There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. > > -- > Richard Gaskin > Fourth World Systems > > > > Neville Smythe wrote: > > The pulldownmenu bug I reported has been confirmed: bug 23693 > > > > > > To remind the reader: On a Mac, when a user select a menu item from > > a pulldown menu button, the menuPick message is sent first followed > > by a mouseLeave message (generated as the mouse leaves the button > > rect to select the menu item). On Windows, the mouseLeave is sent > > immediately, followed by menuPick. > > > > The Mac order is correct, the mouseLeave should be delayed until the > > displayed menu is dismissed. > > > > Linux has the same incorrect behaviour as Windows. > > > > The same situation applies to popupmenus and option menu buttons: > > the Mac has the correct order, Windows and Linux incorrect. > > > > However for the combobox button, all three platforms give the wrong > > message order! > > > > And one last twist, although the Mac implementation gives the correct > > order for 3 menu buttons, it sends the mouseLeave message twice, once > > immediately after the menuPick, and then again when the mouse is > > released. > > > > Neville > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat May 7 21:18:20 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 8 May 2022 11:18:20 +1000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <561F27BA-F608-4AFF-B339-B79EDC38A1B6@optusnet.com.au> > On 8 May 2022, at 2:00 am, Brian Milby wrote: > > It is a bug somewhere. See this big report: > https://quality.livecode.com/show_bug.cgi?id=21447 > > I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. > Brian, utter genius! Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) I tried the implausible trick of using the undocumented revZipSetItemAttributes put 0x80000000 into tExtAttributes -- regular file add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! Neville From marksmithhfx at gmail.com Sun May 8 10:11:13 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 8 May 2022 15:11:13 +0100 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: References: Message-ID: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Hi William, In the Standalone Application setting for iOS there are options to build for “iPod and iPhone” or two options for building for iPad (“iPad” only and “iPod, iPhone, iPad”). I was going to suggest checking those, but then, just to be sure I rebuilt one of my own apps with “iPod and iPhone” setting, and it installed and ran just fine on my iPad. I tried with both the Test button in LC and installing the app with Xcode and in both cases it worked ok, so that can’t be the problem. Do let us know if you track down the cause. Cheers, Mark > On May 7, 2022, at 9:06 AM, William de Smet via use-livecode wrote: > > Hi there, > > Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 > Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. > Building the app is no problem and gives no error message on my Mac > Putting the app with Xcode on my iPad however gives an error: Unable to > Install App > > I checked the Provisioning Profile but the iPad is listed on it. > I did know this because there are other apps on it. > I did work before. > > Am I overseeing something? > > , > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun May 8 11:32:49 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 11:32:49 -0400 Subject: Launch of multiple application instances (Mac vs Win) Message-ID: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> Seeking help: On MacOS when you try to launch a second instance of an application, the macOS just brings the open app to the front (for example, if it is hidden on minimized). On Windows, when you try to launch a second instance of an application, Windows launches a second (or 3rd or 4th or ...) instance of the application. All well and good, but here is my problem. We have some users of our application that, on Windows, are accidentally launching more than once instance of our application and then getting confused (our users are often not very computer literate).. This confusion can lead to them thinking they have lost data or other problems caused by doing some work in one instance and some in another and not recognizing they have multiple instances running. I would like to add some start up code to application, that on Windows, detects if our app is already running and  (a) shuts the 2nd instance down OR (b) [PREFERABLY] warns the user they are launching a second instance and offers to (1) bring the existing instance to the foreground (and shut itself down) or actually continue and launch a seconds instance (for power users who know what they are doing) Has anyone written code to do this? i.e. code to detect an already running instance and code to bring that instance to the foreground? If so, are you willing to share the code? Just looking to not have to reinvent the wheel here. Thank you in advance! From klaus at major-k.de Sun May 8 11:37:08 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 8 May 2022 17:37:08 +0200 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> Message-ID: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Hi Paul, > Am 08.05.2022 um 17:32 schrieb Paul Dupuis via use-livecode : > > Seeking help: > > On MacOS when you try to launch a second instance of an application, the macOS just brings the open app to the front (for example, if it is hidden on minimized). > On Windows, when you try to launch a second instance of an application, Windows launches a second (or 3rd or 4th or ...) instance of the application. > > All well and good, but here is my problem. We have some users of our application that, on Windows, are accidentally launching more than once instance of our application and then getting confused (our users are often not very computer literate).. This confusion can lead to them thinking they have lost data or other problems caused by doing some work in one instance and some in another and not recognizing they have multiple instances running. > > I would like to add some start up code to application, that on Windows, detects if our app is already running and (a) shuts the 2nd instance down OR (b) [PREFERABLY] warns the user they are launching a second instance and offers to (1) bring the existing instance to the foreground (and shut itself down) or actually continue and launch a seconds instance (for power users who know what they are doing) > > Has anyone written code to do this? > i.e. code to detect an already running instance and code to bring that instance to the foreground? > If so, are you willing to share the code? > > Just looking to not have to reinvent the wheel here. just add this "dummy" handler to your stack: ---------------------------- on relaunch ## Nada :-) end relaunch ----------------------------- That will prevent the launching of multiple instances on Windows! > Thank you in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From colinholgate at gmail.com Sun May 8 11:47:36 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 8 May 2022 09:47:36 -0600 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: <38C2CEA9-EC96-40D3-A962-3185C7BA27BB@gmail.com> I wonder if the relaunch approach would leave the user in File Explorer, and would not switch across to the existing app instance? Hopefully it will be that simple. If it isn’t, try this approach: https://use-livecode.runrev.narkive.com/wOjpGm5V/external-for-running-one-instance-on-windows > On May 8, 2022, at 9:37 AM, Klaus major-k via use-livecode wrote: > > Hi Paul, > >> Am 08.05.2022 um 17:32 schrieb Paul Dupuis via use-livecode : >> >> Seeking help: >> >> On MacOS when you try to launch a second instance of an application, the macOS just brings the open app to the front (for example, if it is hidden on minimized). >> On Windows, when you try to launch a second instance of an application, Windows launches a second (or 3rd or 4th or ...) instance of the application. >> >> All well and good, but here is my problem. We have some users of our application that, on Windows, are accidentally launching more than once instance of our application and then getting confused (our users are often not very computer literate).. This confusion can lead to them thinking they have lost data or other problems caused by doing some work in one instance and some in another and not recognizing they have multiple instances running. >> >> I would like to add some start up code to application, that on Windows, detects if our app is already running and (a) shuts the 2nd instance down OR (b) [PREFERABLY] warns the user they are launching a second instance and offers to (1) bring the existing instance to the foreground (and shut itself down) or actually continue and launch a seconds instance (for power users who know what they are doing) >> >> Has anyone written code to do this? >> i.e. code to detect an already running instance and code to bring that instance to the foreground? >> If so, are you willing to share the code? >> >> Just looking to not have to reinvent the wheel here. > > just add this "dummy" handler to your stack: > ---------------------------- > on relaunch > ## Nada :-) > end relaunch > ----------------------------- > That will prevent the launching of multiple instances on Windows! > >> Thank you in advance! > > 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 paul at researchware.com Sun May 8 11:57:47 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 11:57:47 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: On 5/8/2022 11:37 AM, Klaus major-k via use-livecode wrote: > just add this "dummy" handler to your stack: > ---------------------------- > on relaunch > ## Nada :-) > end relaunch > ----------------------------- > That will prevent the launching of multiple instances on Windows! > > Thank you! I was unaware of 'relaunch' and it looks like I can make it do exactly what I want (warn the user and let them bring the 1st instance to the foreground or continue). Much appreciated! From paul at researchware.com Sun May 8 12:01:42 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 12:01:42 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <38C2CEA9-EC96-40D3-A962-3185C7BA27BB@gmail.com> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> <38C2CEA9-EC96-40D3-A962-3185C7BA27BB@gmail.com> Message-ID: On 5/8/2022 11:47 AM, Colin Holgate via use-livecode wrote: > I wonder if the relaunch approach would leave the user in File Explorer, and would not switch across to the existing app instance? Hopefully it will be that simple. > > If it isnt, try this approach: > > https://use-livecode.runrev.narkive.com/wOjpGm5V/external-for-running-one-instance-on-windows > Thanks! From paul at researchware.com Sun May 8 12:08:35 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 12:08:35 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: The LC 9.6.7 Dictionary entry to 'relaunch" states: It can be used in the following three ways: |1. If the message is passed, then the new instance continues running. 2. If "background" is returned, then the new instance is terminated. 3. If nothing is returned but the message is not passed, then the new instance is terminated and the existing instance's "defaultStack" is made the foreground window.| If there are no existing instances, the new instance will run. 1. seems pretty straightforward: on relaunch   pass relaunch end relaunch Would allow the 2nd (or whatever number) instance to continue to start up 3. Seems obvious as well: on relaunch   -- trap the message end relaunch Here, the message is not passed, so the new instance is terminated and the "defaultStack" of the existing instance is brought to the foreground However, I do not understand 2. What the heck does ;If "background" is returned" mean in the context of this handler? Returned from what? The only example given is: onrelaunch pDocument openDocument pDocument endrelaunch And the Dictionary states that actually multiple parameters can be passed (for example if multiple documents where dragged onto the app to launch it). I feel there is something missing in the Dictionary entry! From paul at researchware.com Sun May 8 12:32:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 12:32:01 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: Nevermind. I found the "Relaunch Sampler.rev" stack referred to in the Dictionary entry and it explains how the message is used further. On 5/8/2022 12:08 PM, Paul Dupuis via use-livecode wrote: > The LC 9.6.7 Dictionary entry to 'relaunch" states: > > It can be used in the following three ways: > > |1. If the message is passed, then the new instance continues running. > 2. If "background" is returned, then the new instance is terminated. > 3. If nothing is returned but the message is not passed, then the new > instance is terminated and the existing instance's "defaultStack" is > made the foreground window.| > > If there are no existing instances, the new instance will run. > > 1. seems pretty straightforward: > > on relaunch > >   pass relaunch > > end relaunch > > Would allow the 2nd (or whatever number) instance to continue to start up > > > 3. Seems obvious as well: > > on relaunch > >   -- trap the message > > end relaunch > > Here, the message is not passed, so the new instance is terminated and > the "defaultStack" of the existing instance is brought to the foreground > > > However, I do not understand 2. What the heck does ;If "background" is > returned" mean in the context of this handler? Returned from what? The > only example given is: > > onrelaunch pDocument openDocument pDocument endrelaunch > > And the Dictionary states that actually multiple parameters can be > passed (for example if multiple documents where dragged onto the app > to launch it). I feel there is something missing in the Dictionary entry! > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun May 8 13:32:54 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 8 May 2022 19:32:54 +0200 Subject: Zip file problem on Mac In-Reply-To: <561F27BA-F608-4AFF-B339-B79EDC38A1B6@optusnet.com.au> References: <561F27BA-F608-4AFF-B339-B79EDC38A1B6@optusnet.com.au> Message-ID: Hi all, > Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode : >> On 8 May 2022, at 2:00 am, Brian Milby wrote: >> It is a bug somewhere. See this big report: >> https://quality.livecode.com/show_bug.cgi?id=21447 >> I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. > Brian, utter genius! > Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) > I tried the implausible trick of using the undocumented revZipSetItemAttributes > put 0x80000000 into tExtAttributes -- regular file > add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) > revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system > for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. > Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. > As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. > I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! > > Neville I really wonder how much more useful features are undocumented and why they do not find their way into the dictionary!? -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Sun May 8 14:19:59 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 8 May 2022 14:19:59 -0400 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> I imagine this one isn’t documented due to the issues where you can’t read properties from an existing zip file. I think I found it when digging into the source. I’m sure there are some that could be found by looking at the source code that is still available. Sent from my iPhone > On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode wrote: > > Hi all, > >>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode : >>>> On 8 May 2022, at 2:00 am, Brian Milby wrote: >>> It is a bug somewhere. See this big report: >>> https://quality.livecode.com/show_bug.cgi?id=21447 >>> I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. >> Brian, utter genius! >> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) >> I tried the implausible trick of using the undocumented revZipSetItemAttributes >> put 0x80000000 into tExtAttributes -- regular file >> add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) >> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system >> for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. >> Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. >> As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. >> I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! >> >> Neville > > I really wonder how much more useful features are undocumented and why they do not find their way into the dictionary!? > > -- > 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 Sun May 8 14:23:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 8 May 2022 20:23:16 +0200 Subject: Zip file problem on Mac In-Reply-To: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> References: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> Message-ID: <41EDA2A7-0CEE-46AC-AE0F-493ED3C88952@major-k.de> Hi Brian, > Am 08.05.2022 um 20:19 schrieb Brian Milby via use-livecode : > > I imagine this one isn’t documented due to the issues where you can’t read properties from an existing zip file. I think I found it when digging into the source. > I’m sure there are some that could be found by looking at the source code that is still available. I bet there are, but surely won't take a look... 8-) > Sent from my iPhone > >> On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode wrote: >> >> Hi all, >> >>>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode : >>>>> On 8 May 2022, at 2:00 am, Brian Milby wrote: >>>> It is a bug somewhere. See this big report: >>>> https://quality.livecode.com/show_bug.cgi?id=21447 >>>> I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. >>> Brian, utter genius! >>> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) >>> I tried the implausible trick of using the undocumented revZipSetItemAttributes >>> put 0x80000000 into tExtAttributes -- regular file >>> add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) >>> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system >>> for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. >>> Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. >>> As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. >>> I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! >>> >>> Neville >> >> I really wonder how much more useful features are undocumented and why they do not find their way into the dictionary!? 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 Sun May 8 16:00:00 2022 From: merakosp at gmail.com (panagiotis m) Date: Sun, 8 May 2022 23:00:00 +0300 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> References: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Message-ID: Hello William, Could it be the case you have checked the "beta version" checkbox in the iOS standalone settings? Cheers, Panos On Sun, 8 May 2022, 17:12 Mark Smith via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi William, > > In the Standalone Application setting for iOS there are options to build > for “iPod and iPhone” or two options for building for iPad (“iPad” only and > “iPod, iPhone, iPad”). I was going to suggest checking those, but then, > just to be sure I rebuilt one of my own apps with “iPod and iPhone” > setting, and it installed and ran just fine on my iPad. I tried with both > the Test button in LC and installing the app with Xcode and in both cases > it worked ok, so that can’t be the problem. Do let us know if you track > down the cause. > > Cheers, > Mark > > > > On May 7, 2022, at 9:06 AM, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi there, > > > > Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 > > Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. > > Building the app is no problem and gives no error message on my Mac > > Putting the app with Xcode on my iPad however gives an error: Unable to > > Install App > > > > I checked the Provisioning Profile but the iPad is listed on it. > > I did know this because there are other apps on it. > > I did work before. > > > > Am I overseeing something? > > > > , > > > > greetings, > > > > William > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 markclark at mac.com Sun May 8 18:45:31 2022 From: markclark at mac.com (Mark Clark) Date: Sun, 8 May 2022 17:45:31 -0500 Subject: Decrypting (and encrypting) Large files Message-ID: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Wondering if anyone has used LiveCode for encrypting-decrypting large files? The docs typically have nice examples for files that can fit into a variable, but what are folks doing for big files that are larger than what you’d want in a variable? I’m thinking about using LC for decrypting zip compressed log files that can be multiple gigabytes in size. I’d like to use just LC vs. resorting to shell if possible. Likely need a hash value to compare the decrypted output against the original as well. I’m thinking some variation along the lines of open file x for read, reading some manageable chunk into memory, decrypting a portion, writing that to disk and repeat. But that seems too simple. Think we need AES 256. Any shared experience much appreciated. Thanks all, Mark From neville.smythe at optusnet.com.au Sun May 8 20:05:06 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Mon, 9 May 2022 10:05:06 +1000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: <6F883029-00DB-41BD-ADF1-437890FF4D5F@optusnet.com.au> Thanks Richard for your wise observations. As cross-platform developers we do indeed need to be aware of differences that will arise in standalones because of GUI differences in the operating systems – different placement of menus, different text string lengths, some features not even being available. These things are largely well-known and documented with warnings. But I contend this problem is something different. Here the order of processing user events from an LC object is different. Although this may indeed be an artefact of the way the LC button menu objects are implemented, I don’t think the developer could be expected to expect this, and to my mind that makes it a definite bug. If it occurred with more common event pairs, LC coding would be much more difficult. I am not actually fussed which processing order is accepted as “correct”: although I expressed an IMO preference for the order as implemented on a Mac, the case for the opposite order is at least as strong. My use-case was as follows. I have a pulldownmenu, not an application-wide menu, which applied to only certain selected items in a field. On mouseEnter, the selection changed colour, as a visual cue to the user that these menu items could be applied to the selection. On mouseLeave the colour changed back. At some point I inadvertently added a line of code to the mouseLeave handler which had the effect of killing the selection; this line was supposed to go into the menuPick handler. On my Mac the app continued to work as intended, but on a user's Windows PC the effect was to change a very minor cosmetic difference into a major bug because the menu no longer did anything. This was quite difficult to track down. As to the priority of the bug: very low. Unless it turns to be easy to fix I don’t expect the inconsistency will ever be fixed even if the expert review agrees that it is actually a bug. Consistency of event order across platforms is clearly of very high importance, but this is a pretty extreme edge case, which only cropped up for me because of my own coding mistake. I reported it here because it caused me grief and I thought it of general interest. If anyone else is bitten and is looking for documentation, it is probably sufficient that the matter is now on record at least for readers of this list and in the bug submission. Neville From williamdesmet at gmail.com Mon May 9 04:00:37 2022 From: williamdesmet at gmail.com (William de Smet) Date: Mon, 9 May 2022 10:00:37 +0200 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: References: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Message-ID: Hi there, Thanks for answering my questions. First off all I downloaded a newer version of Xcode 13.2.1 yesterday but that didn't make a difference. Then Jaque replied on the forum and suggested an issue with Apple Intermediate Certificate: https://developer.apple.com/support/expiration/ After checking Apple Keychain I noticed that there were double entries and one of them was not attached to apps. So first I downloaded all 4 certificates as advised on the Apple developer page. Then I deleted the wrong entry in Keychain, restarted my Mac and now it works again. Happy days! groeten, William Op zo 8 mei 2022 om 22:01 schreef panagiotis m via use-livecode < use-livecode at lists.runrev.com>: > Hello William, > > Could it be the case you have checked the "beta version" checkbox in the > iOS standalone settings? > > Cheers, > Panos > > On Sun, 8 May 2022, 17:12 Mark Smith via use-livecode, < > use-livecode at lists.runrev.com> wrote: > > > Hi William, > > > > In the Standalone Application setting for iOS there are options to build > > for “iPod and iPhone” or two options for building for iPad (“iPad” only > and > > “iPod, iPhone, iPad”). I was going to suggest checking those, but then, > > just to be sure I rebuilt one of my own apps with “iPod and iPhone” > > setting, and it installed and ran just fine on my iPad. I tried with both > > the Test button in LC and installing the app with Xcode and in both cases > > it worked ok, so that can’t be the problem. Do let us know if you track > > down the cause. > > > > Cheers, > > Mark > > > > > > > On May 7, 2022, at 9:06 AM, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Hi there, > > > > > > Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 > > > Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. > > > Building the app is no problem and gives no error message on my Mac > > > Putting the app with Xcode on my iPad however gives an error: Unable to > > > Install App > > > > > > I checked the Provisioning Profile but the iPad is listed on it. > > > I did know this because there are other apps on it. > > > I did work before. > > > > > > Am I overseeing something? > > > > > > , > > > > > > greetings, > > > > > > William > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 MikeKerner at roadrunner.com Mon May 9 08:49:26 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 9 May 2022 08:49:26 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: have you tried ti? i have not run into a situation where a variable was too big. On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < use-livecode at lists.runrev.com> wrote: > Wondering if anyone has used LiveCode for encrypting-decrypting large > files? The docs typically have nice examples for files that can fit into a > variable, but what are folks doing for big files that are larger than what > you’d want in a variable? I’m thinking about using LC for decrypting zip > compressed log files that can be multiple gigabytes in size. I’d like to > use just LC vs. resorting to shell if possible. > > Likely need a hash value to compare the decrypted output against the > original as well. I’m thinking some variation along the lines of open file > x for read, reading some manageable chunk into memory, decrypting a > portion, writing that to disk and repeat. But that seems too simple. Think > we need AES 256. Any shared experience much appreciated. > > Thanks all, > > Mark > _______________________________________________ > use-livecode mailing list > use-livecode 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 MikeKerner at roadrunner.com Mon May 9 08:52:29 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 9 May 2022 08:52:29 -0400 Subject: Zip file problem on Mac In-Reply-To: <41EDA2A7-0CEE-46AC-AE0F-493ED3C88952@major-k.de> References: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> <41EDA2A7-0CEE-46AC-AE0F-493ED3C88952@major-k.de> Message-ID: completely off-topic, but brian said something that i forgot to repeat, at the time access to source in the libraries, etc. has saved me a lot of time when debugging. i ran into a situation with one of the other libraries, a couple of weeks ago. i was stumped, and thought about submitting a ts request or a bug report, but being able to read through and step through the source helped me solve the problem. On Sun, May 8, 2022 at 2:23 PM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Brian, > > > Am 08.05.2022 um 20:19 schrieb Brian Milby via use-livecode < > use-livecode at lists.runrev.com>: > > > > I imagine this one isn’t documented due to the issues where you can’t > read properties from an existing zip file. I think I found it when digging > into the source. > > I’m sure there are some that could be found by looking at the source > code that is still available. > > I bet there are, but surely won't take a look... 8-) > > > Sent from my iPhone > > > >> On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hi all, > >> > >>>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode < > use-livecode at lists.runrev.com>: > >>>>> On 8 May 2022, at 2:00 am, Brian Milby wrote: > >>>> It is a bug somewhere. See this big report: > >>>> https://quality.livecode.com/show_bug.cgi?id=21447 < > https://quality.livecode.com/show_bug.cgi?id=21447> > >>>> I actually think it is related. The zip should be created as a Unix > variant and not Fat and file attributes should be stored. One thing that > could be tried is to manually set the executable bit when creating the > archive. I was able to store a link in a zip using this method, but there > is no way to read the file attributes in LC. > >>> Brian, utter genius! > >>> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not > a ‘unx’ zip and not adding the external attributes – but it looks like you > have provided the workaround (for my problem of execute permissions at > least) > >>> I tried the implausible trick of using the undocumented > revZipSetItemAttributes > >>> put 0x80000000 into tExtAttributes -- regular file > >>> add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file > (and may only do for Mac,Linux?) > >>> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for > unix system > >>> for each file as it is added to the archive. I didn’t really expect > this to work as the file is already added to the archive in ‘fat’ format. > >>> Not only does unzip -Z report that the archive items are now in ‘unx’ > format with permissions rwxrwxr-x, but astonishingly the zip actually > decompresses to a working executable – well, only so far briefly tested on > a Mac but it seems likely this is going to work on all platforms. > >>> As you point out in your bug 21447 report, revZip probably won’t be > able to decompress the archive correctly because of other deficiencies, but > I only need the user's system to unpack it. And I will have to modify the > permissions for each individual file in the archive. > >>> I never thought I would use the expression, but, like , awesome! OK > sorry I went there, but jolly well done, that man! > >>> > >>> Neville > >> > >> I really wonder how much more useful features are undocumented and why > they do not find their way into the dictionary!? > > 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 > -- 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 marksmithhfx at gmail.com Mon May 9 09:22:47 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 9 May 2022 14:22:47 +0100 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: References: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Message-ID: <701E8DD5-FD07-4ACE-AFFE-7E7AEAED3139@gmail.com> Thanks for letting us know William. Glad the cleanup did the trick. Mark > On May 9, 2022, at 9:00 AM, William de Smet via use-livecode wrote: > > Hi there, > > Thanks for answering my questions. > First off all I downloaded a newer version of Xcode 13.2.1 yesterday but > that didn't make a difference. > Then Jaque replied on the forum and suggested an issue with Apple > Intermediate Certificate: https://developer.apple.com/support/expiration/ > After checking Apple Keychain I noticed that there were double entries and > one of them was not attached to apps. > So first I downloaded all 4 certificates as advised on the Apple developer > page. > Then I deleted the wrong entry in Keychain, restarted my Mac and now it > works again. > > Happy days! > > > > groeten, > > William > > > > > Op zo 8 mei 2022 om 22:01 schreef panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > >> Hello William, >> >> Could it be the case you have checked the "beta version" checkbox in the >> iOS standalone settings? >> >> Cheers, >> Panos >> >> On Sun, 8 May 2022, 17:12 Mark Smith via use-livecode, < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi William, >>> >>> In the Standalone Application setting for iOS there are options to build >>> for “iPod and iPhone” or two options for building for iPad (“iPad” only >> and >>> “iPod, iPhone, iPad”). I was going to suggest checking those, but then, >>> just to be sure I rebuilt one of my own apps with “iPod and iPhone” >>> setting, and it installed and ran just fine on my iPad. I tried with both >>> the Test button in LC and installing the app with Xcode and in both cases >>> it worked ok, so that can’t be the problem. Do let us know if you track >>> down the cause. >>> >>> Cheers, >>> Mark >>> >>> >>>> On May 7, 2022, at 9:06 AM, William de Smet via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi there, >>>> >>>> Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 >>>> Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. >>>> Building the app is no problem and gives no error message on my Mac >>>> Putting the app with Xcode on my iPad however gives an error: Unable to >>>> Install App >>>> >>>> I checked the Provisioning Profile but the iPad is listed on it. >>>> I did know this because there are other apps on it. >>>> I did work before. >>>> >>>> Am I overseeing something? >>>> >>>> , >>>> >>>> greetings, >>>> >>>> William >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 craig at starfirelighting.com Mon May 9 09:42:50 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 9 May 2022 09:42:50 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> I believe that there is no upper limit to the size of a variable in LC. So I am with Mike here. What makes you nervous about dealing with a large dataset within LC itself? Craig > On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode wrote: > > have you tried ti? i have not run into a situation where a variable was too > big. > > On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Wondering if anyone has used LiveCode for encrypting-decrypting large >> files? The docs typically have nice examples for files that can fit into a >> variable, but what are folks doing for big files that are larger than what >> you’d want in a variable? I’m thinking about using LC for decrypting zip >> compressed log files that can be multiple gigabytes in size. I’d like to >> use just LC vs. resorting to shell if possible. >> >> Likely need a hash value to compare the decrypted output against the >> original as well. I’m thinking some variation along the lines of open file >> x for read, reading some manageable chunk into memory, decrypting a >> portion, writing that to disk and repeat. But that seems too simple. Think >> we need AES 256. Any shared experience much appreciated. >> >> Thanks all, >> >> Mark >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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." > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon May 9 09:54:46 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 9 May 2022 09:54:46 -0400 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> Message-ID: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> Richard. So glad to have you in this world. Craig > On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode wrote: > > Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? > > Sent from my iPhone > >> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: >> >> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. >> >> >> Background: >> ---------- >> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. >> >> On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. >> >> And until the port to MacOS, all platforms behaved consistently. >> >> So why the Mac change? >> >> Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. >> >> Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). >> >> So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. >> >> The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. >> >> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. >> >> This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). >> >> It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. >> >> If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. >> >> On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. >> >> I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? >> >> All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. >> >> >> >> The Here-And-Now: >> ---------------- >> Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. >> >> They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. >> >> I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: >> >> >> >> Looking Forward: >> --------------- >> Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. >> >> What do you need from mouseLeave during a menu drop? What are you doing in response to that message? >> >> There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> >> >> Neville Smythe wrote: >>> The pulldownmenu bug I reported has been confirmed: bug 23693 >>> >>> >>> To remind the reader: On a Mac, when a user select a menu item from >>> a pulldown menu button, the menuPick message is sent first followed >>> by a mouseLeave message (generated as the mouse leaves the button >>> rect to select the menu item). On Windows, the mouseLeave is sent >>> immediately, followed by menuPick. >>> >>> The Mac order is correct, the mouseLeave should be delayed until the >>> displayed menu is dismissed. >>> >>> Linux has the same incorrect behaviour as Windows. >>> >>> The same situation applies to popupmenus and option menu buttons: >>> the Mac has the correct order, Windows and Linux incorrect. >>> >>> However for the combobox button, all three platforms give the wrong >>> message order! >>> >>> And one last twist, although the Mac implementation gives the correct >>> order for 3 menu buttons, it sends the mouseLeave message twice, once >>> immediately after the menuPick, and then again when the mouse is >>> released. >>> >>> Neville >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 tom at makeshyft.com Mon May 9 12:42:16 2022 From: tom at makeshyft.com (Tom Glod) Date: Mon, 9 May 2022 12:42:16 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> Message-ID: there is no way to decrypt something that does not fit in memory. with 64 bit builds the limit is whatever the motherboard supports. on 32 bit builds the limit is whatever the os will allow 1 process to have, but then u need memory to store the decrypted data too. you can use a command line program to outsource that work and memory management. On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > I believe that there is no upper limit to the size of a variable in LC. So > I am with Mike here. What makes you nervous about dealing with a large > dataset within LC itself? > > Craig > > > On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > have you tried ti? i have not run into a situation where a variable was > too > > big. > > > > On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Wondering if anyone has used LiveCode for encrypting-decrypting large > >> files? The docs typically have nice examples for files that can fit > into a > >> variable, but what are folks doing for big files that are larger than > what > >> you’d want in a variable? I’m thinking about using LC for decrypting zip > >> compressed log files that can be multiple gigabytes in size. I’d like to > >> use just LC vs. resorting to shell if possible. > >> > >> Likely need a hash value to compare the decrypted output against the > >> original as well. I’m thinking some variation along the lines of open > file > >> x for read, reading some manageable chunk into memory, decrypting a > >> portion, writing that to disk and repeat. But that seems too simple. > Think > >> we need AES 256. Any shared experience much appreciated. > >> > >> Thanks all, > >> > >> Mark > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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." > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 craig at starfirelighting.com Mon May 9 14:41:41 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 9 May 2022 14:41:41 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> Message-ID: Ah, I see. I did not appreciate that the dataset could be in the many gigabytes. Craig > On May 9, 2022, at 12:42 PM, Tom Glod via use-livecode wrote: > > there is no way to decrypt something that does not fit in memory. with 64 > bit builds the limit is whatever the motherboard supports. on 32 bit > builds the limit is whatever the os will allow 1 process to have, > but then u need memory to store the decrypted data too. > you can use a command line program to outsource that work and memory > management. > > On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I believe that there is no upper limit to the size of a variable in LC. So >> I am with Mike here. What makes you nervous about dealing with a large >> dataset within LC itself? >> >> Craig >> >>> On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> have you tried ti? i have not run into a situation where a variable was >> too >>> big. >>> >>> On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Wondering if anyone has used LiveCode for encrypting-decrypting large >>>> files? The docs typically have nice examples for files that can fit >> into a >>>> variable, but what are folks doing for big files that are larger than >> what >>>> you’d want in a variable? I’m thinking about using LC for decrypting zip >>>> compressed log files that can be multiple gigabytes in size. I’d like to >>>> use just LC vs. resorting to shell if possible. >>>> >>>> Likely need a hash value to compare the decrypted output against the >>>> original as well. I’m thinking some variation along the lines of open >> file >>>> x for read, reading some manageable chunk into memory, decrypting a >>>> portion, writing that to disk and repeat. But that seems too simple. >> Think >>>> we need AES 256. Any shared experience much appreciated. >>>> >>>> Thanks all, >>>> >>>> Mark >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 ambassador at fourthworld.com Mon May 9 21:20:32 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 9 May 2022 18:20:32 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <6F883029-00DB-41BD-ADF1-437890FF4D5F@optusnet.com.au> References: <6F883029-00DB-41BD-ADF1-437890FF4D5F@optusnet.com.au> Message-ID: <9cdb105f-0379-f14d-4e18-95c926699360@fourthworld.com> Neville Smythe wrote: > My use-case was as follows. I have a pulldownmenu, not an application- > wide menu, which applied to only certain selected items in a field. > On mouseEnter, the selection changed colour, as a visual cue to the > user that these menu items could be applied to the selection. On > mouseLeave the colour changed back. At some point I inadvertently > added a line of code to the mouseLeave handler which had the effect > of killing the selection; this line was supposed to go into the > menuPick handler. On my Mac the app continued to work as intended, > but on a user's Windows PC the effect was to change a very minor > cosmetic difference into a major bug because the menu no longer > did anything. This was quite difficult to track down. Thank you for that description. Just to make sure I understand this, the menu button in question is on the card and does not appear in the menu bar, is that correct? I think what you're seeing there is a side effect of the special handling LC uses for Mac menus, using OS routines rather than internal routines which emulate menus from temporary stacks. On Mac it seems the engine is suspending other mouse messages while it lets the OS handle the popped up menu, whereas on other platforms the normal mouseLeave is happening as soon as the mouse leaves the menu button. At the moment the only solution I can think of is a bit kludgy, but seems to work: Use stack menus on all platforms, with a timer to track when the menu stack has been closed. It takes more to explain than to demonstrate, so here's a demo - feel free to ask any follow-up questions: http://fourthworld.net/lc/MenuMessaging.livecode If you want to make the stack menu look less kludgy you could embrace the kludge: add a preview pane or other elements that clearly show this is a non-standard menu, but in a good way. :) I sometimes use stack menus for graphical pickers. They're kinda nice when you need 'em. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Tue May 10 09:03:28 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 10 May 2022 09:03:28 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> Message-ID: I don't think you're necessarily going to be limited by physical memory, as the computer will have a certain addressing space in VM, as well, right? On Mon, May 9, 2022 at 2:42 PM Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > Ah, I see. > > I did not appreciate that the dataset could be in the many gigabytes. > > Craig > > > On May 9, 2022, at 12:42 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > there is no way to decrypt something that does not fit in memory. with 64 > > bit builds the limit is whatever the motherboard supports. on 32 bit > > builds the limit is whatever the os will allow 1 process to have, > > but then u need memory to store the decrypted data too. > > you can use a command line program to outsource that work and memory > > management. > > > > On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> I believe that there is no upper limit to the size of a variable in LC. > So > >> I am with Mike here. What makes you nervous about dealing with a large > >> dataset within LC itself? > >> > >> Craig > >> > >>> On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> have you tried ti? i have not run into a situation where a variable was > >> too > >>> big. > >>> > >>> On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> Wondering if anyone has used LiveCode for encrypting-decrypting large > >>>> files? The docs typically have nice examples for files that can fit > >> into a > >>>> variable, but what are folks doing for big files that are larger than > >> what > >>>> you’d want in a variable? I’m thinking about using LC for decrypting > zip > >>>> compressed log files that can be multiple gigabytes in size. I’d like > to > >>>> use just LC vs. resorting to shell if possible. > >>>> > >>>> Likely need a hash value to compare the decrypted output against the > >>>> original as well. I’m thinking some variation along the lines of open > >> file > >>>> x for read, reading some manageable chunk into memory, decrypting a > >>>> portion, writing that to disk and repeat. But that seems too simple. > >> Think > >>>> we need AES 256. Any shared experience much appreciated. > >>>> > >>>> Thanks all, > >>>> > >>>> Mark > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode 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." > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 > -- 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 jbv at souslelogo.com Tue May 10 14:33:34 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 10 May 2022 14:33:34 -0400 Subject: LC subscription and special characters Message-ID: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> Hi list, I have been asked by a client to make some upgrades to a standalone app that I built with LC 6.5 about 12 years ago. The app is a front end for managing a remote DB on a server. The DB content is roughly 90% in french, and the rest in english and german. It has about 160000 entries and counting. I am about to buy a LC standard plan for both Mac and Win, since the app is been used on both platforms, and will also be in the future. But before I proceed, I'd like to make sure that it will help solving a minor problem that users have met lately. Last year a re-compiled the app, without changing anything, with a LC 8.2 Community version. It keeps running fine on both Win & Mac, except that on Windows, some special characters in french (like or or ) have become impossible to type with regular keys combinations (or any other mean), when it was possible before with the LC 6.5 version. Furthermore, a few new users will be added to the crew, who will work with qwerty keyboards, when the rest of the staff will continue to work with azerty keyboards. So finally my question : it seems that the standard plan is the best option because it will give me access to the latest LC versions, but what about these special characters issue ? Is it only related to LC 8.2, or will it also occur with the latest versions ? Thanks in advance. jbv From markclark at mac.com Tue May 10 15:14:12 2022 From: markclark at mac.com (Mark Clark) Date: Tue, 10 May 2022 14:14:12 -0500 Subject: use-livecode Digest, Vol 224, Issue 8 In-Reply-To: <9D607A97-1476-407F-A2BD-4F19BC956578@me.com> References: <9D607A97-1476-407F-A2BD-4F19BC956578@me.com> Message-ID: <43F0B7CD-462D-49D4-96A1-0398B38AD069@mac.com> Thanks Tom, Mike and Craig. Sorry for the late response, I’m on the digest version. My thought was that an open file for read does not require placing the whole file into memory. Am I mistaken in that assumption? Seems like it would be nice to not use all of the available memory to run the decrypt. Results below seem to confirm this... I worked up a quick stack using the chunking notion I referenced in the original post and this seems to work fine. I compressed the Mac system folder on an old SSD. That directory was 8.9GB on disk. Compressing it with the Finder took about 28 minutes. Compressed size was 5.9GB. Using a byte range of 1048576 (1MB—small but useful for testing), I was able to read the source compressed file, encrypt and write to the new (encrypted) file in about 2 minutes. Decrypt took a little longer (less than 3 min). Memory utilization (I did a quick build of the stack) was 44-45MB during both operations. I’ll bump up the byte range and see how that compares. Thanks, Mark > On May 10, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > there is no way to decrypt something that does not fit in memory. with 64 > bit builds the limit is whatever the motherboard supports. on 32 bit > builds the limit is whatever the os will allow 1 process to have, > but then u need memory to store the decrypted data too. > you can use a command line program to outsource that work and memory > management. From ambassador at fourthworld.com Tue May 10 15:35:18 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 May 2022 12:35:18 -0700 Subject: Decrypting (and encrypting) Large files In-Reply-To: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: Mark Clark wrote: > Wondering if anyone has used LiveCode for encrypting-decrypting large > files? ... > Im thinking about using LC for decrypting zip compressed log files > that can be multiple gigabytes in size. Id like to use just LC vs. > resorting to shell if possible. What is behind the preference to roll your own rather than call existing purpose-built command-line tools from LC with shell()? Your chunking described in your latest post seems the way to go, AFAIK pretty much how other tools would handle it. Another option: if you're in an environment where even log files require strong encryption, could you pipe log data to a separate secured log server instead? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue May 10 15:50:54 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 May 2022 12:50:54 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> References: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> Message-ID: What a very kind thing of you to say. Thank you. After 30 years as a recipient of so much wisdom and lore shared with me, I've felt compelled to share some of that forward. In recent years most of what I write seems ignored, so I've been spending my time elsewhere. Your encouragement may see me checking in on LC stuff more often. Thank you. -- Richard Gaskin Fourth World Systems Craig Newman wrote: > Richard. > > So glad to have you in this world. > > Craig > >> On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode wrote: >> >> Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? >> >> Sent from my iPhone >> >>> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: >>> >>> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. >>> >>> >>> Background: >>> ---------- >>> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. >>> >>> On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. >>> >>> And until the port to MacOS, all platforms behaved consistently. >>> >>> So why the Mac change? >>> >>> Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. >>> >>> Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). >>> >>> So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. >>> >>> The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. >>> >>> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. >>> >>> This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). >>> >>> It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. >>> >>> If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. >>> >>> On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. >>> >>> I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? >>> >>> All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. >>> >>> >>> >>> The Here-And-Now: >>> ---------------- >>> Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. >>> >>> They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. >>> >>> I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: >>> >>> >>> >>> Looking Forward: >>> --------------- >>> Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. >>> >>> What do you need from mouseLeave during a menu drop? What are you doing in response to that message? >>> >>> There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> From paul at researchware.com Tue May 10 17:53:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 10 May 2022 17:53:51 -0400 Subject: LC subscription and special characters In-Reply-To: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> Message-ID: <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> I thought I recalled a bug in the LC engine where using the keyboard method of typing the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X, didn't work in Livecode. However, I just tried searching the Livecode Quality Center for a bug number and couldn't find it so perhaps I am mis-remembering. On 5/10/2022 2:33 PM, jbv via use-livecode wrote: > Hi list, > I have been asked by a client to make some upgrades to a standalone > app that I built with LC 6.5 about 12 years ago. > The app is a front end for managing a remote DB on a server. The DB > content is roughly 90% in french, and the rest in english and german. > It has about 160000 entries and counting. > > I am about to buy a LC standard plan for both Mac and Win, since the > app is been used on both platforms, and will also be in the future. > But before I proceed, I'd like to make sure that it will help solving > a minor problem that users have met lately. > > Last year a re-compiled the app, without changing anything, with a LC > 8.2 Community version. > It keeps running fine on both Win & Mac, except that on Windows, some > special characters in french (like or or ) have become impossible > to type with regular keys combinations (or any other mean), when it > was possible before with the LC 6.5 version. > Furthermore, a few new users will be added to the crew, who will work > with qwerty keyboards, when the rest of the staff will continue to > work with azerty keyboards. > > So finally my question : it seems that the standard plan is the best > option because it will give me access to the latest LC versions, but > what about these special characters issue ? Is it only related to LC > 8.2, or will it also occur with the latest versions ? > > Thanks 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 bobsneidar at iotecdigital.com Tue May 10 18:30:46 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 10 May 2022 22:30:46 +0000 Subject: use-livecode Digest, Vol 224, Issue 8 In-Reply-To: <43F0B7CD-462D-49D4-96A1-0398B38AD069@mac.com> References: <9D607A97-1476-407F-A2BD-4F19BC956578@me.com> <43F0B7CD-462D-49D4-96A1-0398B38AD069@mac.com> Message-ID: You can read for x characters then check the result for empty. So no you do not need to read the entire file into memory. Bob S > On May 10, 2022, at 12:14 , Mark Clark via use-livecode wrote: > > Thanks Tom, Mike and Craig. Sorry for the late response, I’m on the digest version. > > My thought was that an open file for read does not require placing the whole file into memory. Am I mistaken in that assumption? Seems like it would be nice to not use all of the available memory to run the decrypt. Results below seem to confirm this... > > I worked up a quick stack using the chunking notion I referenced in the original post and this seems to work fine. I compressed the Mac system folder on an old SSD. That directory was 8.9GB on disk. Compressing it with the Finder took about 28 minutes. Compressed size was 5.9GB. > > Using a byte range of 1048576 (1MB—small but useful for testing), I was able to read the source compressed file, encrypt and write to the new (encrypted) file in about 2 minutes. Decrypt took a little longer (less than 3 min). Memory utilization (I did a quick build of the stack) was 44-45MB during both operations. I’ll bump up the byte range and see how that compares. > > > > Thanks, > Mark > > >> On May 10, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: >> >> there is no way to decrypt something that does not fit in memory. with 64 >> bit builds the limit is whatever the motherboard supports. on 32 bit >> builds the limit is whatever the os will allow 1 process to have, >> but then u need memory to store the decrypted data too. >> you can use a command line program to outsource that work and memory >> management. > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue May 10 20:14:33 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 11 May 2022 10:14:33 +1000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Thanks again Richard In my case I don’t actually need a workaround. Once I had corrected my own error, the only effect of the inconsistent event order is that on Windows and Linux the colour coding of the selection turns off a fraction of a second earlier than on a Mac. I am not so obsessive as to need to fix that. Nevertheless it is conceivable, if unlikely, that someone might want to do something more significant in the mouseLeave handler, so I continue to call the inconsistency a bug. The fact that the combobox menu button behaves in the same way on all 3 platforms does seem to indicate that the inconsistency could be resolved (in favour of the Windows event order). But I am also not so obsessive as to expect the LC team to do a major architectural reset to address the issue. I have added a note to my bug submission suggesting a small note in the documentation for the 3 anomalous buttons noting how they behave slightly differently on a Mac, thus turning a hidden bug into a documented feature. Neville From jbv at souslelogo.com Wed May 11 01:54:41 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 11 May 2022 01:54:41 -0400 Subject: LC subscription and special characters In-Reply-To: <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> Message-ID: <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> Thank you for your reply. Obviously, it was possible in earlier versions of LC. So, could someone be kind enough to make a quick test with the most recent versions of LC, by typing text inside a field, if special characters can be used, like alt+144 for , and possibly on azerty and qwerty keyboards ? Thank you in advance. Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : > I thought I recalled a bug in the LC engine where using the keyboard > method of typing the character code, press ALT, and then press X. For > example, to type a dollar symbol ($), type 0024, press ALT, and then > press X, didn't work in Livecode. However, I just tried searching the > Livecode Quality Center for a bug number and couldn't find it so > perhaps I am mis-remembering. > From devin_asay at byu.edu Wed May 11 11:37:22 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 11 May 2022 15:37:22 +0000 Subject: LC subscription and special characters In-Reply-To: <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> Message-ID: Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. https://quality.livecode.com/show_bug.cgi?id=18702 On May 10, 2022, at 11:54 PM, jbv via use-livecode > wrote: Thank you for your reply. Obviously, it was possible in earlier versions of LC. So, could someone be kind enough to make a quick test with the most recent versions of LC, by typing text inside a field, if special characters can be used, like alt+144 for É, and possibly on azerty and qwerty keyboards ? Thank you in advance. Le 2022-05-10 17:53, Paul Dupuis via use-livecode a écrit : I thought I recalled a bug in the LC engine where using the keyboard method of typing the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X, didn't work in Livecode. However, I just tried searching the Livecode Quality Center for a bug number and couldn't find it so perhaps I am mis-remembering. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From dochawk at gmail.com Wed May 11 12:06:51 2022 From: dochawk at gmail.com (doc hawk) Date: Wed, 11 May 2022 09:06:51 -0700 Subject: I can't find a reason to keep business subscription! References: <0CBBB506-8A22-43FC-B6C3-2A12B0615F00@gmail.com> Message-ID: <66BE8C7F-AEF8-4DF9-B586-53ED320F3BBC@gmail.com> I have a perpetual indy license, and a $299/year business license, which renews on Thursday. I only picked it up during a promotion because it seemed like a good deal, and I might want it in the future. To date, the only thing I’ve ever tried to do with it is the PDFs that got added a couple of years ago, which were a complete failure (it renders at screen resolution when printing/outputting a new pdf!). The project I got them for will never see release; I missed the window a few years ago and the field is now crowded. That, and I have no interest in pouring the energy into starting a new business instead of retiring . . . Anyway, it’s still hard to cut the cord . . . From ambassador at fourthworld.com Wed May 11 14:27:33 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 May 2022 11:27:33 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> References: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Message-ID: Neville Smythe wrote: > Thanks again Richard > > In my case I dont actually need a workaround. Once I had corrected > my own error, the only effect of the inconsistent event order is that > on Windows and Linux the colour coding of the selection turns off a > fraction of a second earlier than on a Mac. I am not so obsessive as > to need to fix that. Glad you have a solution. Hopefully the demo I posted will be of use to others. Using stacks as menus are a poor substitute for text menus when all you need is text, but a wide range of graphical pickers can be made which can be very attractive and super-simple to make: Set the menuName property of a menu button to the short name of the stack you want to use as a menu, make sure the buttons you're using in the menu stack have their autoArm set to true, and all the normal menu behaviors you'd expect just work. Imagine icons used to represent a set of templates, or sample report output, or graphical effects, or anything else that lends itself well to a graphical picker menu. I just updated the example stack this morning to include a simple graphical picker so folks could get a clearer idea of how it can be very useful: http://fourthworld.net/lc/MenuMessaging.livecode -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paul at researchware.com Wed May 11 16:41:56 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 May 2022 16:41:56 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> Message-ID: <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with a single new scrolling field. I switch to run mode (pointer tool) and with a blinking insertion bar in the field, tried: ALT+00A9 and ALT00A9 Which should have produced a symbol Neither worked. I tried several other Unicode codes. None worked. Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be reopened It may be related to bug https://quality.livecode.com/show_bug.cgi?id=23688 as the optionKeyDown (ALT key on Window) message is completely broken On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote: > Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. > > https://quality.livecode.com/show_bug.cgi?id=18702 > > > On May 10, 2022, at 11:54 PM, jbv via use-livecode > wrote: > > Thank you for your reply. > Obviously, it was possible in earlier versions of LC. > > So, could someone be kind enough to make a quick test with the most recent versions of LC, by typing text inside a field, if special characters can be used, like alt+144 for , and possibly on azerty and qwerty keyboards ? > Thank you in advance. > > Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : > I thought I recalled a bug in the LC engine where using the keyboard > method of typing the character code, press ALT, and then press X. For > example, to type a dollar symbol ($), type 0024, press ALT, and then > press X, didn't work in Livecode. However, I just tried searching the > Livecode Quality Center for a bug number and couldn't find it so > perhaps I am mis-remembering. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 11 17:00:03 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 May 2022 21:00:03 +0000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Message-ID: <12701F97-1FE2-4F8A-B0DA-025DCC7C2140@iotecdigital.com> I'm going to have a look at that Richard. Thanks. Bob S > On May 11, 2022, at 11:27 , Richard Gaskin via use-livecode wrote: > > Neville Smythe wrote: > > Thanks again Richard > > > > In my case I don’t actually need a workaround. Once I had corrected > > my own error, the only effect of the inconsistent event order is that > > on Windows and Linux the colour coding of the selection turns off a > > fraction of a second earlier than on a Mac. I am not so obsessive as > > to need to fix that. > > Glad you have a solution. > > Hopefully the demo I posted will be of use to others. Using stacks as menus are a poor substitute for text menus when all you need is text, but a wide range of graphical pickers can be made which can be very attractive and super-simple to make: > > Set the menuName property of a menu button to the short name of the stack you want to use as a menu, make sure the buttons you're using in the menu stack have their autoArm set to true, and all the normal menu behaviors you'd expect just work. > > Imagine icons used to represent a set of templates, or sample report output, or graphical effects, or anything else that lends itself well to a graphical picker menu. > > I just updated the example stack this morning to include a simple graphical picker so folks could get a clearer idea of how it can be very useful: > > http://fourthworld.net/lc/MenuMessaging.livecode > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.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 paul at researchware.com Wed May 11 17:10:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 May 2022 17:10:51 -0400 Subject: LC subscription and special characters In-Reply-To: <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> Message-ID: According to Microsoft, for Windows 10, Unicode typing is now ALT X This works for me in TextPad Press and hold ALT and X together a box appears in Textpad to enter the Unicode number into. Once 4 digits have been entered the character appears. It does not work in LC 9.6.7 STABLE in a new stack with a new scrolling field. -- Paul On 5/11/2022 4:41 PM, Paul Dupuis via use-livecode wrote: > In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with a > single new scrolling field. I switch to run mode (pointer tool) and > with a blinking insertion bar in the field, tried: > > ALT+00A9 > and > ALT00A9 > > Which should have produced a symbol > > Neither worked. I tried several other Unicode codes. None worked. > > Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be reopened > It may be related to bug > https://quality.livecode.com/show_bug.cgi?id=23688 as the > optionKeyDown (ALT key on Window) message is completely broken > > > On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote: >> Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. >> >> https://quality.livecode.com/show_bug.cgi?id=18702 >> >> >> On May 10, 2022, at 11:54 PM, jbv via use-livecode >> > >> wrote: >> >> Thank you for your reply. >> Obviously, it was possible in earlier versions of LC. >> >> So, could someone be kind enough to make a quick test with the most >> recent versions of LC, by typing text inside a field, if special >> characters can be used, like alt+144 for , and possibly on azerty >> and qwerty keyboards ? >> Thank you in advance. >> >> Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : >> I thought I recalled a bug in the LC engine where using the keyboard >> method of typing the character code, press ALT, and then press X. For >> example, to type a dollar symbol ($), type 0024, press ALT, and then >> press X, didn't work in Livecode. However, I just tried searching the >> Livecode Quality Center for a bug number and couldn't find it so >> perhaps I am mis-remembering. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> Devin Asay >> Office of Digital Humanities >> Brigham Young University >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed May 11 17:21:05 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 May 2022 17:21:05 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> Message-ID: Well, Microsoft is not consistent (not that I am surprised!) ALT X number works in TextPAd, but not in MS-Word. The alternate method (mention in this MS support note: https://support.microsoft.com/en-us/office/insert-ascii-or-unicode-latin-based-symbols-and-characters-d13f58d3-7bcb-44a7-a4d5-972ee12e50e0) of type U+ such as U+B5 for and then pressing ALT-X does work in MS-Word, but not in TextPad! Neither method works in Livecode 9.6.7 So, not: ALT + 00A9 ALT 00A9 ALT X 00A9 U+A9 ALT X On 5/11/2022 5:10 PM, Paul Dupuis via use-livecode wrote: > According to Microsoft, for Windows 10, Unicode typing is now ALT X > > > This works for me in TextPad Press and hold ALT and X together a box > appears in Textpad to enter the Unicode number into. Once 4 digits > have been entered the character appears. > > It does not work in LC 9.6.7 STABLE in a new stack with a new > scrolling field. > > -- Paul > > On 5/11/2022 4:41 PM, Paul Dupuis via use-livecode wrote: >> In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with >> a single new scrolling field. I switch to run mode (pointer tool) and >> with a blinking insertion bar in the field, tried: >> >> ALT+00A9 >> and >> ALT00A9 >> >> Which should have produced a symbol >> >> Neither worked. I tried several other Unicode codes. None worked. >> >> Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be >> reopened >> It may be related to bug >> https://quality.livecode.com/show_bug.cgi?id=23688 as the >> optionKeyDown (ALT key on Window) message is completely broken >> >> >> On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote: >>> Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. >>> >>> https://quality.livecode.com/show_bug.cgi?id=18702 >>> >>> >>> On May 10, 2022, at 11:54 PM, jbv via use-livecode >>> > >>> wrote: >>> >>> Thank you for your reply. >>> Obviously, it was possible in earlier versions of LC. >>> >>> So, could someone be kind enough to make a quick test with the most >>> recent versions of LC, by typing text inside a field, if special >>> characters can be used, like alt+144 for , and possibly on azerty >>> and qwerty keyboards ? >>> Thank you in advance. >>> >>> Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : >>> I thought I recalled a bug in the LC engine where using the keyboard >>> method of typing the character code, press ALT, and then press X. For >>> example, to type a dollar symbol ($), type 0024, press ALT, and then >>> press X, didn't work in Livecode. However, I just tried searching the >>> Livecode Quality Center for a bug number and couldn't find it so >>> perhaps I am mis-remembering. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> Devin Asay >>> Office of Digital Humanities >>> Brigham Young University >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 markclark at mac.com Wed May 11 21:10:10 2022 From: markclark at mac.com (Mark Clark) Date: Wed, 11 May 2022 20:10:10 -0500 Subject: use-livecode Digest, Vol 224, Issue 9, Re: Decrypting (and encrypting) Large files In-Reply-To: References: Message-ID: <6072070D-3DFB-422F-AC94-C50FD961CA13@mac.com> Why the preference? It’s not a hard and fast rule by any means, but I suppose because rolling your own means owning your code, flaws and all. In simple system environments I wouldn’t use LC at all, I’d just use shell scripting. Since different users will have different shells (or none) probably best in this case to make it standalone. Calling shell might cause more support cases than a roll your own especially since there are different versions of openssl, LibreSSL v OpenSSL, etc. The default message digest differs from one flavor of openssl to another—looks like built in encrypt is using md5 still? Maybe I’m missing some knob I could turn at encrypt time, wouldn’t be the first time I missed something obvious. Yeah, chunking seems to work just fine, although I ran into another issue. I decided to not use cbc (big IV for my use case) and instead use gcm and this seems to be broken somehow in LC 9.6.3. There aren’t any useful error messages that I can see. Just to fast check I downloaded an old stack by Bill Vlahos (from 2012) and checked to see if I was doing something egregiosuly wrong. If I am, I’m not alone;) aes-256-gcm seems to “work” on encrypt and blow up on decrypt. Ditto for 192, 128, etc. The last option you mentioned doesn’t work in my use case, though it makes plenty of good sense in a standard type data center scenario. I really do appreciate all the nice folks on this list. One of the main reasons I enjoy LiveCode is the people who use it. If I can resolve the use of gcm soonish I’ll do a few more tests at different ranges of blocks. Intuitively it might seem that a larger chunk for encryption would be faster, but that’s not what the tests produced. Below are the results for a 1MB chunk to encrypt vs a 1GB chunk. Obviously the memory requirements for the standalone are much friendlier for the smaller chunk. This is from an oldish mac laptop Processor Name: Quad-Core Intel Core i7 Processor Speed: 2.8 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Hyper-Threading Technology: Enabled Memory: 16 GB cipher is aes-256-cbc source zip: 5,904,809,647 bytes (5.9 GB on disk) encrypted zip: 5,904,990,880 bytes (5.92 GB on disk) decrypted zip: 5,904,809,647 bytes (5.9 GB on disk) ----- byte range: 1073741824 (1GB) Total milliseconds required to encrypt in 6 runs: 61884 memory peaked at 4GB, returned to 42 MB after encryption run Total milliseconds required to decrypt in 6 runs: 69678 memory peaked at just under 4GB, fluctuates at 2-3.5GB ---- byte range: 1048576 (1 MB) memory utilization went from 42 MB to 45.5MB Total milliseconds required to encrypt in 5632 runs: 45918 memory utilization 45.7 MB Total milliseconds required to decrypt in 5632 runs: 41725 Thanks all, if anyone would like to check out the gcm flavor from a Mac I’d like to know if you get different (better) results. I’m on 11.6.4, btw. Mark > On May 11, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > What is behind the preference to roll your own rather than call existing > purpose-built command-line tools from LC with shell()? > > Your chunking described in your latest post seems the way to go, AFAIK > pretty much how other tools would handle it. > > Another option: if you're in an environment where even log files > require strong encryption, could you pipe log data to a separate secured > log server instead? From jbv at souslelogo.com Thu May 12 03:03:24 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Thu, 12 May 2022 03:03:24 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> Message-ID: <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> Thank you all for your answers. I am going to contact tech support to see if there is any solution to be expected in the near future. FYI, so far we are using a workaround : https://www.azerty.global/ jbv From merakosp at gmail.com Thu May 12 06:18:02 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 12 May 2022 13:18:02 +0300 Subject: LC subscription and special characters In-Reply-To: <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> Message-ID: Hello Paul, Does Alt+A9 work for you? Cheers, Panos -- On Thu, 12 May 2022 at 10:04, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Thank you all for your answers. > I am going to contact tech support to see if there is any solution to be > expected in the near future. > > FYI, so far we are using a workaround : > https://www.azerty.global/ > > 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 williamdesmet at gmail.com Thu May 12 06:43:19 2022 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 12 May 2022 12:43:19 +0200 Subject: =?UTF-8?Q?LibKiosk_by_Andr=C3=A9_Garzia?= Message-ID: Hi there, I found some information about LibKiosk André Garzia released 15 years ago. Is there still a download available somewhere or is it deprecated now? groeten, William From benr_mc at cogapp.com Thu May 12 07:37:34 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 12 May 2022 12:37:34 +0100 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> References: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> Message-ID: <14f317e6-dce7-365c-3109-cfe40ae3c424@cogapp.com> Ditto that. There should be a "Lifetime contribution" award for Livecode heroes. Ben On 09/05/2022 14:54, Craig Newman via use-livecode wrote: > Richard. > > So glad to have you in this world. > > Craig > >> On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode wrote: >> >> Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? >> >> Sent from my iPhone >> >>> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: >>> >>> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. >>> >>> >>> Background: >>> ---------- >>> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. >>> >>> On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. >>> >>> And until the port to MacOS, all platforms behaved consistently. >>> >>> So why the Mac change? >>> >>> Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. >>> >>> Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). >>> >>> So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. >>> >>> The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. >>> >>> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. >>> >>> This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). >>> >>> It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. >>> >>> If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. >>> >>> On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. >>> >>> I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? >>> >>> All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. >>> >>> >>> >>> The Here-And-Now: >>> ---------------- >>> Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. >>> >>> They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. >>> >>> I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: >>> >>> >>> >>> Looking Forward: >>> --------------- >>> Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. >>> >>> What do you need from mouseLeave during a menu drop? What are you doing in response to that message? >>> >>> There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> >>> >>> >>> Neville Smythe wrote: >>>> The pulldownmenu bug I reported has been confirmed: bug 23693 >>>> >>>> >>>> To remind the reader: On a Mac, when a user select a menu item from >>>> a pulldown menu button, the menuPick message is sent first followed >>>> by a mouseLeave message (generated as the mouse leaves the button >>>> rect to select the menu item). On Windows, the mouseLeave is sent >>>> immediately, followed by menuPick. >>>> >>>> The Mac order is correct, the mouseLeave should be delayed until the >>>> displayed menu is dismissed. >>>> >>>> Linux has the same incorrect behaviour as Windows. >>>> >>>> The same situation applies to popupmenus and option menu buttons: >>>> the Mac has the correct order, Windows and Linux incorrect. >>>> >>>> However for the combobox button, all three platforms give the wrong >>>> message order! >>>> >>>> And one last twist, although the Mac implementation gives the correct >>>> order for 3 menu buttons, it sends the mouseLeave message twice, once >>>> immediately after the menuPick, and then again when the mouse is >>>> released. >>>> >>>> Neville >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 andre at andregarzia.com Thu May 12 08:14:35 2022 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 12 May 2022 13:14:35 +0100 Subject: =?utf-8?Q?Re=3A_LibKiosk_by_Andr=C3=A9_Garzia?= In-Reply-To: References: Message-ID: Hi, I don’t even remember that library. I think the source is probably lost. I made it before I started using version control systems. Anyway, I doubt that this external would work today, too many things have changed. Maybe it is possible to replicate that without an external with some cleverly written LiveCode Builder gizmo. > On 12 May 2022, at 11:43, William de Smet via use-livecode wrote: > > Hi there, > > I found some information about LibKiosk André Garzia released 15 years ago. > Is there still a download available somewhere or is it deprecated now? > > > groeten, > > William > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu May 12 08:18:31 2022 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 12 May 2022 13:18:31 +0100 Subject: =?utf-8?Q?Re=3A_LibKiosk_by_Andr=C3=A9_Garzia?= In-Reply-To: References: Message-ID: https://developer.apple.com/library/archive/technotes/tn2062/_index.html#//apple_ref/doc/uid/DTS10003090-CH1-SECTION3 Looks like a good starting point for someone wanting to attempt to create a new external. > On 12 May 2022, at 13:14, Andre Garzia wrote: > > Hi, I don’t even remember that library. I think the source is probably lost. I made it before I started using version control systems. Anyway, I doubt that this external would work today, too many things have changed. Maybe it is possible to replicate that without an external with some cleverly written LiveCode Builder gizmo. > >> On 12 May 2022, at 11:43, William de Smet via use-livecode wrote: >> >> Hi there, >> >> I found some information about LibKiosk André Garzia released 15 years ago. >> Is there still a download available somewhere or is it deprecated now? >> >> >> groeten, >> >> William >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 12 08:26:34 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 12 May 2022 08:26:34 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> Message-ID: On 5/12/2022 6:18 AM, panagiotis m via use-livecode wrote: > Hello Paul, > > Does Alt+A9 work for you? > > Cheers, > Panos > -- > No. Alt+A9 does not work. I checked my Registry (per https://quality.livecode.com/show_bug.cgi?id=18702#c15) and in Computer\HKEY_CURRENT_USER\Control Panel\Input Method there is no "EnableHexNumpad". There is only "(Default)" and "Show Status" and a "Hot Keys" sub key list. I thought I would be clever and write a bit of LC script (see below) using listRegistry, queryRegistry, and setRegistry. However, none of the registry functions appear to be working in the IDE under LC 9.6.7 and I vaguely recall that they now only work if the application executing them has Administrative privileges? Is that correct? I guess the larger question is: For a person developing an LC based app who's users what to enter Unicode characters, what is the "best practice" for doing this? Is it always copy and paste from some web site or the "Character Map" accessory on Windows or what? If there some bit of working code a person can put in their application to set the Registry key IF the user checks a preference option or clicks a button or something? For NEXT MONTH's Livecode Global troubleshooting session, how would one address this? :-) on mouseUp pMouseButton   if platform() = "Win32" then     put listRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method") into tList     answer "Keys at 'Computer\HKEY_CURRENT_USER\Control Panel\Input Method':"&cr&tList&cr&"On my computer I should see 1 key: 'Show Status'" -- DEBUG     if "EnableHexNumpad" is not among the lines of tList then       -- no registry key exists       put empty into tData -- flag teh key does not exists     else       -- a key exists, now check its value       put queryRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad\") into tData     end if     if tData <> 1 then       put "

Your Windows system is not configured for keyboard entry of Unicode characters!

" into tPrompt       put "

The value of Registery Key 'Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad\' is:"&&tData &"." after tPrompt       put "A reboot will be required.

" after tPrompt       answer warning tPrompt with "Confgured" or "Skip"       if it = "Configure" then         if not setRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad",1) then           -- an error occured           answer error (the result)         else           answer warning "

Please reboot your computer.

"         end if       end if     end if   end if end mouseUp From ludovic.thebault at laposte.net Thu May 12 13:10:36 2022 From: ludovic.thebault at laposte.net (ludovic.thebault at laposte.net) Date: Thu, 12 May 2022 19:10:36 +0200 (CEST) Subject: Sqlite and Monterey on M1 Message-ID: <1035540836.1342971.1652375436147@wlpnf0205> ‌ ‌ ‌   Hello All, I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db) Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok. (-rwxr-xr-x for the database). The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted). What I miss ? Thanks ! From klaus at major-k.de Thu May 12 13:19:33 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 12 May 2022 19:19:33 +0200 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Message-ID: <4BDB07D7-FBFF-4A12-B98E-6F4D6D8EE8BE@major-k.de> Hi all, > Am 11.05.2022 um 20:27 schrieb Richard Gaskin via use-livecode : > ... make sure the buttons you're using in the menu stack have their autoArm set to true, ... Hint: that property "autoarm" did not make it into the inspector somehow, so you need to do this by script! > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Thu May 12 13:56:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 12 May 2022 17:56:15 +0000 Subject: Sqlite and Monterey on M1 In-Reply-To: <1035540836.1342971.1652375436147@wlpnf0205> References: <1035540836.1342971.1652375436147@wlpnf0205> Message-ID: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, even if you have explicit write permissions. It's better if you put the file into her documents folder somewhere. To answer the question you are about to ask, it's likely that her old Mac OS was not current enough to have the sandboxing limitations, and so it worked. Bob S > On May 12, 2022, at 10:10 , ludovic.thebault--- via use-livecode wrote: > > ‌ > > ‌ > > ‌ > > > Hello All, > > I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db) > > Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok. > (-rwxr-xr-x for the database). > > The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted). > > What I miss ? > > 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 klaus at major-k.de Thu May 12 14:01:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 12 May 2022 20:01:16 +0200 Subject: Sqlite and Monterey on M1 In-Reply-To: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> References: <1035540836.1342971.1652375436147@wlpnf0205> <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Message-ID: <24143D79-2908-4C19-BBC5-BD2424D59338@major-k.de> Bonsoir Ludovic, on the Mac we have write permissions here -> specialFolderPath("preferences") Works on Monterey as well and is "out of sight" of the user. ;-) > Am 12.05.2022 um 19:56 schrieb Bob Sneidar via use-livecode : > > Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, even if you have explicit write permissions. It's better if you put the file into her documents folder somewhere. To answer the question you are about to ask, it's likely that her old Mac OS was not current enough to have the sandboxing limitations, and so it worked. > > Bob S > >> On May 12, 2022, at 10:10 , ludovic.thebault--- via use-livecode wrote: >> Hello All, >> >> I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db) >> Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok. >> (-rwxr-xr-x for the database). >> The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted). >> What I miss ? >> Thanks ! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Thu May 12 14:24:29 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 May 2022 13:24:29 -0500 Subject: Sqlite and Monterey on M1 In-Reply-To: <24143D79-2908-4C19-BBC5-BD2424D59338@major-k.de> References: <1035540836.1342971.1652375436147@wlpnf0205> <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> <24143D79-2908-4C19-BBC5-BD2424D59338@major-k.de> Message-ID: <46167dde-c007-474e-9029-5d5231ea7270@hyperactivesw.com> On 5/12/22 1:01 PM, Klaus major-k via use-livecode wrote: > on the Mac we have write permissions here -> specialFolderPath("preferences") > Works on Monterey as well and is "out of sight" of the user. ;-) > >> Am 12.05.2022 um 19:56 schrieb Bob Sneidar via use-livecode: >> >> Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, That's kind of strange, since Mac OS provides the Application Support folder specifically for apps to store their data. Has that changed? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu May 12 14:25:06 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 12 May 2022 11:25:06 -0700 Subject: Sqlite and Monterey on M1 In-Reply-To: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> References: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Message-ID: Bob Sneidar wrote: > I don't think the latest Apple operating systems allow the writing > to the App Support folder, even if you have explicit write > permissions. Where are we supposed to write application support files if not to Application Support? First they demanded control of the file format apps use for Prefs, now this... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Thu May 12 14:39:16 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 12 May 2022 11:39:16 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <4BDB07D7-FBFF-4A12-B98E-6F4D6D8EE8BE@major-k.de> References: <4BDB07D7-FBFF-4A12-B98E-6F4D6D8EE8BE@major-k.de> Message-ID: Klaus wrote: > Am 11.05.2022 um 20:27 schrieb Richard Gaskin wrote: >> ... make sure the buttons you're using in the menu stack have >> their autoArm set to true, ... > > Hint: > that property "autoarm" did not make it into the inspector somehow, > so you need to do this by script! It's far from the only one. LC objects have a LARGE number of properties we can work with. The Inspector shows only a subset of the most commonly-used ones. Inspectors are great for consumer tools, but dev tools tend to provide Property Sheets so they can expose a much larger range of properties developers will want to work with. LC attempts to straddle the space between consumer tool and dev tool, in both marketing and IDE design, and it sometimes leads to things one camp or the other may find confusing. I threw together a quick Property Sheet a while back: http://fourthworld.net/revnet/devolution/4W_Props.rev.gz -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paul at researchware.com Thu May 12 15:30:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 12 May 2022 15:30:23 -0400 Subject: Sqlite and Monterey on M1 In-Reply-To: References: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Message-ID: <67b6c0bb-5879-7e28-6e06-951947f12cd0@researchware.com> On 5/12/2022 2:25 PM, Richard Gaskin via use-livecode wrote: > Bob Sneidar wrote: > > > I don't think the latest Apple operating systems allow the writing > > to the App Support folder, even if you have explicit write > > permissions. > > Where are we supposed to write application support files if not to > Application Support? > > First they demanded control of the file format apps use for Prefs, now > this... > I did a little bit of research when I ran into my app breaking on Catalina and up when trying to reach a folder at specialFolderPath("temporary") and write files in that folder. The problem is that newer macOSes use an runtime algorithm to try to determine when an application is asking for access in "special" places. If the algorithm detect special access (sat to the Desktop or Documents folder or a Webcam and so on) the OS pops up the "Do you want to allow .. " dialog for the user to allow or deny access. An application signed and notarized WITH entitlements can specify some entitlements that are checked and if the App has declared these entitlements to protected resources, they are allowed. Some "protected" resources have NOT corresponding entitlements (at least currently). For disk access to folder paths without entitlements, the user can grant an application Full Disk Access, from System Preferences > Security, but and App can not specify an entitlement for Full Disk Access. It must be granted by the user. Further, an Apple Engineer is a forum response (or someone claiming to be an Apple Engineer) noted that the algorithm to detect requests for special access resources can make mistakes and not recognize a request as a request and there for present a dialog to the user for allowing or denying and the default is to deny. So some circumstances, like apps running  in multiple processes (was an example cited, but it was implied there are other circumstances) your app MIGHT get the allow/deny dialog OR it might not - depending on your app. And for some resources, it just won't get any dialog and no entitlement will allow access, only instructions to the user to grant Full Disk Access (or some other similar ONLY allowed by the user permissions) will work. In short, Apple's sandboxing is a developer mess. If you can, placing files in the Documents folder is best as (A) you can specify the Documents folder in an entitlement and (C) the sandboxing algorithm does seem to always detect (first time) Documents access requests and pop up the dialog. DISCLAIMER: I did not have time to research this in detail and the "apple engineer" may or may not have been a real Apple engineer or knew what they were posting about. Our installer asks people on the last screen to grant our apps full disk access (if they are on Catalina+) and most people do and it solved a lot of recoding. From dan at clearvisiontech.com Fri May 13 15:40:11 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 13 May 2022 19:40:11 +0000 Subject: Audio Control on Mobile? Message-ID: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE@clearvisiontech.com> Hello! On desktop, there is the player object which is great! However, it doesn't work on Mobile. Is there a way to deal with an audio file on mobile (Android and iOS)? Here's what I need to do: - Load an audio file from a server - Play the file - Pause file - Set the cursor (where to play from or jump to) - Know when the end of file is reached - length of audio file - current play position - file state (isPlaying or isPaused) Thank you in advance! -Dan From tom at makeshyft.com Sat May 14 14:07:32 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 14 May 2022 14:07:32 -0400 Subject: Audio Control on Mobile? In-Reply-To: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE@clearvisiontech.com> References: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE@clearvisiontech.com> Message-ID: Hi Dan, Look up mobilecontrolcreate "player" mobilecontrolset That should cover you. Also, the browser can display a HTML compatible player. On Fri, May 13, 2022 at 3:41 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello! On desktop, there is the player object which is great! However, > it doesn't work on Mobile. Is there a way to deal with an audio file on > mobile (Android and iOS)? Here's what I need to do: > > - Load an audio file from a server > - Play the file > - Pause file > - Set the cursor (where to play from or jump to) > - Know when the end of file is reached > - length of audio file > - current play position > - file state (isPlaying or isPaused) > > Thank you in advance! > > -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 andre at andregarzia.com Sun May 15 07:51:12 2022 From: andre at andregarzia.com (Andre Garzia) Date: Sun, 15 May 2022 12:51:12 +0100 Subject: 20% discount on advanced LiveCode development books Message-ID: <91A2EC68-64F5-45D5-B630-BE639036A85D@andregarzia.com> Hi Friends, I had a wonderful time at the LiveCode DevCon 2022 and decided to extend the discount I offered for my books at the con to the wider LC community. These are two books that complement each other, one about organising and developing effective code and the other about building your own dev tools to help your products succeed. LIVECODE ADVANCED APPLICATION ARCHITECTURE BOOK This book will help you learn about LiveCode best practices and advanced application architecture. With the techniques contained in it you will build applications that are easier to maintain and adapt leading to a more fun and profitable future. https://payhip.com/b/I1Un DEVELOPMENT ORIENTED DEVELOPMENT BOOK Development Oriented Development is a novel approach to coding with LiveCode that prioritizes developer comfort and robustness by favouring treating LiveCode as a mouldable environment. By the end of this book, you'll know how and why to build custom plugins to make your development workflow easier, and how bespoke project-specific tools lead to software that is easier to maintain. https://payhip.com/b/18eH The discount coupon is BOOKS20 and you need to apply it when you're checking out. Best Andre From alanstenhouse at hotmail.com Sun May 15 08:12:25 2022 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 15 May 2022 21:42:25 +0930 Subject: Audio Control on Mobile? In-Reply-To: References: Message-ID: Hi Dan, Check out mobilePlaySoundOnChannel in the dictionary and the related commands linked to it. Don't think there's a player command for mobile, though I may have missed it...! HTH cheers, Alan > On 15 May 2022, at 1:30 am, use-livecode-request at lists.runrev.com wrote: > > Date: Fri, 13 May 2022 19:40:11 +0000 > From: Dan Friedman > To: How to use LiveCode > Subject: Audio Control on Mobile? > Message-ID: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE at clearvisiontech.com> > Content-Type: text/plain; charset="utf-8" > > Hello! On desktop, there is the player object which is great! However, it doesn't work on Mobile. Is there a way to deal with an audio file on mobile (Android and iOS)? Here's what I need to do: > > - Load an audio file from a server > - Play the file > - Pause file > - Set the cursor (where to play from or jump to) > - Know when the end of file is reached > - length of audio file > - current play position > - file state (isPlaying or isPaused) > > Thank you in advance! > > -Dan From dan at clearvisiontech.com Sun May 15 13:14:06 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Sun, 15 May 2022 17:14:06 +0000 Subject: Audio Control on Mobile? In-Reply-To: References: Message-ID: <2CEE3CB3-B3A3-4123-9B5B-7581F3136AB2@clearvisiontech.com> Alan, Thank you for the info. I know of the mobileSound items... but, it doesn't have all the commands we need. For example, there is no method to start (or change) the sounds play position, or poll the sound for the current position. My client wants to make a music playing app. Need to replicate a music player... so, we need to keep our [custom] transport in sync with the sound. Stop, Start, Pause, Scrub, update current time and time remaining, etc. EASY on desktop, can't seem to do this on mobile with LiveCode. -Dan On 5/15/22, 5:12 AM, "Alan Stenhouse" wrote: Hi Dan, Check out mobilePlaySoundOnChannel in the dictionary and the related commands linked to it. Don't think there's a player command for mobile, though I may have missed it...! HTH cheers, Alan > On 15 May 2022, at 1:30 am, use-livecode-request at lists.runrev.com wrote: > > Date: Fri, 13 May 2022 19:40:11 +0000 > From: Dan Friedman > To: How to use LiveCode > Subject: Audio Control on Mobile? > Message-ID: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE at clearvisiontech.com> > Content-Type: text/plain; charset="utf-8" > > Hello! On desktop, there is the player object which is great! However, it doesn't work on Mobile. Is there a way to deal with an audio file on mobile (Android and iOS)? Here's what I need to do: > > - Load an audio file from a server > - Play the file > - Pause file > - Set the cursor (where to play from or jump to) > - Know when the end of file is reached > - length of audio file > - current play position > - file state (isPlaying or isPaused) > > Thank you in advance! > > -Dan From harrison at all-auctions.com Mon May 16 13:46:05 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 13:46:05 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: I have a large chunk of data that I want to search as quickly as possible. Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. I don’t want to search line by line as that takes way too long. There’s no unique character dividing any of these data regions. What’s the best way to do this? Thanks in advance! Rick From jiml at netrin.com Mon May 16 13:58:08 2022 From: jiml at netrin.com (Jim Lambert) Date: Mon, 16 May 2022 10:58:08 -0700 Subject: Audio Control on Mobile? In-Reply-To: References: Message-ID: > Dan wrote: > My client wants to make a music playing app. Need to replicate a music player... so, we need to keep our [custom] transport in sync with the sound. Stop, Start, Pause, Scrub, update current time and time remaining, etc. EASY on desktop, can't seem to do this on mobile with LiveCode. I wonder if using the Browser widget would help? https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Cross-browser_audio_basics Jim Lambert From craig at starfirelighting.com Mon May 16 14:19:08 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 16 May 2022 14:19:08 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <398E76E5-1C2C-4D5D-990E-8BB276C2F5AB@starfirelighting.com> Hi. Can you get the number of lines of the whole blob, if lines are pertinent, divide that number by 3, and search from there? Another words, if you had 1000 lines, divide by 3 and search from line 333 to 666. Craig > On May 16, 2022, at 1:46 PM, Rick Harrison via use-livecode wrote: > > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I don’t want to search line by line as that > takes way too long. > > There’s no unique character dividing any > of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon May 16 14:23:23 2022 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 16 May 2022 21:23:23 +0300 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> Well one of the things you could do is this: slightly pseudo 1 put the number of chars in MyDATA into MyNUM 2 put MyNUM / 3 into SLICER 3 put chars 1-SLICER of MyDATA into firstTHIRD 4 put chars SLICER-(SLICER * 2) into secondTHIRD 5 put chars (SLICER * 2)-(SLICER*3) into thirdTHIRD at which point you can perform you search inwith secondTHIRD. Unless you want to recombine all those bits having performed some sort of operation on secondThird lines 3 and 5 are a waste of time. Best, Richmond. Best Richmond. On 16.05.22 20:46, Rick Harrison via use-livecode wrote: > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I dont want to search line by line as that > takes way too long. > > Theres no unique character dividing any > of these data regions. > > Whats the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon May 16 14:23:56 2022 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 16 May 2022 21:23:56 +0300 Subject: Divide Large Data Blob? In-Reply-To: <398E76E5-1C2C-4D5D-990E-8BB276C2F5AB@starfirelighting.com> References: <398E76E5-1C2C-4D5D-990E-8BB276C2F5AB@starfirelighting.com> Message-ID: <497e279b-aebb-379c-066b-0547199f5127@gmail.com> Great Behinds Stink Alike.  :) On 16.05.22 21:19, Craig Newman via use-livecode wrote: > Hi. > > Can you get the number of lines of the whole blob, if lines are pertinent, divide that number by 3, and search from there? Another words, if you had 1000 lines, divide by 3 and search from line 333 to 666. > > Craig > >> On May 16, 2022, at 1:46 PM, Rick Harrison via use-livecode wrote: >> >> I have a large chunk of data that I want to >> search as quickly as possible. >> >> Unfortunately the part I want to search is the >> middle third of the data. The other thirds at >> the beginning and at the end are just junk and >> slow down my search so I want to get rid of them. >> >> I dont want to search line by line as that >> takes way too long. >> >> Theres no unique character dividing any >> of these data regions. >> >> Whats the best way to do this? >> >> Thanks in advance! >> >> Rick >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 16 14:32:10 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 16 May 2022 11:32:10 -0700 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <27ee61cf-4d7e-f32e-9f82-a216dda31462@fourthworld.com> Rick Harrison wrote: > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I dont want to search line by line as that > takes way too long. > > Theres no unique character dividing any > of these data regions. > > Whats the best way to do this? The offset function has an optional third param for starting point, so setting that value to the number of bytes you want to skip would take you right where you want to be. Offset can then be used in a loop, updating the starting value as you go. Exiting the loop once your into the tail you don't want to index can be a simple if to escape the loop. There may also be options for using delimiters. What does the source data look like, and what should the resulting index look like? And the most central question with things like this: how large is "large"? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From phil at pdslabs.net Mon May 16 14:37:32 2022 From: phil at pdslabs.net (Phil Davis) Date: Mon, 16 May 2022 11:37:32 -0700 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: On 5/10/22 12:35 PM, Richard Gaskin via use-livecode wrote: > Mark Clark wrote: > > > Wondering if anyone has used LiveCode for encrypting-decrypting large > > files? > ... > > Im thinking about using LC for decrypting zip compressed log files > > that can be multiple gigabytes in size. Id like to use just LC vs. > > resorting to shell if possible. > > What is behind the preference to roll your own rather than call > existing purpose-built command-line tools from LC with shell()? I like this option. You could use shell("openssl ") to encrypt any size file. Also it may be possible to run 'openssl' as a process, by which (I believe) you could make it non blocking, running in the background. (I haven't tried opening 'openssl' as a process, just speculating here.) Phil Davis > > Your chunking described in your latest post seems the way to go, AFAIK > pretty much how other tools would handle it. > > Another option:  if you're in an environment where even log files > require strong encryption, could you pipe log data to a separate > secured log server instead? > -- Phil Davis (503) 307-4363 From harrison at all-auctions.com Mon May 16 15:34:12 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 15:34:12 -0400 Subject: Divide Large Data Blob? In-Reply-To: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> References: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> Message-ID: Hi Richmond, An interesting approach. I’ll give it try Thanks! Rick > On May 16, 2022, at 2:23 PM, Richmond via use-livecode wrote: > > Well one of the things you could do is this: > > slightly pseudo > > 1 put the number of chars in MyDATA into MyNUM > 2 put MyNUM / 3 into SLICER > 3 put chars 1-SLICER of MyDATA into firstTHIRD > 4 put chars SLICER-(SLICER * 2) into secondTHIRD > 5 put chars (SLICER * 2)-(SLICER*3) into thirdTHIRD > > at which point you can perform you search inwith secondTHIRD. > > Unless you want to recombine all those bits having performed some sort of operation on secondThird > lines 3 and 5 are a waste of time. > > Best, Richmond. From harrison at all-auctions.com Mon May 16 15:38:29 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 15:38:29 -0400 Subject: Divide Large Data Blob? In-Reply-To: <27ee61cf-4d7e-f32e-9f82-a216dda31462@fourthworld.com> References: <27ee61cf-4d7e-f32e-9f82-a216dda31462@fourthworld.com> Message-ID: <1C881FB6-15E2-4638-90D8-6D0711E44C1E@all-auctions.com> Hi Richard, I was looking at the offset function and thinking about the starting points. It still presents a looping problem for me that I’m trying to avoid. If other methods aren’t more efficient I will play with it more. Thanks, Rick > On May 16, 2022, at 2:32 PM, Richard Gaskin via use-livecode wrote: > > The offset function has an optional third param for starting point, so setting that value to the number of bytes you want to skip would take you right where you want to be. Offset can then be used in a loop, updating the starting value as you go. Exiting the loop once your into the tail you don't want to index can be a simple if to escape the loop. > > There may also be options for using delimiters. What does the source data look like, and what should the resulting index look like? > > And the most central question with things like this: how large is "large"? From harrison at all-auctions.com Mon May 16 15:57:00 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 15:57:00 -0400 Subject: Divide Large Data Blob? In-Reply-To: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> References: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> Message-ID: <5C0D7D02-574C-45C6-9E61-8CBC109632B7@all-auctions.com> Hi Richmond, Doesn’t the following still require a loop? LC doesn’t like the syntax you provided. Thanks, Rick > On May 16, 2022, at 2:23 PM, Richmond via use-livecode wrote: > > 3 put chars 1-SLICER of MyDATA into firstTHIRD From rdimola at evergreeninfo.net Mon May 16 16:01:36 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 16 May 2022 16:01:36 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <004801d8695f$c27e0d00$477a2700$@net> If the needed OR unneeded lines have something in common then the filter command is your friend. Filter is blazingly fast. 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 Rick Harrison via use-livecode Sent: Monday, May 16, 2022 1:46 PM To: How to use LiveCode Cc: Rick Harrison Subject: Divide Large Data Blob? I have a large chunk of data that I want to search as quickly as possible. Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. I don’t want to search line by line as that takes way too long. There’s no unique character dividing any of these data regions. What’s the best way to do this? Thanks in advance! Rick _______________________________________________ use-livecode mailing list use-livecode 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 harrison at all-auctions.com Mon May 16 16:15:03 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 16:15:03 -0400 Subject: Divide Large Data Blob? In-Reply-To: <004801d8695f$c27e0d00$477a2700$@net> References: <004801d8695f$c27e0d00$477a2700$@net> Message-ID: Hi Ralph, I was looking at filter. It might help me to cut down on the amount of data to search, but I would still have to throw out the first 1/3 of the data. Perhaps filtering first and then processing what’s left by line number wouldn’t be too slow. Thanks for the suggestion! Rick > On May 16, 2022, at 4:01 PM, Ralph DiMola via use-livecode wrote: > > If the needed OR unneeded lines have something in common then the filter command is your friend. Filter is blazingly fast. > > 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 Rick Harrison via use-livecode > Sent: Monday, May 16, 2022 1:46 PM > To: How to use LiveCode > Cc: Rick Harrison > Subject: Divide Large Data Blob? > > I have a large chunk of data that I want to search as quickly as possible. > > Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. > > I don’t want to search line by line as that takes way too long. > > There’s no unique character dividing any of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 harrison at all-auctions.com Mon May 16 17:18:22 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 17:18:22 -0400 Subject: Divide Large Data Blob? In-Reply-To: <004801d8695f$c27e0d00$477a2700$@net> References: <004801d8695f$c27e0d00$477a2700$@net> Message-ID: <96C91646-AADD-4E84-B62C-5793A4A042EB@all-auctions.com> Hi Ralph, Filtering the data first made a huge difference in the size of the data I need to search. Thanks! Rick > On May 16, 2022, at 4:01 PM, Ralph DiMola via use-livecode wrote: > > If the needed OR unneeded lines have something in common then the filter command is your friend. Filter is blazingly fast. > > 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 Rick Harrison via use-livecode > Sent: Monday, May 16, 2022 1:46 PM > To: How to use LiveCode > Cc: Rick Harrison > Subject: Divide Large Data Blob? > > I have a large chunk of data that I want to search as quickly as possible. > > Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. > > I don’t want to search line by line as that takes way too long. > > There’s no unique character dividing any of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 16 18:00:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 22:00:51 +0000 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. You may only have to do this a dozen or so times to find the exact line where your valid data begins. The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. Bob S > On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: > > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I don’t want to search line by line as that > takes way too long. > > There’s no unique character dividing any > of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 16 18:23:52 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 22:23:52 +0000 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> A maximum of 7 recursions are necessary to isolate a single instance of 100 possible values. 1000 requires a maximum of 10. 10000 values requires 14. The idea is that for every factor of 10, you need roughly 3 more recursions. This of course assumes the data is sorted, which in your case is sorted into 3 containers. If you know the limits of how many lines can be garbage, and how many can be valid data, you narrow your scope significantly. Livecode is pretty damn quick at parsing this kind of data. If there are consistent delimiters (in this case a line break) then even 20 or 30 recursions is child's play. Bob S > On May 16, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: > > Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? > If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. > > You may only have to do this a dozen or so times to find the exact line where your valid data begins. > > The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. > > Bob S > >> On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: >> >> I have a large chunk of data that I want to >> search as quickly as possible. >> >> Unfortunately the part I want to search is the >> middle third of the data. The other thirds at >> the beginning and at the end are just junk and >> slow down my search so I want to get rid of them. >> >> I don’t want to search line by line as that >> takes way too long. >> >> There’s no unique character dividing any >> of these data regions. >> >> What’s the best way to do this? >> >> Thanks in advance! >> >> Rick >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 16 18:44:44 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 22:44:44 +0000 Subject: Divide Large Data Blob? In-Reply-To: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> Message-ID: <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> So this has got me thinking. Apparently what I am calling Divide and Conquer is really called a binary sort. I have looked up on the interwebs to calculate the maximum number of iterations for a given number of values, but it seems that all the formulas offered up use functions for C. I am trying to figure out what a basic math formula for this is, given n values. Bob S > On May 16, 2022, at 15:23 , Bob Sneidar via use-livecode wrote: > > A maximum of 7 recursions are necessary to isolate a single instance of 100 possible values. 1000 requires a maximum of 10. 10000 values requires 14. The idea is that for every factor of 10, you need roughly 3 more recursions. This of course assumes the data is sorted, which in your case is sorted into 3 containers. If you know the limits of how many lines can be garbage, and how many can be valid data, you narrow your scope significantly. > > Livecode is pretty damn quick at parsing this kind of data. If there are consistent delimiters (in this case a line break) then even 20 or 30 recursions is child's play. > > Bob S > > >> On May 16, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: >> >> Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? >> If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. >> >> You may only have to do this a dozen or so times to find the exact line where your valid data begins. >> >> The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. >> >> Bob S >> >>> On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: >>> >>> I have a large chunk of data that I want to >>> search as quickly as possible. >>> >>> Unfortunately the part I want to search is the >>> middle third of the data. The other thirds at >>> the beginning and at the end are just junk and >>> slow down my search so I want to get rid of them. >>> >>> I don’t want to search line by line as that >>> takes way too long. >>> >>> There’s no unique character dividing any >>> of these data regions. >>> >>> What’s the best way to do this? >>> >>> Thanks in advance! >>> >>> Rick >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 bobsneidar at iotecdigital.com Mon May 16 19:53:32 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 23:53:32 +0000 Subject: Divide Large Data Blob? In-Reply-To: <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> Message-ID: <5C7E3D16-4A55-4296-94A2-279294C774D6@iotecdigital.com> OK so it appears there is a log2 property. The log2 of 1000 yields 9.965784 so I suppsoe if you round up, that would give you the maximum number of iterations to isolate a single line in a 1000 line sorted list. Bob S > On May 16, 2022, at 15:44 , Bob Sneidar via use-livecode wrote: > > So this has got me thinking. Apparently what I am calling Divide and Conquer is really called a binary sort. I have looked up on the interwebs to calculate the maximum number of iterations for a given number of values, but it seems that all the formulas offered up use functions for C. I am trying to figure out what a basic math formula for this is, given n values. > > Bob S > > >> On May 16, 2022, at 15:23 , Bob Sneidar via use-livecode wrote: >> >> A maximum of 7 recursions are necessary to isolate a single instance of 100 possible values. 1000 requires a maximum of 10. 10000 values requires 14. The idea is that for every factor of 10, you need roughly 3 more recursions. This of course assumes the data is sorted, which in your case is sorted into 3 containers. If you know the limits of how many lines can be garbage, and how many can be valid data, you narrow your scope significantly. >> >> Livecode is pretty damn quick at parsing this kind of data. If there are consistent delimiters (in this case a line break) then even 20 or 30 recursions is child's play. >> >> Bob S >> >> >>> On May 16, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: >>> >>> Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? >>> If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. >>> >>> You may only have to do this a dozen or so times to find the exact line where your valid data begins. >>> >>> The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. >>> >>> Bob S >>> >>>> On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: >>>> >>>> I have a large chunk of data that I want to >>>> search as quickly as possible. >>>> >>>> Unfortunately the part I want to search is the >>>> middle third of the data. The other thirds at >>>> the beginning and at the end are just junk and >>>> slow down my search so I want to get rid of them. >>>> >>>> I don’t want to search line by line as that >>>> takes way too long. >>>> >>>> There’s no unique character dividing any >>>> of these data regions. >>>> >>>> What’s the best way to do this? >>>> >>>> Thanks in advance! >>>> >>>> Rick >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 harrison at all-auctions.com Mon May 16 19:57:31 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 19:57:31 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: Hi Bob, I just need to make one pass at the data, so building an SQL database for it doesn’t make sense. I don’t have any definitive line for the boundary between good and bad data. It’s more of a consistent first guess used just to cut down on the amount of data to process. I start looking for the good data after about a third of it has passed by. Thanks, Rick > On May 16, 2022, at 6:00 PM, Bob Sneidar via use-livecode wrote: > > Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? > If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. > > You may only have to do this a dozen or so times to find the exact line where your valid data begins. > > The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. > > Bob S From harrison at all-auctions.com Mon May 16 20:00:10 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 20:00:10 -0400 Subject: Divide Large Data Blob? In-Reply-To: <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> Message-ID: <02C1BB8F-2D83-47CC-80D6-D0D50B772AC2@all-auctions.com> Hi Bob, Yes, I was looking into the binary sort idea. It’s too bad that isn’t just a built-in function for LC. I’m not sure it’s worth that kind of effort for my particular case. Thanks, Rick > On May 16, 2022, at 6:44 PM, Bob Sneidar via use-livecode wrote: > > So this has got me thinking. Apparently what I am calling Divide and Conquer is really called a binary sort. I have looked up on the interwebs to calculate the maximum number of iterations for a given number of values, but it seems that all the formulas offered up use functions for C. I am trying to figure out what a basic math formula for this is, given n values. > > Bob S > From harrison at all-auctions.com Mon May 16 20:00:53 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 20:00:53 -0400 Subject: Divide Large Data Blob? In-Reply-To: <5C7E3D16-4A55-4296-94A2-279294C774D6@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> <5C7E3D16-4A55-4296-94A2-279294C774D6@iotecdigital.com> Message-ID: Hi Bob, Nice to know this for the future. Thanks for your research! Rick > On May 16, 2022, at 7:53 PM, Bob Sneidar via use-livecode wrote: > > OK so it appears there is a log2 property. The log2 of 1000 yields 9.965784 so I suppsoe if you round up, that would give you the maximum number of iterations to isolate a single line in a 1000 line sorted list. > > Bob S From ambassador at fourthworld.com Mon May 16 20:19:17 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 16 May 2022 17:19:17 -0700 Subject: Divide Large Data Blob? In-Reply-To: <1C881FB6-15E2-4638-90D8-6D0711E44C1E@all-auctions.com> References: <1C881FB6-15E2-4638-90D8-6D0711E44C1E@all-auctions.com> Message-ID: <37aa8558-118d-ae25-5545-7b23d8d8edda@fourthworld.com> There may be other approaches, but without knowing what the data looks like, what the resulting index should look like, and how big the data is we'd just be guessing. -- Richard Gaskin Fourth World Systems Rick Harrison wrote: > Hi Richard, > > I was looking at the offset function and thinking about > the starting points. It still presents a looping problem > for me that Im trying to avoid. If other methods arent > more efficient I will play with it more. > > Thanks, > > Rick > >> On May 16, 2022, at 2:32 PM, Richard Gaskin via use-livecode wrote: >> >> The offset function has an optional third param for starting point, so setting that value to the number of bytes you want to skip would take you right where you want to be. Offset can then be used in a loop, updating the starting value as you go. Exiting the loop once your into the tail you don't want to index can be a simple if to escape the loop. >> >> There may also be options for using delimiters. What does the source data look like, and what should the resulting index look like? >> >> And the most central question with things like this: how large is "large"? > From jbv at souslelogo.com Tue May 17 02:35:46 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 17 May 2022 02:35:46 -0400 Subject: Nested loops Message-ID: <076ae7149b2e80a8f9658ce1dac0bdf7@souslelogo.com> Hi list, What is the best and most efficient way to write the following javascript loops in LC ? for (let i = 0, j = myArray.length - 1; i < myArray.length; j = i++) { } This goes beyond simple nested loops. So far, because of lack of time, I have pre-calculated the successive values of i and j, and have put them into lists of words : 0 1 2 3 4 5 5 0 1 2 3 4 it remains fast enough for what I need to do, but there must be a more elegant approach... Thanks. jbv From alex at tweedly.net Tue May 17 07:49:20 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 17 May 2022 12:49:20 +0100 Subject: Nested loops In-Reply-To: <076ae7149b2e80a8f9658ce1dac0bdf7@souslelogo.com> References: <076ae7149b2e80a8f9658ce1dac0bdf7@souslelogo.com> Message-ID: <3ceac61a-5ba8-ab53-f52b-5ba87f04bb1e@tweedly.net> Direct equivalent is probably repeat with i = 0 to myArrayLength-1    put i-1 into j    if j < 0 then put myArrayLength-1 into j    ..... end repeat OR, if you prefer a single-statement version repeat with i = 0 to myArrayLength-1    put (i + myArrayLength-1) mod myArrayLength  into j    ..... end repeat OR - most efficient but risky - i.e. a bad choice iMHO :-) put myArrayLength-1 into j repeat with i = 0 to myArrayLength-1    .....    put i into j   -- NB at the very end of the loop body end repeat This is risky in case you ever do a "next repeat" inside the loop body !! Alex. On 17/05/2022 07:35, jbv via use-livecode wrote: > Hi list, > > What is the best and most efficient way to write the following > javascript loops in LC ? > > for (let i = 0, j = myArray.length - 1; i < myArray.length; j = i++) { > } > > This goes beyond simple nested loops. > So far, because of lack of time, I have pre-calculated the successive > values of i and j, and have put them into lists of words : > 0 1 2 3 4 5 > 5 0 1 2 3 4 > it remains fast enough for what I need to do, but there must be a more > elegant approach... > > Thanks. > 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 devin_asay at byu.edu Tue May 17 13:28:59 2022 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 17 May 2022 17:28:59 +0000 Subject: Movie text tracks Message-ID: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Hi all, I’m resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesn’t seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. Anybody know how to show, or at least recover, old text tracks from video files? (Man I hate it when the technology gets *less* capable!) - Devin Devin Asay Office of Digital Humanities Brigham Young University From richmondmathewson at gmail.com Tue May 17 14:02:25 2022 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 17 May 2022 21:02:25 +0300 Subject: Movie text tracks In-Reply-To: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Message-ID: <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html Best, Richmond. On 17.05.22 20:28, Devin Asay via use-livecode wrote: > Hi all, > > Im resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesnt seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 17 16:16:58 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 May 2022 15:16:58 -0500 Subject: Movie text tracks In-Reply-To: <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> Message-ID: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: > Here's a thought: > > Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: > > https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Tue May 17 16:32:32 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 17 May 2022 16:32:32 -0400 Subject: Movie text tracks In-Reply-To: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Message-ID: <0a30cbae-39bb-0154-d94a-96814ad2a976@researchware.com> This is not any sort of immediate help, but a quick Google search suggests that both AVF (Apple Video Foundation) and MMF (Microsoft Media Foundation - the underlying framework for the player in Livecode 10) support classes and APIs to access multiple media tracks and metadata. I don't know about Mobil player support (or Linux), but now is the time while Livecode 10 is in developer preview stages to lobby Livecode Ltd to broaden the player object to support more cross-platform features. I suggest opening an enhancement request at https://quality.livecode.com/ for text track access (subtitles are an accessibility requirement on lots of media these days) for LC 10. On 5/17/2022 1:28 PM, Devin Asay via use-livecode wrote: > Hi all, > > Im resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesnt seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 18 04:40:04 2022 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 18 May 2022 10:40:04 +0200 Subject: Curved text possible? In-Reply-To: References: <4D1A0C7B-72A6-47C1-A625-7C69043496DD@gmail.com> <0D4E5104-2E75-4978-A083-BEE016B844B7@rogers.com> <8A2E9450-8F9F-4BB4-B235-7A353CC93EFB@iotecdigital.com> <004101d85b14$2ecba080$8c62e180$@net> Message-ID: Hi there, I posted a curved text example (with use of the browser widget) on the forum: https://forums.livecode.com/viewtopic.php?f=120&t=37027 It works ok but still not satisfied with transparency. Maybe someone has a better idea on how to do that? groeten, William Op do 28 apr. 2022 om 17:42 schreef William de Smet : > Thanks! > > I came up with sort of the same idea yesterday evening and I am > tetsting it now. > I load a local html file within the browser widget with circletype.js > added to the html file. > > A native textfield (and some extra code) writes back into the html file > and then I refresh the card. > A snapshot gives me the curved text. > > There is also Arctext,js that I want to test. > > I will come back later with my result. > > groeten, > > William > > > > > Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com>: > >> +1 >> >> 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 Bob Sneidar via use-livecode >> Sent: Thursday, April 28, 2022 11:18 AM >> To: How to use LiveCode >> Cc: Bob Sneidar >> Subject: Re: Curved text possible? >> >> Great ideas Martin. I'm going to grant you an honorary doctorate from the >> institute of Sly Laboratories. >> >> Bob S >> >> >> > On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode >> wrote: >> > >> > I was thinking that SVG might work as someone else has said. >> > >> > At first I thought you could create individual files for each letter and >> number and put the path for a letter into a svg widget which you could >> rotate or scale. >> > you would then have to calculate the angle of rotation and location of >> each svg widget on a path. But then when I tried rotating the svg widget >> its scale would change as it rotated because the bounds of the rect were >> changing. Then you would have to calculate the scale depending on the >> rotation angle and that seemed a bit much. >> > >> > I also thought you could import the svg file as an image and perhaps >> that >> would not have the odd behaviour when rotating. I did not try that >> though. >> > >> > Then I found this. >> > >> > https://css-tricks.com/snippets/svg/curved-text-along-path/ >> >> > >> > it shows how to use css to put text along a SVG path. At the LiveCode >> Dev >> Con there were a few unconventional uses of the browser widget beyond >> displaying webpages that add features that can add features that LiveCode >> does not have natively. So I thought maybe this is one of them. So what >> I >> thought could be done is display the above in a browser widget or, If you >> did not want to show the browser widget, use the browser widget to render >> the curved text, thentake a snapshot of the rendered text and then show >> that >> in an image. >> > >> > Not sure if it will work but the sessions at the conference have really >> got me thinking of new ways to leverage the technology in that widget. >> > >> > Martin Koob >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed May 18 05:40:25 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 18 May 2022 10:40:25 +0100 Subject: Curved text possible? In-Reply-To: References: Message-ID: There is a better way to do this using LCB. If you don’t mind waiting I can pull something up. I’m out of office at the moment so can’t get to my files. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 18 May 2022, at 09:40, William de Smet via use-livecode wrote: > > Hi there, > > I posted a curved text example (with use of the browser widget) on the > forum: > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > It works ok but still not satisfied with transparency. > Maybe someone has a better idea on how to do that? > > > > groeten, > > William > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet > : > >> Thanks! >> >> I came up with sort of the same idea yesterday evening and I am >> tetsting it now. >> I load a local html file within the browser widget with circletype.js >> added to the html file. >> >> A native textfield (and some extra code) writes back into the html file >> and then I refresh the card. >> A snapshot gives me the curved text. >> >> There is also Arctext,js that I want to test. >> >> I will come back later with my result. >> >> groeten, >> >> William >> >> >> >> >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com>: >> >>> +1 >>> >>> 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 Bob Sneidar via use-livecode >>> Sent: Thursday, April 28, 2022 11:18 AM >>> To: How to use LiveCode >>> Cc: Bob Sneidar >>> Subject: Re: Curved text possible? >>> >>> Great ideas Martin. I'm going to grant you an honorary doctorate from the >>> institute of Sly Laboratories. >>> >>> Bob S >>> >>> >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode >>> wrote: >>>> >>>> I was thinking that SVG might work as someone else has said. >>>> >>>> At first I thought you could create individual files for each letter and >>> number and put the path for a letter into a svg widget which you could >>> rotate or scale. >>>> you would then have to calculate the angle of rotation and location of >>> each svg widget on a path. But then when I tried rotating the svg widget >>> its scale would change as it rotated because the bounds of the rect were >>> changing. Then you would have to calculate the scale depending on the >>> rotation angle and that seemed a bit much. >>>> >>>> I also thought you could import the svg file as an image and perhaps >>> that >>> would not have the odd behaviour when rotating. I did not try that >>> though. >>>> >>>> Then I found this. >>>> >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ >>> >>>> >>>> it shows how to use css to put text along a SVG path. At the LiveCode >>> Dev >>> Con there were a few unconventional uses of the browser widget beyond >>> displaying webpages that add features that can add features that LiveCode >>> does not have natively. So I thought maybe this is one of them. So what >>> I >>> thought could be done is display the above in a browser widget or, If you >>> did not want to show the browser widget, use the browser widget to render >>> the curved text, thentake a snapshot of the rendered text and then show >>> that >>> in an image. >>>> >>>> Not sure if it will work but the sessions at the conference have really >>> got me thinking of new ways to leverage the technology in that widget. >>>> >>>> Martin Koob >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 williamdesmet at gmail.com Wed May 18 07:57:55 2022 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 18 May 2022 13:57:55 +0200 Subject: Curved text possible? In-Reply-To: References: Message-ID: @Sean: Yes, a widget would be the best thing of course. Much appreciated! groeten, William Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < use-livecode at lists.runrev.com>: > There is a better way to do this using LCB. If you don’t mind waiting I > can pull something up. I’m out of office at the moment so can’t get to my > files. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi there, > > > > I posted a curved text example (with use of the browser widget) on the > > forum: > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > It works ok but still not satisfied with transparency. > > Maybe someone has a better idea on how to do that? > > > > > > > > groeten, > > > > William > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > williamdesmet at gmail.com > >> : > > > >> Thanks! > >> > >> I came up with sort of the same idea yesterday evening and I am > >> tetsting it now. > >> I load a local html file within the browser widget with circletype.js > >> added to the html file. > >> > >> A native textfield (and some extra code) writes back into the html file > >> and then I refresh the card. > >> A snapshot gives me the curved text. > >> > >> There is also Arctext,js that I want to test. > >> > >> I will come back later with my result. > >> > >> groeten, > >> > >> William > >> > >> > >> > >> > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > >> use-livecode at lists.runrev.com>: > >> > >>> +1 > >>> > >>> 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 Bob Sneidar via use-livecode > >>> Sent: Thursday, April 28, 2022 11:18 AM > >>> To: How to use LiveCode > >>> Cc: Bob Sneidar > >>> Subject: Re: Curved text possible? > >>> > >>> Great ideas Martin. I'm going to grant you an honorary doctorate from > the > >>> institute of Sly Laboratories. > >>> > >>> Bob S > >>> > >>> > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > >>> wrote: > >>>> > >>>> I was thinking that SVG might work as someone else has said. > >>>> > >>>> At first I thought you could create individual files for each letter > and > >>> number and put the path for a letter into a svg widget which you could > >>> rotate or scale. > >>>> you would then have to calculate the angle of rotation and location of > >>> each svg widget on a path. But then when I tried rotating the svg > widget > >>> its scale would change as it rotated because the bounds of the rect > were > >>> changing. Then you would have to calculate the scale depending on the > >>> rotation angle and that seemed a bit much. > >>>> > >>>> I also thought you could import the svg file as an image and perhaps > >>> that > >>> would not have the odd behaviour when rotating. I did not try that > >>> though. > >>>> > >>>> Then I found this. > >>>> > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > >>> > >>>> > >>>> it shows how to use css to put text along a SVG path. At the LiveCode > >>> Dev > >>> Con there were a few unconventional uses of the browser widget beyond > >>> displaying webpages that add features that can add features that > LiveCode > >>> does not have natively. So I thought maybe this is one of them. So > what > >>> I > >>> thought could be done is display the above in a browser widget or, If > you > >>> did not want to show the browser widget, use the browser widget to > render > >>> the curved text, thentake a snapshot of the rendered text and then show > >>> that > >>> in an image. > >>>> > >>>> Not sure if it will work but the sessions at the conference have > really > >>> got me thinking of new ways to leverage the technology in that widget. > >>>> > >>>> Martin Koob > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 sean at pidigital.co.uk Wed May 18 08:15:12 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 18 May 2022 13:15:12 +0100 Subject: Curved text possible? In-Reply-To: References: Message-ID: Actually, HH had put up this on his site and kept open for us kindly. https://hh.on-rev.com/widgets/svgtext.html At the bottom he describes that it is possible to use SVG to define paths for the text. How good are you at LCB in being able to manipulate what he had achieved here? Sean On Wed, 18 May 2022 at 12:57, William de Smet via use-livecode < use-livecode at lists.runrev.com> wrote: > @Sean: Yes, a widget would be the best thing of course. > Much appreciated! > > groeten, > > William > > > > > Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < > use-livecode at lists.runrev.com>: > > > There is a better way to do this using LCB. If you don’t mind waiting I > > can pull something up. I’m out of office at the moment so can’t get to my > > files. > > > > Sean Cole > > Pi Digital Productions Ltd > > > > eMail Ts & Cs > > > > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Hi there, > > > > > > I posted a curved text example (with use of the browser widget) on the > > > forum: > > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > > > It works ok but still not satisfied with transparency. > > > Maybe someone has a better idea on how to do that? > > > > > > > > > > > > groeten, > > > > > > William > > > > > > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > > williamdesmet at gmail.com > > >> : > > > > > >> Thanks! > > >> > > >> I came up with sort of the same idea yesterday evening and I am > > >> tetsting it now. > > >> I load a local html file within the browser widget with circletype.js > > >> added to the html file. > > >> > > >> A native textfield (and some extra code) writes back into the html > file > > >> and then I refresh the card. > > >> A snapshot gives me the curved text. > > >> > > >> There is also Arctext,js that I want to test. > > >> > > >> I will come back later with my result. > > >> > > >> groeten, > > >> > > >> William > > >> > > >> > > >> > > >> > > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > > >> use-livecode at lists.runrev.com>: > > >> > > >>> +1 > > >>> > > >>> 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 Bob Sneidar via use-livecode > > >>> Sent: Thursday, April 28, 2022 11:18 AM > > >>> To: How to use LiveCode > > >>> Cc: Bob Sneidar > > >>> Subject: Re: Curved text possible? > > >>> > > >>> Great ideas Martin. I'm going to grant you an honorary doctorate from > > the > > >>> institute of Sly Laboratories. > > >>> > > >>> Bob S > > >>> > > >>> > > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > > >>> wrote: > > >>>> > > >>>> I was thinking that SVG might work as someone else has said. > > >>>> > > >>>> At first I thought you could create individual files for each letter > > and > > >>> number and put the path for a letter into a svg widget which you > could > > >>> rotate or scale. > > >>>> you would then have to calculate the angle of rotation and location > of > > >>> each svg widget on a path. But then when I tried rotating the svg > > widget > > >>> its scale would change as it rotated because the bounds of the rect > > were > > >>> changing. Then you would have to calculate the scale depending on the > > >>> rotation angle and that seemed a bit much. > > >>>> > > >>>> I also thought you could import the svg file as an image and perhaps > > >>> that > > >>> would not have the odd behaviour when rotating. I did not try that > > >>> though. > > >>>> > > >>>> Then I found this. > > >>>> > > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > > >>> > > >>>> > > >>>> it shows how to use css to put text along a SVG path. At the > LiveCode > > >>> Dev > > >>> Con there were a few unconventional uses of the browser widget beyond > > >>> displaying webpages that add features that can add features that > > LiveCode > > >>> does not have natively. So I thought maybe this is one of them. So > > what > > >>> I > > >>> thought could be done is display the above in a browser widget or, > If > > you > > >>> did not want to show the browser widget, use the browser widget to > > render > > >>> the curved text, thentake a snapshot of the rendered text and then > show > > >>> that > > >>> in an image. > > >>>> > > >>>> Not sure if it will work but the sessions at the conference have > > really > > >>> got me thinking of new ways to leverage the technology in that > widget. > > >>>> > > >>>> Martin Koob > > >>> > > >>> > > >>> _______________________________________________ > > >>> use-livecode mailing list > > >>> use-livecode 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 18 11:24:15 2022 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 18 May 2022 17:24:15 +0200 Subject: Curved text possible? In-Reply-To: References: Message-ID: Hi Sean, Incredible to see what HH did. That is way over my head. And so is LCB. groeten, William Op wo 18 mei 2022 om 14:16 schreef Sean Cole via use-livecode < use-livecode at lists.runrev.com>: > Actually, HH had put up this on his site and kept open for us kindly. > https://hh.on-rev.com/widgets/svgtext.html > > At the bottom he describes that it is possible to use SVG to define paths > for the text. How good are you at LCB in being able to manipulate what he > had achieved here? > > Sean > > > On Wed, 18 May 2022 at 12:57, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > @Sean: Yes, a widget would be the best thing of course. > > Much appreciated! > > > > groeten, > > > > William > > > > > > > > > > Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < > > use-livecode at lists.runrev.com>: > > > > > There is a better way to do this using LCB. If you don’t mind waiting I > > > can pull something up. I’m out of office at the moment so can’t get to > my > > > files. > > > > > > Sean Cole > > > Pi Digital Productions Ltd > > > > > > eMail Ts & Cs > > > > > > > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > Hi there, > > > > > > > > I posted a curved text example (with use of the browser widget) on > the > > > > forum: > > > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > > > > > It works ok but still not satisfied with transparency. > > > > Maybe someone has a better idea on how to do that? > > > > > > > > > > > > > > > > groeten, > > > > > > > > William > > > > > > > > > > > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > > > williamdesmet at gmail.com > > > >> : > > > > > > > >> Thanks! > > > >> > > > >> I came up with sort of the same idea yesterday evening and I am > > > >> tetsting it now. > > > >> I load a local html file within the browser widget with > circletype.js > > > >> added to the html file. > > > >> > > > >> A native textfield (and some extra code) writes back into the html > > file > > > >> and then I refresh the card. > > > >> A snapshot gives me the curved text. > > > >> > > > >> There is also Arctext,js that I want to test. > > > >> > > > >> I will come back later with my result. > > > >> > > > >> groeten, > > > >> > > > >> William > > > >> > > > >> > > > >> > > > >> > > > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > > > >> use-livecode at lists.runrev.com>: > > > >> > > > >>> +1 > > > >>> > > > >>> 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 Bob Sneidar via use-livecode > > > >>> Sent: Thursday, April 28, 2022 11:18 AM > > > >>> To: How to use LiveCode > > > >>> Cc: Bob Sneidar > > > >>> Subject: Re: Curved text possible? > > > >>> > > > >>> Great ideas Martin. I'm going to grant you an honorary doctorate > from > > > the > > > >>> institute of Sly Laboratories. > > > >>> > > > >>> Bob S > > > >>> > > > >>> > > > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > > > >>> wrote: > > > >>>> > > > >>>> I was thinking that SVG might work as someone else has said. > > > >>>> > > > >>>> At first I thought you could create individual files for each > letter > > > and > > > >>> number and put the path for a letter into a svg widget which you > > could > > > >>> rotate or scale. > > > >>>> you would then have to calculate the angle of rotation and > location > > of > > > >>> each svg widget on a path. But then when I tried rotating the svg > > > widget > > > >>> its scale would change as it rotated because the bounds of the rect > > > were > > > >>> changing. Then you would have to calculate the scale depending on > the > > > >>> rotation angle and that seemed a bit much. > > > >>>> > > > >>>> I also thought you could import the svg file as an image and > perhaps > > > >>> that > > > >>> would not have the odd behaviour when rotating. I did not try that > > > >>> though. > > > >>>> > > > >>>> Then I found this. > > > >>>> > > > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > > > >>> > > > >>>> > > > >>>> it shows how to use css to put text along a SVG path. At the > > LiveCode > > > >>> Dev > > > >>> Con there were a few unconventional uses of the browser widget > beyond > > > >>> displaying webpages that add features that can add features that > > > LiveCode > > > >>> does not have natively. So I thought maybe this is one of them. > So > > > what > > > >>> I > > > >>> thought could be done is display the above in a browser widget or, > > If > > > you > > > >>> did not want to show the browser widget, use the browser widget to > > > render > > > >>> the curved text, thentake a snapshot of the rendered text and then > > show > > > >>> that > > > >>> in an image. > > > >>>> > > > >>>> Not sure if it will work but the sessions at the conference have > > > really > > > >>> got me thinking of new ways to leverage the technology in that > > widget. > > > >>>> > > > >>>> Martin Koob > > > >>> > > > >>> > > > >>> _______________________________________________ > > > >>> use-livecode mailing list > > > >>> use-livecode 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 > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 harrison at all-auctions.com Wed May 18 12:23:22 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:23:22 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: Message-ID: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> This works: set the HTMLText of field "HTMLTextField1" of this card to URL VarURL This doesn’t work: set the HTMLText of VarHTMLText to URL VarURL (The syntax is accepted fine, but it throws the following error at execution time.) Chunk: error in object expression This works: get the effective HTMLText of field "HTMLTextField1" of this card This doesn’t work: get the effective HTMLText of VarHTMLText2 (The syntax is accepted fine, but it throws the following error at execution time.) Chunk: error in object expression Why? Thanks for your insight in advance! Rick From tore.nilsen at me.com Wed May 18 12:28:32 2022 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 18 May 2022 18:28:32 +0200 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: <004738FF-6E60-487D-930F-0888444C3E3E@me.com> I would think it is because the htmlText is a property of a field. It is one of the properties that it inherited by any field. The variable does not have this property. Best regards Tore Nilsen > 18. mai 2022 kl. 18:23 skrev Rick Harrison via use-livecode : > > This works: > > set the HTMLText of field "HTMLTextField1" of this card to URL VarURL > > > This doesn’t work: > > set the HTMLText of VarHTMLText to URL VarURL > > (The syntax is accepted fine, but it throws the following error at execution time.) > > Chunk: error in object expression > > > > This works: > > get the effective HTMLText of field "HTMLTextField1" of this card > > > This doesn’t work: > > get the effective HTMLText of VarHTMLText2 > > (The syntax is accepted fine, but it throws the following error at execution time.) > > Chunk: error in object expression > > > Why? > > Thanks for your insight in advance! > > Rick > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 18 12:29:27 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 18 May 2022 18:29:27 +0200 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: Hi Rick, > Am 18.05.2022 um 18:23 schrieb Rick Harrison via use-livecode : > > This works: > set the HTMLText of field "HTMLTextField1" of this card to URL VarURL > > This doesn’t work: > set the HTMLText of VarHTMLText to URL VarURL > (The syntax is accepted fine, but it throws the following error at execution time.) > Chunk: error in object expression > > This works: > get the effective HTMLText of field "HTMLTextField1" of this card > > This doesn’t work: > get the effective HTMLText of VarHTMLText2 > (The syntax is accepted fine, but it throws the following error at execution time.) > Chunk: error in object expression > > Why? > Thanks for your insight in advance! > > Rick HTMLTEXT is a property of FIELDS, variables do not have this! Presumed VarHTMLText is a variable. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed May 18 12:38:58 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 May 2022 16:38:58 +0000 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: <761B16A6-F934-4366-8676-5693009B0B6B@iotecdigital.com> If I may add something to this, the reason why the syntax did not throw an error at compile time is because the compiler does not know whether or not VarHTMLText is a variable that contains the value "field HTMLTextField1" or the name of any object to be precise. If it did then it would be valid syntax. I do this all the time for DataGrids, as I can have datagrids on different cards in different stacks with the same name, eg. "dgCustomers". So I script put the long id of group "dgCustomers" into tGridID Now I can script put the dgHilitedIndex of tGridID into tIndex Bob S > On May 18, 2022, at 09:23 , Rick Harrison via use-livecode wrote: > > This works: > > set the HTMLText of field "HTMLTextField1" of this card to URL VarURL > > > This doesn’t work: > > set the HTMLText of VarHTMLText to URL VarURL > > (The syntax is accepted fine, but it throws the following error at execution time.) > > Chunk: error in object expression From harrison at all-auctions.com Wed May 18 12:40:21 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:40:21 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <004738FF-6E60-487D-930F-0888444C3E3E@me.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <004738FF-6E60-487D-930F-0888444C3E3E@me.com> Message-ID: Thanks! It’s a bummer though, because variables are much faster. Rick > On May 18, 2022, at 12:28 PM, Tore Nilsen via use-livecode wrote: > > I would think it is because the htmlText is a property of a field. It is one of the properties that it inherited by any field. The variable does not have this property. > > Best regards > Tore Nilsen From harrison at all-auctions.com Wed May 18 12:43:24 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:43:24 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> Hi Klaus, Thanks for getting back to me on this. That explains the problem. I wish it worked with variables though because execution would be faster. Oh well, at least it will do for now until we have the LC 10 compiler which will make it all faster! Rick > On May 18, 2022, at 12:29 PM, Klaus major-k via use-livecode wrote: > > HTMLTEXT is a property of FIELDS, variables do not have this! > Presumed VarHTMLText is a variable. > > > Best > > Klaus From bobsneidar at iotecdigital.com Wed May 18 12:43:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 May 2022 16:43:30 +0000 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <004738FF-6E60-487D-930F-0888444C3E3E@me.com> Message-ID: Can't you just put URL VarURL into VarHTMLText ? Bob S > On May 18, 2022, at 09:40 , Rick Harrison via use-livecode wrote: > > Thanks! It’s a bummer though, > because variables are much faster. > > Rick > >> On May 18, 2022, at 12:28 PM, Tore Nilsen via use-livecode wrote: >> >> I would think it is because the htmlText is a property of a field. It is one of the properties that it inherited by any field. The variable does not have this property. >> >> Best regards >> Tore Nilsen > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 18 12:49:30 2022 From: mark at livecode.com (Mark Waddingham) Date: Wed, 18 May 2022 17:49:30 +0100 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> Message-ID: <8cefcd66b81a956ca5edeb5d2cb2c07a@livecode.com> On 2022-05-18 17:43, Rick Harrison via use-livecode wrote: > I wish it worked with variables though > because execution would be faster. If variables could manipulate styled text (aka htmlText) then they wouldn't be any faster than fields ;) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Wed May 18 12:53:35 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 18 May 2022 09:53:35 -0700 Subject: Movie text tracks In-Reply-To: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> References: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Message-ID: <747ad1eb-9942-e3c2-5d53-7d4eb0ae1e12@fourthworld.com> Good to see you here, Devin. If your app can handle the RAM hit of embedding a browser app instance with the Browser Widget, and if you can extract the text track info from QT's proprietary format, HTML supports text tracks nicely via the WebVTT standard: https://www.3playmedia.com/learn/how-to-guides/html5-video-captioning/ -- Richard Gaskin Fourth World Systems Devin Asay wrote: > Im resurrecting some QuickTime movies from years ago, and some of > them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track > with `put the tracks of player 1`. But there doesnt seem to be a > way anymore to show text tracks, either in the player object or in > QT Player. All of the hits I get on the topic in a DuckDuckGo search > are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from > video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin From harrison at all-auctions.com Wed May 18 12:58:59 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:58:59 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <004738FF-6E60-487D-930F-0888444C3E3E@me.com> Message-ID: <8AC8EC22-E34C-4EAB-9A10-FF8FF2994A58@all-auctions.com> Hi Bob, That might be what I need, but I’ll have to look at the resulting code to see if that will work. Thanks, Rick > On May 18, 2022, at 12:43 PM, Bob Sneidar via use-livecode wrote: > > put URL VarURL into VarHTMLText From paul at researchware.com Wed May 18 13:38:52 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 13:38:52 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: Instead of: set the HTMLText of VarHTMLText to URL VarURL Use: set the HTMLText of the templateField to URL VarURL And instead of: get the effective HTMLText of VarHTMLText2 Use: get the effective HTMLText of the templateField From harrison at all-auctions.com Wed May 18 13:46:48 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 13:46:48 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: Hi Paul, Thanks for this. I’ll keep this in mind for the future. I found that Bob’s simple suggestion of: put URL VarURL into VarHTMLText to work the best for me. Thanks again! Rick > On May 18, 2022, at 1:38 PM, Paul Dupuis via use-livecode wrote: > > Instead of: > > set the HTMLText of VarHTMLText to URL VarURL > > Use: > > set the HTMLText of the templateField to URL VarURL > > And instead of: > > get the effective HTMLText of VarHTMLText2 > > Use: > > get the effective HTMLText of the templateField > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 18 14:58:05 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 May 2022 18:58:05 +0000 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <8cefcd66b81a956ca5edeb5d2cb2c07a@livecode.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> <8cefcd66b81a956ca5edeb5d2cb2c07a@livecode.com> Message-ID: Haha! I forget sometimes that everything is just some bit of memory. I keep thinking for example that if I store values I want in a script local that it will somehow be much faster than a custom property of an object, but of course that can only be true if the code for accessing custom properties was not very efficient. Bob S > On May 18, 2022, at 09:49 , Mark Waddingham via use-livecode wrote: > > On 2022-05-18 17:43, Rick Harrison via use-livecode wrote: >> I wish it worked with variables though >> because execution would be faster. > > If variables could manipulate styled text (aka htmlText) then they wouldn't be any faster than fields ;) > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps From matthias_livecode_150811 at m-r-d.de Wed May 18 15:54:39 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 18 May 2022 21:54:39 +0200 Subject: Where is the pdf external in LC 9.6 and 10? Message-ID: Hi all. I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? Am i am missing something? I do not remember that XPDF was discontinued. Was there any notification about it? Regards, Matthias From ambassador at fourthworld.com Tue May 17 17:00:57 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 17 May 2022 14:00:57 -0700 Subject: Movie text tracks In-Reply-To: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Message-ID: Good to see you here, Devin. If your app can handle the RAM hit of embedding a browser app instance with the Browser Widget, and if you can extract the text track info from QT's proprietary format, HTML supports text tracks nicely via the WebVTT standard: https://www.3playmedia.com/learn/how-to-guides/html5-video-captioning/ -- Richard Gaskin Fourth World Systems Devin Asay wrote: > Im resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesnt seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin From devin_asay at byu.edu Wed May 18 16:36:58 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 18 May 2022 20:36:58 +0000 Subject: Movie text tracks In-Reply-To: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Message-ID: Hi all, Thanks for the advice. I wanted to follow up with what I eventually ended up doing. So, both Jacque’s and Richmond’s suggestions were good, but too much work for just peeking at some text tracks. But they got me thinking: Hey, Windows 10 actually still runs QT 7, and I have an old QT Pro license key for Windows. I wonder if it still works. (Spoiler alert—it does!) So I was at least able to open up the movie files. Score 1 for Microsoft and backward compatibility! And there, magically, were my text tracks! Paul, I think your suggestion to encourage LiveCode to support text track access that exists in the modern AV frameworks is a great one. Maybe timely, now that the mothership has asked for top 10 bug fix requests again. Richard, thanks for pointing me in the direction of HTML 5. It set me on a little journey to educate myself on the state of video captioning in *this* century! Definitely glad I took that little detour and learned about WebVTT captioning format. Thanks again for the help and suggestions. This community never disappoints! - Devin On May 17, 2022, at 2:16 PM, J. Landman Gay via use-livecode > wrote: Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html -- 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 Devin Asay Office of Digital Humanities Brigham Young University From paul at researchware.com Wed May 18 16:44:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 16:44:31 -0400 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. You can copy it from the 9.6.5 of earlier to the ccorresponding folder for LC 9.6.7. For example, on Windows it is C:\Program Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45 Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7 -- Paul On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote: > Hi all. > > I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? > > Am i am missing something? > > I do not remember that XPDF was discontinued. Was there any notification about it? > > 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 devin_asay at byu.edu Wed May 18 16:49:39 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 18 May 2022 20:49:39 +0000 Subject: Movie text tracks In-Reply-To: References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Message-ID: <697397D1-D0F5-41F5-9200-3BFE4E2F821A@byu.edu> Sorry, I left out the punch line. My original need was simply to extract the text tracks from the old .mov files. It turns out you can do that, after a fashion, with QT Pro, but it comes out with lots of binary cruft. I found out you can also do this with ffmpeg, the Swiss Army Knife of video tools. This website explains how: https://forum.videohelp.com/threads/403944-Extract-and-convert-QuickTime-7-Pro-TextTracks Neither method was perfect, but both were good enough for what I wanted. - Devin On May 18, 2022, at 2:36 PM, Devin Asay via use-livecode > wrote: Hi all, Thanks for the advice. I wanted to follow up with what I eventually ended up doing. So, both Jacque’s and Richmond’s suggestions were good, but too much work for just peeking at some text tracks. But they got me thinking: Hey, Windows 10 actually still runs QT 7, and I have an old QT Pro license key for Windows. I wonder if it still works. (Spoiler alert—it does!) So I was at least able to open up the movie files. Score 1 for Microsoft and backward compatibility! And there, magically, were my text tracks! Paul, I think your suggestion to encourage LiveCode to support text track access that exists in the modern AV frameworks is a great one. Maybe timely, now that the mothership has asked for top 10 bug fix requests again. Richard, thanks for pointing me in the direction of HTML 5. It set me on a little journey to educate myself on the state of video captioning in *this* century! Definitely glad I took that little detour and learned about WebVTT captioning format. Thanks again for the help and suggestions. This community never disappoints! - Devin On May 17, 2022, at 2:16 PM, J. Landman Gay via use-livecode > wrote: Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html -- 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 Devin Asay Office of Digital Humanities Brigham Young University _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From paul at researchware.com Wed May 18 16:50:11 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 16:50:11 -0400 Subject: IDE Property Editor for Custom Properties error Message-ID: This bug probably won't impact many people, but I just reported bug https://quality.livecode.com/show_bug.cgi?id=23712 In older versions of LC you could have custom property keys that had commas in them, such as a key like "topic,subtopic" for a online help system. The current (and recent) property inspect tries to convert custom property keys with a comma into arrays! Just thought I would raise this on the list for anyone else who might be impacted. From klaus at major-k.de Wed May 18 16:55:20 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 18 May 2022 22:55:20 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: Hi Paul, > Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : > > It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? > You can copy it from the 9.6.5 of earlier to the ccorresponding folder for LC 9.6.7. For example, on Windows it is C:\Program Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45 > Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7 > > -- Paul > > On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote: >> Hi all. >> >> I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? >> >> Am i am missing something? >> >> I do not remember that XPDF was discontinued. Was there any notification about it? >> >> Regards, >> Matthias -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From matthias_livecode_150811 at m-r-d.de Wed May 18 16:59:24 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 18 May 2022 22:59:24 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: Ah thanks, Paul. I copied already the xpdf from an older LC version to LC 10DP3. But good to know that it will be back. XPDF allows me to get the imagedata of the currently rendered page and 'export' that as image. Matthias > Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : > > It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. > > You can copy it from the 9.6.5 of earlier to the ccorresponding folder for LC 9.6.7. For example, on Windows it is C:\Program Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45 > > Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7 > > > -- Paul > > On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote: >> Hi all. >> >> I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? >> >> Am i am missing something? >> >> I do not remember that XPDF was discontinued. Was there any notification about it? >> >> 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 Wed May 18 17:19:33 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 17:19:33 -0400 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: > Hi Paul, > >> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : >> >> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. > I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? > > I can't see how Livecode can replace the XPDF external with the PDF Widget UNTIL the PDF Widget provided all the functions the External does (and it does not). Well, of course they could drop the external even if it does a bunch of thinsg people depend on that the Widget does not, but it would just be bad of them to do so! From klaus at major-k.de Thu May 19 03:45:10 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 May 2022 09:45:10 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> References: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> Message-ID: Hi Paul, > Am 18.05.2022 um 23:19 schrieb Paul Dupuis via use-livecode : > > On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: >> Hi Paul, >> >>> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : >>> >>> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. >> I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? > > I can't see how Livecode can replace the XPDF external with the PDF Widget UNTIL the PDF Widget provided all the functions the External does (and it does not). Well, of course they could drop the external even if it does a bunch of thinsg people depend on that the Widget does not, but it would just be bad of them to do so! OK, my fault, obviously I don't know exactly what the external is and can do. 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 Thu May 19 03:56:18 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 May 2022 09:56:18 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> Message-ID: <07CCFFED-5445-4EFE-A593-C5E1433377DB@major-k.de> Hi Paul, > Am 19.05.2022 um 09:45 schrieb Klaus major-k via use-livecode : > Hi Paul, >> Am 18.05.2022 um 23:19 schrieb Paul Dupuis via use-livecode : >> On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: >>> Hi Paul, >>>> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : >>>> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. >>> I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? >> I can't see how Livecode can replace the XPDF external with the PDF Widget UNTIL the PDF Widget provided all the functions the External does (and it does not). Well, of course they could drop the external even if it does a bunch of thinsg people depend on that the Widget does not, but it would just be bad of them to do so! > OK, my fault, obviously I don't know exactly what the external is and can do. this (scroll to bottom) is what the PDF widget functionality provides: Is it different from the XPDF external? 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 Thu May 19 12:03:51 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 19 May 2022 19:03:51 +0300 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: <07CCFFED-5445-4EFE-A593-C5E1433377DB@major-k.de> References: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> <07CCFFED-5445-4EFE-A593-C5E1433377DB@major-k.de> Message-ID: Hello all, We will bring back XPDF, since it has some functionality that the PDF widget does not have, at least as of now :) https://quality.livecode.com/show_bug.cgi?id=23578 Kind regards, Panos -- On Thu, 19 May 2022 at 10:56, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Paul, > > > Am 19.05.2022 um 09:45 schrieb Klaus major-k via use-livecode < > use-livecode at lists.runrev.com>: > > Hi Paul, > >> Am 18.05.2022 um 23:19 schrieb Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com>: > >> On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: > >>> Hi Paul, > >>>> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com>: > >>>> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They > (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable > and further releases in the 9.6.x series. > >>> I thought this has been replaced with the PDF widget, which is only > available in the "Pro Pack" addon? > >> I can't see how Livecode can replace the XPDF external with the PDF > Widget UNTIL the PDF Widget provided all the functions the External does > (and it does not). Well, of course they could drop the external even if it > does a bunch of thinsg people depend on that the Widget does not, but it > would just be bad of them to do so! > > OK, my fault, obviously I don't know exactly what the external is and > can do. > > this (scroll to bottom) is what the PDF widget functionality provides: > > Is it different from the XPDF external? > > > 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 richmondmathewson at gmail.com Fri May 20 03:20:11 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 20 May 2022 10:20:11 +0300 Subject: Curved text possible? In-Reply-To: References: Message-ID: If that is over your head, use my method, which you can find over on the forums. All 'pure' LiveCode. Best, Richmond. On Wed, 18 May 2022, 18:26 William de Smet via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi Sean, > > Incredible to see what HH did. > That is way over my head. > And so is LCB. > > > > > groeten, > > William > > > > > Op wo 18 mei 2022 om 14:16 schreef Sean Cole via use-livecode < > use-livecode at lists.runrev.com>: > > > Actually, HH had put up this on his site and kept open for us kindly. > > https://hh.on-rev.com/widgets/svgtext.html > > > > At the bottom he describes that it is possible to use SVG to define paths > > for the text. How good are you at LCB in being able to manipulate what he > > had achieved here? > > > > Sean > > > > > > On Wed, 18 May 2022 at 12:57, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > @Sean: Yes, a widget would be the best thing of course. > > > Much appreciated! > > > > > > groeten, > > > > > > William > > > > > > > > > > > > > > > Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < > > > use-livecode at lists.runrev.com>: > > > > > > > There is a better way to do this using LCB. If you don’t mind > waiting I > > > > can pull something up. I’m out of office at the moment so can’t get > to > > my > > > > files. > > > > > > > > Sean Cole > > > > Pi Digital Productions Ltd > > > > > > > > eMail Ts & Cs > > > > > > > > > > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > > Hi there, > > > > > > > > > > I posted a curved text example (with use of the browser widget) on > > the > > > > > forum: > > > > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > > > > > > > It works ok but still not satisfied with transparency. > > > > > Maybe someone has a better idea on how to do that? > > > > > > > > > > > > > > > > > > > > groeten, > > > > > > > > > > William > > > > > > > > > > > > > > > > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > > > > williamdesmet at gmail.com > > > > >> : > > > > > > > > > >> Thanks! > > > > >> > > > > >> I came up with sort of the same idea yesterday evening and I am > > > > >> tetsting it now. > > > > >> I load a local html file within the browser widget with > > circletype.js > > > > >> added to the html file. > > > > >> > > > > >> A native textfield (and some extra code) writes back into the html > > > file > > > > >> and then I refresh the card. > > > > >> A snapshot gives me the curved text. > > > > >> > > > > >> There is also Arctext,js that I want to test. > > > > >> > > > > >> I will come back later with my result. > > > > >> > > > > >> groeten, > > > > >> > > > > >> William > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode > < > > > > >> use-livecode at lists.runrev.com>: > > > > >> > > > > >>> +1 > > > > >>> > > > > >>> 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 Bob Sneidar via use-livecode > > > > >>> Sent: Thursday, April 28, 2022 11:18 AM > > > > >>> To: How to use LiveCode > > > > >>> Cc: Bob Sneidar > > > > >>> Subject: Re: Curved text possible? > > > > >>> > > > > >>> Great ideas Martin. I'm going to grant you an honorary doctorate > > from > > > > the > > > > >>> institute of Sly Laboratories. > > > > >>> > > > > >>> Bob S > > > > >>> > > > > >>> > > > > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > > > > >>> wrote: > > > > >>>> > > > > >>>> I was thinking that SVG might work as someone else has said. > > > > >>>> > > > > >>>> At first I thought you could create individual files for each > > letter > > > > and > > > > >>> number and put the path for a letter into a svg widget which you > > > could > > > > >>> rotate or scale. > > > > >>>> you would then have to calculate the angle of rotation and > > location > > > of > > > > >>> each svg widget on a path. But then when I tried rotating the > svg > > > > widget > > > > >>> its scale would change as it rotated because the bounds of the > rect > > > > were > > > > >>> changing. Then you would have to calculate the scale depending on > > the > > > > >>> rotation angle and that seemed a bit much. > > > > >>>> > > > > >>>> I also thought you could import the svg file as an image and > > perhaps > > > > >>> that > > > > >>> would not have the odd behaviour when rotating. I did not try > that > > > > >>> though. > > > > >>>> > > > > >>>> Then I found this. > > > > >>>> > > > > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > > > > >>> > > > > >>>> > > > > >>>> it shows how to use css to put text along a SVG path. At the > > > LiveCode > > > > >>> Dev > > > > >>> Con there were a few unconventional uses of the browser widget > > beyond > > > > >>> displaying webpages that add features that can add features that > > > > LiveCode > > > > >>> does not have natively. So I thought maybe this is one of them. > > So > > > > what > > > > >>> I > > > > >>> thought could be done is display the above in a browser widget > or, > > > If > > > > you > > > > >>> did not want to show the browser widget, use the browser widget > to > > > > render > > > > >>> the curved text, thentake a snapshot of the rendered text and > then > > > show > > > > >>> that > > > > >>> in an image. > > > > >>>> > > > > >>>> Not sure if it will work but the sessions at the conference have > > > > really > > > > >>> got me thinking of new ways to leverage the technology in that > > > widget. > > > > >>>> > > > > >>>> Martin Koob > > > > >>> > > > > >>> > > > > >>> _______________________________________________ > > > > >>> use-livecode mailing list > > > > >>> use-livecode 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 > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 jbv at souslelogo.com Fri May 20 06:34:12 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 20 May 2022 06:34:12 -0400 Subject: Maximum length of mySQL request ? Message-ID: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Hi list, Is there a maximum length limit for mySQL requests ? I don't mean the results returned by mySQL, but the request itself. For instance, I have a table with 180000 entries and counting, and I will need to send requests such as : SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id = 34895... and at times the request might concern 100 ids or even more. I am not too concerned about execution speed, as id is a unique key, but rather for the request itself : I wonder if it might be truncated if too long... Or perhaps a better and safer practice would be to break it into a serie of shorter successive requests when it exceeds a certain threshold ? Thank you in advance. jbv From heather at livecode.com Fri May 20 07:34:57 2022 From: heather at livecode.com (Heather Laine) Date: Fri, 20 May 2022 12:34:57 +0100 Subject: Potential third party products Message-ID: <6B717F96-1CB4-4667-A802-58A3565C3A3C@livecode.com> Dear List Members, We're conducting a general review of our vendor program and I was wondering if there are any lurking potential vendors on this list? Anyone with an addon for LiveCode they'd like to sell via our Extensions store? Or is there something you know of or find particularly useful, made by someone else, that you think would be a good candidate for a wider audience? Probably best to reply to support at livecode.com rather than cluttering up the list. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From paul at researchware.com Fri May 20 08:00:37 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 20 May 2022 08:00:37 -0400 Subject: Maximum length of mySQL request ? In-Reply-To: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: <3027d818-4a0b-c422-06f5-7db31b5adccf@researchware.com> You can save some characters by the following: SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) which is the same as using multiple OR equals in your example. If you need to break this up further, you can UNION the results of multiple queries, such as: SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) -- i.e. the first 100 or 1000 ids UNION SELECT ... FROM myTable WHERE id IN (100,512,9999,16545,...) -- the next 100 or 1000 ids UNION ... repeat as needed On 5/20/2022 6:34 AM, jbv via use-livecode wrote: > Hi list, > > Is there a maximum length limit for mySQL requests ? > I don't mean the results returned by mySQL, but the request itself. > > For instance, I have a table with 180000 entries and counting, and > I will need to send requests such as : > SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id > = 34895... > and at times the request might concern 100 ids or even more. > > I am not too concerned about execution speed, as id is a unique key, > but rather for the request itself : I wonder if it might be truncated > if too long... > Or perhaps a better and safer practice would be to break it into a > serie of > shorter successive requests when it exceeds a certain threshold ? > > 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 bobsneidar at iotecdigital.com Fri May 20 11:24:40 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 May 2022 15:24:40 +0000 Subject: Maximum length of mySQL request ? In-Reply-To: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: I googled around a bit and there doesn't seem to be a limit on statement length. I will say though that the nature of the query indicates a possible design issue with the database. I suspect however that you are at the mercy of someone else's schema. That there is no common denominator you can query on is to me remarkable. How are you obtaining your IDs then? Bob S > On May 20, 2022, at 03:34 , jbv via use-livecode wrote: > > Hi list, > > Is there a maximum length limit for mySQL requests ? > I don't mean the results returned by mySQL, but the request itself. > > For instance, I have a table with 180000 entries and counting, and > I will need to send requests such as : > SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id = 34895... > and at times the request might concern 100 ids or even more. > > I am not too concerned about execution speed, as id is a unique key, > but rather for the request itself : I wonder if it might be truncated > if too long... > Or perhaps a better and safer practice would be to break it into a serie of > shorter successive requests when it exceeds a certain threshold ? > > 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 jbv at souslelogo.com Fri May 20 11:48:44 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 20 May 2022 11:48:44 -0400 Subject: Maximum length of mySQL request ? In-Reply-To: <3027d818-4a0b-c422-06f5-7db31b5adccf@researchware.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> <3027d818-4a0b-c422-06f5-7db31b5adccf@researchware.com> Message-ID: <8fe6f8ac697464a18709a781ab748448@souslelogo.com> Le 2022-05-20 08:00, Paul Dupuis via use-livecode a crit : > You can save some characters by the following: > > SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) > > which is the same as using multiple OR equals in your example. > Thank you. Yes I will try that. And I have no idea why it didn't cross my mind... Perhaps because it's friday... :) jbv From jbv at souslelogo.com Fri May 20 11:56:21 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 20 May 2022 11:56:21 -0400 Subject: Maximum length of mySQL request ? In-Reply-To: References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: Le 2022-05-20 11:24, Bob Sneidar via use-livecode a crit : > I googled around a bit and there doesn't seem to be a limit on > statement length. I will say though that the nature of the query > indicates a possible design issue with the database. I suspect however > that you are at the mercy of someone else's schema. That there is no > common denominator you can query on is to me remarkable. How are you > obtaining your IDs then? > Thank you for your reply. I also did some google search before asking the question, but didn't find anything, only about the size of the data returned by mySQL. What makes you think of a possible design issue ? The ids are auto-incremented every time a new entry is added to the table, and the ids in the request are obtained by intersecting various multi-dimensional arrays that make very complex searches very fast (less than 1 sec, when it takes 5 to 10 sec with regular SQL queries). From jacque at hyperactivesw.com Fri May 20 12:32:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 11:32:04 -0500 Subject: HTML font size in percentages Message-ID: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri May 20 12:38:09 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 May 2022 16:38:09 +0000 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <33CFF2DA-4DA1-44BE-ABE1-86D77364DB53@iotecdigital.com> I know that typically cmd +/- (or ctrl for Win) will increase or decrease the zoom of a web page. You can try that, or else use a browser widget. (I wonder if that trick would work in a widget?? It should...) Bob S > On May 20, 2022, at 09:32 , J. Landman Gay via use-livecode wrote: > > I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. > > -- > 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 bobsneidar at iotecdigital.com Fri May 20 12:42:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 May 2022 16:42:51 +0000 Subject: Maximum length of mySQL request ? In-Reply-To: References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: OIC you are searching arrays to obtain your IDs. That would make sense because arrays are memory based. SQL is file based as in sqLite, or else accessed (typically) over a network which would account for the speed disparity. Of course, to be fail, you will have to add the time to search the arrays, THEN the time to query your SQL database with the IDs to make that comparison equal. Bob S > On May 20, 2022, at 08:56 , jbv via use-livecode wrote: > > Le 2022-05-20 11:24, Bob Sneidar via use-livecode a écrit : >> I googled around a bit and there doesn't seem to be a limit on >> statement length. I will say though that the nature of the query >> indicates a possible design issue with the database. I suspect however >> that you are at the mercy of someone else's schema. That there is no >> common denominator you can query on is to me remarkable. How are you >> obtaining your IDs then? > > Thank you for your reply. > I also did some google search before asking the question, but didn't > find anything, only about the size of the data returned by mySQL. > > What makes you think of a possible design issue ? > The ids are auto-incremented every time a new entry is added to the > table, and the ids in the request are obtained by intersecting various > multi-dimensional arrays that make very complex searches very fast > (less than 1 sec, when it takes 5 to 10 sec with regular SQL queries). > > _______________________________________________ > use-livecode mailing list > use-livecode 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 devin_asay at byu.edu Fri May 20 12:45:13 2022 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 20 May 2022 16:45:13 +0000 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <5AA3874B-B85D-4D87-A3A1-2FA7E7A2C903@byu.edu> Jacque, It sounds like the HTML tags are setting the size for runs of text in the field, so you can’t just set the textSize of the field? Are there varying sizes of text runs in the field? Could you set the textSize of the char 1 to -1 of the field to empty, then set it for the whole field? In one project I’ve implemented a feature similar to what Bob was talking about where I increment the textSize of the field by 1 point using Cmd/Cntl + or -. - Devin On May 20, 2022, at 10:32 AM, J. Landman Gay via use-livecode > wrote: I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. -- 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 Devin Asay Office of Digital Humanities Brigham Young University From keith.clarke at me.com Fri May 20 12:50:55 2022 From: keith.clarke at me.com (Keith Clarke) Date: Fri, 20 May 2022 17:50:55 +0100 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hi Jaque, A lot will depend: 1) Whether the changes in font size within the nested HTML tags have been set locally or ‘more properly' as relative to the root font size of the page in ‘rem’, where 1 rem = 100% of the root font-size). 2) you want a global font-size adjustment or more granular. If you can set CSS in the page (via the browser widget of by inserting text into the HTML), you could try experimenting with setting the body or other outermost element font-size to 5rem to see if that affected sizing throughout? For example, if the page it has a body tag, you could insert the following style block into the HTML header tag. Best, Keith > On 20 May 2022, at 17:32, J. Landman Gay via use-livecode wrote: > > I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. > > -- > 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 jacque at hyperactivesw.com Fri May 20 13:05:45 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 12:05:45 -0500 Subject: HTML font size in percentages In-Reply-To: <33CFF2DA-4DA1-44BE-ABE1-86D77364DB53@iotecdigital.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <33CFF2DA-4DA1-44BE-ABE1-86D77364DB53@iotecdigital.com> Message-ID: <180e26eaa28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The text has to be in a field for lots of reasons. Browsers and widgets are too limited. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 20, 2022 11:40:12 AM Bob Sneidar via use-livecode wrote: > I know that typically cmd +/- (or ctrl for Win) will increase or decrease > the zoom of a web page. You can try that, or else use a browser widget. (I > wonder if that trick would work in a widget?? It should...) > > Bob S > > >> On May 20, 2022, at 09:32 , J. Landman Gay via use-livecode >> wrote: >> >> I have a field whose HTMLtext is set to a heavily tagged HTML file that >> changes the font size repeatedly. We want to allow the user to adjust the >> size of the text. The easiest way would be to use percentages for the font >> sizes so that changing the field's textsize would change the markup >> proportionally, but LC fields don't seem to support that. Is there a trick >> or do I need to do a series of replacements? I'm afraid that will be too >> slow, there's a lot of text. >> >> -- >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri May 20 15:08:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 20 May 2022 15:08:51 -0400 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: You have to do replacement of the size value in the field's htmlText (or perhaps styledText) I have code that does this. I can provide it to you if you like. I don't claim it is the bets or most effiecent. Unfortunately, I am gone for the rest of today, s tomorrow is the earliest I could send code to you. On 5/20/2022 12:32 PM, J. Landman Gay via use-livecode wrote: > I have a field whose HTMLtext is set to a heavily tagged HTML file > that changes the font size repeatedly. We want to allow the user to > adjust the size of the text. The easiest way would be to use > percentages for the font sizes so that changing the field's textsize > would change the markup proportionally, but LC fields don't seem to > support that. Is there a trick or do I need to do a series of > replacements? I'm afraid that will be too slow, there's a lot of text. > > -- > 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 jacque at hyperactivesw.com Fri May 20 15:13:22 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 14:13:22 -0500 Subject: HTML font size in percentages In-Reply-To: <5AA3874B-B85D-4D87-A3A1-2FA7E7A2C903@byu.edu> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5AA3874B-B85D-4D87-A3A1-2FA7E7A2C903@byu.edu> Message-ID: <28ea4792-d49b-2e87-7075-e9d410329fc9@hyperactivesw.com> On 5/20/22 11:45 AM, Devin Asay via use-livecode wrote: > It sounds like the HTML tags are setting the size for runs of text in the field, so you can’t just set the textSize of the field? I did try setting the text size of the field, and all untagged chunks reflect the new size as expected (default field text is 20 points.) But there are exceptions embedded in the text that require superscripts and/or other sizes for chapter headings and other things. It looks like this:

TEXT HERE TEXT HERETEXT HERETEXT HERETEXT HERE, ETC ETC The text is too long for a single field so I'm using Trevor's dataView (thank you so much Trevor!) The text sizes and superscripts are footnotes, references, and other supplementary info. They are scattered liberally around in the text. Untagged text responds well to the field text size, which I can easily change in the dataView template. But the superscripts text size and offset, and other changes do not because they are specifically indicated with integers. If I could use percentages, then changing the field text size would proportionally change everything else. But percentages don't work in my tests. I wish we could use CSS in LC fields, but it isn't supported. I can't use any type of browser because we need features that a browser doesn't support. > > Are there varying sizes of text runs in the field? Could you set the textSize of the char 1 to -1 of the field to empty, then set it for the whole field? In one project I’ve implemented a feature similar to what Bob was talking about where I increment the textSize of the field by 1 point using Cmd/Cntl + or -. This is a mobile app, so no keyboard is available. It's been in the app stores for about a year but our main complaint from users is that the text is too small on a phone. We'd like to fix that. The choice of font size would be a setting in user prefs and the text would accomodate that whenever the app runs. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri May 20 16:30:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 15:30:04 -0500 Subject: HTML font size in percentages In-Reply-To: References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Thanks for verifying it Paul, that's what I was thinking too. I'm looking at replacing the sizes via the style runs, I have a handler Mark Waddingham gave me/us on the list last year that I think I can modify. But I'd be grateful to see yours too. No big hurry, I just need to get an idea of how to estimate my time at this point. Thank you very much. On 5/20/22 2:08 PM, Paul Dupuis via use-livecode wrote: > You have to do replacement of the size value in the field's htmlText (or perhaps styledText) > > I have code that does this. I can provide it to you if you like. I don't claim it is the bets > or most effiecent. Unfortunately, I am gone for the rest of today, s tomorrow is the earliest I > could send code to you. > > > > On 5/20/2022 12:32 PM, J. Landman Gay via use-livecode wrote: >> I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size >> repeatedly. We want to allow the user to adjust the size of the text. The easiest way would >> be to use percentages for the font sizes so that changing the field's textsize would change >> the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I >> need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon May 23 14:22:23 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 May 2022 18:22:23 +0000 Subject: Is it a bug? Message-ID: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> I found one thing I think is a bug, and I'd like to report it, but I want to see if anyone else thinks this may be the expected behavior: It seems to me that when clicking and holding the mouse button down on an pulldown menu, then releasing outside that menu so that no menu item is actually selected, the parameter passed to menuPick ought to be empty, if menuPick even should get sent in the first place. What it actually does is it passes the first menu item, even though that item was not specifically chosen. If you click AND release while still IN the pulldown menu so that the menu remains expanded, THEN click off the menu, MenuPick never even gets sent to the pulldown menu, which is what one would expect. This is on MacOS 10.15.7 Catalina running 9.6.7 Pro. What say you? Bob S From richmondmathewson at gmail.com Mon May 23 14:34:01 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 23 May 2022 21:34:01 +0300 Subject: Is it a bug? In-Reply-To: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> References: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> Message-ID: Seem sensible, after all end-users should be able ti change their minds. On Mon, 23 May 2022, 21:23 Bob Sneidar via use-livecode, < use-livecode at lists.runrev.com> wrote: > I found one thing I think is a bug, and I'd like to report it, but I want > to see if anyone else thinks this may be the expected behavior: > > It seems to me that when clicking and holding the mouse button down on an > pulldown menu, then releasing outside that menu so that no menu item is > actually selected, the parameter passed to menuPick ought to be empty, if > menuPick even should get sent in the first place. What it actually does is > it passes the first menu item, even though that item was not specifically > chosen. > > If you click AND release while still IN the pulldown menu so that the menu > remains expanded, THEN click off the menu, MenuPick never even gets sent to > the pulldown menu, which is what one would expect. > > This is on MacOS 10.15.7 Catalina running 9.6.7 Pro. > > What say you? > > 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 > From Bernd.Niggemann at uni-wh.de Mon May 23 15:26:55 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Mon, 23 May 2022 19:26:55 +0000 Subject: Is it a bug? Message-ID: <80E408DA-1427-46D1-9F22-72A47A4F965A@uni-wh.de> sounds a lot like https://quality.livecode.com/show_bug.cgi?id=23693 Kind regards Bernd From rdimola at evergreeninfo.net Mon May 23 17:03:08 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 23 May 2022 17:03:08 -0400 Subject: Is it a bug? In-Reply-To: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> References: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> Message-ID: <004f01d86ee8$84a87450$8df95cf0$@net> I also expect nothing is done if I click on anything and move the mouse outside the active window THEN release(unless a drag and drop is involved). I use this all this time with the classic "S*&# I didn't mean to click on that". If move out of the window before releasing nothing happens. This behavior applies to all apps I have used including the LC IDE. I see this behavior both Windows and Mac. What are they doing in the LC IDE to create the expected behavior? 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 Bob Sneidar via use-livecode Sent: Monday, May 23, 2022 2:22 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Is it a bug? I found one thing I think is a bug, and I'd like to report it, but I want to see if anyone else thinks this may be the expected behavior: It seems to me that when clicking and holding the mouse button down on an pulldown menu, then releasing outside that menu so that no menu item is actually selected, the parameter passed to menuPick ought to be empty, if menuPick even should get sent in the first place. What it actually does is it passes the first menu item, even though that item was not specifically chosen. If you click AND release while still IN the pulldown menu so that the menu remains expanded, THEN click off the menu, MenuPick never even gets sent to the pulldown menu, which is what one would expect. This is on MacOS 10.15.7 Catalina running 9.6.7 Pro. What say you? 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 From klaus at major-k.de Tue May 24 06:36:29 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 May 2022 12:36:29 +0200 Subject: Xcode Message-ID: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Hi all, Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only support Xcode 13.2. Did I miss something? 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 Tue May 24 06:51:31 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 24 May 2022 13:51:31 +0300 Subject: Xcode In-Reply-To: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Message-ID: Hello Klaus, You do not have to use the latest version of Xcode if your goal is to be able to deploy to the latest version of iOS. This is the reason we have not moved (yet) to a newer Xcode version - you can still use Xcode 13.2 to build apps that will run not only on devices running the current most recent iOS version but also on future iOS versions. Hope this helps. Kind regards, Panos -- On Tue, 24 May 2022 at 13:37, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only support > Xcode 13.2. > Did I miss something? > > > 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 May 24 06:55:51 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 May 2022 12:55:51 +0200 Subject: Xcode In-Reply-To: References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Message-ID: <9E9122C5-D0F5-4898-B967-A9FDF178A8BA@major-k.de> Hi Panos, > Am 24.05.2022 um 12:51 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > You do not have to use the latest version of Xcode if your goal is to be > able to deploy to the latest version of iOS. > > This is the reason we have not moved (yet) to a newer Xcode version - you > can still use Xcode 13.2 to build apps that will run not only on devices > running the current most recent iOS version but also on future iOS versions. > > Hope this helps. Ah, I see, thank you! > Kind regards, > Panos 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 May 24 07:00:36 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 24 May 2022 12:00:36 +0100 Subject: Formatting code in word Message-ID: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Hello list, Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. Thanks! Mark From jmac at consensustech.com Tue May 24 10:53:08 2022 From: jmac at consensustech.com (Jim MacConnell) Date: Tue, 24 May 2022 07:53:08 -0700 Subject: Xcode In-Reply-To: References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Message-ID: <93731F94-7672-4063-92EC-F10BC167695F@consensustech.com> Panos, I’m so glad I saw this. Just for my clarity…. Are you saying we no longer need to do the “Hold off on Xcode updates until Livecode can catch up?” thing. I have folders full of older Xcode versions and go through a little dance each time I upgrade. It would be wonderful to not have to worry about that anymore and to just have one version I point Livecode t feeling completely free to upgrade my main version of Xcode without worrying that I might break something. Yours, Jim > On May 24, 2022, at 3:51 AM, panagiotis m via use-livecode wrote: > > Hello Klaus, > > You do not have to use the latest version of Xcode if your goal is to be > able to deploy to the latest version of iOS. > > This is the reason we have not moved (yet) to a newer Xcode version - you > can still use Xcode 13.2 to build apps that will run not only on devices > running the current most recent iOS version but also on future iOS versions. > > Hope this helps. > > Kind regards, > Panos > -- > > On Tue, 24 May 2022 at 13:37, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only support >> Xcode 13.2. >> Did I miss something? >> >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 hakan at exformedia.se Tue May 24 10:57:35 2022 From: hakan at exformedia.se (=?utf-8?Q?H=C3=A5kan_Liljegren?=) Date: Tue, 24 May 2022 16:57:35 +0200 Subject: Formatting code in word In-Reply-To: <02105F99-1416-4C08-B642-19D035702967@gmail.com> References: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Message-ID: Probably not what you want to hear, but I never distribute documents in Word as I then have no control on the formatting. The receiver might not have the same font installed and then the text might reflow and all kinds of bad things might happen! :) I always use PDF for distrution. BUT, if you still want to use Word you can create a specific format for the code blocks and then select the language for that format and check the “Do not check spelling or grammar” for that format. You can also select the newly pasted text and then do the same procedure (Select language and check the do not check checkbox). :-Håkan > On 24 May 2022, at 13:00, Mark Smith via use-livecode wrote: > > Hello list, > > Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. > > Thanks! > Mark > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 24 11:11:51 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 24 May 2022 11:11:51 -0400 Subject: Xcode In-Reply-To: <93731F94-7672-4063-92EC-F10BC167695F@consensustech.com> References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> <93731F94-7672-4063-92EC-F10BC167695F@consensustech.com> Message-ID: <003501d86f80$9ba41b30$d2ec5190$@net> You can have the most recent version of Xcode installed but must also have the LC supported version installed(if different as it usually is). The build tools must point to the LC supported version for building iOS apps but you can use the most recent version(beta or prod) for side-loading, backup, device upgrades, log file viewing... The dance continues. 1,2,3 1,2,3 1,2,3. 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 Jim MacConnell via use-livecode Sent: Tuesday, May 24, 2022 10:53 AM To: How to use LiveCode Cc: Jim MacConnell Subject: Re: Xcode Panos, I’m so glad I saw this. Just for my clarity…. Are you saying we no longer need to do the “Hold off on Xcode updates until Livecode can catch up?” thing. I have folders full of older Xcode versions and go through a little dance each time I upgrade. It would be wonderful to not have to worry about that anymore and to just have one version I point Livecode t feeling completely free to upgrade my main version of Xcode without worrying that I might break something. Yours, Jim > On May 24, 2022, at 3:51 AM, panagiotis m via use-livecode wrote: > > Hello Klaus, > > You do not have to use the latest version of Xcode if your goal is to > be able to deploy to the latest version of iOS. > > This is the reason we have not moved (yet) to a newer Xcode version - > you can still use Xcode 13.2 to build apps that will run not only on > devices running the current most recent iOS version but also on future iOS versions. > > Hope this helps. > > Kind regards, > Panos > -- > > On Tue, 24 May 2022 at 13:37, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only >> support Xcode 13.2. >> Did I miss something? >> >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 24 11:15:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 May 2022 15:15:18 +0000 Subject: Is it a bug? In-Reply-To: <004f01d86ee8$84a87450$8df95cf0$@net> References: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> <004f01d86ee8$84a87450$8df95cf0$@net> Message-ID: If you are seeing a different behavior then perhaps something in my code is doing it. I'll check the executionContexts to see. Bob S > On May 23, 2022, at 14:03 , Ralph DiMola via use-livecode wrote: > > I also expect nothing is done if I click on anything and move the mouse > outside the active window THEN release(unless a drag and drop is involved). > I use this all this time with the classic "S*&# I didn't mean to click on > that". If move out of the window before releasing nothing happens. This > behavior applies to all apps I have used including the LC IDE. I see this > behavior both Windows and Mac. What are they doing in the LC IDE to create > the expected behavior? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Tue May 24 11:17:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 May 2022 15:17:00 +0000 Subject: Formatting code in word In-Reply-To: <02105F99-1416-4C08-B642-19D035702967@gmail.com> References: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Message-ID: <4793DA51-AD1C-4764-9671-3725D5F6DE41@iotecdigital.com> One word solution: Don't. (Actually two words it's a contraction. Word's grammar checker would probably have corrected that.) Bob S > On May 24, 2022, at 04:00 , Mark Smith via use-livecode wrote: > > Hello list, > > Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. > > Thanks! > Mark > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dochawk at gmail.com Tue May 24 13:19:23 2022 From: dochawk at gmail.com (doc hawk) Date: Tue, 24 May 2022 10:19:23 -0700 Subject: Maximum length of mySQL request ? In-Reply-To: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: <81B11393-2BB1-4CCE-89F8-ACA71E72A906@gmail.com> When opening a “file”, my software makes a compound query with several hundred queries within it, so . . . This is possible on Postgres and SQLite, but (last I checked) not on MySQL From bobsneidar at iotecdigital.com Tue May 24 13:38:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 May 2022 17:38:24 +0000 Subject: Maximum length of mySQL request ? In-Reply-To: <81B11393-2BB1-4CCE-89F8-ACA71E72A906@gmail.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> <81B11393-2BB1-4CCE-89F8-ACA71E72A906@gmail.com> Message-ID: There may be an environment variable you need to set to increase it. Because it's network based, it stands to reason that an unlimited query string can be exploited as a denial of service strategy. Bob S > On May 24, 2022, at 10:19 , doc hawk via use-livecode wrote: > > When opening a “file”, my software makes a compound query with several hundred queries within it, so . . . > > This is possible on Postgres and SQLite, but (last I checked) not on MySQL From marksmithhfx at gmail.com Tue May 24 16:37:05 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 24 May 2022 21:37:05 +0100 Subject: Formatting code in word In-Reply-To: References: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Message-ID: Thanks, I wasn’t aware that could be applied to just a specific format… I had always thought of it as document wide. Mind you, I don’t take advantage of 90% of the features in Word either. PDF sounds like a good option for distribution but don’t you still need to create the file in something else? I’ve only ever converted documents to/from PDF. > On 24 May 2022, at 3:57 pm, Håkan Liljegren wrote: > > Probably not what you want to hear, but I never distribute documents in Word as I then have no control on the formatting. The receiver might not have the same font installed and then the text might reflow and all kinds of bad things might happen! :) > > I always use PDF for distrution. BUT, if you still want to use Word you can create a specific format for the code blocks and then select the language for that format and check the “Do not check spelling or grammar” for that format. You can also select the newly pasted text and then do the same procedure (Select language and check the do not check checkbox). > > :-Håkan > >> On 24 May 2022, at 13:00, Mark Smith via use-livecode > wrote: >> >> Hello list, >> >> Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. >> >> Thanks! >> Mark >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Tue May 24 20:48:57 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 25 May 2022 10:48:57 +1000 Subject: s it a bug? In-Reply-To: References: Message-ID: Bob: I'm not seeing this in the IDE or standalone. LC 9.6.7, macOS Monterey > > I found one thing I think is a bug, and I'd like to report it, but I want to see if anyone else thinks this may be the expected behavior: > > It seems to me that when clicking and holding the mouse button down on an pulldown menu, then releasing outside that menu so that no menu item is actually selected, the parameter passed to menuPick ought to be empty, if menuPick even should get sent in the first place. What it actually does is it passes the first menu item, even though that item was not specifically chosen. > > Bob S > > > ********************************************* From paul at researchware.com Wed May 25 07:36:43 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 25 May 2022 07:36:43 -0400 Subject: HTML font size in percentages In-Reply-To: References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <0f444390-49f7-12bf-a3b5-9edd0d959f39@researchware.com> On 5/20/2022 4:30 PM, J. Landman Gay via use-livecode wrote: > Thanks for verifying it Paul, that's what I was thinking too. I'm > looking at replacing the sizes via the style runs, I have a handler > Mark Waddingham gave me/us on the list last year that I think I can > modify. > > But I'd be grateful to see yours too. No big hurry, I just need to get > an idea of how to estimate my time at this point. Thank you very much. > > Sorry for the delay. By some weird email glitch I only saw this list post today. Anyway, here is the routine, While it works, if I was rewriting it, I would probably just do a loop with a match to the html font size attribute. This code does ensure that the size can't go below a minimum where LC's legacy font size values actually make the text bigger. on ChangeTextSize pBiggerOrSmaller, pObj   -- usage: ChangeTextSize "bigger"|"smaller",the long ID of field X of stack Y   lock screen   if len(the text of pObj) > 5000 then     set cursor to watch   end if   -- Get current scaling. The textSize will be set to the effectove textSize + tCurScale (+1|-1)   -- uTextScaling is defauted to 0 in the object (field) custom properties   put the uTextScaling of pObj into tScale   if tScale is empty then put 0 into tScale   if pBiggerOrSmaller is "bigger" then     add 1 to tScale     put 1 into tCurScale   else     subtract 1 from tScale     put -1 into tCurScale   end if   set the uTextScaling of pObj to tScale   --   put the htmlText of pObj into tHtml   --   set the textHeight of pObj to empty   set the textSize   of pObj to max(8,the effective textSize of pObj+tCurScale)   --   replace "size=""e with "size="&numToChar(1500) in tHtml   set the itemdel to numToChar(1500)   if the number of items of tHtml <> 1 then     put 0 into testItem     repeat for each item theItem in tHtml       add 1 to testItem       if testItem<>1 then         put offset(quote,theitem) into counter         put char 1 to counter-1 of theItem into theSize         put max(8,theSize+tCurScale) into theSize         put theSize into char 1 to counter-1 of theItem         put quote&theItem after newHTML       else         put theItem into newHTML         next repeat       end if     end repeat     set the htmlText of pObj to newHTML     --   end if   unlock screen end ChangeTextSize From hakan at exformedia.se Wed May 25 13:52:30 2022 From: hakan at exformedia.se (Hakan@exformedia.se) Date: Wed, 25 May 2022 19:52:30 +0200 Subject: Formatting code in word In-Reply-To: References: Message-ID: Yes, you need to use something to create the PDF first of course. And here Word might be a good candidate. Especially if you are to write a lot of explaining text and then paste some code. I think I still would go for an automated setup and write the explanations in the code. Then you could automate the full process (in Livecode of course :) But it all depends on the purpose of course. If you are looking for a tool to convert between a lot of different formats I suggest you take a look at pandoc. A command line Swiss army tool for document conversion. Good Luck! :-Håkan Skickat från min iPhone > 24 maj 2022 kl. 22:37 skrev Mark Smith : > > Thanks, I wasn’t aware that could be applied to just a specific format… I had always thought of it as document wide. Mind you, I don’t take advantage of 90% of the features in Word either. PDF sounds like a good option for distribution but don’t you still need to create the file in something else? I’ve only ever converted documents to/from PDF. > >> On 24 May 2022, at 3:57 pm, Håkan Liljegren wrote: >> >> Probably not what you want to hear, but I never distribute documents in Word as I then have no control on the formatting. The receiver might not have the same font installed and then the text might reflow and all kinds of bad things might happen! :) >> >> I always use PDF for distrution. BUT, if you still want to use Word you can create a specific format for the code blocks and then select the language for that format and check the “Do not check spelling or grammar” for that format. You can also select the newly pasted text and then do the same procedure (Select language and check the do not check checkbox). >> >> :-Håkan >> >>> On 24 May 2022, at 13:00, Mark Smith via use-livecode wrote: >>> >>> Hello list, >>> >>> Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. >>> >>> Thanks! >>> Mark >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Wed May 25 13:57:31 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 25 May 2022 20:57:31 +0300 Subject: Formatting code in word In-Reply-To: References: Message-ID: A better bet is LibreOffice as cheap jacks like me can see no obvious reason for paying for something when a functional equivalent exists for free. On Wed, 25 May 2022, 20:53 Hakan--- via use-livecode, < use-livecode at lists.runrev.com> wrote: > Yes, you need to use something to create the PDF first of course. And here > Word might be a good candidate. Especially if you are to write a lot of > explaining text and then paste some code. > I think I still would go for an automated setup and write the explanations > in the code. Then you could automate the full process (in Livecode of > course :) But it all depends on the purpose of course. > > If you are looking for a tool to convert between a lot of different > formats I suggest you take a look at pandoc. A command line Swiss army tool > for document conversion. > > Good Luck! > :-Håkan > > Skickat från min iPhone > > > 24 maj 2022 kl. 22:37 skrev Mark Smith : > > > > Thanks, I wasn’t aware that could be applied to just a specific format… > I had always thought of it as document wide. Mind you, I don’t take > advantage of 90% of the features in Word either. PDF sounds like a good > option for distribution but don’t you still need to create the file in > something else? I’ve only ever converted documents to/from PDF. > > > >> On 24 May 2022, at 3:57 pm, Håkan Liljegren > wrote: > >> > >> Probably not what you want to hear, but I never distribute documents in > Word as I then have no control on the formatting. The receiver might not > have the same font installed and then the text might reflow and all kinds > of bad things might happen! :) > >> > >> I always use PDF for distrution. BUT, if you still want to use Word you > can create a specific format for the code blocks and then select the > language for that format and check the “Do not check spelling or grammar” > for that format. You can also select the newly pasted text and then do the > same procedure (Select language and check the do not check checkbox). > >> > >> :-Håkan > >> > >>> On 24 May 2022, at 13:00, Mark Smith via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> Hello list, > >>> > >>> Do you use anything to make code look more readable when inserted into > a Word document? I ask because all those squiggly red underlines > (spellcheck marks) makes it pretty unattractive, although they can be > turned off. However, when distributing a document to others they may not > know how to turn that off. Just wondering if you’ve found a better way for > distributing code in word docs. > >>> > >>> Thanks! > >>> Mark > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 Wed May 25 14:32:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 May 2022 13:32:04 -0500 Subject: HTML font size in percentages In-Reply-To: <0f444390-49f7-12bf-a3b5-9edd0d959f39@researchware.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <0f444390-49f7-12bf-a3b5-9edd0d959f39@researchware.com> Message-ID: <28f40f53-0ab8-decb-6af1-48a5c590ad8e@hyperactivesw.com> On 5/25/22 6:36 AM, Paul Dupuis via use-livecode wrote: > Anyway, here is the routine, While it works, if I was rewriting it, I would probably just do a > loop with a match to the html font size attribute. This code does ensure that the size can't go > below a minimum where LC's legacy font size values actually make the text bigger. Thanks so much, very helpful. It's close to what I was thinking of doing. The other alternative is looping through style runs in the styledText property. The text I'm dealing with is pretty long, so I'll do some tests to see which method is faster. Thanks again, Jacque -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From heather at livecode.com Fri May 27 07:20:32 2022 From: heather at livecode.com (Heather Laine) Date: Fri, 27 May 2022 12:20:32 +0100 Subject: A test, move along Message-ID: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Just checking all is working as it should. Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From bobsneidar at iotecdigital.com Fri May 27 11:13:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 May 2022 15:13:18 +0000 Subject: A test, move along In-Reply-To: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Message-ID: Define, "all." Currently I have some code that is giving me fits... ;-) Bob S > On May 27, 2022, at 04:20 , Heather Laine via use-livecode wrote: > > Just checking all is working as it should. > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 heather at livecode.com Fri May 27 11:30:57 2022 From: heather at livecode.com (Heather Laine) Date: Fri, 27 May 2022 16:30:57 +0100 Subject: A test, move along In-Reply-To: References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Message-ID: There had to be one. I'm happy to report there appears to be nothing wrong with the list software. And in fact, the users are also working as expected. ;) H Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 27 May 2022, at 16:13, Bob Sneidar via use-livecode wrote: > > Define, "all." Currently I have some code that is giving me fits... ;-) > > Bob S > > >> On May 27, 2022, at 04:20 , Heather Laine via use-livecode wrote: >> >> Just checking all is working as it should. >> >> >> Heather Laine >> Customer Services Manager >> LiveCode Ltd >> www.livecode.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dochawk at gmail.com Fri May 27 19:03:23 2022 From: dochawk at gmail.com (doc hawk) Date: Fri, 27 May 2022 16:03:23 -0700 Subject: A test, move along In-Reply-To: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Message-ID: <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> As a professor, I’ll grade it a B-. :) > On May 27, 2022, at 4:20 AM, Heather Laine via use-livecode wrote: > > Just checking all is working as it should. > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 ahsoftware at sonic.net Fri May 27 19:28:22 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 27 May 2022 16:28:22 -0700 Subject: A test, move along In-Reply-To: <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> Message-ID: <832a41bf-e848-cc87-39c5-024b7a069e46@sonic.net> On 5/27/22 16:03, doc hawk via use-livecode wrote: > As a professor, Ill grade it a B-. I thought that was a pessimistic blood type. -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Fri May 27 20:37:28 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 28 May 2022 01:37:28 +0100 Subject: A test, move along In-Reply-To: <832a41bf-e848-cc87-39c5-024b7a069e46@sonic.net> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> <832a41bf-e848-cc87-39c5-024b7a069e46@sonic.net> Message-ID: <701578b7-74c3-5201-2904-9f6f1869b238@tweedly.net> On 28/05/2022 00:28, Mark Wieder via use-livecode wrote: > On 5/27/22 16:03, doc hawk via use-livecode wrote: >> As a professor, Ill grade it a B-. > > I thought that was a pessimistic blood type. > I thought it was short for balderdash! From General.2018 at outlook.com Sat May 28 10:15:50 2022 From: General.2018 at outlook.com (General 2018) Date: Sat, 28 May 2022 14:15:50 +0000 Subject: Substacks Message-ID: Hi , New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? Looked at docs and other posts. But stuck no doubt I have missed something. Livecode 9.6.6 and Win 10 Regards Cam From runrev at vonfintel.org Sat May 28 12:28:09 2022 From: runrev at vonfintel.org (Thomas von Fintel) Date: Sat, 28 May 2022 18:28:09 +0200 Subject: Substacks In-Reply-To: References: Message-ID: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Hi, did you try  close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. Livecode 9.6.7 and Windows 10 Hope this helps Thomas Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: > Hi , > > New to substacks - I have a mainstack used as a menu page for 2x substacks > > When substacks opened from mainstack they open fine using go to stack xyz > > The problem is closing of the substacks using - close stack, go to mainstack or close this stack it always closes (quit) everything. Need mainstack to reappear/remain ? > > Looked at docs and other posts. But stuck no doubt I have missed something. > > Livecode 9.6.6 and Win 10 > > Regards > Cam > _______________________________________________ > use-livecode mailing list > use-livecode 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 General.2018 at outlook.com Sat May 28 15:40:00 2022 From: General.2018 at outlook.com (General 2018) Date: Sat, 28 May 2022 19:40:00 +0000 Subject: Substacks In-Reply-To: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> References: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Message-ID: Thanks for the tip but still no good. So button in “xyz” substack with close stack “xyz” still closes all ? Regards Camm > On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode wrote: > > Hi, > > did you try close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. > > Livecode 9.6.7 and Windows 10 > > > Hope this helps > > Thomas > > >> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >> Hi , >> >> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >> >> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >> >> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >> >> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Livecode 9.6.6 and Win 10 >> >> Regards >> Cam >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Sat May 28 16:30:10 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 28 May 2022 15:30:10 -0500 Subject: Substacks In-Reply-To: References: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Message-ID: <1810c5cb050.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> In an app, the mainstack is the home stack. If it's closed and no other stack is open then the app will quit. But if you open a substack, the app can't quit because the substack is part of the stackfile but the mainstack is still marked as closed. So the trick is not to close the mainstack, just hide it instead when you open the substack. When you close the substack, show the mainstack. At least, that's what I think is happening. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 28, 2022 2:42:24 PM General 2018 via use-livecode wrote: > Thanks for the tip but still no good. > > So button in xyz substack with close stack xyz still closes all ? > > Regards Camm > >> On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode >> wrote: >> >> Hi, >> >> did you try close stack "xyz" ? Thias works for me, in the IDE at least, >> both if called from the mainstack and from the substack. Only the substack >> is closed. >> >> Livecode 9.6.7 and Windows 10 >> >> >> Hope this helps >> >> Thomas >> >> >>> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >>> Hi , >>> >>> New to substacks - I have a mainstack used as a menu page for 2x substacks >>> >>> When substacks opened from mainstack they open fine using go to stack >>> xyz >>> >>> The problem is closing of the substacks using - close stack, go to >>> mainstack or close this stack it always closes (quit) everything. Need >>> mainstack to reappear/remain ? >>> >>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Livecode 9.6.6 and Win 10 >>> >>> Regards >>> Cam >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 bobsneidar at iotecdigital.com Sat May 28 16:48:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 28 May 2022 20:48:19 +0000 Subject: Substacks In-Reply-To: References: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Message-ID: <8468155B-9F45-4542-957F-A64B656A42DF@iotecdigital.com> Hide the mainstack, when opening the substack, then show the mainstack in the substack’s closestack handler. Sent from my iPhone > On May 28, 2022, at 12:41, General 2018 via use-livecode wrote: > > Thanks for the tip but still no good. > > So button in “xyz” substack with close stack “xyz” still closes all ? > > Regards Camm > >> On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode wrote: >> >> Hi, >> >> did you try close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. >> >> Livecode 9.6.7 and Windows 10 >> >> >> Hope this helps >> >> Thomas >> >> >>>> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >>> Hi , >>> >>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >>> >>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >>> >>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >>> >>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Livecode 9.6.6 and Win 10 >>> >>> Regards >>> Cam >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 ahsoftware at sonic.net Sat May 28 19:11:25 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 28 May 2022 16:11:25 -0700 Subject: Substacks In-Reply-To: References: Message-ID: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> On 5/28/22 07:15, General 2018 via use-livecode wrote: > Hi , > > New to substacks - I have a mainstack used as a menu page for 2x substacks > > When substacks opened from mainstack they open fine using go to stack xyz > > The problem is closing of the substacks using - close stack, go to mainstack or close this stack it always closes (quit) everything. Need mainstack to reappear/remain ? > > Looked at docs and other posts. But stuck no doubt I have missed something. Do you have a closeStack handler in the script of the mainstack? -- Mark Wieder ahsoftware at gmail.com From General.2018 at outlook.com Sun May 29 07:02:52 2022 From: General.2018 at outlook.com (General 2018) Date: Sun, 29 May 2022 11:02:52 +0000 Subject: Substacks In-Reply-To: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> References: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> Message-ID: Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” Will keep looking…….. Regards > On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: > > On 5/28/22 07:15, General 2018 via use-livecode wrote: >> Hi , >> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >> Looked at docs and other posts. But stuck no doubt I have missed something. > > Do you have a closeStack handler in the script of the mainstack? > > > -- > 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 jmac at consensustech.com Sun May 29 09:48:59 2022 From: jmac at consensustech.com (Jim At Consensus) Date: Sun, 29 May 2022 06:48:59 -0700 Subject: Substacks In-Reply-To: References: Message-ID: <67E5C8AF-C440-44CA-AE5B-CD6EB34FAC4D@consensustech.com> At the risk of repeating someone else’s suggestion. I address this by have an on closeStsck handler in the main stack. I’m in my phone so don’t have access to code but it’s along the lines of: On closeStack If the short name of me is “xxxx” then closeStack End closeStack Works rely as bay for me though variations could include “if name is not “xxx” then exit closeStsck Will see which is correct when I get to my machine. Good Luck. Jim NOTE: This has worked reliably for years. I doubt something has changed but perhaps? NOTE 2: To avoid the “mental pain” of not having something like this working, I’d recommend creating a new stack and sub stack combination just to trouble shoot the problem. I’d say 9 times out of 10, I can get the simple test to work which points me to some other issue I never would have discovered that ended up being the issue (like not remembering that before my closeStack was issued, i navigated back to the main stack by a go card “YYYY” of the main stack as part of my trying to figure out what was happening but the timing was such I never saw the transition.) Sent from Jim's iPhone Please excuse brevity, typos and errors > On May 29, 2022, at 4:05 AM, General 2018 via use-livecode wrote: > > Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” > > Will keep looking…….. > > Regards > >>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: >>> >>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>> Hi , >>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >>> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Do you have a closeStack handler in the script of the mainstack? >> >> >> -- >> 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun May 29 12:25:51 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 29 May 2022 11:25:51 -0500 Subject: Substacks In-Reply-To: References: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> Message-ID: <18110a35e98.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Just to clarify, are they real substacks or do you mean they are separate stacks that you include in the build? Also, double check that standalone settings isn't set up to move substacks into separate files. I think that option is in the general pane but I'm not at my computer to check. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 29, 2022 6:05:08 AM General 2018 via use-livecode wrote: > Still no luck, no closestack handler in main stack , tried the other > suggestions with hide/show etc. But still mainstack quits on closing the > substack xyz > > Will keep looking.. > > Regards > >> On 29 May 2022, at 00:12, Mark Wieder via use-livecode >> wrote: >> >> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>> Hi , >>> New to substacks - I have a mainstack used as a menu page for 2x substacks >>> When substacks opened from mainstack they open fine using go to stack >>> xyz >>> The problem is closing of the substacks using - close stack, go to >>> mainstack or close this stack it always closes (quit) everything. Need >>> mainstack to reappear/remain ? >>> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Do you have a closeStack handler in the script of the mainstack? >> >> >> -- >> 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 General.2018 at outlook.com Sun May 29 15:31:30 2022 From: General.2018 at outlook.com (General 2018) Date: Sun, 29 May 2022 19:31:30 +0000 Subject: Substacks In-Reply-To: <18110a35e98.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> <18110a35e98.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hi Jacquline, Think your question lead me to the issue. For some reason on the stack that did not work I added the substack by opening the mainstack and substack and saving the substack into the mainstack somehow. I started from new and added the substack by using the add stack file button within standalone settings and it worked fine. Regards Camm > On 29 May 2022, at 17:27, J. Landman Gay via use-livecode wrote: > > Just to clarify, are they real substacks or do you mean they are separate stacks that you include in the build? Also, double check that standalone settings isn't set up to move substacks into separate files. I think that option is in the general pane but I'm not at my computer to check. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On May 29, 2022 6:05:08 AM General 2018 via use-livecode wrote: >> >> Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” >> >> Will keep looking…….. >> >> Regards >> >>>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: >>> >>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>>> Hi , >>>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >>>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >>>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >>>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Do you have a closeStack handler in the script of the mainstack? >>> >>> >>> -- >>> 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 >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 tom at makeshyft.com Mon May 30 22:33:20 2022 From: tom at makeshyft.com (Tom Glod) Date: Mon, 30 May 2022 22:33:20 -0400 Subject: Android,iOS stay in background? Message-ID: Hi Folks, Just a quick question for all you Livecode pros .... do we have a way as of yet to have our applications stay in the background and not get unloaded by Android and iOS? I found 1 way ...and thats by playing the radio inside a browser. I thought about "playing nothing" but that is too hacky to go into production with. Thanks for any thoughts on this? -- Tom Glod Founder & Developer @ MakeShyft R.D.A Build Software with AppStarterStack for Livecode Save Time with The Time Saver's Toolbox From matthias_livecode_150811 at m-r-d.de Tue May 31 02:53:05 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 31 May 2022 08:53:05 +0200 Subject: Android,iOS stay in background? In-Reply-To: References: Message-ID: Hm, if i recall correctly, Android keeps an app running in background as long as Android does not need the memory the app is "consuming". And i think iOS is doing that as well. In the past one had to modify the plist file to allow background execution in iOS. But for some time now you should be able to allow background execution by enabling the requirement "Background Fetch" in the standalone settings. If there is also a way in Android , i do not know. Matthias > Am 31.05.2022 um 04:33 schrieb Tom Glod via use-livecode : > > Hi Folks, > > Just a quick question for all you Livecode pros .... do we have a way as of > yet to have our applications stay in the background and not get unloaded by > Android and iOS? > > I found 1 way ...and thats by playing the radio inside a browser. > > I thought about "playing nothing" but that is too hacky to go into > production with. > > Thanks for any thoughts on this? > > -- > Tom Glod > > Founder & Developer @ MakeShyft R.D.A > Build Software with AppStarterStack for > Livecode > Save Time with The Time Saver's Toolbox > _______________________________________________ > use-livecode mailing list > use-livecode 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 panos.merakos at livecode.com Tue May 31 11:27:02 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 31 May 2022 18:27:02 +0300 Subject: [[ ANN ]] Release 9.6.8 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.8 RC-1. You can find more details on the bug fixes and improvements of this new release here: https://livecode.com/m1-native-latest-livecode-releases/ You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From bobsneidar at iotecdigital.com Tue May 31 11:27:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 May 2022 15:27:18 +0000 Subject: Android,iOS stay in background? In-Reply-To: References: Message-ID: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> It's my understanding that iOS does not "load" apps like Android or other operating systems do. It simply "activates" apps already in "memory". The app may allocate more memory for itself of course, or access other services that are constantly running. Bob S > On May 30, 2022, at 23:53 , matthias rebbe via use-livecode wrote: > > if i recall correctly, Android keeps an app running in background as long as Android does not need the memory the app is "consuming". > And i think iOS is doing that as well. From panos.merakos at livecode.com Tue May 31 11:30:18 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 31 May 2022 18:30:18 +0300 Subject: [[ ANN ]] Release 10.0.0 DP-4 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 10.0.0 DP-4. You can find more details on the new features and the bug fixes of this new release here: https://livecode.com/m1-native-latest-livecode-releases/ You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From tom at makeshyft.com Tue May 31 13:51:46 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 31 May 2022 13:51:46 -0400 Subject: Android,iOS stay in background? In-Reply-To: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> References: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> Message-ID: Interesting .....Thanks guys. On Tue, May 31, 2022 at 11:28 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > It's my understanding that iOS does not "load" apps like Android or other > operating systems do. It simply "activates" apps already in "memory". The > app may allocate more memory for itself of course, or access other services > that are constantly running. > > Bob S > > > > On May 30, 2022, at 23:53 , matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > if i recall correctly, Android keeps an app running in background as > long as Android does not need the memory the app is "consuming". > > And i think iOS is doing that as well. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 marksmithhfx at gmail.com Tue May 31 16:48:44 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 31 May 2022 21:48:44 +0100 Subject: Android,iOS stay in background? In-Reply-To: References: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> Message-ID: Hi Tom, You can “suspend” iOS apps by putting them into the background, where they are maintained in a sort of “hibernated” state, ready to go when you open them again, and you can detect this. But it is also possible to “unload” them from memory by swiping up on apps that you can see lurking in the background. This closes the app completely and a restart is initiated when you re-open it. I have had apps “freeze" during development and the only way to restore them was to remove it from memory (close it) and then reopen it again. I also have code that detects when an app is put into the background (and only executes under those conditions) so I do know that this can be detected for iOS apps, but I don’t think there is a way to do it in Android apps yet. The “detecting" is part of Monte's mergNotify package that was incorporated into LC. You can find more info on it in the dictionary. mergNotify "UIApplicationWillResignActiveNotification" -- enables the app to detect when it is moving into the background mergNotify "UIApplicationDidBecomeActiveNotification" -- and when it is being brought back to the foreground See also mergBkTask for more information on background processing in iOS. > On 31 May 2022, at 6:51 pm, Tom Glod via use-livecode wrote: > > Interesting .....Thanks guys. > > On Tue, May 31, 2022 at 11:28 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> It's my understanding that iOS does not "load" apps like Android or other >> operating systems do. It simply "activates" apps already in "memory". The >> app may allocate more memory for itself of course, or access other services >> that are constantly running. >> >> Bob S >> >> >>> On May 30, 2022, at 23:53 , matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> if i recall correctly, Android keeps an app running in background as >> long as Android does not need the memory the app is "consuming". >>> And i think iOS is doing that as well. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 marksmithhfx at gmail.com Tue May 31 16:53:06 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 31 May 2022 21:53:06 +0100 Subject: MrSign'n'Notarize Message-ID: <922E24BA-C062-4E46-AB5E-D997A95D8CAA@gmail.com> Hey Matthias, I just wanted to drop you a quick note to thank you for the amazing utility you put together to sign and staple macOS apps. I tried it for the first time the other day and it was a real joy to use — very well organised. Thanks for that. Definitely a life-saver (or at least a life-enhancer!!). Cheers, Mark From bobsneidar at iotecdigital.com Tue May 3 18:00:02 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 May 2022 22:00:02 +0000 Subject: getProp and passing values Message-ID: <5C185F9D-C7C3-43A6-B7BE-9A46347CD191@iotecdigital.com> Hi all. I seem to recall the ability to define a virtual custom property in such a way that I could for example code: put the maingriddata ["customers"] of card "Main" into tCustomersA As is I cannot pass args to a getprop handler. I can only pass args to a setProp handler. Any ideas? I checked the dictionary and lessons. Not a peep. Bob S From bobsneidar at iotecdigital.com Tue May 3 18:12:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 May 2022 22:12:24 +0000 Subject: getProp and passing values In-Reply-To: <5C185F9D-C7C3-43A6-B7BE-9A46347CD191@iotecdigital.com> References: <5C185F9D-C7C3-43A6-B7BE-9A46347CD191@iotecdigital.com> Message-ID: NVM I figured it out (again). Given that lGridDataA is a script local containing an array of all the datagrid arrays: The getProp handler needs to be written like this: getProp maingriddata [pKey] if pKey is not empty then return lGridDataA [pKey] else return lGridDataA end if end maingridData Bob S > On May 3, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: > > Hi all. > > I seem to recall the ability to define a virtual custom property in such a way that I could for example code: > > put the maingriddata ["customers"] of card "Main" into tCustomersA > > As is I cannot pass args to a getprop handler. I can only pass args to a setProp handler. > > Any ideas? I checked the dictionary and lessons. Not a peep. > > 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 From neville.smythe at optusnet.com.au Wed May 4 10:47:47 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Thu, 5 May 2022 00:47:47 +1000 Subject: Zip file problem on Mac Message-ID: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. This has worked fine until macOS Monterey or LiveCode 9.6.x Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make the rev zip tool fail. Can anyone verify the following? On my Mac, the Archive Utility in Monterey, which automagically unzips files when a zip file is downloaded by Safari or double-clicked, now unsets the execute bit on the application (more precisely, on the executable file in the bundle). Which means the user gets a “This application could not be opened”, with no options to continue, when they try to launch the unzipped app. A terminal savvy user can use chmod x+ to make the app launchable, but I can hardly expect the ordinary user to have to do that. The execute bit is definitely set in the archive, because TheUnarchiver, a free third party decompression tool, unzips the file leaving the app launchable. This also suggests that the problem is not in my code. I can see why Granny Apple might have thought this was a good idea, executables in zip files are a the major sources of trojans, but if Apple has made this change it is a bit nasty because there is no obvious way to override the behaviour. If I use the Archive Utility to actually create the zip file from the standalone app bundle rather than using the rev tools, and then double-click it to decompress, the file unzips with the execute bit set. This shows the archive produced by revZip is not the same as that expected by the Archive Utility. It also suggests a workaround would be to use Archive Utility from a shell command (it is not AppleScriptable – bad Apple!). From a cursory search on Stackoverflow, the command line would be (this is not yet tested and the post is 5 years old) ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip to create the zip file for the Mac platform. The post says that is what the Archive Utility uses to compress files. Probably the rev zip tools use zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. Neville From matthias_livecode_150811 at m-r-d.de Wed May 4 18:35:07 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 5 May 2022 00:35:07 +0200 Subject: Zip file problem on Mac In-Reply-To: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> Message-ID: <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> Neville, i can confirm that behavior even under BigSur. I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. So it seems the LC's zip library does not store the permissions in the zip. According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. But... As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. At least Keka seems to have such feature according to its change log Changes in version 1.0.11 But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. Matthias > Am 04.05.2022 um 16:47 schrieb Neville Smythe via use-livecode : > > I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. > > This has worked fine until macOS Monterey or LiveCode 9.6.x > > Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make the rev zip tool fail. Can anyone verify the following? > > On my Mac, the Archive Utility in Monterey, which automagically unzips files when a zip file is downloaded by Safari or double-clicked, now unsets the execute bit on the application (more precisely, on the executable file in the bundle). Which means the user gets a “This application could not be opened”, with no options to continue, when they try to launch the unzipped app. A terminal savvy user can use chmod x+ to make the app launchable, but I can hardly expect the ordinary user to have to do that. The execute bit is definitely set in the archive, because TheUnarchiver, a free third party decompression tool, unzips the file leaving the app launchable. This also suggests that the problem is not in my code. > > I can see why Granny Apple might have thought this was a good idea, executables in zip files are a the major sources of trojans, but if Apple has made this change it is a bit nasty because there is no obvious way to override the behaviour. > > If I use the Archive Utility to actually create the zip file from the standalone app bundle rather than using the rev tools, and then double-click it to decompress, the file unzips with the execute bit set. This shows the archive produced by revZip is not the same as that expected by the Archive Utility. It also suggests a workaround would be to use Archive Utility from a shell command (it is not AppleScriptable – bad Apple!). From a cursory search on Stackoverflow, the command line would be (this is not yet tested and the post is 5 years old) > > ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip > > to create the zip file for the Mac platform. The post says that is what the Archive Utility uses to compress files. Probably the rev zip tools use zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. > > Neville > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu May 5 11:06:43 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 May 2022 15:06:43 +0000 Subject: Zip file problem on Mac In-Reply-To: <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> Message-ID: <3450E5C1-FD72-4482-A059-F369CD9708FA@iotecdigital.com> Open a bug report and I will +1 it. Bob S > On May 4, 2022, at 15:35 , matthias rebbe via use-livecode wrote: > > Neville, i can confirm that behavior even under BigSur. > > I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. > > Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. > So it seems the LC's zip library does not store the permissions in the zip. > > According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. > But... > As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. > > So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. > At least Keka seems to have such feature according to its change log Changes in version 1.0.11 > > > But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. > > > Matthias > > >> Am 04.05.2022 um 16:47 schrieb Neville Smythe via use-livecode : >> >> I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. >> >> This has worked fine until macOS Monterey or LiveCode 9.6.x >> >> Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make the rev zip tool fail. Can anyone verify the following? >> >> On my Mac, the Archive Utility in Monterey, which automagically unzips files when a zip file is downloaded by Safari or double-clicked, now unsets the execute bit on the application (more precisely, on the executable file in the bundle). Which means the user gets a “This application could not be opened”, with no options to continue, when they try to launch the unzipped app. A terminal savvy user can use chmod x+ to make the app launchable, but I can hardly expect the ordinary user to have to do that. The execute bit is definitely set in the archive, because TheUnarchiver, a free third party decompression tool, unzips the file leaving the app launchable. This also suggests that the problem is not in my code. >> >> I can see why Granny Apple might have thought this was a good idea, executables in zip files are a the major sources of trojans, but if Apple has made this change it is a bit nasty because there is no obvious way to override the behaviour. >> >> If I use the Archive Utility to actually create the zip file from the standalone app bundle rather than using the rev tools, and then double-click it to decompress, the file unzips with the execute bit set. This shows the archive produced by revZip is not the same as that expected by the Archive Utility. It also suggests a workaround would be to use Archive Utility from a shell command (it is not AppleScriptable – bad Apple!). From a cursory search on Stackoverflow, the command line would be (this is not yet tested and the post is 5 years old) >> >> ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip >> >> to create the zip file for the Mac platform. The post says that is what the Archive Utility uses to compress files. Probably the rev zip tools use zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. >> >> Neville >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 5 12:16:32 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 5 May 2022 19:16:32 +0300 Subject: Zip file problem on Mac In-Reply-To: <3450E5C1-FD72-4482-A059-F369CD9708FA@iotecdigital.com> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <3450E5C1-FD72-4482-A059-F369CD9708FA@iotecdigital.com> Message-ID: Hello all, This sounds like this enhancement request https://quality.livecode.com/show_bug.cgi?id=9642 Kind regards, Panos -- On Thu, 5 May 2022 at 18:08, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Open a bug report and I will +1 it. > > Bob S > > > > On May 4, 2022, at 15:35 , matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Neville, i can confirm that behavior even under BigSur. > > > > I've created a small standalone with LC 10DP3 on BigSur and created 2 > zip files from the output folder using LC's zip library and using shell > command zip. > > > > Running the shell command 'zipinfo' to analyse both zip files showed, > that the zip created with LC's zip library did not contain any executable > permissions while the zip created with macOS zip shell command did contain > the permissions. > > So it seems the LC's zip library does not store the permissions in the > zip. > > > > According to your comment about The Unarchiver. Yes, i can also confirm > that The Unarchiver and also Keka can extract the zip file created with LC > and the standalone in the extracted folder is executable again. > > But... > > As zipinfo did list all the files wihtout any executable permissions, i > unzipped the zip with the shell command 'unzip' and that standalone was not > executable again. All files showed exact those permissions that zipinfo > showed before. > > > > So i assume the following: Keka and The Unarchive seem to correct file > permissions when they detect a folder structure that seems to be an app > bundle. But that's just an assumption. > > At least Keka seems to have such feature according to its change log > Changes in version 1.0.11 > > > > > > But anyway. The LC zip library ignores the permission when creating an > archive. If this worked before with older versions of LC i cannot say, as > i always used the zip shell command or tools like Keka. > > > > > > Matthias > > > > > >> Am 04.05.2022 um 16:47 schrieb Neville Smythe via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> I distribute a Mac standalone via a zip file, created using > revZipOpenArchive etc. > >> > >> This has worked fine until macOS Monterey or LiveCode 9.6.x > >> > >> Either a bug has been introduced into the revZip tools in 9.6.x, or I > have a corrupted version, or the Mac Archive Utility has changed so as to > make the rev zip tool fail. Can anyone verify the following? > >> > >> On my Mac, the Archive Utility in Monterey, which automagically unzips > files when a zip file is downloaded by Safari or double-clicked, now unsets > the execute bit on the application (more precisely, on the executable file > in the bundle). Which means the user gets a “This application could not be > opened”, with no options to continue, when they try to launch the unzipped > app. A terminal savvy user can use chmod x+ to make the app launchable, but > I can hardly expect the ordinary user to have to do that. The execute bit > is definitely set in the archive, because TheUnarchiver, a free third party > decompression tool, unzips the file leaving the app launchable. This also > suggests that the problem is not in my code. > >> > >> I can see why Granny Apple might have thought this was a good idea, > executables in zip files are a the major sources of trojans, but if Apple > has made this change it is a bit nasty because there is no obvious way to > override the behaviour. > >> > >> If I use the Archive Utility to actually create the zip file from the > standalone app bundle rather than using the rev tools, and then > double-click it to decompress, the file unzips with the execute bit set. > This shows the archive produced by revZip is not the same as that expected > by the Archive Utility. It also suggests a workaround would be to use > Archive Utility from a shell command (it is not AppleScriptable – bad > Apple!). From a cursory search on Stackoverflow, the command line would be > (this is not yet tested and the post is 5 years old) > >> > >> ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip > >> > >> to create the zip file for the Mac platform. The post says that is what > the Archive Utility uses to compress files. Probably the rev zip tools use > zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. > >> > >> Neville > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 harrison at all-auctions.com Thu May 5 13:33:14 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 5 May 2022 13:33:14 -0400 Subject: Visual Dissolve Times In-Reply-To: <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> Message-ID: <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Greetings LiveCoders, I was playing around with the visual dissolve effect and I wanted to be able to specify an amount of time for the effect. In my case I wanted it to do the effect in 0.75 seconds (3/4 of a second). We only get choices of very fast fast normal slow very slow When I tried the very fast setting, the fastest time I got was about 1 second. Is there anyway to make it faster? Thanks Rick From tore.nilsen at me.com Thu May 5 13:45:36 2022 From: tore.nilsen at me.com (Tore Nilsen) Date: Thu, 5 May 2022 19:45:36 +0200 Subject: Visual Dissolve Times In-Reply-To: <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Message-ID: You can set the effectRate to speed up or down the visual effects. Lower number increases the speed. Look it up in the Dictionary for more precise explanation. Best regards Tore Nilsen > 5. mai 2022 kl. 19:33 skrev Rick Harrison via use-livecode : > > Greetings LiveCoders, > > I was playing around with the visual dissolve effect > and I wanted to be able to specify an amount of > time for the effect. In my case I wanted it to > do the effect in 0.75 seconds (3/4 of a second). > > We only get choices of > > very fast > fast > normal > slow > very slow > > When I tried the very fast setting, the > fastest time I got was about 1 second. > > Is there anyway to make it faster? > > Thanks > > Rick > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 5 13:53:40 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 5 May 2022 19:53:40 +0200 Subject: Visual Dissolve Times In-Reply-To: References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Message-ID: Hi Tore and Rick, > Am 05.05.2022 um 19:45 schrieb Tore Nilsen via use-livecode : > > You can set the effectRate to speed up or down the visual effects. Lower number increases the speed. Look it up in the Dictionary for more precise explanation. exactly! The fact that "the effectrate" will only take effect with the "very slow" parameter is a bit mentally challenging however! :-D ... set the effectrate to 500 ## millisecs hide image 1 with visual effect dissolve VERY SLOW ## :-D ... > Best regards > Tore Nilsen > >> 5. mai 2022 kl. 19:33 skrev Rick Harrison via use-livecode : >> >> Greetings LiveCoders, >> >> I was playing around with the visual dissolve effect >> and I wanted to be able to specify an amount of >> time for the effect. In my case I wanted it to >> do the effect in 0.75 seconds (3/4 of a second). >> >> We only get choices of >> >> very fast >> fast >> normal >> slow >> very slow >> >> When I tried the very fast setting, the >> fastest time I got was about 1 second. >> >> Is there anyway to make it faster? >> >> Thanks >> >> Rick Best Klaus > -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From harrison at all-auctions.com Thu May 5 14:49:37 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 5 May 2022 14:49:37 -0400 Subject: Visual Dissolve Times In-Reply-To: References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Message-ID: <66460160-EA0A-436C-AE31-9B5C8A4B294D@all-auctions.com> Hi Tore, set the effectRate.. Cool! Thanks Tore! > On May 5, 2022, at 1:45 PM, Tore Nilsen via use-livecode wrote: > > You can set the effectRate to speed up or down the visual effects. Lower number increases the speed. Look it up in the Dictionary for more precise explanation. > > Best regards > Tore Nilsen From neville.smythe at optusnet.com.au Thu May 5 19:59:44 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 6 May 2022 09:59:44 +1000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: I have submitting a report to QC (Bug 23698 ) Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly. So the problem is nothing to do with Apple. TheUnarchiver and Keka changing the permissions to what they think they ought to be sounds well-intentioned but highly problematic (what’s the meme for the opposite of an overprotective nanny? Busybody big sister?) Your last comment caused me to realise that I have only changed very recently to automating the process of creating the zip files as a post-standalone build-process using revZip. Previously I created the zip files by hand, and my beta-tester uses Windows. Thought I was being clever. So the bug in the LC implementation may have been present for a long time. Neville > > Neville, i can confirm that behavior even under BigSur. > > I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. > > Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. > So it seems the LC's zip library does not store the permissions in the zip. > > According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. > But... > As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. > > So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. > At least Keka seems to have such feature according to its change log Changes in version 1.0.11 > > > But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. > > > Matthias > > From matthias_livecode_150811 at m-r-d.de Fri May 6 03:09:02 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 6 May 2022 09:09:02 +0200 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: Hm, is it really a bug or does revZip just stick to the zip specs? > Am 06.05.2022 um 01:59 schrieb Neville Smythe via use-livecode : > > I have submitting a report to QC (Bug 23698 ) > > Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly. > > So the problem is nothing to do with Apple. TheUnarchiver and Keka changing the permissions to what they think they ought to be sounds well-intentioned but highly problematic (what’s the meme for the opposite of an overprotective nanny? Busybody big sister?) > > Your last comment caused me to realise that I have only changed very recently to automating the process of creating the zip files as a post-standalone build-process using revZip. Previously I created the zip files by hand, and my beta-tester uses Windows. Thought I was being clever. So the bug in the LC implementation may have been present for a long time. > > Neville > >> >> Neville, i can confirm that behavior even under BigSur. >> >> I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. >> >> Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. >> So it seems the LC's zip library does not store the permissions in the zip. >> >> According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. >> But... >> As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. >> >> So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. >> At least Keka seems to have such feature according to its change log Changes in version 1.0.11 >> >> >> But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. >> >> >> 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 bobsneidar at iotecdigital.com Fri May 6 11:09:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 May 2022 15:09:51 +0000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <714A2529-DBFA-4FFB-892F-653FDACC8F98@iotecdigital.com> Should be an enhancement request. Bob S > On May 6, 2022, at 24:09 , matthias rebbe via use-livecode wrote: > > Hm, > is it really a bug or does revZip just stick to the zip specs? From waprothero at gmail.com Fri May 6 16:40:42 2022 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 May 2022 13:40:42 -0700 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: Message-ID: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Folks: I have a nasty accounting problem and need to somehow get data into Quicken (or perhaps find another management program). My question is whether it’s possible (or known) how to take csv data (easy) and convert to acceptable QIF form, which quicken requires. Best, Bill Prothero William Prothero waprothero at gmail.com From bobsneidar at iotecdigital.com Fri May 6 16:48:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 May 2022 20:48:26 +0000 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: Is QIF a text based format, or is it encrypted? If the latter (and it probably is), it is doubtful that there is a way to do this without software (of which there are some options if you google it). Bob S > On May 6, 2022, at 13:40 , William Prothero via use-livecode wrote: > > Folks: > I have a nasty accounting problem and need to somehow get data into Quicken (or perhaps find another management program). My question is whether it’s possible (or known) how to take csv data (easy) and convert to acceptable QIF form, which quicken requires. > > Best, > Bill Prothero > > William Prothero > waprothero 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 brian at milby7.com Fri May 6 16:49:45 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 6 May 2022 16:49:45 -0400 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <0DC03651-8604-4197-BEDB-EE3003AC5E18@milby7.com> It is a bug somewhere. See this big report: https://quality.livecode.com/show_bug.cgi?id=21447 I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. Thanks, Brian Sent from my iPhone > On May 6, 2022, at 3:10 AM, matthias rebbe via use-livecode wrote: > > Hm, > is it really a bug or does revZip just stick to the zip specs? > > > >> Am 06.05.2022 um 01:59 schrieb Neville Smythe via use-livecode : >> >> I have submitting a report to QC (Bug 23698 ) >> >> Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly. >> >> So the problem is nothing to do with Apple. TheUnarchiver and Keka changing the permissions to what they think they ought to be sounds well-intentioned but highly problematic (what’s the meme for the opposite of an overprotective nanny? Busybody big sister?) >> >> Your last comment caused me to realise that I have only changed very recently to automating the process of creating the zip files as a post-standalone build-process using revZip. Previously I created the zip files by hand, and my beta-tester uses Windows. Thought I was being clever. So the bug in the LC implementation may have been present for a long time. >> >> Neville >> >>> >>> Neville, i can confirm that behavior even under BigSur. >>> >>> I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. >>> >>> Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. >>> So it seems the LC's zip library does not store the permissions in the zip. >>> >>> According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. >>> But... >>> As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. >>> >>> So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. >>> At least Keka seems to have such feature according to its change log Changes in version 1.0.11 >>> >>> >>> But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. >>> >>> >>> 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 richmondmathewson at gmail.com Fri May 6 17:12:14 2022 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 7 May 2022 00:12:14 +0300 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: <88841474-c5b9-c0a5-1761-458bf5f39056@gmail.com> Awkward: Whackypedia says: "Different (and incompatible) versions of Quicken run on Windows and Macintosh systems." and "the absence of a common cross-platform file format" so getting data "into Quicken" could mean several things. "newer versions of Quicken for Mac use an SQLite database" So, my first question is going to be, 'which version of Quicken are you talking about?' and my second one is going to be, 'Windows or Mac?' and my third one is, 'Doesn't the person with this problem still have access to the version of quicken they previously used?' On 6.05.22 23:48, Bob Sneidar via use-livecode wrote: > Is QIF a text based format, or is it encrypted? If the latter (and it probably is), it is doubtful that there is a way to do this without software (of which there are some options if you google it). > > Bob S > > >> On May 6, 2022, at 13:40 , William Prothero via use-livecode wrote: >> >> Folks: >> I have a nasty accounting problem and need to somehow get data into Quicken (or perhaps find another management program). My question is whether its possible (or known) how to take csv data (easy) and convert to acceptable QIF form, which quicken requires. >> >> Best, >> Bill Prothero >> >> William Prothero >> waprothero 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri May 6 17:16:54 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 6 May 2022 17:16:54 -0400 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: why did you ask about another management program? what up? On Fri, May 6, 2022 at 4:41 PM William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Folks: > I have a nasty accounting problem and need to somehow get data into > Quicken (or perhaps find another management program). My question is > whether it’s possible (or known) how to take csv data (easy) and convert to > acceptable QIF form, which quicken requires. > > Best, > Bill Prothero > > William Prothero > waprothero 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 > -- 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 waprothero at gmail.com Fri May 6 18:45:36 2022 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 May 2022 15:45:36 -0700 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: Mike: Wellll, I notice that many folks are asking questions about merging and sorting lots of data using DataGrid, and databases, and I have a possible need for getting csv data into Quicken, on a Mac. I’m trying to see if a livecode solution fits my problem. It’s kinda like folks talking about using Livecode to format data for export to Excell. I had wondered if anybody on this list had faced this problem, and trying to format for Quicken, which is a very popular financial app. I’m not hopeful, but thought I’d check. I’m also considering just doing this completely in Livecode. There seem to be many pathways to financial management. Bank statement downloads don’t list the name of the person who made the transaction (at least some don’t), online payment systems (Converge, for example) allow csv downloads and it’s possible to get a csv formatted file of transactions that include payee name, address, phone, etc that I would like to keep. Merging these csv downloads with bank statements that list “Batches”, which often contain numerous credit card purchases, could be an onerous hand editing job..the kind I hate. I’m trying to streamline this task. Then there are the other online payment sites ……. WooCommerce, etc, which would presumably not involve Livecode programming. I’m not ready to go that way yet, hoping for something I know a bit more about. An approach connecting some of these various formats of financial data to Quicken (using Livecode) would require a livecode output to a quicken interchange format (QIF). In short (or was it “long”), if nobody has tried this, no worries, please ignore this post. I’m just doing “Do Diligence”. Best, Bill Prothero > On May 6, 2022, at 2:16 PM, Mike Kerner via use-livecode wrote: > > why did you ask about another management program? what up? > > On Fri, May 6, 2022 at 4:41 PM William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Folks: >> I have a nasty accounting problem and need to somehow get data into >> Quicken (or perhaps find another management program). My question is >> whether it’s possible (or known) how to take csv data (easy) and convert to >> acceptable QIF form, which quicken requires. >> >> Best, >> Bill Prothero >> >> William Prothero >> waprothero 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 >> > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode William Prothero waprothero at gmail.com From martyknappster at gmail.com Fri May 6 18:52:06 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Fri, 6 May 2022 15:52:06 -0700 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: <526FBEDE-DAA5-4B50-BF1F-25467E8B352C@gmail.com> I have a crude little LC utility stack that converts a CSV file to QIF - that would give you a start. Just contact me off list and I can send that to you if you want. Marty Knapp > On May 6, 2022, at 3:45 PM, William Prothero via use-livecode wrote: > > Mike: > Wellll, I notice that many folks are asking questions about merging and sorting lots of data using DataGrid, and databases, and I have a possible need for getting csv data into Quicken, on a Mac. I’m trying to see if a livecode solution fits my problem. It’s kinda like folks talking about using Livecode to format data for export to Excell. I had wondered if anybody on this list had faced this problem, and trying to format for Quicken, which is a very popular financial app. I’m not hopeful, but thought I’d check. > > I’m also considering just doing this completely in Livecode. There seem to be many pathways to financial management. Bank statement downloads don’t list the name of the person who made the transaction (at least some don’t), online payment systems (Converge, for example) allow csv downloads and it’s possible to get a csv formatted file of transactions that include payee name, address, phone, etc that I would like to keep. Merging these csv downloads with bank statements that list “Batches”, which often contain numerous credit card purchases, could be an onerous hand editing job..the kind I hate. I’m trying to streamline this task. > > Then there are the other online payment sites ……. WooCommerce, etc, which would presumably not involve Livecode programming. I’m not ready to go that way yet, hoping for something I know a bit more about. > > An approach connecting some of these various formats of financial data to Quicken (using Livecode) would require a livecode output to a quicken interchange format (QIF). > > In short (or was it “long”), if nobody has tried this, no worries, please ignore this post. I’m just doing “Do Diligence”. > > Best, > Bill Prothero From neville.smythe at optusnet.com.au Sat May 7 02:19:08 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sat, 7 May 2022 16:19:08 +1000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <47B441DF-1F6A-4731-AC3B-87E3AE4C5F60@optusnet.com.au> > On 7 May 2022, at 2:00 am, use-livecode-request at lists.runrev.com wrote: > > This sounds like this enhancement request > https://quality.livecode.com/show_bug.cgi?id=9642 Thanks Panos for pointing out this is a duplicate to bug 9642, an enhancement request since 2011. I did do a quick search but clearly not very thoroughly. The comments in that request hint that it is an OSX specific thing to include the execute permission flag in the zip files, and maybe the revZip tools are just following the zip specs as Matthias says, but I’m not sure about either. The original zip description said it included a copy of the file directory, but that was in the context of MSDOS which didn’t have an execute flag. Whether permissions are included in the archive does depend on the tool used to create the zip file and the platform. There is a long and confuseing thread on Stackoverflow about producing zip files which include execute permissions. Recall my objective was to use LC to post-process the standalone build to produce a compressed file of each of the Mac, Windows and Linux standalones created by LC, and to do this whether the development platform was a Mac, Windows or a Linux box. At the time zip appeared to be the obvious choice. I haven’t checked what the OSX shell command zip produces, but the Mac version produced by the default archiver (in effect the shell command ditto) does include the x flag. As Matthias notes one can check this using zipInfo or its equivalent unzip -Z on any platform. But it is not just Mac specific in the sense that Linux will happily decompress the Mac-created Linux standalone into an executable – at least on Ubuntu unzip -Z reports that x is set to true. On Windows unzip -Z looks at the .exe extension to decide if the file is executable rather than looking at unix permissions, so the Windows standalone will decompress into a launchable app (and I guess that is the reasoning behind TheUnarchiver and Keka setting the permission when unzipping a file with .app file extension on a Mac, even if the permission is not set in the archive itself). So I can achieve my objective if the development platform is a Mac using a shell command from LC. On Linux I don’t know what shell command would work. Windows not being unix-based clearly requires something more than just zip to set the permissions in the archives of the two non-Windows standalones. The clever people at LC know how to set unix permissions for the unix standalones themselves from the Windows IDE but it's beyond my skillset I’m afraid. I had hoped this could all be done in LC without going to platform-specific tools. So the requested enhancement would be nice. But I won’t hold my breath. From neville.smythe at optusnet.com.au Sat May 7 02:36:01 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sat, 7 May 2022 16:36:01 +1000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: The pulldownmenu bug I reported has been confirmed: bug 23693 To remind the reader: On a Mac, when a user select a menu item from a pulldown menu button, the menuPick message is sent first followed by a mouseLeave message (generated as the mouse leaves the button rect to select the menu item). On Windows, the mouseLeave is sent immediately, followed by menuPick. The Mac order is correct, the mouseLeave should be delayed until the displayed menu is dismissed. Linux has the same incorrect behaviour as Windows. The same situation applies to popupmenus and option menu buttons: the Mac has the correct order, Windows and Linux incorrect. However for the combobox button, all three platforms give the wrong message order! And one last twist, although the Mac implementation gives the correct order for 3 menu buttons, it sends the mouseLeave message twice, once immediately after the menuPick, and then again when the mouse is released. Neville From williamdesmet at gmail.com Sat May 7 04:06:01 2022 From: williamdesmet at gmail.com (William de Smet) Date: Sat, 7 May 2022 10:06:01 +0200 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 Message-ID: Hi there, Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. Building the app is no problem and gives no error message on my Mac Putting the app with Xcode on my iPad however gives an error: Unable to Install App I checked the Provisioning Profile but the iPad is listed on it. I did know this because there are other apps on it. I did work before. Am I overseeing something? , greetings, William From ambassador at fourthworld.com Sat May 7 16:42:30 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 7 May 2022 13:42:30 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. Background: ---------- MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. And until the port to MacOS, all platforms behaved consistently. So why the Mac change? Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. The Here-And-Now: ---------------- Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: Looking Forward: --------------- Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. What do you need from mouseLeave during a menu drop? What are you doing in response to that message? There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. -- Richard Gaskin Fourth World Systems Neville Smythe wrote: > The pulldownmenu bug I reported has been confirmed: bug 23693 > > > To remind the reader: On a Mac, when a user select a menu item from > a pulldown menu button, the menuPick message is sent first followed > by a mouseLeave message (generated as the mouse leaves the button > rect to select the menu item). On Windows, the mouseLeave is sent > immediately, followed by menuPick. > > The Mac order is correct, the mouseLeave should be delayed until the > displayed menu is dismissed. > > Linux has the same incorrect behaviour as Windows. > > The same situation applies to popupmenus and option menu buttons: > the Mac has the correct order, Windows and Linux incorrect. > > However for the combobox button, all three platforms give the wrong > message order! > > And one last twist, although the Mac implementation gives the correct > order for 3 menu buttons, it sends the mouseLeave message twice, once > immediately after the menuPick, and then again when the mouse is > released. > > Neville From bobsneidar at iotecdigital.com Sat May 7 17:35:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 7 May 2022 21:35:51 +0000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> References: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> Message-ID: Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? Sent from my iPhone > On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: > > It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. > > > Background: > ---------- > MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. > > On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. > > And until the port to MacOS, all platforms behaved consistently. > > So why the Mac change? > > Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. > > Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). > > So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. > > The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. > > So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. > > This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). > > It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. > > If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. > > On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. > > I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? > > All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. > > > > The Here-And-Now: > ---------------- > Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. > > They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. > > I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: > > > > Looking Forward: > --------------- > Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. > > What do you need from mouseLeave during a menu drop? What are you doing in response to that message? > > There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. > > -- > Richard Gaskin > Fourth World Systems > > > > Neville Smythe wrote: > > The pulldownmenu bug I reported has been confirmed: bug 23693 > > > > > > To remind the reader: On a Mac, when a user select a menu item from > > a pulldown menu button, the menuPick message is sent first followed > > by a mouseLeave message (generated as the mouse leaves the button > > rect to select the menu item). On Windows, the mouseLeave is sent > > immediately, followed by menuPick. > > > > The Mac order is correct, the mouseLeave should be delayed until the > > displayed menu is dismissed. > > > > Linux has the same incorrect behaviour as Windows. > > > > The same situation applies to popupmenus and option menu buttons: > > the Mac has the correct order, Windows and Linux incorrect. > > > > However for the combobox button, all three platforms give the wrong > > message order! > > > > And one last twist, although the Mac implementation gives the correct > > order for 3 menu buttons, it sends the mouseLeave message twice, once > > immediately after the menuPick, and then again when the mouse is > > released. > > > > Neville > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat May 7 21:18:20 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 8 May 2022 11:18:20 +1000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <561F27BA-F608-4AFF-B339-B79EDC38A1B6@optusnet.com.au> > On 8 May 2022, at 2:00 am, Brian Milby wrote: > > It is a bug somewhere. See this big report: > https://quality.livecode.com/show_bug.cgi?id=21447 > > I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. > Brian, utter genius! Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) I tried the implausible trick of using the undocumented revZipSetItemAttributes put 0x80000000 into tExtAttributes -- regular file add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! Neville From marksmithhfx at gmail.com Sun May 8 10:11:13 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 8 May 2022 15:11:13 +0100 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: References: Message-ID: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Hi William, In the Standalone Application setting for iOS there are options to build for “iPod and iPhone” or two options for building for iPad (“iPad” only and “iPod, iPhone, iPad”). I was going to suggest checking those, but then, just to be sure I rebuilt one of my own apps with “iPod and iPhone” setting, and it installed and ran just fine on my iPad. I tried with both the Test button in LC and installing the app with Xcode and in both cases it worked ok, so that can’t be the problem. Do let us know if you track down the cause. Cheers, Mark > On May 7, 2022, at 9:06 AM, William de Smet via use-livecode wrote: > > Hi there, > > Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 > Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. > Building the app is no problem and gives no error message on my Mac > Putting the app with Xcode on my iPad however gives an error: Unable to > Install App > > I checked the Provisioning Profile but the iPad is listed on it. > I did know this because there are other apps on it. > I did work before. > > Am I overseeing something? > > , > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun May 8 11:32:49 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 11:32:49 -0400 Subject: Launch of multiple application instances (Mac vs Win) Message-ID: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> Seeking help: On MacOS when you try to launch a second instance of an application, the macOS just brings the open app to the front (for example, if it is hidden on minimized). On Windows, when you try to launch a second instance of an application, Windows launches a second (or 3rd or 4th or ...) instance of the application. All well and good, but here is my problem. We have some users of our application that, on Windows, are accidentally launching more than once instance of our application and then getting confused (our users are often not very computer literate).. This confusion can lead to them thinking they have lost data or other problems caused by doing some work in one instance and some in another and not recognizing they have multiple instances running. I would like to add some start up code to application, that on Windows, detects if our app is already running and  (a) shuts the 2nd instance down OR (b) [PREFERABLY] warns the user they are launching a second instance and offers to (1) bring the existing instance to the foreground (and shut itself down) or actually continue and launch a seconds instance (for power users who know what they are doing) Has anyone written code to do this? i.e. code to detect an already running instance and code to bring that instance to the foreground? If so, are you willing to share the code? Just looking to not have to reinvent the wheel here. Thank you in advance! From klaus at major-k.de Sun May 8 11:37:08 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 8 May 2022 17:37:08 +0200 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> Message-ID: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Hi Paul, > Am 08.05.2022 um 17:32 schrieb Paul Dupuis via use-livecode : > > Seeking help: > > On MacOS when you try to launch a second instance of an application, the macOS just brings the open app to the front (for example, if it is hidden on minimized). > On Windows, when you try to launch a second instance of an application, Windows launches a second (or 3rd or 4th or ...) instance of the application. > > All well and good, but here is my problem. We have some users of our application that, on Windows, are accidentally launching more than once instance of our application and then getting confused (our users are often not very computer literate).. This confusion can lead to them thinking they have lost data or other problems caused by doing some work in one instance and some in another and not recognizing they have multiple instances running. > > I would like to add some start up code to application, that on Windows, detects if our app is already running and (a) shuts the 2nd instance down OR (b) [PREFERABLY] warns the user they are launching a second instance and offers to (1) bring the existing instance to the foreground (and shut itself down) or actually continue and launch a seconds instance (for power users who know what they are doing) > > Has anyone written code to do this? > i.e. code to detect an already running instance and code to bring that instance to the foreground? > If so, are you willing to share the code? > > Just looking to not have to reinvent the wheel here. just add this "dummy" handler to your stack: ---------------------------- on relaunch ## Nada :-) end relaunch ----------------------------- That will prevent the launching of multiple instances on Windows! > Thank you in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From colinholgate at gmail.com Sun May 8 11:47:36 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 8 May 2022 09:47:36 -0600 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: <38C2CEA9-EC96-40D3-A962-3185C7BA27BB@gmail.com> I wonder if the relaunch approach would leave the user in File Explorer, and would not switch across to the existing app instance? Hopefully it will be that simple. If it isn’t, try this approach: https://use-livecode.runrev.narkive.com/wOjpGm5V/external-for-running-one-instance-on-windows > On May 8, 2022, at 9:37 AM, Klaus major-k via use-livecode wrote: > > Hi Paul, > >> Am 08.05.2022 um 17:32 schrieb Paul Dupuis via use-livecode : >> >> Seeking help: >> >> On MacOS when you try to launch a second instance of an application, the macOS just brings the open app to the front (for example, if it is hidden on minimized). >> On Windows, when you try to launch a second instance of an application, Windows launches a second (or 3rd or 4th or ...) instance of the application. >> >> All well and good, but here is my problem. We have some users of our application that, on Windows, are accidentally launching more than once instance of our application and then getting confused (our users are often not very computer literate).. This confusion can lead to them thinking they have lost data or other problems caused by doing some work in one instance and some in another and not recognizing they have multiple instances running. >> >> I would like to add some start up code to application, that on Windows, detects if our app is already running and (a) shuts the 2nd instance down OR (b) [PREFERABLY] warns the user they are launching a second instance and offers to (1) bring the existing instance to the foreground (and shut itself down) or actually continue and launch a seconds instance (for power users who know what they are doing) >> >> Has anyone written code to do this? >> i.e. code to detect an already running instance and code to bring that instance to the foreground? >> If so, are you willing to share the code? >> >> Just looking to not have to reinvent the wheel here. > > just add this "dummy" handler to your stack: > ---------------------------- > on relaunch > ## Nada :-) > end relaunch > ----------------------------- > That will prevent the launching of multiple instances on Windows! > >> Thank you in advance! > > 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 paul at researchware.com Sun May 8 11:57:47 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 11:57:47 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: On 5/8/2022 11:37 AM, Klaus major-k via use-livecode wrote: > just add this "dummy" handler to your stack: > ---------------------------- > on relaunch > ## Nada :-) > end relaunch > ----------------------------- > That will prevent the launching of multiple instances on Windows! > > Thank you! I was unaware of 'relaunch' and it looks like I can make it do exactly what I want (warn the user and let them bring the 1st instance to the foreground or continue). Much appreciated! From paul at researchware.com Sun May 8 12:01:42 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 12:01:42 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <38C2CEA9-EC96-40D3-A962-3185C7BA27BB@gmail.com> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> <38C2CEA9-EC96-40D3-A962-3185C7BA27BB@gmail.com> Message-ID: On 5/8/2022 11:47 AM, Colin Holgate via use-livecode wrote: > I wonder if the relaunch approach would leave the user in File Explorer, and would not switch across to the existing app instance? Hopefully it will be that simple. > > If it isnt, try this approach: > > https://use-livecode.runrev.narkive.com/wOjpGm5V/external-for-running-one-instance-on-windows > Thanks! From paul at researchware.com Sun May 8 12:08:35 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 12:08:35 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: The LC 9.6.7 Dictionary entry to 'relaunch" states: It can be used in the following three ways: |1. If the message is passed, then the new instance continues running. 2. If "background" is returned, then the new instance is terminated. 3. If nothing is returned but the message is not passed, then the new instance is terminated and the existing instance's "defaultStack" is made the foreground window.| If there are no existing instances, the new instance will run. 1. seems pretty straightforward: on relaunch   pass relaunch end relaunch Would allow the 2nd (or whatever number) instance to continue to start up 3. Seems obvious as well: on relaunch   -- trap the message end relaunch Here, the message is not passed, so the new instance is terminated and the "defaultStack" of the existing instance is brought to the foreground However, I do not understand 2. What the heck does ;If "background" is returned" mean in the context of this handler? Returned from what? The only example given is: onrelaunch pDocument openDocument pDocument endrelaunch And the Dictionary states that actually multiple parameters can be passed (for example if multiple documents where dragged onto the app to launch it). I feel there is something missing in the Dictionary entry! From paul at researchware.com Sun May 8 12:32:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 12:32:01 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: Nevermind. I found the "Relaunch Sampler.rev" stack referred to in the Dictionary entry and it explains how the message is used further. On 5/8/2022 12:08 PM, Paul Dupuis via use-livecode wrote: > The LC 9.6.7 Dictionary entry to 'relaunch" states: > > It can be used in the following three ways: > > |1. If the message is passed, then the new instance continues running. > 2. If "background" is returned, then the new instance is terminated. > 3. If nothing is returned but the message is not passed, then the new > instance is terminated and the existing instance's "defaultStack" is > made the foreground window.| > > If there are no existing instances, the new instance will run. > > 1. seems pretty straightforward: > > on relaunch > >   pass relaunch > > end relaunch > > Would allow the 2nd (or whatever number) instance to continue to start up > > > 3. Seems obvious as well: > > on relaunch > >   -- trap the message > > end relaunch > > Here, the message is not passed, so the new instance is terminated and > the "defaultStack" of the existing instance is brought to the foreground > > > However, I do not understand 2. What the heck does ;If "background" is > returned" mean in the context of this handler? Returned from what? The > only example given is: > > onrelaunch pDocument openDocument pDocument endrelaunch > > And the Dictionary states that actually multiple parameters can be > passed (for example if multiple documents where dragged onto the app > to launch it). I feel there is something missing in the Dictionary entry! > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun May 8 13:32:54 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 8 May 2022 19:32:54 +0200 Subject: Zip file problem on Mac In-Reply-To: <561F27BA-F608-4AFF-B339-B79EDC38A1B6@optusnet.com.au> References: <561F27BA-F608-4AFF-B339-B79EDC38A1B6@optusnet.com.au> Message-ID: Hi all, > Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode : >> On 8 May 2022, at 2:00 am, Brian Milby wrote: >> It is a bug somewhere. See this big report: >> https://quality.livecode.com/show_bug.cgi?id=21447 >> I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. > Brian, utter genius! > Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) > I tried the implausible trick of using the undocumented revZipSetItemAttributes > put 0x80000000 into tExtAttributes -- regular file > add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) > revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system > for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. > Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. > As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. > I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! > > Neville I really wonder how much more useful features are undocumented and why they do not find their way into the dictionary!? -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Sun May 8 14:19:59 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 8 May 2022 14:19:59 -0400 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> I imagine this one isn’t documented due to the issues where you can’t read properties from an existing zip file. I think I found it when digging into the source. I’m sure there are some that could be found by looking at the source code that is still available. Sent from my iPhone > On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode wrote: > > Hi all, > >>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode : >>>> On 8 May 2022, at 2:00 am, Brian Milby wrote: >>> It is a bug somewhere. See this big report: >>> https://quality.livecode.com/show_bug.cgi?id=21447 >>> I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. >> Brian, utter genius! >> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) >> I tried the implausible trick of using the undocumented revZipSetItemAttributes >> put 0x80000000 into tExtAttributes -- regular file >> add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) >> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system >> for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. >> Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. >> As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. >> I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! >> >> Neville > > I really wonder how much more useful features are undocumented and why they do not find their way into the dictionary!? > > -- > 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 Sun May 8 14:23:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 8 May 2022 20:23:16 +0200 Subject: Zip file problem on Mac In-Reply-To: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> References: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> Message-ID: <41EDA2A7-0CEE-46AC-AE0F-493ED3C88952@major-k.de> Hi Brian, > Am 08.05.2022 um 20:19 schrieb Brian Milby via use-livecode : > > I imagine this one isn’t documented due to the issues where you can’t read properties from an existing zip file. I think I found it when digging into the source. > I’m sure there are some that could be found by looking at the source code that is still available. I bet there are, but surely won't take a look... 8-) > Sent from my iPhone > >> On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode wrote: >> >> Hi all, >> >>>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode : >>>>> On 8 May 2022, at 2:00 am, Brian Milby wrote: >>>> It is a bug somewhere. See this big report: >>>> https://quality.livecode.com/show_bug.cgi?id=21447 >>>> I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. >>> Brian, utter genius! >>> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) >>> I tried the implausible trick of using the undocumented revZipSetItemAttributes >>> put 0x80000000 into tExtAttributes -- regular file >>> add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) >>> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system >>> for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. >>> Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. >>> As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. >>> I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! >>> >>> Neville >> >> I really wonder how much more useful features are undocumented and why they do not find their way into the dictionary!? 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 Sun May 8 16:00:00 2022 From: merakosp at gmail.com (panagiotis m) Date: Sun, 8 May 2022 23:00:00 +0300 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> References: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Message-ID: Hello William, Could it be the case you have checked the "beta version" checkbox in the iOS standalone settings? Cheers, Panos On Sun, 8 May 2022, 17:12 Mark Smith via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi William, > > In the Standalone Application setting for iOS there are options to build > for “iPod and iPhone” or two options for building for iPad (“iPad” only and > “iPod, iPhone, iPad”). I was going to suggest checking those, but then, > just to be sure I rebuilt one of my own apps with “iPod and iPhone” > setting, and it installed and ran just fine on my iPad. I tried with both > the Test button in LC and installing the app with Xcode and in both cases > it worked ok, so that can’t be the problem. Do let us know if you track > down the cause. > > Cheers, > Mark > > > > On May 7, 2022, at 9:06 AM, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi there, > > > > Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 > > Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. > > Building the app is no problem and gives no error message on my Mac > > Putting the app with Xcode on my iPad however gives an error: Unable to > > Install App > > > > I checked the Provisioning Profile but the iPad is listed on it. > > I did know this because there are other apps on it. > > I did work before. > > > > Am I overseeing something? > > > > , > > > > greetings, > > > > William > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 markclark at mac.com Sun May 8 18:45:31 2022 From: markclark at mac.com (Mark Clark) Date: Sun, 8 May 2022 17:45:31 -0500 Subject: Decrypting (and encrypting) Large files Message-ID: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Wondering if anyone has used LiveCode for encrypting-decrypting large files? The docs typically have nice examples for files that can fit into a variable, but what are folks doing for big files that are larger than what you’d want in a variable? I’m thinking about using LC for decrypting zip compressed log files that can be multiple gigabytes in size. I’d like to use just LC vs. resorting to shell if possible. Likely need a hash value to compare the decrypted output against the original as well. I’m thinking some variation along the lines of open file x for read, reading some manageable chunk into memory, decrypting a portion, writing that to disk and repeat. But that seems too simple. Think we need AES 256. Any shared experience much appreciated. Thanks all, Mark From neville.smythe at optusnet.com.au Sun May 8 20:05:06 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Mon, 9 May 2022 10:05:06 +1000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: <6F883029-00DB-41BD-ADF1-437890FF4D5F@optusnet.com.au> Thanks Richard for your wise observations. As cross-platform developers we do indeed need to be aware of differences that will arise in standalones because of GUI differences in the operating systems – different placement of menus, different text string lengths, some features not even being available. These things are largely well-known and documented with warnings. But I contend this problem is something different. Here the order of processing user events from an LC object is different. Although this may indeed be an artefact of the way the LC button menu objects are implemented, I don’t think the developer could be expected to expect this, and to my mind that makes it a definite bug. If it occurred with more common event pairs, LC coding would be much more difficult. I am not actually fussed which processing order is accepted as “correct”: although I expressed an IMO preference for the order as implemented on a Mac, the case for the opposite order is at least as strong. My use-case was as follows. I have a pulldownmenu, not an application-wide menu, which applied to only certain selected items in a field. On mouseEnter, the selection changed colour, as a visual cue to the user that these menu items could be applied to the selection. On mouseLeave the colour changed back. At some point I inadvertently added a line of code to the mouseLeave handler which had the effect of killing the selection; this line was supposed to go into the menuPick handler. On my Mac the app continued to work as intended, but on a user's Windows PC the effect was to change a very minor cosmetic difference into a major bug because the menu no longer did anything. This was quite difficult to track down. As to the priority of the bug: very low. Unless it turns to be easy to fix I don’t expect the inconsistency will ever be fixed even if the expert review agrees that it is actually a bug. Consistency of event order across platforms is clearly of very high importance, but this is a pretty extreme edge case, which only cropped up for me because of my own coding mistake. I reported it here because it caused me grief and I thought it of general interest. If anyone else is bitten and is looking for documentation, it is probably sufficient that the matter is now on record at least for readers of this list and in the bug submission. Neville From williamdesmet at gmail.com Mon May 9 04:00:37 2022 From: williamdesmet at gmail.com (William de Smet) Date: Mon, 9 May 2022 10:00:37 +0200 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: References: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Message-ID: Hi there, Thanks for answering my questions. First off all I downloaded a newer version of Xcode 13.2.1 yesterday but that didn't make a difference. Then Jaque replied on the forum and suggested an issue with Apple Intermediate Certificate: https://developer.apple.com/support/expiration/ After checking Apple Keychain I noticed that there were double entries and one of them was not attached to apps. So first I downloaded all 4 certificates as advised on the Apple developer page. Then I deleted the wrong entry in Keychain, restarted my Mac and now it works again. Happy days! groeten, William Op zo 8 mei 2022 om 22:01 schreef panagiotis m via use-livecode < use-livecode at lists.runrev.com>: > Hello William, > > Could it be the case you have checked the "beta version" checkbox in the > iOS standalone settings? > > Cheers, > Panos > > On Sun, 8 May 2022, 17:12 Mark Smith via use-livecode, < > use-livecode at lists.runrev.com> wrote: > > > Hi William, > > > > In the Standalone Application setting for iOS there are options to build > > for “iPod and iPhone” or two options for building for iPad (“iPad” only > and > > “iPod, iPhone, iPad”). I was going to suggest checking those, but then, > > just to be sure I rebuilt one of my own apps with “iPod and iPhone” > > setting, and it installed and ran just fine on my iPad. I tried with both > > the Test button in LC and installing the app with Xcode and in both cases > > it worked ok, so that can’t be the problem. Do let us know if you track > > down the cause. > > > > Cheers, > > Mark > > > > > > > On May 7, 2022, at 9:06 AM, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Hi there, > > > > > > Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 > > > Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. > > > Building the app is no problem and gives no error message on my Mac > > > Putting the app with Xcode on my iPad however gives an error: Unable to > > > Install App > > > > > > I checked the Provisioning Profile but the iPad is listed on it. > > > I did know this because there are other apps on it. > > > I did work before. > > > > > > Am I overseeing something? > > > > > > , > > > > > > greetings, > > > > > > William > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 MikeKerner at roadrunner.com Mon May 9 08:49:26 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 9 May 2022 08:49:26 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: have you tried ti? i have not run into a situation where a variable was too big. On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < use-livecode at lists.runrev.com> wrote: > Wondering if anyone has used LiveCode for encrypting-decrypting large > files? The docs typically have nice examples for files that can fit into a > variable, but what are folks doing for big files that are larger than what > you’d want in a variable? I’m thinking about using LC for decrypting zip > compressed log files that can be multiple gigabytes in size. I’d like to > use just LC vs. resorting to shell if possible. > > Likely need a hash value to compare the decrypted output against the > original as well. I’m thinking some variation along the lines of open file > x for read, reading some manageable chunk into memory, decrypting a > portion, writing that to disk and repeat. But that seems too simple. Think > we need AES 256. Any shared experience much appreciated. > > Thanks all, > > Mark > _______________________________________________ > use-livecode mailing list > use-livecode 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 MikeKerner at roadrunner.com Mon May 9 08:52:29 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 9 May 2022 08:52:29 -0400 Subject: Zip file problem on Mac In-Reply-To: <41EDA2A7-0CEE-46AC-AE0F-493ED3C88952@major-k.de> References: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> <41EDA2A7-0CEE-46AC-AE0F-493ED3C88952@major-k.de> Message-ID: completely off-topic, but brian said something that i forgot to repeat, at the time access to source in the libraries, etc. has saved me a lot of time when debugging. i ran into a situation with one of the other libraries, a couple of weeks ago. i was stumped, and thought about submitting a ts request or a bug report, but being able to read through and step through the source helped me solve the problem. On Sun, May 8, 2022 at 2:23 PM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Brian, > > > Am 08.05.2022 um 20:19 schrieb Brian Milby via use-livecode < > use-livecode at lists.runrev.com>: > > > > I imagine this one isn’t documented due to the issues where you can’t > read properties from an existing zip file. I think I found it when digging > into the source. > > I’m sure there are some that could be found by looking at the source > code that is still available. > > I bet there are, but surely won't take a look... 8-) > > > Sent from my iPhone > > > >> On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hi all, > >> > >>>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode < > use-livecode at lists.runrev.com>: > >>>>> On 8 May 2022, at 2:00 am, Brian Milby wrote: > >>>> It is a bug somewhere. See this big report: > >>>> https://quality.livecode.com/show_bug.cgi?id=21447 < > https://quality.livecode.com/show_bug.cgi?id=21447> > >>>> I actually think it is related. The zip should be created as a Unix > variant and not Fat and file attributes should be stored. One thing that > could be tried is to manually set the executable bit when creating the > archive. I was able to store a link in a zip using this method, but there > is no way to read the file attributes in LC. > >>> Brian, utter genius! > >>> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not > a ‘unx’ zip and not adding the external attributes – but it looks like you > have provided the workaround (for my problem of execute permissions at > least) > >>> I tried the implausible trick of using the undocumented > revZipSetItemAttributes > >>> put 0x80000000 into tExtAttributes -- regular file > >>> add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file > (and may only do for Mac,Linux?) > >>> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for > unix system > >>> for each file as it is added to the archive. I didn’t really expect > this to work as the file is already added to the archive in ‘fat’ format. > >>> Not only does unzip -Z report that the archive items are now in ‘unx’ > format with permissions rwxrwxr-x, but astonishingly the zip actually > decompresses to a working executable – well, only so far briefly tested on > a Mac but it seems likely this is going to work on all platforms. > >>> As you point out in your bug 21447 report, revZip probably won’t be > able to decompress the archive correctly because of other deficiencies, but > I only need the user's system to unpack it. And I will have to modify the > permissions for each individual file in the archive. > >>> I never thought I would use the expression, but, like , awesome! OK > sorry I went there, but jolly well done, that man! > >>> > >>> Neville > >> > >> I really wonder how much more useful features are undocumented and why > they do not find their way into the dictionary!? > > 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 > -- 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 marksmithhfx at gmail.com Mon May 9 09:22:47 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 9 May 2022 14:22:47 +0100 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: References: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Message-ID: <701E8DD5-FD07-4ACE-AFFE-7E7AEAED3139@gmail.com> Thanks for letting us know William. Glad the cleanup did the trick. Mark > On May 9, 2022, at 9:00 AM, William de Smet via use-livecode wrote: > > Hi there, > > Thanks for answering my questions. > First off all I downloaded a newer version of Xcode 13.2.1 yesterday but > that didn't make a difference. > Then Jaque replied on the forum and suggested an issue with Apple > Intermediate Certificate: https://developer.apple.com/support/expiration/ > After checking Apple Keychain I noticed that there were double entries and > one of them was not attached to apps. > So first I downloaded all 4 certificates as advised on the Apple developer > page. > Then I deleted the wrong entry in Keychain, restarted my Mac and now it > works again. > > Happy days! > > > > groeten, > > William > > > > > Op zo 8 mei 2022 om 22:01 schreef panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > >> Hello William, >> >> Could it be the case you have checked the "beta version" checkbox in the >> iOS standalone settings? >> >> Cheers, >> Panos >> >> On Sun, 8 May 2022, 17:12 Mark Smith via use-livecode, < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi William, >>> >>> In the Standalone Application setting for iOS there are options to build >>> for “iPod and iPhone” or two options for building for iPad (“iPad” only >> and >>> “iPod, iPhone, iPad”). I was going to suggest checking those, but then, >>> just to be sure I rebuilt one of my own apps with “iPod and iPhone” >>> setting, and it installed and ran just fine on my iPad. I tried with both >>> the Test button in LC and installing the app with Xcode and in both cases >>> it worked ok, so that can’t be the problem. Do let us know if you track >>> down the cause. >>> >>> Cheers, >>> Mark >>> >>> >>>> On May 7, 2022, at 9:06 AM, William de Smet via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi there, >>>> >>>> Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 >>>> Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. >>>> Building the app is no problem and gives no error message on my Mac >>>> Putting the app with Xcode on my iPad however gives an error: Unable to >>>> Install App >>>> >>>> I checked the Provisioning Profile but the iPad is listed on it. >>>> I did know this because there are other apps on it. >>>> I did work before. >>>> >>>> Am I overseeing something? >>>> >>>> , >>>> >>>> greetings, >>>> >>>> William >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 craig at starfirelighting.com Mon May 9 09:42:50 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 9 May 2022 09:42:50 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> I believe that there is no upper limit to the size of a variable in LC. So I am with Mike here. What makes you nervous about dealing with a large dataset within LC itself? Craig > On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode wrote: > > have you tried ti? i have not run into a situation where a variable was too > big. > > On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Wondering if anyone has used LiveCode for encrypting-decrypting large >> files? The docs typically have nice examples for files that can fit into a >> variable, but what are folks doing for big files that are larger than what >> you’d want in a variable? I’m thinking about using LC for decrypting zip >> compressed log files that can be multiple gigabytes in size. I’d like to >> use just LC vs. resorting to shell if possible. >> >> Likely need a hash value to compare the decrypted output against the >> original as well. I’m thinking some variation along the lines of open file >> x for read, reading some manageable chunk into memory, decrypting a >> portion, writing that to disk and repeat. But that seems too simple. Think >> we need AES 256. Any shared experience much appreciated. >> >> Thanks all, >> >> Mark >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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." > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon May 9 09:54:46 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 9 May 2022 09:54:46 -0400 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> Message-ID: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> Richard. So glad to have you in this world. Craig > On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode wrote: > > Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? > > Sent from my iPhone > >> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: >> >> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. >> >> >> Background: >> ---------- >> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. >> >> On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. >> >> And until the port to MacOS, all platforms behaved consistently. >> >> So why the Mac change? >> >> Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. >> >> Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). >> >> So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. >> >> The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. >> >> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. >> >> This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). >> >> It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. >> >> If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. >> >> On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. >> >> I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? >> >> All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. >> >> >> >> The Here-And-Now: >> ---------------- >> Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. >> >> They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. >> >> I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: >> >> >> >> Looking Forward: >> --------------- >> Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. >> >> What do you need from mouseLeave during a menu drop? What are you doing in response to that message? >> >> There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> >> >> Neville Smythe wrote: >>> The pulldownmenu bug I reported has been confirmed: bug 23693 >>> >>> >>> To remind the reader: On a Mac, when a user select a menu item from >>> a pulldown menu button, the menuPick message is sent first followed >>> by a mouseLeave message (generated as the mouse leaves the button >>> rect to select the menu item). On Windows, the mouseLeave is sent >>> immediately, followed by menuPick. >>> >>> The Mac order is correct, the mouseLeave should be delayed until the >>> displayed menu is dismissed. >>> >>> Linux has the same incorrect behaviour as Windows. >>> >>> The same situation applies to popupmenus and option menu buttons: >>> the Mac has the correct order, Windows and Linux incorrect. >>> >>> However for the combobox button, all three platforms give the wrong >>> message order! >>> >>> And one last twist, although the Mac implementation gives the correct >>> order for 3 menu buttons, it sends the mouseLeave message twice, once >>> immediately after the menuPick, and then again when the mouse is >>> released. >>> >>> Neville >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 tom at makeshyft.com Mon May 9 12:42:16 2022 From: tom at makeshyft.com (Tom Glod) Date: Mon, 9 May 2022 12:42:16 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> Message-ID: there is no way to decrypt something that does not fit in memory. with 64 bit builds the limit is whatever the motherboard supports. on 32 bit builds the limit is whatever the os will allow 1 process to have, but then u need memory to store the decrypted data too. you can use a command line program to outsource that work and memory management. On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > I believe that there is no upper limit to the size of a variable in LC. So > I am with Mike here. What makes you nervous about dealing with a large > dataset within LC itself? > > Craig > > > On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > have you tried ti? i have not run into a situation where a variable was > too > > big. > > > > On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Wondering if anyone has used LiveCode for encrypting-decrypting large > >> files? The docs typically have nice examples for files that can fit > into a > >> variable, but what are folks doing for big files that are larger than > what > >> you’d want in a variable? I’m thinking about using LC for decrypting zip > >> compressed log files that can be multiple gigabytes in size. I’d like to > >> use just LC vs. resorting to shell if possible. > >> > >> Likely need a hash value to compare the decrypted output against the > >> original as well. I’m thinking some variation along the lines of open > file > >> x for read, reading some manageable chunk into memory, decrypting a > >> portion, writing that to disk and repeat. But that seems too simple. > Think > >> we need AES 256. Any shared experience much appreciated. > >> > >> Thanks all, > >> > >> Mark > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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." > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 craig at starfirelighting.com Mon May 9 14:41:41 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 9 May 2022 14:41:41 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> Message-ID: Ah, I see. I did not appreciate that the dataset could be in the many gigabytes. Craig > On May 9, 2022, at 12:42 PM, Tom Glod via use-livecode wrote: > > there is no way to decrypt something that does not fit in memory. with 64 > bit builds the limit is whatever the motherboard supports. on 32 bit > builds the limit is whatever the os will allow 1 process to have, > but then u need memory to store the decrypted data too. > you can use a command line program to outsource that work and memory > management. > > On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I believe that there is no upper limit to the size of a variable in LC. So >> I am with Mike here. What makes you nervous about dealing with a large >> dataset within LC itself? >> >> Craig >> >>> On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> have you tried ti? i have not run into a situation where a variable was >> too >>> big. >>> >>> On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Wondering if anyone has used LiveCode for encrypting-decrypting large >>>> files? The docs typically have nice examples for files that can fit >> into a >>>> variable, but what are folks doing for big files that are larger than >> what >>>> you’d want in a variable? I’m thinking about using LC for decrypting zip >>>> compressed log files that can be multiple gigabytes in size. I’d like to >>>> use just LC vs. resorting to shell if possible. >>>> >>>> Likely need a hash value to compare the decrypted output against the >>>> original as well. I’m thinking some variation along the lines of open >> file >>>> x for read, reading some manageable chunk into memory, decrypting a >>>> portion, writing that to disk and repeat. But that seems too simple. >> Think >>>> we need AES 256. Any shared experience much appreciated. >>>> >>>> Thanks all, >>>> >>>> Mark >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 ambassador at fourthworld.com Mon May 9 21:20:32 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 9 May 2022 18:20:32 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <6F883029-00DB-41BD-ADF1-437890FF4D5F@optusnet.com.au> References: <6F883029-00DB-41BD-ADF1-437890FF4D5F@optusnet.com.au> Message-ID: <9cdb105f-0379-f14d-4e18-95c926699360@fourthworld.com> Neville Smythe wrote: > My use-case was as follows. I have a pulldownmenu, not an application- > wide menu, which applied to only certain selected items in a field. > On mouseEnter, the selection changed colour, as a visual cue to the > user that these menu items could be applied to the selection. On > mouseLeave the colour changed back. At some point I inadvertently > added a line of code to the mouseLeave handler which had the effect > of killing the selection; this line was supposed to go into the > menuPick handler. On my Mac the app continued to work as intended, > but on a user's Windows PC the effect was to change a very minor > cosmetic difference into a major bug because the menu no longer > did anything. This was quite difficult to track down. Thank you for that description. Just to make sure I understand this, the menu button in question is on the card and does not appear in the menu bar, is that correct? I think what you're seeing there is a side effect of the special handling LC uses for Mac menus, using OS routines rather than internal routines which emulate menus from temporary stacks. On Mac it seems the engine is suspending other mouse messages while it lets the OS handle the popped up menu, whereas on other platforms the normal mouseLeave is happening as soon as the mouse leaves the menu button. At the moment the only solution I can think of is a bit kludgy, but seems to work: Use stack menus on all platforms, with a timer to track when the menu stack has been closed. It takes more to explain than to demonstrate, so here's a demo - feel free to ask any follow-up questions: http://fourthworld.net/lc/MenuMessaging.livecode If you want to make the stack menu look less kludgy you could embrace the kludge: add a preview pane or other elements that clearly show this is a non-standard menu, but in a good way. :) I sometimes use stack menus for graphical pickers. They're kinda nice when you need 'em. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Tue May 10 09:03:28 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 10 May 2022 09:03:28 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> Message-ID: I don't think you're necessarily going to be limited by physical memory, as the computer will have a certain addressing space in VM, as well, right? On Mon, May 9, 2022 at 2:42 PM Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > Ah, I see. > > I did not appreciate that the dataset could be in the many gigabytes. > > Craig > > > On May 9, 2022, at 12:42 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > there is no way to decrypt something that does not fit in memory. with 64 > > bit builds the limit is whatever the motherboard supports. on 32 bit > > builds the limit is whatever the os will allow 1 process to have, > > but then u need memory to store the decrypted data too. > > you can use a command line program to outsource that work and memory > > management. > > > > On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> I believe that there is no upper limit to the size of a variable in LC. > So > >> I am with Mike here. What makes you nervous about dealing with a large > >> dataset within LC itself? > >> > >> Craig > >> > >>> On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> have you tried ti? i have not run into a situation where a variable was > >> too > >>> big. > >>> > >>> On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> Wondering if anyone has used LiveCode for encrypting-decrypting large > >>>> files? The docs typically have nice examples for files that can fit > >> into a > >>>> variable, but what are folks doing for big files that are larger than > >> what > >>>> you’d want in a variable? I’m thinking about using LC for decrypting > zip > >>>> compressed log files that can be multiple gigabytes in size. I’d like > to > >>>> use just LC vs. resorting to shell if possible. > >>>> > >>>> Likely need a hash value to compare the decrypted output against the > >>>> original as well. I’m thinking some variation along the lines of open > >> file > >>>> x for read, reading some manageable chunk into memory, decrypting a > >>>> portion, writing that to disk and repeat. But that seems too simple. > >> Think > >>>> we need AES 256. Any shared experience much appreciated. > >>>> > >>>> Thanks all, > >>>> > >>>> Mark > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode 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." > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 > -- 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 jbv at souslelogo.com Tue May 10 14:33:34 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 10 May 2022 14:33:34 -0400 Subject: LC subscription and special characters Message-ID: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> Hi list, I have been asked by a client to make some upgrades to a standalone app that I built with LC 6.5 about 12 years ago. The app is a front end for managing a remote DB on a server. The DB content is roughly 90% in french, and the rest in english and german. It has about 160000 entries and counting. I am about to buy a LC standard plan for both Mac and Win, since the app is been used on both platforms, and will also be in the future. But before I proceed, I'd like to make sure that it will help solving a minor problem that users have met lately. Last year a re-compiled the app, without changing anything, with a LC 8.2 Community version. It keeps running fine on both Win & Mac, except that on Windows, some special characters in french (like or or ) have become impossible to type with regular keys combinations (or any other mean), when it was possible before with the LC 6.5 version. Furthermore, a few new users will be added to the crew, who will work with qwerty keyboards, when the rest of the staff will continue to work with azerty keyboards. So finally my question : it seems that the standard plan is the best option because it will give me access to the latest LC versions, but what about these special characters issue ? Is it only related to LC 8.2, or will it also occur with the latest versions ? Thanks in advance. jbv From markclark at mac.com Tue May 10 15:14:12 2022 From: markclark at mac.com (Mark Clark) Date: Tue, 10 May 2022 14:14:12 -0500 Subject: use-livecode Digest, Vol 224, Issue 8 In-Reply-To: <9D607A97-1476-407F-A2BD-4F19BC956578@me.com> References: <9D607A97-1476-407F-A2BD-4F19BC956578@me.com> Message-ID: <43F0B7CD-462D-49D4-96A1-0398B38AD069@mac.com> Thanks Tom, Mike and Craig. Sorry for the late response, I’m on the digest version. My thought was that an open file for read does not require placing the whole file into memory. Am I mistaken in that assumption? Seems like it would be nice to not use all of the available memory to run the decrypt. Results below seem to confirm this... I worked up a quick stack using the chunking notion I referenced in the original post and this seems to work fine. I compressed the Mac system folder on an old SSD. That directory was 8.9GB on disk. Compressing it with the Finder took about 28 minutes. Compressed size was 5.9GB. Using a byte range of 1048576 (1MB—small but useful for testing), I was able to read the source compressed file, encrypt and write to the new (encrypted) file in about 2 minutes. Decrypt took a little longer (less than 3 min). Memory utilization (I did a quick build of the stack) was 44-45MB during both operations. I’ll bump up the byte range and see how that compares. Thanks, Mark > On May 10, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > there is no way to decrypt something that does not fit in memory. with 64 > bit builds the limit is whatever the motherboard supports. on 32 bit > builds the limit is whatever the os will allow 1 process to have, > but then u need memory to store the decrypted data too. > you can use a command line program to outsource that work and memory > management. From ambassador at fourthworld.com Tue May 10 15:35:18 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 May 2022 12:35:18 -0700 Subject: Decrypting (and encrypting) Large files In-Reply-To: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: Mark Clark wrote: > Wondering if anyone has used LiveCode for encrypting-decrypting large > files? ... > Im thinking about using LC for decrypting zip compressed log files > that can be multiple gigabytes in size. Id like to use just LC vs. > resorting to shell if possible. What is behind the preference to roll your own rather than call existing purpose-built command-line tools from LC with shell()? Your chunking described in your latest post seems the way to go, AFAIK pretty much how other tools would handle it. Another option: if you're in an environment where even log files require strong encryption, could you pipe log data to a separate secured log server instead? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue May 10 15:50:54 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 May 2022 12:50:54 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> References: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> Message-ID: What a very kind thing of you to say. Thank you. After 30 years as a recipient of so much wisdom and lore shared with me, I've felt compelled to share some of that forward. In recent years most of what I write seems ignored, so I've been spending my time elsewhere. Your encouragement may see me checking in on LC stuff more often. Thank you. -- Richard Gaskin Fourth World Systems Craig Newman wrote: > Richard. > > So glad to have you in this world. > > Craig > >> On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode wrote: >> >> Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? >> >> Sent from my iPhone >> >>> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: >>> >>> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. >>> >>> >>> Background: >>> ---------- >>> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. >>> >>> On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. >>> >>> And until the port to MacOS, all platforms behaved consistently. >>> >>> So why the Mac change? >>> >>> Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. >>> >>> Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). >>> >>> So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. >>> >>> The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. >>> >>> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. >>> >>> This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). >>> >>> It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. >>> >>> If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. >>> >>> On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. >>> >>> I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? >>> >>> All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. >>> >>> >>> >>> The Here-And-Now: >>> ---------------- >>> Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. >>> >>> They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. >>> >>> I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: >>> >>> >>> >>> Looking Forward: >>> --------------- >>> Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. >>> >>> What do you need from mouseLeave during a menu drop? What are you doing in response to that message? >>> >>> There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> From paul at researchware.com Tue May 10 17:53:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 10 May 2022 17:53:51 -0400 Subject: LC subscription and special characters In-Reply-To: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> Message-ID: <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> I thought I recalled a bug in the LC engine where using the keyboard method of typing the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X, didn't work in Livecode. However, I just tried searching the Livecode Quality Center for a bug number and couldn't find it so perhaps I am mis-remembering. On 5/10/2022 2:33 PM, jbv via use-livecode wrote: > Hi list, > I have been asked by a client to make some upgrades to a standalone > app that I built with LC 6.5 about 12 years ago. > The app is a front end for managing a remote DB on a server. The DB > content is roughly 90% in french, and the rest in english and german. > It has about 160000 entries and counting. > > I am about to buy a LC standard plan for both Mac and Win, since the > app is been used on both platforms, and will also be in the future. > But before I proceed, I'd like to make sure that it will help solving > a minor problem that users have met lately. > > Last year a re-compiled the app, without changing anything, with a LC > 8.2 Community version. > It keeps running fine on both Win & Mac, except that on Windows, some > special characters in french (like or or ) have become impossible > to type with regular keys combinations (or any other mean), when it > was possible before with the LC 6.5 version. > Furthermore, a few new users will be added to the crew, who will work > with qwerty keyboards, when the rest of the staff will continue to > work with azerty keyboards. > > So finally my question : it seems that the standard plan is the best > option because it will give me access to the latest LC versions, but > what about these special characters issue ? Is it only related to LC > 8.2, or will it also occur with the latest versions ? > > Thanks 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 bobsneidar at iotecdigital.com Tue May 10 18:30:46 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 10 May 2022 22:30:46 +0000 Subject: use-livecode Digest, Vol 224, Issue 8 In-Reply-To: <43F0B7CD-462D-49D4-96A1-0398B38AD069@mac.com> References: <9D607A97-1476-407F-A2BD-4F19BC956578@me.com> <43F0B7CD-462D-49D4-96A1-0398B38AD069@mac.com> Message-ID: You can read for x characters then check the result for empty. So no you do not need to read the entire file into memory. Bob S > On May 10, 2022, at 12:14 , Mark Clark via use-livecode wrote: > > Thanks Tom, Mike and Craig. Sorry for the late response, I’m on the digest version. > > My thought was that an open file for read does not require placing the whole file into memory. Am I mistaken in that assumption? Seems like it would be nice to not use all of the available memory to run the decrypt. Results below seem to confirm this... > > I worked up a quick stack using the chunking notion I referenced in the original post and this seems to work fine. I compressed the Mac system folder on an old SSD. That directory was 8.9GB on disk. Compressing it with the Finder took about 28 minutes. Compressed size was 5.9GB. > > Using a byte range of 1048576 (1MB—small but useful for testing), I was able to read the source compressed file, encrypt and write to the new (encrypted) file in about 2 minutes. Decrypt took a little longer (less than 3 min). Memory utilization (I did a quick build of the stack) was 44-45MB during both operations. I’ll bump up the byte range and see how that compares. > > > > Thanks, > Mark > > >> On May 10, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: >> >> there is no way to decrypt something that does not fit in memory. with 64 >> bit builds the limit is whatever the motherboard supports. on 32 bit >> builds the limit is whatever the os will allow 1 process to have, >> but then u need memory to store the decrypted data too. >> you can use a command line program to outsource that work and memory >> management. > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue May 10 20:14:33 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 11 May 2022 10:14:33 +1000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Thanks again Richard In my case I don’t actually need a workaround. Once I had corrected my own error, the only effect of the inconsistent event order is that on Windows and Linux the colour coding of the selection turns off a fraction of a second earlier than on a Mac. I am not so obsessive as to need to fix that. Nevertheless it is conceivable, if unlikely, that someone might want to do something more significant in the mouseLeave handler, so I continue to call the inconsistency a bug. The fact that the combobox menu button behaves in the same way on all 3 platforms does seem to indicate that the inconsistency could be resolved (in favour of the Windows event order). But I am also not so obsessive as to expect the LC team to do a major architectural reset to address the issue. I have added a note to my bug submission suggesting a small note in the documentation for the 3 anomalous buttons noting how they behave slightly differently on a Mac, thus turning a hidden bug into a documented feature. Neville From jbv at souslelogo.com Wed May 11 01:54:41 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 11 May 2022 01:54:41 -0400 Subject: LC subscription and special characters In-Reply-To: <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> Message-ID: <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> Thank you for your reply. Obviously, it was possible in earlier versions of LC. So, could someone be kind enough to make a quick test with the most recent versions of LC, by typing text inside a field, if special characters can be used, like alt+144 for , and possibly on azerty and qwerty keyboards ? Thank you in advance. Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : > I thought I recalled a bug in the LC engine where using the keyboard > method of typing the character code, press ALT, and then press X. For > example, to type a dollar symbol ($), type 0024, press ALT, and then > press X, didn't work in Livecode. However, I just tried searching the > Livecode Quality Center for a bug number and couldn't find it so > perhaps I am mis-remembering. > From devin_asay at byu.edu Wed May 11 11:37:22 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 11 May 2022 15:37:22 +0000 Subject: LC subscription and special characters In-Reply-To: <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> Message-ID: Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. https://quality.livecode.com/show_bug.cgi?id=18702 On May 10, 2022, at 11:54 PM, jbv via use-livecode > wrote: Thank you for your reply. Obviously, it was possible in earlier versions of LC. So, could someone be kind enough to make a quick test with the most recent versions of LC, by typing text inside a field, if special characters can be used, like alt+144 for É, and possibly on azerty and qwerty keyboards ? Thank you in advance. Le 2022-05-10 17:53, Paul Dupuis via use-livecode a écrit : I thought I recalled a bug in the LC engine where using the keyboard method of typing the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X, didn't work in Livecode. However, I just tried searching the Livecode Quality Center for a bug number and couldn't find it so perhaps I am mis-remembering. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From dochawk at gmail.com Wed May 11 12:06:51 2022 From: dochawk at gmail.com (doc hawk) Date: Wed, 11 May 2022 09:06:51 -0700 Subject: I can't find a reason to keep business subscription! References: <0CBBB506-8A22-43FC-B6C3-2A12B0615F00@gmail.com> Message-ID: <66BE8C7F-AEF8-4DF9-B586-53ED320F3BBC@gmail.com> I have a perpetual indy license, and a $299/year business license, which renews on Thursday. I only picked it up during a promotion because it seemed like a good deal, and I might want it in the future. To date, the only thing I’ve ever tried to do with it is the PDFs that got added a couple of years ago, which were a complete failure (it renders at screen resolution when printing/outputting a new pdf!). The project I got them for will never see release; I missed the window a few years ago and the field is now crowded. That, and I have no interest in pouring the energy into starting a new business instead of retiring . . . Anyway, it’s still hard to cut the cord . . . From ambassador at fourthworld.com Wed May 11 14:27:33 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 May 2022 11:27:33 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> References: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Message-ID: Neville Smythe wrote: > Thanks again Richard > > In my case I dont actually need a workaround. Once I had corrected > my own error, the only effect of the inconsistent event order is that > on Windows and Linux the colour coding of the selection turns off a > fraction of a second earlier than on a Mac. I am not so obsessive as > to need to fix that. Glad you have a solution. Hopefully the demo I posted will be of use to others. Using stacks as menus are a poor substitute for text menus when all you need is text, but a wide range of graphical pickers can be made which can be very attractive and super-simple to make: Set the menuName property of a menu button to the short name of the stack you want to use as a menu, make sure the buttons you're using in the menu stack have their autoArm set to true, and all the normal menu behaviors you'd expect just work. Imagine icons used to represent a set of templates, or sample report output, or graphical effects, or anything else that lends itself well to a graphical picker menu. I just updated the example stack this morning to include a simple graphical picker so folks could get a clearer idea of how it can be very useful: http://fourthworld.net/lc/MenuMessaging.livecode -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paul at researchware.com Wed May 11 16:41:56 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 May 2022 16:41:56 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> Message-ID: <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with a single new scrolling field. I switch to run mode (pointer tool) and with a blinking insertion bar in the field, tried: ALT+00A9 and ALT00A9 Which should have produced a symbol Neither worked. I tried several other Unicode codes. None worked. Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be reopened It may be related to bug https://quality.livecode.com/show_bug.cgi?id=23688 as the optionKeyDown (ALT key on Window) message is completely broken On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote: > Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. > > https://quality.livecode.com/show_bug.cgi?id=18702 > > > On May 10, 2022, at 11:54 PM, jbv via use-livecode > wrote: > > Thank you for your reply. > Obviously, it was possible in earlier versions of LC. > > So, could someone be kind enough to make a quick test with the most recent versions of LC, by typing text inside a field, if special characters can be used, like alt+144 for , and possibly on azerty and qwerty keyboards ? > Thank you in advance. > > Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : > I thought I recalled a bug in the LC engine where using the keyboard > method of typing the character code, press ALT, and then press X. For > example, to type a dollar symbol ($), type 0024, press ALT, and then > press X, didn't work in Livecode. However, I just tried searching the > Livecode Quality Center for a bug number and couldn't find it so > perhaps I am mis-remembering. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 11 17:00:03 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 May 2022 21:00:03 +0000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Message-ID: <12701F97-1FE2-4F8A-B0DA-025DCC7C2140@iotecdigital.com> I'm going to have a look at that Richard. Thanks. Bob S > On May 11, 2022, at 11:27 , Richard Gaskin via use-livecode wrote: > > Neville Smythe wrote: > > Thanks again Richard > > > > In my case I don’t actually need a workaround. Once I had corrected > > my own error, the only effect of the inconsistent event order is that > > on Windows and Linux the colour coding of the selection turns off a > > fraction of a second earlier than on a Mac. I am not so obsessive as > > to need to fix that. > > Glad you have a solution. > > Hopefully the demo I posted will be of use to others. Using stacks as menus are a poor substitute for text menus when all you need is text, but a wide range of graphical pickers can be made which can be very attractive and super-simple to make: > > Set the menuName property of a menu button to the short name of the stack you want to use as a menu, make sure the buttons you're using in the menu stack have their autoArm set to true, and all the normal menu behaviors you'd expect just work. > > Imagine icons used to represent a set of templates, or sample report output, or graphical effects, or anything else that lends itself well to a graphical picker menu. > > I just updated the example stack this morning to include a simple graphical picker so folks could get a clearer idea of how it can be very useful: > > http://fourthworld.net/lc/MenuMessaging.livecode > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.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 paul at researchware.com Wed May 11 17:10:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 May 2022 17:10:51 -0400 Subject: LC subscription and special characters In-Reply-To: <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> Message-ID: According to Microsoft, for Windows 10, Unicode typing is now ALT X This works for me in TextPad Press and hold ALT and X together a box appears in Textpad to enter the Unicode number into. Once 4 digits have been entered the character appears. It does not work in LC 9.6.7 STABLE in a new stack with a new scrolling field. -- Paul On 5/11/2022 4:41 PM, Paul Dupuis via use-livecode wrote: > In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with a > single new scrolling field. I switch to run mode (pointer tool) and > with a blinking insertion bar in the field, tried: > > ALT+00A9 > and > ALT00A9 > > Which should have produced a symbol > > Neither worked. I tried several other Unicode codes. None worked. > > Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be reopened > It may be related to bug > https://quality.livecode.com/show_bug.cgi?id=23688 as the > optionKeyDown (ALT key on Window) message is completely broken > > > On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote: >> Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. >> >> https://quality.livecode.com/show_bug.cgi?id=18702 >> >> >> On May 10, 2022, at 11:54 PM, jbv via use-livecode >> > >> wrote: >> >> Thank you for your reply. >> Obviously, it was possible in earlier versions of LC. >> >> So, could someone be kind enough to make a quick test with the most >> recent versions of LC, by typing text inside a field, if special >> characters can be used, like alt+144 for , and possibly on azerty >> and qwerty keyboards ? >> Thank you in advance. >> >> Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : >> I thought I recalled a bug in the LC engine where using the keyboard >> method of typing the character code, press ALT, and then press X. For >> example, to type a dollar symbol ($), type 0024, press ALT, and then >> press X, didn't work in Livecode. However, I just tried searching the >> Livecode Quality Center for a bug number and couldn't find it so >> perhaps I am mis-remembering. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> Devin Asay >> Office of Digital Humanities >> Brigham Young University >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed May 11 17:21:05 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 May 2022 17:21:05 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> Message-ID: Well, Microsoft is not consistent (not that I am surprised!) ALT X number works in TextPAd, but not in MS-Word. The alternate method (mention in this MS support note: https://support.microsoft.com/en-us/office/insert-ascii-or-unicode-latin-based-symbols-and-characters-d13f58d3-7bcb-44a7-a4d5-972ee12e50e0) of type U+ such as U+B5 for and then pressing ALT-X does work in MS-Word, but not in TextPad! Neither method works in Livecode 9.6.7 So, not: ALT + 00A9 ALT 00A9 ALT X 00A9 U+A9 ALT X On 5/11/2022 5:10 PM, Paul Dupuis via use-livecode wrote: > According to Microsoft, for Windows 10, Unicode typing is now ALT X > > > This works for me in TextPad Press and hold ALT and X together a box > appears in Textpad to enter the Unicode number into. Once 4 digits > have been entered the character appears. > > It does not work in LC 9.6.7 STABLE in a new stack with a new > scrolling field. > > -- Paul > > On 5/11/2022 4:41 PM, Paul Dupuis via use-livecode wrote: >> In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with >> a single new scrolling field. I switch to run mode (pointer tool) and >> with a blinking insertion bar in the field, tried: >> >> ALT+00A9 >> and >> ALT00A9 >> >> Which should have produced a symbol >> >> Neither worked. I tried several other Unicode codes. None worked. >> >> Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be >> reopened >> It may be related to bug >> https://quality.livecode.com/show_bug.cgi?id=23688 as the >> optionKeyDown (ALT key on Window) message is completely broken >> >> >> On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote: >>> Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. >>> >>> https://quality.livecode.com/show_bug.cgi?id=18702 >>> >>> >>> On May 10, 2022, at 11:54 PM, jbv via use-livecode >>> > >>> wrote: >>> >>> Thank you for your reply. >>> Obviously, it was possible in earlier versions of LC. >>> >>> So, could someone be kind enough to make a quick test with the most >>> recent versions of LC, by typing text inside a field, if special >>> characters can be used, like alt+144 for , and possibly on azerty >>> and qwerty keyboards ? >>> Thank you in advance. >>> >>> Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : >>> I thought I recalled a bug in the LC engine where using the keyboard >>> method of typing the character code, press ALT, and then press X. For >>> example, to type a dollar symbol ($), type 0024, press ALT, and then >>> press X, didn't work in Livecode. However, I just tried searching the >>> Livecode Quality Center for a bug number and couldn't find it so >>> perhaps I am mis-remembering. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> Devin Asay >>> Office of Digital Humanities >>> Brigham Young University >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 markclark at mac.com Wed May 11 21:10:10 2022 From: markclark at mac.com (Mark Clark) Date: Wed, 11 May 2022 20:10:10 -0500 Subject: use-livecode Digest, Vol 224, Issue 9, Re: Decrypting (and encrypting) Large files In-Reply-To: References: Message-ID: <6072070D-3DFB-422F-AC94-C50FD961CA13@mac.com> Why the preference? It’s not a hard and fast rule by any means, but I suppose because rolling your own means owning your code, flaws and all. In simple system environments I wouldn’t use LC at all, I’d just use shell scripting. Since different users will have different shells (or none) probably best in this case to make it standalone. Calling shell might cause more support cases than a roll your own especially since there are different versions of openssl, LibreSSL v OpenSSL, etc. The default message digest differs from one flavor of openssl to another—looks like built in encrypt is using md5 still? Maybe I’m missing some knob I could turn at encrypt time, wouldn’t be the first time I missed something obvious. Yeah, chunking seems to work just fine, although I ran into another issue. I decided to not use cbc (big IV for my use case) and instead use gcm and this seems to be broken somehow in LC 9.6.3. There aren’t any useful error messages that I can see. Just to fast check I downloaded an old stack by Bill Vlahos (from 2012) and checked to see if I was doing something egregiosuly wrong. If I am, I’m not alone;) aes-256-gcm seems to “work” on encrypt and blow up on decrypt. Ditto for 192, 128, etc. The last option you mentioned doesn’t work in my use case, though it makes plenty of good sense in a standard type data center scenario. I really do appreciate all the nice folks on this list. One of the main reasons I enjoy LiveCode is the people who use it. If I can resolve the use of gcm soonish I’ll do a few more tests at different ranges of blocks. Intuitively it might seem that a larger chunk for encryption would be faster, but that’s not what the tests produced. Below are the results for a 1MB chunk to encrypt vs a 1GB chunk. Obviously the memory requirements for the standalone are much friendlier for the smaller chunk. This is from an oldish mac laptop Processor Name: Quad-Core Intel Core i7 Processor Speed: 2.8 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Hyper-Threading Technology: Enabled Memory: 16 GB cipher is aes-256-cbc source zip: 5,904,809,647 bytes (5.9 GB on disk) encrypted zip: 5,904,990,880 bytes (5.92 GB on disk) decrypted zip: 5,904,809,647 bytes (5.9 GB on disk) ----- byte range: 1073741824 (1GB) Total milliseconds required to encrypt in 6 runs: 61884 memory peaked at 4GB, returned to 42 MB after encryption run Total milliseconds required to decrypt in 6 runs: 69678 memory peaked at just under 4GB, fluctuates at 2-3.5GB ---- byte range: 1048576 (1 MB) memory utilization went from 42 MB to 45.5MB Total milliseconds required to encrypt in 5632 runs: 45918 memory utilization 45.7 MB Total milliseconds required to decrypt in 5632 runs: 41725 Thanks all, if anyone would like to check out the gcm flavor from a Mac I’d like to know if you get different (better) results. I’m on 11.6.4, btw. Mark > On May 11, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > What is behind the preference to roll your own rather than call existing > purpose-built command-line tools from LC with shell()? > > Your chunking described in your latest post seems the way to go, AFAIK > pretty much how other tools would handle it. > > Another option: if you're in an environment where even log files > require strong encryption, could you pipe log data to a separate secured > log server instead? From jbv at souslelogo.com Thu May 12 03:03:24 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Thu, 12 May 2022 03:03:24 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> Message-ID: <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> Thank you all for your answers. I am going to contact tech support to see if there is any solution to be expected in the near future. FYI, so far we are using a workaround : https://www.azerty.global/ jbv From merakosp at gmail.com Thu May 12 06:18:02 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 12 May 2022 13:18:02 +0300 Subject: LC subscription and special characters In-Reply-To: <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> Message-ID: Hello Paul, Does Alt+A9 work for you? Cheers, Panos -- On Thu, 12 May 2022 at 10:04, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Thank you all for your answers. > I am going to contact tech support to see if there is any solution to be > expected in the near future. > > FYI, so far we are using a workaround : > https://www.azerty.global/ > > 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 williamdesmet at gmail.com Thu May 12 06:43:19 2022 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 12 May 2022 12:43:19 +0200 Subject: =?UTF-8?Q?LibKiosk_by_Andr=C3=A9_Garzia?= Message-ID: Hi there, I found some information about LibKiosk André Garzia released 15 years ago. Is there still a download available somewhere or is it deprecated now? groeten, William From benr_mc at cogapp.com Thu May 12 07:37:34 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 12 May 2022 12:37:34 +0100 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> References: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> Message-ID: <14f317e6-dce7-365c-3109-cfe40ae3c424@cogapp.com> Ditto that. There should be a "Lifetime contribution" award for Livecode heroes. Ben On 09/05/2022 14:54, Craig Newman via use-livecode wrote: > Richard. > > So glad to have you in this world. > > Craig > >> On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode wrote: >> >> Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? >> >> Sent from my iPhone >> >>> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: >>> >>> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. >>> >>> >>> Background: >>> ---------- >>> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. >>> >>> On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. >>> >>> And until the port to MacOS, all platforms behaved consistently. >>> >>> So why the Mac change? >>> >>> Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. >>> >>> Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). >>> >>> So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. >>> >>> The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. >>> >>> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. >>> >>> This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). >>> >>> It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. >>> >>> If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. >>> >>> On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. >>> >>> I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? >>> >>> All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. >>> >>> >>> >>> The Here-And-Now: >>> ---------------- >>> Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. >>> >>> They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. >>> >>> I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: >>> >>> >>> >>> Looking Forward: >>> --------------- >>> Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. >>> >>> What do you need from mouseLeave during a menu drop? What are you doing in response to that message? >>> >>> There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> >>> >>> >>> Neville Smythe wrote: >>>> The pulldownmenu bug I reported has been confirmed: bug 23693 >>>> >>>> >>>> To remind the reader: On a Mac, when a user select a menu item from >>>> a pulldown menu button, the menuPick message is sent first followed >>>> by a mouseLeave message (generated as the mouse leaves the button >>>> rect to select the menu item). On Windows, the mouseLeave is sent >>>> immediately, followed by menuPick. >>>> >>>> The Mac order is correct, the mouseLeave should be delayed until the >>>> displayed menu is dismissed. >>>> >>>> Linux has the same incorrect behaviour as Windows. >>>> >>>> The same situation applies to popupmenus and option menu buttons: >>>> the Mac has the correct order, Windows and Linux incorrect. >>>> >>>> However for the combobox button, all three platforms give the wrong >>>> message order! >>>> >>>> And one last twist, although the Mac implementation gives the correct >>>> order for 3 menu buttons, it sends the mouseLeave message twice, once >>>> immediately after the menuPick, and then again when the mouse is >>>> released. >>>> >>>> Neville >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 andre at andregarzia.com Thu May 12 08:14:35 2022 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 12 May 2022 13:14:35 +0100 Subject: =?utf-8?Q?Re=3A_LibKiosk_by_Andr=C3=A9_Garzia?= In-Reply-To: References: Message-ID: Hi, I don’t even remember that library. I think the source is probably lost. I made it before I started using version control systems. Anyway, I doubt that this external would work today, too many things have changed. Maybe it is possible to replicate that without an external with some cleverly written LiveCode Builder gizmo. > On 12 May 2022, at 11:43, William de Smet via use-livecode wrote: > > Hi there, > > I found some information about LibKiosk André Garzia released 15 years ago. > Is there still a download available somewhere or is it deprecated now? > > > groeten, > > William > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu May 12 08:18:31 2022 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 12 May 2022 13:18:31 +0100 Subject: =?utf-8?Q?Re=3A_LibKiosk_by_Andr=C3=A9_Garzia?= In-Reply-To: References: Message-ID: https://developer.apple.com/library/archive/technotes/tn2062/_index.html#//apple_ref/doc/uid/DTS10003090-CH1-SECTION3 Looks like a good starting point for someone wanting to attempt to create a new external. > On 12 May 2022, at 13:14, Andre Garzia wrote: > > Hi, I don’t even remember that library. I think the source is probably lost. I made it before I started using version control systems. Anyway, I doubt that this external would work today, too many things have changed. Maybe it is possible to replicate that without an external with some cleverly written LiveCode Builder gizmo. > >> On 12 May 2022, at 11:43, William de Smet via use-livecode wrote: >> >> Hi there, >> >> I found some information about LibKiosk André Garzia released 15 years ago. >> Is there still a download available somewhere or is it deprecated now? >> >> >> groeten, >> >> William >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 12 08:26:34 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 12 May 2022 08:26:34 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> Message-ID: On 5/12/2022 6:18 AM, panagiotis m via use-livecode wrote: > Hello Paul, > > Does Alt+A9 work for you? > > Cheers, > Panos > -- > No. Alt+A9 does not work. I checked my Registry (per https://quality.livecode.com/show_bug.cgi?id=18702#c15) and in Computer\HKEY_CURRENT_USER\Control Panel\Input Method there is no "EnableHexNumpad". There is only "(Default)" and "Show Status" and a "Hot Keys" sub key list. I thought I would be clever and write a bit of LC script (see below) using listRegistry, queryRegistry, and setRegistry. However, none of the registry functions appear to be working in the IDE under LC 9.6.7 and I vaguely recall that they now only work if the application executing them has Administrative privileges? Is that correct? I guess the larger question is: For a person developing an LC based app who's users what to enter Unicode characters, what is the "best practice" for doing this? Is it always copy and paste from some web site or the "Character Map" accessory on Windows or what? If there some bit of working code a person can put in their application to set the Registry key IF the user checks a preference option or clicks a button or something? For NEXT MONTH's Livecode Global troubleshooting session, how would one address this? :-) on mouseUp pMouseButton   if platform() = "Win32" then     put listRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method") into tList     answer "Keys at 'Computer\HKEY_CURRENT_USER\Control Panel\Input Method':"&cr&tList&cr&"On my computer I should see 1 key: 'Show Status'" -- DEBUG     if "EnableHexNumpad" is not among the lines of tList then       -- no registry key exists       put empty into tData -- flag teh key does not exists     else       -- a key exists, now check its value       put queryRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad\") into tData     end if     if tData <> 1 then       put "

Your Windows system is not configured for keyboard entry of Unicode characters!

" into tPrompt       put "

The value of Registery Key 'Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad\' is:"&&tData &"." after tPrompt       put "A reboot will be required.

" after tPrompt       answer warning tPrompt with "Confgured" or "Skip"       if it = "Configure" then         if not setRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad",1) then           -- an error occured           answer error (the result)         else           answer warning "

Please reboot your computer.

"         end if       end if     end if   end if end mouseUp From ludovic.thebault at laposte.net Thu May 12 13:10:36 2022 From: ludovic.thebault at laposte.net (ludovic.thebault at laposte.net) Date: Thu, 12 May 2022 19:10:36 +0200 (CEST) Subject: Sqlite and Monterey on M1 Message-ID: <1035540836.1342971.1652375436147@wlpnf0205> ‌ ‌ ‌   Hello All, I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db) Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok. (-rwxr-xr-x for the database). The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted). What I miss ? Thanks ! From klaus at major-k.de Thu May 12 13:19:33 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 12 May 2022 19:19:33 +0200 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Message-ID: <4BDB07D7-FBFF-4A12-B98E-6F4D6D8EE8BE@major-k.de> Hi all, > Am 11.05.2022 um 20:27 schrieb Richard Gaskin via use-livecode : > ... make sure the buttons you're using in the menu stack have their autoArm set to true, ... Hint: that property "autoarm" did not make it into the inspector somehow, so you need to do this by script! > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Thu May 12 13:56:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 12 May 2022 17:56:15 +0000 Subject: Sqlite and Monterey on M1 In-Reply-To: <1035540836.1342971.1652375436147@wlpnf0205> References: <1035540836.1342971.1652375436147@wlpnf0205> Message-ID: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, even if you have explicit write permissions. It's better if you put the file into her documents folder somewhere. To answer the question you are about to ask, it's likely that her old Mac OS was not current enough to have the sandboxing limitations, and so it worked. Bob S > On May 12, 2022, at 10:10 , ludovic.thebault--- via use-livecode wrote: > > ‌ > > ‌ > > ‌ > > > Hello All, > > I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db) > > Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok. > (-rwxr-xr-x for the database). > > The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted). > > What I miss ? > > 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 klaus at major-k.de Thu May 12 14:01:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 12 May 2022 20:01:16 +0200 Subject: Sqlite and Monterey on M1 In-Reply-To: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> References: <1035540836.1342971.1652375436147@wlpnf0205> <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Message-ID: <24143D79-2908-4C19-BBC5-BD2424D59338@major-k.de> Bonsoir Ludovic, on the Mac we have write permissions here -> specialFolderPath("preferences") Works on Monterey as well and is "out of sight" of the user. ;-) > Am 12.05.2022 um 19:56 schrieb Bob Sneidar via use-livecode : > > Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, even if you have explicit write permissions. It's better if you put the file into her documents folder somewhere. To answer the question you are about to ask, it's likely that her old Mac OS was not current enough to have the sandboxing limitations, and so it worked. > > Bob S > >> On May 12, 2022, at 10:10 , ludovic.thebault--- via use-livecode wrote: >> Hello All, >> >> I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db) >> Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok. >> (-rwxr-xr-x for the database). >> The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted). >> What I miss ? >> Thanks ! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Thu May 12 14:24:29 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 May 2022 13:24:29 -0500 Subject: Sqlite and Monterey on M1 In-Reply-To: <24143D79-2908-4C19-BBC5-BD2424D59338@major-k.de> References: <1035540836.1342971.1652375436147@wlpnf0205> <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> <24143D79-2908-4C19-BBC5-BD2424D59338@major-k.de> Message-ID: <46167dde-c007-474e-9029-5d5231ea7270@hyperactivesw.com> On 5/12/22 1:01 PM, Klaus major-k via use-livecode wrote: > on the Mac we have write permissions here -> specialFolderPath("preferences") > Works on Monterey as well and is "out of sight" of the user. ;-) > >> Am 12.05.2022 um 19:56 schrieb Bob Sneidar via use-livecode: >> >> Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, That's kind of strange, since Mac OS provides the Application Support folder specifically for apps to store their data. Has that changed? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu May 12 14:25:06 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 12 May 2022 11:25:06 -0700 Subject: Sqlite and Monterey on M1 In-Reply-To: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> References: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Message-ID: Bob Sneidar wrote: > I don't think the latest Apple operating systems allow the writing > to the App Support folder, even if you have explicit write > permissions. Where are we supposed to write application support files if not to Application Support? First they demanded control of the file format apps use for Prefs, now this... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Thu May 12 14:39:16 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 12 May 2022 11:39:16 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <4BDB07D7-FBFF-4A12-B98E-6F4D6D8EE8BE@major-k.de> References: <4BDB07D7-FBFF-4A12-B98E-6F4D6D8EE8BE@major-k.de> Message-ID: Klaus wrote: > Am 11.05.2022 um 20:27 schrieb Richard Gaskin wrote: >> ... make sure the buttons you're using in the menu stack have >> their autoArm set to true, ... > > Hint: > that property "autoarm" did not make it into the inspector somehow, > so you need to do this by script! It's far from the only one. LC objects have a LARGE number of properties we can work with. The Inspector shows only a subset of the most commonly-used ones. Inspectors are great for consumer tools, but dev tools tend to provide Property Sheets so they can expose a much larger range of properties developers will want to work with. LC attempts to straddle the space between consumer tool and dev tool, in both marketing and IDE design, and it sometimes leads to things one camp or the other may find confusing. I threw together a quick Property Sheet a while back: http://fourthworld.net/revnet/devolution/4W_Props.rev.gz -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paul at researchware.com Thu May 12 15:30:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 12 May 2022 15:30:23 -0400 Subject: Sqlite and Monterey on M1 In-Reply-To: References: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Message-ID: <67b6c0bb-5879-7e28-6e06-951947f12cd0@researchware.com> On 5/12/2022 2:25 PM, Richard Gaskin via use-livecode wrote: > Bob Sneidar wrote: > > > I don't think the latest Apple operating systems allow the writing > > to the App Support folder, even if you have explicit write > > permissions. > > Where are we supposed to write application support files if not to > Application Support? > > First they demanded control of the file format apps use for Prefs, now > this... > I did a little bit of research when I ran into my app breaking on Catalina and up when trying to reach a folder at specialFolderPath("temporary") and write files in that folder. The problem is that newer macOSes use an runtime algorithm to try to determine when an application is asking for access in "special" places. If the algorithm detect special access (sat to the Desktop or Documents folder or a Webcam and so on) the OS pops up the "Do you want to allow .. " dialog for the user to allow or deny access. An application signed and notarized WITH entitlements can specify some entitlements that are checked and if the App has declared these entitlements to protected resources, they are allowed. Some "protected" resources have NOT corresponding entitlements (at least currently). For disk access to folder paths without entitlements, the user can grant an application Full Disk Access, from System Preferences > Security, but and App can not specify an entitlement for Full Disk Access. It must be granted by the user. Further, an Apple Engineer is a forum response (or someone claiming to be an Apple Engineer) noted that the algorithm to detect requests for special access resources can make mistakes and not recognize a request as a request and there for present a dialog to the user for allowing or denying and the default is to deny. So some circumstances, like apps running  in multiple processes (was an example cited, but it was implied there are other circumstances) your app MIGHT get the allow/deny dialog OR it might not - depending on your app. And for some resources, it just won't get any dialog and no entitlement will allow access, only instructions to the user to grant Full Disk Access (or some other similar ONLY allowed by the user permissions) will work. In short, Apple's sandboxing is a developer mess. If you can, placing files in the Documents folder is best as (A) you can specify the Documents folder in an entitlement and (C) the sandboxing algorithm does seem to always detect (first time) Documents access requests and pop up the dialog. DISCLAIMER: I did not have time to research this in detail and the "apple engineer" may or may not have been a real Apple engineer or knew what they were posting about. Our installer asks people on the last screen to grant our apps full disk access (if they are on Catalina+) and most people do and it solved a lot of recoding. From dan at clearvisiontech.com Fri May 13 15:40:11 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 13 May 2022 19:40:11 +0000 Subject: Audio Control on Mobile? Message-ID: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE@clearvisiontech.com> Hello! On desktop, there is the player object which is great! However, it doesn't work on Mobile. Is there a way to deal with an audio file on mobile (Android and iOS)? Here's what I need to do: - Load an audio file from a server - Play the file - Pause file - Set the cursor (where to play from or jump to) - Know when the end of file is reached - length of audio file - current play position - file state (isPlaying or isPaused) Thank you in advance! -Dan From tom at makeshyft.com Sat May 14 14:07:32 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 14 May 2022 14:07:32 -0400 Subject: Audio Control on Mobile? In-Reply-To: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE@clearvisiontech.com> References: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE@clearvisiontech.com> Message-ID: Hi Dan, Look up mobilecontrolcreate "player" mobilecontrolset That should cover you. Also, the browser can display a HTML compatible player. On Fri, May 13, 2022 at 3:41 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello! On desktop, there is the player object which is great! However, > it doesn't work on Mobile. Is there a way to deal with an audio file on > mobile (Android and iOS)? Here's what I need to do: > > - Load an audio file from a server > - Play the file > - Pause file > - Set the cursor (where to play from or jump to) > - Know when the end of file is reached > - length of audio file > - current play position > - file state (isPlaying or isPaused) > > Thank you in advance! > > -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 andre at andregarzia.com Sun May 15 07:51:12 2022 From: andre at andregarzia.com (Andre Garzia) Date: Sun, 15 May 2022 12:51:12 +0100 Subject: 20% discount on advanced LiveCode development books Message-ID: <91A2EC68-64F5-45D5-B630-BE639036A85D@andregarzia.com> Hi Friends, I had a wonderful time at the LiveCode DevCon 2022 and decided to extend the discount I offered for my books at the con to the wider LC community. These are two books that complement each other, one about organising and developing effective code and the other about building your own dev tools to help your products succeed. LIVECODE ADVANCED APPLICATION ARCHITECTURE BOOK This book will help you learn about LiveCode best practices and advanced application architecture. With the techniques contained in it you will build applications that are easier to maintain and adapt leading to a more fun and profitable future. https://payhip.com/b/I1Un DEVELOPMENT ORIENTED DEVELOPMENT BOOK Development Oriented Development is a novel approach to coding with LiveCode that prioritizes developer comfort and robustness by favouring treating LiveCode as a mouldable environment. By the end of this book, you'll know how and why to build custom plugins to make your development workflow easier, and how bespoke project-specific tools lead to software that is easier to maintain. https://payhip.com/b/18eH The discount coupon is BOOKS20 and you need to apply it when you're checking out. Best Andre From alanstenhouse at hotmail.com Sun May 15 08:12:25 2022 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 15 May 2022 21:42:25 +0930 Subject: Audio Control on Mobile? In-Reply-To: References: Message-ID: Hi Dan, Check out mobilePlaySoundOnChannel in the dictionary and the related commands linked to it. Don't think there's a player command for mobile, though I may have missed it...! HTH cheers, Alan > On 15 May 2022, at 1:30 am, use-livecode-request at lists.runrev.com wrote: > > Date: Fri, 13 May 2022 19:40:11 +0000 > From: Dan Friedman > To: How to use LiveCode > Subject: Audio Control on Mobile? > Message-ID: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE at clearvisiontech.com> > Content-Type: text/plain; charset="utf-8" > > Hello! On desktop, there is the player object which is great! However, it doesn't work on Mobile. Is there a way to deal with an audio file on mobile (Android and iOS)? Here's what I need to do: > > - Load an audio file from a server > - Play the file > - Pause file > - Set the cursor (where to play from or jump to) > - Know when the end of file is reached > - length of audio file > - current play position > - file state (isPlaying or isPaused) > > Thank you in advance! > > -Dan From dan at clearvisiontech.com Sun May 15 13:14:06 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Sun, 15 May 2022 17:14:06 +0000 Subject: Audio Control on Mobile? In-Reply-To: References: Message-ID: <2CEE3CB3-B3A3-4123-9B5B-7581F3136AB2@clearvisiontech.com> Alan, Thank you for the info. I know of the mobileSound items... but, it doesn't have all the commands we need. For example, there is no method to start (or change) the sounds play position, or poll the sound for the current position. My client wants to make a music playing app. Need to replicate a music player... so, we need to keep our [custom] transport in sync with the sound. Stop, Start, Pause, Scrub, update current time and time remaining, etc. EASY on desktop, can't seem to do this on mobile with LiveCode. -Dan On 5/15/22, 5:12 AM, "Alan Stenhouse" wrote: Hi Dan, Check out mobilePlaySoundOnChannel in the dictionary and the related commands linked to it. Don't think there's a player command for mobile, though I may have missed it...! HTH cheers, Alan > On 15 May 2022, at 1:30 am, use-livecode-request at lists.runrev.com wrote: > > Date: Fri, 13 May 2022 19:40:11 +0000 > From: Dan Friedman > To: How to use LiveCode > Subject: Audio Control on Mobile? > Message-ID: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE at clearvisiontech.com> > Content-Type: text/plain; charset="utf-8" > > Hello! On desktop, there is the player object which is great! However, it doesn't work on Mobile. Is there a way to deal with an audio file on mobile (Android and iOS)? Here's what I need to do: > > - Load an audio file from a server > - Play the file > - Pause file > - Set the cursor (where to play from or jump to) > - Know when the end of file is reached > - length of audio file > - current play position > - file state (isPlaying or isPaused) > > Thank you in advance! > > -Dan From harrison at all-auctions.com Mon May 16 13:46:05 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 13:46:05 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: I have a large chunk of data that I want to search as quickly as possible. Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. I don’t want to search line by line as that takes way too long. There’s no unique character dividing any of these data regions. What’s the best way to do this? Thanks in advance! Rick From jiml at netrin.com Mon May 16 13:58:08 2022 From: jiml at netrin.com (Jim Lambert) Date: Mon, 16 May 2022 10:58:08 -0700 Subject: Audio Control on Mobile? In-Reply-To: References: Message-ID: > Dan wrote: > My client wants to make a music playing app. Need to replicate a music player... so, we need to keep our [custom] transport in sync with the sound. Stop, Start, Pause, Scrub, update current time and time remaining, etc. EASY on desktop, can't seem to do this on mobile with LiveCode. I wonder if using the Browser widget would help? https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Cross-browser_audio_basics Jim Lambert From craig at starfirelighting.com Mon May 16 14:19:08 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 16 May 2022 14:19:08 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <398E76E5-1C2C-4D5D-990E-8BB276C2F5AB@starfirelighting.com> Hi. Can you get the number of lines of the whole blob, if lines are pertinent, divide that number by 3, and search from there? Another words, if you had 1000 lines, divide by 3 and search from line 333 to 666. Craig > On May 16, 2022, at 1:46 PM, Rick Harrison via use-livecode wrote: > > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I don’t want to search line by line as that > takes way too long. > > There’s no unique character dividing any > of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon May 16 14:23:23 2022 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 16 May 2022 21:23:23 +0300 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> Well one of the things you could do is this: slightly pseudo 1 put the number of chars in MyDATA into MyNUM 2 put MyNUM / 3 into SLICER 3 put chars 1-SLICER of MyDATA into firstTHIRD 4 put chars SLICER-(SLICER * 2) into secondTHIRD 5 put chars (SLICER * 2)-(SLICER*3) into thirdTHIRD at which point you can perform you search inwith secondTHIRD. Unless you want to recombine all those bits having performed some sort of operation on secondThird lines 3 and 5 are a waste of time. Best, Richmond. Best Richmond. On 16.05.22 20:46, Rick Harrison via use-livecode wrote: > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I dont want to search line by line as that > takes way too long. > > Theres no unique character dividing any > of these data regions. > > Whats the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon May 16 14:23:56 2022 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 16 May 2022 21:23:56 +0300 Subject: Divide Large Data Blob? In-Reply-To: <398E76E5-1C2C-4D5D-990E-8BB276C2F5AB@starfirelighting.com> References: <398E76E5-1C2C-4D5D-990E-8BB276C2F5AB@starfirelighting.com> Message-ID: <497e279b-aebb-379c-066b-0547199f5127@gmail.com> Great Behinds Stink Alike.  :) On 16.05.22 21:19, Craig Newman via use-livecode wrote: > Hi. > > Can you get the number of lines of the whole blob, if lines are pertinent, divide that number by 3, and search from there? Another words, if you had 1000 lines, divide by 3 and search from line 333 to 666. > > Craig > >> On May 16, 2022, at 1:46 PM, Rick Harrison via use-livecode wrote: >> >> I have a large chunk of data that I want to >> search as quickly as possible. >> >> Unfortunately the part I want to search is the >> middle third of the data. The other thirds at >> the beginning and at the end are just junk and >> slow down my search so I want to get rid of them. >> >> I dont want to search line by line as that >> takes way too long. >> >> Theres no unique character dividing any >> of these data regions. >> >> Whats the best way to do this? >> >> Thanks in advance! >> >> Rick >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 16 14:32:10 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 16 May 2022 11:32:10 -0700 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <27ee61cf-4d7e-f32e-9f82-a216dda31462@fourthworld.com> Rick Harrison wrote: > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I dont want to search line by line as that > takes way too long. > > Theres no unique character dividing any > of these data regions. > > Whats the best way to do this? The offset function has an optional third param for starting point, so setting that value to the number of bytes you want to skip would take you right where you want to be. Offset can then be used in a loop, updating the starting value as you go. Exiting the loop once your into the tail you don't want to index can be a simple if to escape the loop. There may also be options for using delimiters. What does the source data look like, and what should the resulting index look like? And the most central question with things like this: how large is "large"? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From phil at pdslabs.net Mon May 16 14:37:32 2022 From: phil at pdslabs.net (Phil Davis) Date: Mon, 16 May 2022 11:37:32 -0700 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: On 5/10/22 12:35 PM, Richard Gaskin via use-livecode wrote: > Mark Clark wrote: > > > Wondering if anyone has used LiveCode for encrypting-decrypting large > > files? > ... > > Im thinking about using LC for decrypting zip compressed log files > > that can be multiple gigabytes in size. Id like to use just LC vs. > > resorting to shell if possible. > > What is behind the preference to roll your own rather than call > existing purpose-built command-line tools from LC with shell()? I like this option. You could use shell("openssl ") to encrypt any size file. Also it may be possible to run 'openssl' as a process, by which (I believe) you could make it non blocking, running in the background. (I haven't tried opening 'openssl' as a process, just speculating here.) Phil Davis > > Your chunking described in your latest post seems the way to go, AFAIK > pretty much how other tools would handle it. > > Another option:  if you're in an environment where even log files > require strong encryption, could you pipe log data to a separate > secured log server instead? > -- Phil Davis (503) 307-4363 From harrison at all-auctions.com Mon May 16 15:34:12 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 15:34:12 -0400 Subject: Divide Large Data Blob? In-Reply-To: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> References: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> Message-ID: Hi Richmond, An interesting approach. I’ll give it try Thanks! Rick > On May 16, 2022, at 2:23 PM, Richmond via use-livecode wrote: > > Well one of the things you could do is this: > > slightly pseudo > > 1 put the number of chars in MyDATA into MyNUM > 2 put MyNUM / 3 into SLICER > 3 put chars 1-SLICER of MyDATA into firstTHIRD > 4 put chars SLICER-(SLICER * 2) into secondTHIRD > 5 put chars (SLICER * 2)-(SLICER*3) into thirdTHIRD > > at which point you can perform you search inwith secondTHIRD. > > Unless you want to recombine all those bits having performed some sort of operation on secondThird > lines 3 and 5 are a waste of time. > > Best, Richmond. From harrison at all-auctions.com Mon May 16 15:38:29 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 15:38:29 -0400 Subject: Divide Large Data Blob? In-Reply-To: <27ee61cf-4d7e-f32e-9f82-a216dda31462@fourthworld.com> References: <27ee61cf-4d7e-f32e-9f82-a216dda31462@fourthworld.com> Message-ID: <1C881FB6-15E2-4638-90D8-6D0711E44C1E@all-auctions.com> Hi Richard, I was looking at the offset function and thinking about the starting points. It still presents a looping problem for me that I’m trying to avoid. If other methods aren’t more efficient I will play with it more. Thanks, Rick > On May 16, 2022, at 2:32 PM, Richard Gaskin via use-livecode wrote: > > The offset function has an optional third param for starting point, so setting that value to the number of bytes you want to skip would take you right where you want to be. Offset can then be used in a loop, updating the starting value as you go. Exiting the loop once your into the tail you don't want to index can be a simple if to escape the loop. > > There may also be options for using delimiters. What does the source data look like, and what should the resulting index look like? > > And the most central question with things like this: how large is "large"? From harrison at all-auctions.com Mon May 16 15:57:00 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 15:57:00 -0400 Subject: Divide Large Data Blob? In-Reply-To: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> References: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> Message-ID: <5C0D7D02-574C-45C6-9E61-8CBC109632B7@all-auctions.com> Hi Richmond, Doesn’t the following still require a loop? LC doesn’t like the syntax you provided. Thanks, Rick > On May 16, 2022, at 2:23 PM, Richmond via use-livecode wrote: > > 3 put chars 1-SLICER of MyDATA into firstTHIRD From rdimola at evergreeninfo.net Mon May 16 16:01:36 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 16 May 2022 16:01:36 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <004801d8695f$c27e0d00$477a2700$@net> If the needed OR unneeded lines have something in common then the filter command is your friend. Filter is blazingly fast. 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 Rick Harrison via use-livecode Sent: Monday, May 16, 2022 1:46 PM To: How to use LiveCode Cc: Rick Harrison Subject: Divide Large Data Blob? I have a large chunk of data that I want to search as quickly as possible. Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. I don’t want to search line by line as that takes way too long. There’s no unique character dividing any of these data regions. What’s the best way to do this? Thanks in advance! Rick _______________________________________________ use-livecode mailing list use-livecode 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 harrison at all-auctions.com Mon May 16 16:15:03 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 16:15:03 -0400 Subject: Divide Large Data Blob? In-Reply-To: <004801d8695f$c27e0d00$477a2700$@net> References: <004801d8695f$c27e0d00$477a2700$@net> Message-ID: Hi Ralph, I was looking at filter. It might help me to cut down on the amount of data to search, but I would still have to throw out the first 1/3 of the data. Perhaps filtering first and then processing what’s left by line number wouldn’t be too slow. Thanks for the suggestion! Rick > On May 16, 2022, at 4:01 PM, Ralph DiMola via use-livecode wrote: > > If the needed OR unneeded lines have something in common then the filter command is your friend. Filter is blazingly fast. > > 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 Rick Harrison via use-livecode > Sent: Monday, May 16, 2022 1:46 PM > To: How to use LiveCode > Cc: Rick Harrison > Subject: Divide Large Data Blob? > > I have a large chunk of data that I want to search as quickly as possible. > > Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. > > I don’t want to search line by line as that takes way too long. > > There’s no unique character dividing any of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 harrison at all-auctions.com Mon May 16 17:18:22 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 17:18:22 -0400 Subject: Divide Large Data Blob? In-Reply-To: <004801d8695f$c27e0d00$477a2700$@net> References: <004801d8695f$c27e0d00$477a2700$@net> Message-ID: <96C91646-AADD-4E84-B62C-5793A4A042EB@all-auctions.com> Hi Ralph, Filtering the data first made a huge difference in the size of the data I need to search. Thanks! Rick > On May 16, 2022, at 4:01 PM, Ralph DiMola via use-livecode wrote: > > If the needed OR unneeded lines have something in common then the filter command is your friend. Filter is blazingly fast. > > 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 Rick Harrison via use-livecode > Sent: Monday, May 16, 2022 1:46 PM > To: How to use LiveCode > Cc: Rick Harrison > Subject: Divide Large Data Blob? > > I have a large chunk of data that I want to search as quickly as possible. > > Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. > > I don’t want to search line by line as that takes way too long. > > There’s no unique character dividing any of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 16 18:00:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 22:00:51 +0000 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. You may only have to do this a dozen or so times to find the exact line where your valid data begins. The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. Bob S > On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: > > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I don’t want to search line by line as that > takes way too long. > > There’s no unique character dividing any > of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 16 18:23:52 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 22:23:52 +0000 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> A maximum of 7 recursions are necessary to isolate a single instance of 100 possible values. 1000 requires a maximum of 10. 10000 values requires 14. The idea is that for every factor of 10, you need roughly 3 more recursions. This of course assumes the data is sorted, which in your case is sorted into 3 containers. If you know the limits of how many lines can be garbage, and how many can be valid data, you narrow your scope significantly. Livecode is pretty damn quick at parsing this kind of data. If there are consistent delimiters (in this case a line break) then even 20 or 30 recursions is child's play. Bob S > On May 16, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: > > Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? > If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. > > You may only have to do this a dozen or so times to find the exact line where your valid data begins. > > The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. > > Bob S > >> On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: >> >> I have a large chunk of data that I want to >> search as quickly as possible. >> >> Unfortunately the part I want to search is the >> middle third of the data. The other thirds at >> the beginning and at the end are just junk and >> slow down my search so I want to get rid of them. >> >> I don’t want to search line by line as that >> takes way too long. >> >> There’s no unique character dividing any >> of these data regions. >> >> What’s the best way to do this? >> >> Thanks in advance! >> >> Rick >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 16 18:44:44 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 22:44:44 +0000 Subject: Divide Large Data Blob? In-Reply-To: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> Message-ID: <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> So this has got me thinking. Apparently what I am calling Divide and Conquer is really called a binary sort. I have looked up on the interwebs to calculate the maximum number of iterations for a given number of values, but it seems that all the formulas offered up use functions for C. I am trying to figure out what a basic math formula for this is, given n values. Bob S > On May 16, 2022, at 15:23 , Bob Sneidar via use-livecode wrote: > > A maximum of 7 recursions are necessary to isolate a single instance of 100 possible values. 1000 requires a maximum of 10. 10000 values requires 14. The idea is that for every factor of 10, you need roughly 3 more recursions. This of course assumes the data is sorted, which in your case is sorted into 3 containers. If you know the limits of how many lines can be garbage, and how many can be valid data, you narrow your scope significantly. > > Livecode is pretty damn quick at parsing this kind of data. If there are consistent delimiters (in this case a line break) then even 20 or 30 recursions is child's play. > > Bob S > > >> On May 16, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: >> >> Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? >> If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. >> >> You may only have to do this a dozen or so times to find the exact line where your valid data begins. >> >> The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. >> >> Bob S >> >>> On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: >>> >>> I have a large chunk of data that I want to >>> search as quickly as possible. >>> >>> Unfortunately the part I want to search is the >>> middle third of the data. The other thirds at >>> the beginning and at the end are just junk and >>> slow down my search so I want to get rid of them. >>> >>> I don’t want to search line by line as that >>> takes way too long. >>> >>> There’s no unique character dividing any >>> of these data regions. >>> >>> What’s the best way to do this? >>> >>> Thanks in advance! >>> >>> Rick >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 bobsneidar at iotecdigital.com Mon May 16 19:53:32 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 23:53:32 +0000 Subject: Divide Large Data Blob? In-Reply-To: <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> Message-ID: <5C7E3D16-4A55-4296-94A2-279294C774D6@iotecdigital.com> OK so it appears there is a log2 property. The log2 of 1000 yields 9.965784 so I suppsoe if you round up, that would give you the maximum number of iterations to isolate a single line in a 1000 line sorted list. Bob S > On May 16, 2022, at 15:44 , Bob Sneidar via use-livecode wrote: > > So this has got me thinking. Apparently what I am calling Divide and Conquer is really called a binary sort. I have looked up on the interwebs to calculate the maximum number of iterations for a given number of values, but it seems that all the formulas offered up use functions for C. I am trying to figure out what a basic math formula for this is, given n values. > > Bob S > > >> On May 16, 2022, at 15:23 , Bob Sneidar via use-livecode wrote: >> >> A maximum of 7 recursions are necessary to isolate a single instance of 100 possible values. 1000 requires a maximum of 10. 10000 values requires 14. The idea is that for every factor of 10, you need roughly 3 more recursions. This of course assumes the data is sorted, which in your case is sorted into 3 containers. If you know the limits of how many lines can be garbage, and how many can be valid data, you narrow your scope significantly. >> >> Livecode is pretty damn quick at parsing this kind of data. If there are consistent delimiters (in this case a line break) then even 20 or 30 recursions is child's play. >> >> Bob S >> >> >>> On May 16, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: >>> >>> Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? >>> If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. >>> >>> You may only have to do this a dozen or so times to find the exact line where your valid data begins. >>> >>> The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. >>> >>> Bob S >>> >>>> On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: >>>> >>>> I have a large chunk of data that I want to >>>> search as quickly as possible. >>>> >>>> Unfortunately the part I want to search is the >>>> middle third of the data. The other thirds at >>>> the beginning and at the end are just junk and >>>> slow down my search so I want to get rid of them. >>>> >>>> I don’t want to search line by line as that >>>> takes way too long. >>>> >>>> There’s no unique character dividing any >>>> of these data regions. >>>> >>>> What’s the best way to do this? >>>> >>>> Thanks in advance! >>>> >>>> Rick >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 harrison at all-auctions.com Mon May 16 19:57:31 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 19:57:31 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: Hi Bob, I just need to make one pass at the data, so building an SQL database for it doesn’t make sense. I don’t have any definitive line for the boundary between good and bad data. It’s more of a consistent first guess used just to cut down on the amount of data to process. I start looking for the good data after about a third of it has passed by. Thanks, Rick > On May 16, 2022, at 6:00 PM, Bob Sneidar via use-livecode wrote: > > Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? > If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. > > You may only have to do this a dozen or so times to find the exact line where your valid data begins. > > The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. > > Bob S From harrison at all-auctions.com Mon May 16 20:00:10 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 20:00:10 -0400 Subject: Divide Large Data Blob? In-Reply-To: <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> Message-ID: <02C1BB8F-2D83-47CC-80D6-D0D50B772AC2@all-auctions.com> Hi Bob, Yes, I was looking into the binary sort idea. It’s too bad that isn’t just a built-in function for LC. I’m not sure it’s worth that kind of effort for my particular case. Thanks, Rick > On May 16, 2022, at 6:44 PM, Bob Sneidar via use-livecode wrote: > > So this has got me thinking. Apparently what I am calling Divide and Conquer is really called a binary sort. I have looked up on the interwebs to calculate the maximum number of iterations for a given number of values, but it seems that all the formulas offered up use functions for C. I am trying to figure out what a basic math formula for this is, given n values. > > Bob S > From harrison at all-auctions.com Mon May 16 20:00:53 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 20:00:53 -0400 Subject: Divide Large Data Blob? In-Reply-To: <5C7E3D16-4A55-4296-94A2-279294C774D6@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> <5C7E3D16-4A55-4296-94A2-279294C774D6@iotecdigital.com> Message-ID: Hi Bob, Nice to know this for the future. Thanks for your research! Rick > On May 16, 2022, at 7:53 PM, Bob Sneidar via use-livecode wrote: > > OK so it appears there is a log2 property. The log2 of 1000 yields 9.965784 so I suppsoe if you round up, that would give you the maximum number of iterations to isolate a single line in a 1000 line sorted list. > > Bob S From ambassador at fourthworld.com Mon May 16 20:19:17 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 16 May 2022 17:19:17 -0700 Subject: Divide Large Data Blob? In-Reply-To: <1C881FB6-15E2-4638-90D8-6D0711E44C1E@all-auctions.com> References: <1C881FB6-15E2-4638-90D8-6D0711E44C1E@all-auctions.com> Message-ID: <37aa8558-118d-ae25-5545-7b23d8d8edda@fourthworld.com> There may be other approaches, but without knowing what the data looks like, what the resulting index should look like, and how big the data is we'd just be guessing. -- Richard Gaskin Fourth World Systems Rick Harrison wrote: > Hi Richard, > > I was looking at the offset function and thinking about > the starting points. It still presents a looping problem > for me that Im trying to avoid. If other methods arent > more efficient I will play with it more. > > Thanks, > > Rick > >> On May 16, 2022, at 2:32 PM, Richard Gaskin via use-livecode wrote: >> >> The offset function has an optional third param for starting point, so setting that value to the number of bytes you want to skip would take you right where you want to be. Offset can then be used in a loop, updating the starting value as you go. Exiting the loop once your into the tail you don't want to index can be a simple if to escape the loop. >> >> There may also be options for using delimiters. What does the source data look like, and what should the resulting index look like? >> >> And the most central question with things like this: how large is "large"? > From jbv at souslelogo.com Tue May 17 02:35:46 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 17 May 2022 02:35:46 -0400 Subject: Nested loops Message-ID: <076ae7149b2e80a8f9658ce1dac0bdf7@souslelogo.com> Hi list, What is the best and most efficient way to write the following javascript loops in LC ? for (let i = 0, j = myArray.length - 1; i < myArray.length; j = i++) { } This goes beyond simple nested loops. So far, because of lack of time, I have pre-calculated the successive values of i and j, and have put them into lists of words : 0 1 2 3 4 5 5 0 1 2 3 4 it remains fast enough for what I need to do, but there must be a more elegant approach... Thanks. jbv From alex at tweedly.net Tue May 17 07:49:20 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 17 May 2022 12:49:20 +0100 Subject: Nested loops In-Reply-To: <076ae7149b2e80a8f9658ce1dac0bdf7@souslelogo.com> References: <076ae7149b2e80a8f9658ce1dac0bdf7@souslelogo.com> Message-ID: <3ceac61a-5ba8-ab53-f52b-5ba87f04bb1e@tweedly.net> Direct equivalent is probably repeat with i = 0 to myArrayLength-1    put i-1 into j    if j < 0 then put myArrayLength-1 into j    ..... end repeat OR, if you prefer a single-statement version repeat with i = 0 to myArrayLength-1    put (i + myArrayLength-1) mod myArrayLength  into j    ..... end repeat OR - most efficient but risky - i.e. a bad choice iMHO :-) put myArrayLength-1 into j repeat with i = 0 to myArrayLength-1    .....    put i into j   -- NB at the very end of the loop body end repeat This is risky in case you ever do a "next repeat" inside the loop body !! Alex. On 17/05/2022 07:35, jbv via use-livecode wrote: > Hi list, > > What is the best and most efficient way to write the following > javascript loops in LC ? > > for (let i = 0, j = myArray.length - 1; i < myArray.length; j = i++) { > } > > This goes beyond simple nested loops. > So far, because of lack of time, I have pre-calculated the successive > values of i and j, and have put them into lists of words : > 0 1 2 3 4 5 > 5 0 1 2 3 4 > it remains fast enough for what I need to do, but there must be a more > elegant approach... > > Thanks. > 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 devin_asay at byu.edu Tue May 17 13:28:59 2022 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 17 May 2022 17:28:59 +0000 Subject: Movie text tracks Message-ID: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Hi all, I’m resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesn’t seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. Anybody know how to show, or at least recover, old text tracks from video files? (Man I hate it when the technology gets *less* capable!) - Devin Devin Asay Office of Digital Humanities Brigham Young University From richmondmathewson at gmail.com Tue May 17 14:02:25 2022 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 17 May 2022 21:02:25 +0300 Subject: Movie text tracks In-Reply-To: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Message-ID: <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html Best, Richmond. On 17.05.22 20:28, Devin Asay via use-livecode wrote: > Hi all, > > Im resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesnt seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 17 16:16:58 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 May 2022 15:16:58 -0500 Subject: Movie text tracks In-Reply-To: <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> Message-ID: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: > Here's a thought: > > Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: > > https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Tue May 17 16:32:32 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 17 May 2022 16:32:32 -0400 Subject: Movie text tracks In-Reply-To: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Message-ID: <0a30cbae-39bb-0154-d94a-96814ad2a976@researchware.com> This is not any sort of immediate help, but a quick Google search suggests that both AVF (Apple Video Foundation) and MMF (Microsoft Media Foundation - the underlying framework for the player in Livecode 10) support classes and APIs to access multiple media tracks and metadata. I don't know about Mobil player support (or Linux), but now is the time while Livecode 10 is in developer preview stages to lobby Livecode Ltd to broaden the player object to support more cross-platform features. I suggest opening an enhancement request at https://quality.livecode.com/ for text track access (subtitles are an accessibility requirement on lots of media these days) for LC 10. On 5/17/2022 1:28 PM, Devin Asay via use-livecode wrote: > Hi all, > > Im resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesnt seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 18 04:40:04 2022 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 18 May 2022 10:40:04 +0200 Subject: Curved text possible? In-Reply-To: References: <4D1A0C7B-72A6-47C1-A625-7C69043496DD@gmail.com> <0D4E5104-2E75-4978-A083-BEE016B844B7@rogers.com> <8A2E9450-8F9F-4BB4-B235-7A353CC93EFB@iotecdigital.com> <004101d85b14$2ecba080$8c62e180$@net> Message-ID: Hi there, I posted a curved text example (with use of the browser widget) on the forum: https://forums.livecode.com/viewtopic.php?f=120&t=37027 It works ok but still not satisfied with transparency. Maybe someone has a better idea on how to do that? groeten, William Op do 28 apr. 2022 om 17:42 schreef William de Smet : > Thanks! > > I came up with sort of the same idea yesterday evening and I am > tetsting it now. > I load a local html file within the browser widget with circletype.js > added to the html file. > > A native textfield (and some extra code) writes back into the html file > and then I refresh the card. > A snapshot gives me the curved text. > > There is also Arctext,js that I want to test. > > I will come back later with my result. > > groeten, > > William > > > > > Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com>: > >> +1 >> >> 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 Bob Sneidar via use-livecode >> Sent: Thursday, April 28, 2022 11:18 AM >> To: How to use LiveCode >> Cc: Bob Sneidar >> Subject: Re: Curved text possible? >> >> Great ideas Martin. I'm going to grant you an honorary doctorate from the >> institute of Sly Laboratories. >> >> Bob S >> >> >> > On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode >> wrote: >> > >> > I was thinking that SVG might work as someone else has said. >> > >> > At first I thought you could create individual files for each letter and >> number and put the path for a letter into a svg widget which you could >> rotate or scale. >> > you would then have to calculate the angle of rotation and location of >> each svg widget on a path. But then when I tried rotating the svg widget >> its scale would change as it rotated because the bounds of the rect were >> changing. Then you would have to calculate the scale depending on the >> rotation angle and that seemed a bit much. >> > >> > I also thought you could import the svg file as an image and perhaps >> that >> would not have the odd behaviour when rotating. I did not try that >> though. >> > >> > Then I found this. >> > >> > https://css-tricks.com/snippets/svg/curved-text-along-path/ >> >> > >> > it shows how to use css to put text along a SVG path. At the LiveCode >> Dev >> Con there were a few unconventional uses of the browser widget beyond >> displaying webpages that add features that can add features that LiveCode >> does not have natively. So I thought maybe this is one of them. So what >> I >> thought could be done is display the above in a browser widget or, If you >> did not want to show the browser widget, use the browser widget to render >> the curved text, thentake a snapshot of the rendered text and then show >> that >> in an image. >> > >> > Not sure if it will work but the sessions at the conference have really >> got me thinking of new ways to leverage the technology in that widget. >> > >> > Martin Koob >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed May 18 05:40:25 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 18 May 2022 10:40:25 +0100 Subject: Curved text possible? In-Reply-To: References: Message-ID: There is a better way to do this using LCB. If you don’t mind waiting I can pull something up. I’m out of office at the moment so can’t get to my files. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 18 May 2022, at 09:40, William de Smet via use-livecode wrote: > > Hi there, > > I posted a curved text example (with use of the browser widget) on the > forum: > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > It works ok but still not satisfied with transparency. > Maybe someone has a better idea on how to do that? > > > > groeten, > > William > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet > : > >> Thanks! >> >> I came up with sort of the same idea yesterday evening and I am >> tetsting it now. >> I load a local html file within the browser widget with circletype.js >> added to the html file. >> >> A native textfield (and some extra code) writes back into the html file >> and then I refresh the card. >> A snapshot gives me the curved text. >> >> There is also Arctext,js that I want to test. >> >> I will come back later with my result. >> >> groeten, >> >> William >> >> >> >> >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com>: >> >>> +1 >>> >>> 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 Bob Sneidar via use-livecode >>> Sent: Thursday, April 28, 2022 11:18 AM >>> To: How to use LiveCode >>> Cc: Bob Sneidar >>> Subject: Re: Curved text possible? >>> >>> Great ideas Martin. I'm going to grant you an honorary doctorate from the >>> institute of Sly Laboratories. >>> >>> Bob S >>> >>> >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode >>> wrote: >>>> >>>> I was thinking that SVG might work as someone else has said. >>>> >>>> At first I thought you could create individual files for each letter and >>> number and put the path for a letter into a svg widget which you could >>> rotate or scale. >>>> you would then have to calculate the angle of rotation and location of >>> each svg widget on a path. But then when I tried rotating the svg widget >>> its scale would change as it rotated because the bounds of the rect were >>> changing. Then you would have to calculate the scale depending on the >>> rotation angle and that seemed a bit much. >>>> >>>> I also thought you could import the svg file as an image and perhaps >>> that >>> would not have the odd behaviour when rotating. I did not try that >>> though. >>>> >>>> Then I found this. >>>> >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ >>> >>>> >>>> it shows how to use css to put text along a SVG path. At the LiveCode >>> Dev >>> Con there were a few unconventional uses of the browser widget beyond >>> displaying webpages that add features that can add features that LiveCode >>> does not have natively. So I thought maybe this is one of them. So what >>> I >>> thought could be done is display the above in a browser widget or, If you >>> did not want to show the browser widget, use the browser widget to render >>> the curved text, thentake a snapshot of the rendered text and then show >>> that >>> in an image. >>>> >>>> Not sure if it will work but the sessions at the conference have really >>> got me thinking of new ways to leverage the technology in that widget. >>>> >>>> Martin Koob >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 williamdesmet at gmail.com Wed May 18 07:57:55 2022 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 18 May 2022 13:57:55 +0200 Subject: Curved text possible? In-Reply-To: References: Message-ID: @Sean: Yes, a widget would be the best thing of course. Much appreciated! groeten, William Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < use-livecode at lists.runrev.com>: > There is a better way to do this using LCB. If you don’t mind waiting I > can pull something up. I’m out of office at the moment so can’t get to my > files. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi there, > > > > I posted a curved text example (with use of the browser widget) on the > > forum: > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > It works ok but still not satisfied with transparency. > > Maybe someone has a better idea on how to do that? > > > > > > > > groeten, > > > > William > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > williamdesmet at gmail.com > >> : > > > >> Thanks! > >> > >> I came up with sort of the same idea yesterday evening and I am > >> tetsting it now. > >> I load a local html file within the browser widget with circletype.js > >> added to the html file. > >> > >> A native textfield (and some extra code) writes back into the html file > >> and then I refresh the card. > >> A snapshot gives me the curved text. > >> > >> There is also Arctext,js that I want to test. > >> > >> I will come back later with my result. > >> > >> groeten, > >> > >> William > >> > >> > >> > >> > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > >> use-livecode at lists.runrev.com>: > >> > >>> +1 > >>> > >>> 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 Bob Sneidar via use-livecode > >>> Sent: Thursday, April 28, 2022 11:18 AM > >>> To: How to use LiveCode > >>> Cc: Bob Sneidar > >>> Subject: Re: Curved text possible? > >>> > >>> Great ideas Martin. I'm going to grant you an honorary doctorate from > the > >>> institute of Sly Laboratories. > >>> > >>> Bob S > >>> > >>> > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > >>> wrote: > >>>> > >>>> I was thinking that SVG might work as someone else has said. > >>>> > >>>> At first I thought you could create individual files for each letter > and > >>> number and put the path for a letter into a svg widget which you could > >>> rotate or scale. > >>>> you would then have to calculate the angle of rotation and location of > >>> each svg widget on a path. But then when I tried rotating the svg > widget > >>> its scale would change as it rotated because the bounds of the rect > were > >>> changing. Then you would have to calculate the scale depending on the > >>> rotation angle and that seemed a bit much. > >>>> > >>>> I also thought you could import the svg file as an image and perhaps > >>> that > >>> would not have the odd behaviour when rotating. I did not try that > >>> though. > >>>> > >>>> Then I found this. > >>>> > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > >>> > >>>> > >>>> it shows how to use css to put text along a SVG path. At the LiveCode > >>> Dev > >>> Con there were a few unconventional uses of the browser widget beyond > >>> displaying webpages that add features that can add features that > LiveCode > >>> does not have natively. So I thought maybe this is one of them. So > what > >>> I > >>> thought could be done is display the above in a browser widget or, If > you > >>> did not want to show the browser widget, use the browser widget to > render > >>> the curved text, thentake a snapshot of the rendered text and then show > >>> that > >>> in an image. > >>>> > >>>> Not sure if it will work but the sessions at the conference have > really > >>> got me thinking of new ways to leverage the technology in that widget. > >>>> > >>>> Martin Koob > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 sean at pidigital.co.uk Wed May 18 08:15:12 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 18 May 2022 13:15:12 +0100 Subject: Curved text possible? In-Reply-To: References: Message-ID: Actually, HH had put up this on his site and kept open for us kindly. https://hh.on-rev.com/widgets/svgtext.html At the bottom he describes that it is possible to use SVG to define paths for the text. How good are you at LCB in being able to manipulate what he had achieved here? Sean On Wed, 18 May 2022 at 12:57, William de Smet via use-livecode < use-livecode at lists.runrev.com> wrote: > @Sean: Yes, a widget would be the best thing of course. > Much appreciated! > > groeten, > > William > > > > > Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < > use-livecode at lists.runrev.com>: > > > There is a better way to do this using LCB. If you don’t mind waiting I > > can pull something up. I’m out of office at the moment so can’t get to my > > files. > > > > Sean Cole > > Pi Digital Productions Ltd > > > > eMail Ts & Cs > > > > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Hi there, > > > > > > I posted a curved text example (with use of the browser widget) on the > > > forum: > > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > > > It works ok but still not satisfied with transparency. > > > Maybe someone has a better idea on how to do that? > > > > > > > > > > > > groeten, > > > > > > William > > > > > > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > > williamdesmet at gmail.com > > >> : > > > > > >> Thanks! > > >> > > >> I came up with sort of the same idea yesterday evening and I am > > >> tetsting it now. > > >> I load a local html file within the browser widget with circletype.js > > >> added to the html file. > > >> > > >> A native textfield (and some extra code) writes back into the html > file > > >> and then I refresh the card. > > >> A snapshot gives me the curved text. > > >> > > >> There is also Arctext,js that I want to test. > > >> > > >> I will come back later with my result. > > >> > > >> groeten, > > >> > > >> William > > >> > > >> > > >> > > >> > > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > > >> use-livecode at lists.runrev.com>: > > >> > > >>> +1 > > >>> > > >>> 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 Bob Sneidar via use-livecode > > >>> Sent: Thursday, April 28, 2022 11:18 AM > > >>> To: How to use LiveCode > > >>> Cc: Bob Sneidar > > >>> Subject: Re: Curved text possible? > > >>> > > >>> Great ideas Martin. I'm going to grant you an honorary doctorate from > > the > > >>> institute of Sly Laboratories. > > >>> > > >>> Bob S > > >>> > > >>> > > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > > >>> wrote: > > >>>> > > >>>> I was thinking that SVG might work as someone else has said. > > >>>> > > >>>> At first I thought you could create individual files for each letter > > and > > >>> number and put the path for a letter into a svg widget which you > could > > >>> rotate or scale. > > >>>> you would then have to calculate the angle of rotation and location > of > > >>> each svg widget on a path. But then when I tried rotating the svg > > widget > > >>> its scale would change as it rotated because the bounds of the rect > > were > > >>> changing. Then you would have to calculate the scale depending on the > > >>> rotation angle and that seemed a bit much. > > >>>> > > >>>> I also thought you could import the svg file as an image and perhaps > > >>> that > > >>> would not have the odd behaviour when rotating. I did not try that > > >>> though. > > >>>> > > >>>> Then I found this. > > >>>> > > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > > >>> > > >>>> > > >>>> it shows how to use css to put text along a SVG path. At the > LiveCode > > >>> Dev > > >>> Con there were a few unconventional uses of the browser widget beyond > > >>> displaying webpages that add features that can add features that > > LiveCode > > >>> does not have natively. So I thought maybe this is one of them. So > > what > > >>> I > > >>> thought could be done is display the above in a browser widget or, > If > > you > > >>> did not want to show the browser widget, use the browser widget to > > render > > >>> the curved text, thentake a snapshot of the rendered text and then > show > > >>> that > > >>> in an image. > > >>>> > > >>>> Not sure if it will work but the sessions at the conference have > > really > > >>> got me thinking of new ways to leverage the technology in that > widget. > > >>>> > > >>>> Martin Koob > > >>> > > >>> > > >>> _______________________________________________ > > >>> use-livecode mailing list > > >>> use-livecode 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 18 11:24:15 2022 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 18 May 2022 17:24:15 +0200 Subject: Curved text possible? In-Reply-To: References: Message-ID: Hi Sean, Incredible to see what HH did. That is way over my head. And so is LCB. groeten, William Op wo 18 mei 2022 om 14:16 schreef Sean Cole via use-livecode < use-livecode at lists.runrev.com>: > Actually, HH had put up this on his site and kept open for us kindly. > https://hh.on-rev.com/widgets/svgtext.html > > At the bottom he describes that it is possible to use SVG to define paths > for the text. How good are you at LCB in being able to manipulate what he > had achieved here? > > Sean > > > On Wed, 18 May 2022 at 12:57, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > @Sean: Yes, a widget would be the best thing of course. > > Much appreciated! > > > > groeten, > > > > William > > > > > > > > > > Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < > > use-livecode at lists.runrev.com>: > > > > > There is a better way to do this using LCB. If you don’t mind waiting I > > > can pull something up. I’m out of office at the moment so can’t get to > my > > > files. > > > > > > Sean Cole > > > Pi Digital Productions Ltd > > > > > > eMail Ts & Cs > > > > > > > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > Hi there, > > > > > > > > I posted a curved text example (with use of the browser widget) on > the > > > > forum: > > > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > > > > > It works ok but still not satisfied with transparency. > > > > Maybe someone has a better idea on how to do that? > > > > > > > > > > > > > > > > groeten, > > > > > > > > William > > > > > > > > > > > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > > > williamdesmet at gmail.com > > > >> : > > > > > > > >> Thanks! > > > >> > > > >> I came up with sort of the same idea yesterday evening and I am > > > >> tetsting it now. > > > >> I load a local html file within the browser widget with > circletype.js > > > >> added to the html file. > > > >> > > > >> A native textfield (and some extra code) writes back into the html > > file > > > >> and then I refresh the card. > > > >> A snapshot gives me the curved text. > > > >> > > > >> There is also Arctext,js that I want to test. > > > >> > > > >> I will come back later with my result. > > > >> > > > >> groeten, > > > >> > > > >> William > > > >> > > > >> > > > >> > > > >> > > > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > > > >> use-livecode at lists.runrev.com>: > > > >> > > > >>> +1 > > > >>> > > > >>> 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 Bob Sneidar via use-livecode > > > >>> Sent: Thursday, April 28, 2022 11:18 AM > > > >>> To: How to use LiveCode > > > >>> Cc: Bob Sneidar > > > >>> Subject: Re: Curved text possible? > > > >>> > > > >>> Great ideas Martin. I'm going to grant you an honorary doctorate > from > > > the > > > >>> institute of Sly Laboratories. > > > >>> > > > >>> Bob S > > > >>> > > > >>> > > > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > > > >>> wrote: > > > >>>> > > > >>>> I was thinking that SVG might work as someone else has said. > > > >>>> > > > >>>> At first I thought you could create individual files for each > letter > > > and > > > >>> number and put the path for a letter into a svg widget which you > > could > > > >>> rotate or scale. > > > >>>> you would then have to calculate the angle of rotation and > location > > of > > > >>> each svg widget on a path. But then when I tried rotating the svg > > > widget > > > >>> its scale would change as it rotated because the bounds of the rect > > > were > > > >>> changing. Then you would have to calculate the scale depending on > the > > > >>> rotation angle and that seemed a bit much. > > > >>>> > > > >>>> I also thought you could import the svg file as an image and > perhaps > > > >>> that > > > >>> would not have the odd behaviour when rotating. I did not try that > > > >>> though. > > > >>>> > > > >>>> Then I found this. > > > >>>> > > > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > > > >>> > > > >>>> > > > >>>> it shows how to use css to put text along a SVG path. At the > > LiveCode > > > >>> Dev > > > >>> Con there were a few unconventional uses of the browser widget > beyond > > > >>> displaying webpages that add features that can add features that > > > LiveCode > > > >>> does not have natively. So I thought maybe this is one of them. > So > > > what > > > >>> I > > > >>> thought could be done is display the above in a browser widget or, > > If > > > you > > > >>> did not want to show the browser widget, use the browser widget to > > > render > > > >>> the curved text, thentake a snapshot of the rendered text and then > > show > > > >>> that > > > >>> in an image. > > > >>>> > > > >>>> Not sure if it will work but the sessions at the conference have > > > really > > > >>> got me thinking of new ways to leverage the technology in that > > widget. > > > >>>> > > > >>>> Martin Koob > > > >>> > > > >>> > > > >>> _______________________________________________ > > > >>> use-livecode mailing list > > > >>> use-livecode 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 > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 harrison at all-auctions.com Wed May 18 12:23:22 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:23:22 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: Message-ID: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> This works: set the HTMLText of field "HTMLTextField1" of this card to URL VarURL This doesn’t work: set the HTMLText of VarHTMLText to URL VarURL (The syntax is accepted fine, but it throws the following error at execution time.) Chunk: error in object expression This works: get the effective HTMLText of field "HTMLTextField1" of this card This doesn’t work: get the effective HTMLText of VarHTMLText2 (The syntax is accepted fine, but it throws the following error at execution time.) Chunk: error in object expression Why? Thanks for your insight in advance! Rick From tore.nilsen at me.com Wed May 18 12:28:32 2022 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 18 May 2022 18:28:32 +0200 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: <004738FF-6E60-487D-930F-0888444C3E3E@me.com> I would think it is because the htmlText is a property of a field. It is one of the properties that it inherited by any field. The variable does not have this property. Best regards Tore Nilsen > 18. mai 2022 kl. 18:23 skrev Rick Harrison via use-livecode : > > This works: > > set the HTMLText of field "HTMLTextField1" of this card to URL VarURL > > > This doesn’t work: > > set the HTMLText of VarHTMLText to URL VarURL > > (The syntax is accepted fine, but it throws the following error at execution time.) > > Chunk: error in object expression > > > > This works: > > get the effective HTMLText of field "HTMLTextField1" of this card > > > This doesn’t work: > > get the effective HTMLText of VarHTMLText2 > > (The syntax is accepted fine, but it throws the following error at execution time.) > > Chunk: error in object expression > > > Why? > > Thanks for your insight in advance! > > Rick > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 18 12:29:27 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 18 May 2022 18:29:27 +0200 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: Hi Rick, > Am 18.05.2022 um 18:23 schrieb Rick Harrison via use-livecode : > > This works: > set the HTMLText of field "HTMLTextField1" of this card to URL VarURL > > This doesn’t work: > set the HTMLText of VarHTMLText to URL VarURL > (The syntax is accepted fine, but it throws the following error at execution time.) > Chunk: error in object expression > > This works: > get the effective HTMLText of field "HTMLTextField1" of this card > > This doesn’t work: > get the effective HTMLText of VarHTMLText2 > (The syntax is accepted fine, but it throws the following error at execution time.) > Chunk: error in object expression > > Why? > Thanks for your insight in advance! > > Rick HTMLTEXT is a property of FIELDS, variables do not have this! Presumed VarHTMLText is a variable. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed May 18 12:38:58 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 May 2022 16:38:58 +0000 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: <761B16A6-F934-4366-8676-5693009B0B6B@iotecdigital.com> If I may add something to this, the reason why the syntax did not throw an error at compile time is because the compiler does not know whether or not VarHTMLText is a variable that contains the value "field HTMLTextField1" or the name of any object to be precise. If it did then it would be valid syntax. I do this all the time for DataGrids, as I can have datagrids on different cards in different stacks with the same name, eg. "dgCustomers". So I script put the long id of group "dgCustomers" into tGridID Now I can script put the dgHilitedIndex of tGridID into tIndex Bob S > On May 18, 2022, at 09:23 , Rick Harrison via use-livecode wrote: > > This works: > > set the HTMLText of field "HTMLTextField1" of this card to URL VarURL > > > This doesn’t work: > > set the HTMLText of VarHTMLText to URL VarURL > > (The syntax is accepted fine, but it throws the following error at execution time.) > > Chunk: error in object expression From harrison at all-auctions.com Wed May 18 12:40:21 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:40:21 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <004738FF-6E60-487D-930F-0888444C3E3E@me.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <004738FF-6E60-487D-930F-0888444C3E3E@me.com> Message-ID: Thanks! It’s a bummer though, because variables are much faster. Rick > On May 18, 2022, at 12:28 PM, Tore Nilsen via use-livecode wrote: > > I would think it is because the htmlText is a property of a field. It is one of the properties that it inherited by any field. The variable does not have this property. > > Best regards > Tore Nilsen From harrison at all-auctions.com Wed May 18 12:43:24 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:43:24 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> Hi Klaus, Thanks for getting back to me on this. That explains the problem. I wish it worked with variables though because execution would be faster. Oh well, at least it will do for now until we have the LC 10 compiler which will make it all faster! Rick > On May 18, 2022, at 12:29 PM, Klaus major-k via use-livecode wrote: > > HTMLTEXT is a property of FIELDS, variables do not have this! > Presumed VarHTMLText is a variable. > > > Best > > Klaus From bobsneidar at iotecdigital.com Wed May 18 12:43:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 May 2022 16:43:30 +0000 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <004738FF-6E60-487D-930F-0888444C3E3E@me.com> Message-ID: Can't you just put URL VarURL into VarHTMLText ? Bob S > On May 18, 2022, at 09:40 , Rick Harrison via use-livecode wrote: > > Thanks! It’s a bummer though, > because variables are much faster. > > Rick > >> On May 18, 2022, at 12:28 PM, Tore Nilsen via use-livecode wrote: >> >> I would think it is because the htmlText is a property of a field. It is one of the properties that it inherited by any field. The variable does not have this property. >> >> Best regards >> Tore Nilsen > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 18 12:49:30 2022 From: mark at livecode.com (Mark Waddingham) Date: Wed, 18 May 2022 17:49:30 +0100 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> Message-ID: <8cefcd66b81a956ca5edeb5d2cb2c07a@livecode.com> On 2022-05-18 17:43, Rick Harrison via use-livecode wrote: > I wish it worked with variables though > because execution would be faster. If variables could manipulate styled text (aka htmlText) then they wouldn't be any faster than fields ;) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Wed May 18 12:53:35 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 18 May 2022 09:53:35 -0700 Subject: Movie text tracks In-Reply-To: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> References: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Message-ID: <747ad1eb-9942-e3c2-5d53-7d4eb0ae1e12@fourthworld.com> Good to see you here, Devin. If your app can handle the RAM hit of embedding a browser app instance with the Browser Widget, and if you can extract the text track info from QT's proprietary format, HTML supports text tracks nicely via the WebVTT standard: https://www.3playmedia.com/learn/how-to-guides/html5-video-captioning/ -- Richard Gaskin Fourth World Systems Devin Asay wrote: > Im resurrecting some QuickTime movies from years ago, and some of > them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track > with `put the tracks of player 1`. But there doesnt seem to be a > way anymore to show text tracks, either in the player object or in > QT Player. All of the hits I get on the topic in a DuckDuckGo search > are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from > video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin From harrison at all-auctions.com Wed May 18 12:58:59 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:58:59 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <004738FF-6E60-487D-930F-0888444C3E3E@me.com> Message-ID: <8AC8EC22-E34C-4EAB-9A10-FF8FF2994A58@all-auctions.com> Hi Bob, That might be what I need, but I’ll have to look at the resulting code to see if that will work. Thanks, Rick > On May 18, 2022, at 12:43 PM, Bob Sneidar via use-livecode wrote: > > put URL VarURL into VarHTMLText From paul at researchware.com Wed May 18 13:38:52 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 13:38:52 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: Instead of: set the HTMLText of VarHTMLText to URL VarURL Use: set the HTMLText of the templateField to URL VarURL And instead of: get the effective HTMLText of VarHTMLText2 Use: get the effective HTMLText of the templateField From harrison at all-auctions.com Wed May 18 13:46:48 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 13:46:48 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: Hi Paul, Thanks for this. I’ll keep this in mind for the future. I found that Bob’s simple suggestion of: put URL VarURL into VarHTMLText to work the best for me. Thanks again! Rick > On May 18, 2022, at 1:38 PM, Paul Dupuis via use-livecode wrote: > > Instead of: > > set the HTMLText of VarHTMLText to URL VarURL > > Use: > > set the HTMLText of the templateField to URL VarURL > > And instead of: > > get the effective HTMLText of VarHTMLText2 > > Use: > > get the effective HTMLText of the templateField > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 18 14:58:05 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 May 2022 18:58:05 +0000 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <8cefcd66b81a956ca5edeb5d2cb2c07a@livecode.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> <8cefcd66b81a956ca5edeb5d2cb2c07a@livecode.com> Message-ID: Haha! I forget sometimes that everything is just some bit of memory. I keep thinking for example that if I store values I want in a script local that it will somehow be much faster than a custom property of an object, but of course that can only be true if the code for accessing custom properties was not very efficient. Bob S > On May 18, 2022, at 09:49 , Mark Waddingham via use-livecode wrote: > > On 2022-05-18 17:43, Rick Harrison via use-livecode wrote: >> I wish it worked with variables though >> because execution would be faster. > > If variables could manipulate styled text (aka htmlText) then they wouldn't be any faster than fields ;) > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps From matthias_livecode_150811 at m-r-d.de Wed May 18 15:54:39 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 18 May 2022 21:54:39 +0200 Subject: Where is the pdf external in LC 9.6 and 10? Message-ID: Hi all. I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? Am i am missing something? I do not remember that XPDF was discontinued. Was there any notification about it? Regards, Matthias From ambassador at fourthworld.com Tue May 17 17:00:57 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 17 May 2022 14:00:57 -0700 Subject: Movie text tracks In-Reply-To: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Message-ID: Good to see you here, Devin. If your app can handle the RAM hit of embedding a browser app instance with the Browser Widget, and if you can extract the text track info from QT's proprietary format, HTML supports text tracks nicely via the WebVTT standard: https://www.3playmedia.com/learn/how-to-guides/html5-video-captioning/ -- Richard Gaskin Fourth World Systems Devin Asay wrote: > Im resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesnt seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin From devin_asay at byu.edu Wed May 18 16:36:58 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 18 May 2022 20:36:58 +0000 Subject: Movie text tracks In-Reply-To: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Message-ID: Hi all, Thanks for the advice. I wanted to follow up with what I eventually ended up doing. So, both Jacque’s and Richmond’s suggestions were good, but too much work for just peeking at some text tracks. But they got me thinking: Hey, Windows 10 actually still runs QT 7, and I have an old QT Pro license key for Windows. I wonder if it still works. (Spoiler alert—it does!) So I was at least able to open up the movie files. Score 1 for Microsoft and backward compatibility! And there, magically, were my text tracks! Paul, I think your suggestion to encourage LiveCode to support text track access that exists in the modern AV frameworks is a great one. Maybe timely, now that the mothership has asked for top 10 bug fix requests again. Richard, thanks for pointing me in the direction of HTML 5. It set me on a little journey to educate myself on the state of video captioning in *this* century! Definitely glad I took that little detour and learned about WebVTT captioning format. Thanks again for the help and suggestions. This community never disappoints! - Devin On May 17, 2022, at 2:16 PM, J. Landman Gay via use-livecode > wrote: Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html -- 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 Devin Asay Office of Digital Humanities Brigham Young University From paul at researchware.com Wed May 18 16:44:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 16:44:31 -0400 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. You can copy it from the 9.6.5 of earlier to the ccorresponding folder for LC 9.6.7. For example, on Windows it is C:\Program Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45 Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7 -- Paul On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote: > Hi all. > > I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? > > Am i am missing something? > > I do not remember that XPDF was discontinued. Was there any notification about it? > > 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 devin_asay at byu.edu Wed May 18 16:49:39 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 18 May 2022 20:49:39 +0000 Subject: Movie text tracks In-Reply-To: References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Message-ID: <697397D1-D0F5-41F5-9200-3BFE4E2F821A@byu.edu> Sorry, I left out the punch line. My original need was simply to extract the text tracks from the old .mov files. It turns out you can do that, after a fashion, with QT Pro, but it comes out with lots of binary cruft. I found out you can also do this with ffmpeg, the Swiss Army Knife of video tools. This website explains how: https://forum.videohelp.com/threads/403944-Extract-and-convert-QuickTime-7-Pro-TextTracks Neither method was perfect, but both were good enough for what I wanted. - Devin On May 18, 2022, at 2:36 PM, Devin Asay via use-livecode > wrote: Hi all, Thanks for the advice. I wanted to follow up with what I eventually ended up doing. So, both Jacque’s and Richmond’s suggestions were good, but too much work for just peeking at some text tracks. But they got me thinking: Hey, Windows 10 actually still runs QT 7, and I have an old QT Pro license key for Windows. I wonder if it still works. (Spoiler alert—it does!) So I was at least able to open up the movie files. Score 1 for Microsoft and backward compatibility! And there, magically, were my text tracks! Paul, I think your suggestion to encourage LiveCode to support text track access that exists in the modern AV frameworks is a great one. Maybe timely, now that the mothership has asked for top 10 bug fix requests again. Richard, thanks for pointing me in the direction of HTML 5. It set me on a little journey to educate myself on the state of video captioning in *this* century! Definitely glad I took that little detour and learned about WebVTT captioning format. Thanks again for the help and suggestions. This community never disappoints! - Devin On May 17, 2022, at 2:16 PM, J. Landman Gay via use-livecode > wrote: Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html -- 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 Devin Asay Office of Digital Humanities Brigham Young University _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From paul at researchware.com Wed May 18 16:50:11 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 16:50:11 -0400 Subject: IDE Property Editor for Custom Properties error Message-ID: This bug probably won't impact many people, but I just reported bug https://quality.livecode.com/show_bug.cgi?id=23712 In older versions of LC you could have custom property keys that had commas in them, such as a key like "topic,subtopic" for a online help system. The current (and recent) property inspect tries to convert custom property keys with a comma into arrays! Just thought I would raise this on the list for anyone else who might be impacted. From klaus at major-k.de Wed May 18 16:55:20 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 18 May 2022 22:55:20 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: Hi Paul, > Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : > > It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? > You can copy it from the 9.6.5 of earlier to the ccorresponding folder for LC 9.6.7. For example, on Windows it is C:\Program Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45 > Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7 > > -- Paul > > On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote: >> Hi all. >> >> I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? >> >> Am i am missing something? >> >> I do not remember that XPDF was discontinued. Was there any notification about it? >> >> Regards, >> Matthias -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From matthias_livecode_150811 at m-r-d.de Wed May 18 16:59:24 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 18 May 2022 22:59:24 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: Ah thanks, Paul. I copied already the xpdf from an older LC version to LC 10DP3. But good to know that it will be back. XPDF allows me to get the imagedata of the currently rendered page and 'export' that as image. Matthias > Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : > > It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. > > You can copy it from the 9.6.5 of earlier to the ccorresponding folder for LC 9.6.7. For example, on Windows it is C:\Program Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45 > > Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7 > > > -- Paul > > On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote: >> Hi all. >> >> I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? >> >> Am i am missing something? >> >> I do not remember that XPDF was discontinued. Was there any notification about it? >> >> 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 Wed May 18 17:19:33 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 17:19:33 -0400 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: > Hi Paul, > >> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : >> >> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. > I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? > > I can't see how Livecode can replace the XPDF external with the PDF Widget UNTIL the PDF Widget provided all the functions the External does (and it does not). Well, of course they could drop the external even if it does a bunch of thinsg people depend on that the Widget does not, but it would just be bad of them to do so! From klaus at major-k.de Thu May 19 03:45:10 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 May 2022 09:45:10 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> References: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> Message-ID: Hi Paul, > Am 18.05.2022 um 23:19 schrieb Paul Dupuis via use-livecode : > > On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: >> Hi Paul, >> >>> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : >>> >>> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. >> I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? > > I can't see how Livecode can replace the XPDF external with the PDF Widget UNTIL the PDF Widget provided all the functions the External does (and it does not). Well, of course they could drop the external even if it does a bunch of thinsg people depend on that the Widget does not, but it would just be bad of them to do so! OK, my fault, obviously I don't know exactly what the external is and can do. 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 Thu May 19 03:56:18 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 May 2022 09:56:18 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> Message-ID: <07CCFFED-5445-4EFE-A593-C5E1433377DB@major-k.de> Hi Paul, > Am 19.05.2022 um 09:45 schrieb Klaus major-k via use-livecode : > Hi Paul, >> Am 18.05.2022 um 23:19 schrieb Paul Dupuis via use-livecode : >> On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: >>> Hi Paul, >>>> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : >>>> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. >>> I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? >> I can't see how Livecode can replace the XPDF external with the PDF Widget UNTIL the PDF Widget provided all the functions the External does (and it does not). Well, of course they could drop the external even if it does a bunch of thinsg people depend on that the Widget does not, but it would just be bad of them to do so! > OK, my fault, obviously I don't know exactly what the external is and can do. this (scroll to bottom) is what the PDF widget functionality provides: Is it different from the XPDF external? 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 Thu May 19 12:03:51 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 19 May 2022 19:03:51 +0300 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: <07CCFFED-5445-4EFE-A593-C5E1433377DB@major-k.de> References: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> <07CCFFED-5445-4EFE-A593-C5E1433377DB@major-k.de> Message-ID: Hello all, We will bring back XPDF, since it has some functionality that the PDF widget does not have, at least as of now :) https://quality.livecode.com/show_bug.cgi?id=23578 Kind regards, Panos -- On Thu, 19 May 2022 at 10:56, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Paul, > > > Am 19.05.2022 um 09:45 schrieb Klaus major-k via use-livecode < > use-livecode at lists.runrev.com>: > > Hi Paul, > >> Am 18.05.2022 um 23:19 schrieb Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com>: > >> On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: > >>> Hi Paul, > >>>> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com>: > >>>> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They > (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable > and further releases in the 9.6.x series. > >>> I thought this has been replaced with the PDF widget, which is only > available in the "Pro Pack" addon? > >> I can't see how Livecode can replace the XPDF external with the PDF > Widget UNTIL the PDF Widget provided all the functions the External does > (and it does not). Well, of course they could drop the external even if it > does a bunch of thinsg people depend on that the Widget does not, but it > would just be bad of them to do so! > > OK, my fault, obviously I don't know exactly what the external is and > can do. > > this (scroll to bottom) is what the PDF widget functionality provides: > > Is it different from the XPDF external? > > > 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 richmondmathewson at gmail.com Fri May 20 03:20:11 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 20 May 2022 10:20:11 +0300 Subject: Curved text possible? In-Reply-To: References: Message-ID: If that is over your head, use my method, which you can find over on the forums. All 'pure' LiveCode. Best, Richmond. On Wed, 18 May 2022, 18:26 William de Smet via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi Sean, > > Incredible to see what HH did. > That is way over my head. > And so is LCB. > > > > > groeten, > > William > > > > > Op wo 18 mei 2022 om 14:16 schreef Sean Cole via use-livecode < > use-livecode at lists.runrev.com>: > > > Actually, HH had put up this on his site and kept open for us kindly. > > https://hh.on-rev.com/widgets/svgtext.html > > > > At the bottom he describes that it is possible to use SVG to define paths > > for the text. How good are you at LCB in being able to manipulate what he > > had achieved here? > > > > Sean > > > > > > On Wed, 18 May 2022 at 12:57, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > @Sean: Yes, a widget would be the best thing of course. > > > Much appreciated! > > > > > > groeten, > > > > > > William > > > > > > > > > > > > > > > Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < > > > use-livecode at lists.runrev.com>: > > > > > > > There is a better way to do this using LCB. If you don’t mind > waiting I > > > > can pull something up. I’m out of office at the moment so can’t get > to > > my > > > > files. > > > > > > > > Sean Cole > > > > Pi Digital Productions Ltd > > > > > > > > eMail Ts & Cs > > > > > > > > > > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > > Hi there, > > > > > > > > > > I posted a curved text example (with use of the browser widget) on > > the > > > > > forum: > > > > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > > > > > > > It works ok but still not satisfied with transparency. > > > > > Maybe someone has a better idea on how to do that? > > > > > > > > > > > > > > > > > > > > groeten, > > > > > > > > > > William > > > > > > > > > > > > > > > > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > > > > williamdesmet at gmail.com > > > > >> : > > > > > > > > > >> Thanks! > > > > >> > > > > >> I came up with sort of the same idea yesterday evening and I am > > > > >> tetsting it now. > > > > >> I load a local html file within the browser widget with > > circletype.js > > > > >> added to the html file. > > > > >> > > > > >> A native textfield (and some extra code) writes back into the html > > > file > > > > >> and then I refresh the card. > > > > >> A snapshot gives me the curved text. > > > > >> > > > > >> There is also Arctext,js that I want to test. > > > > >> > > > > >> I will come back later with my result. > > > > >> > > > > >> groeten, > > > > >> > > > > >> William > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode > < > > > > >> use-livecode at lists.runrev.com>: > > > > >> > > > > >>> +1 > > > > >>> > > > > >>> 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 Bob Sneidar via use-livecode > > > > >>> Sent: Thursday, April 28, 2022 11:18 AM > > > > >>> To: How to use LiveCode > > > > >>> Cc: Bob Sneidar > > > > >>> Subject: Re: Curved text possible? > > > > >>> > > > > >>> Great ideas Martin. I'm going to grant you an honorary doctorate > > from > > > > the > > > > >>> institute of Sly Laboratories. > > > > >>> > > > > >>> Bob S > > > > >>> > > > > >>> > > > > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > > > > >>> wrote: > > > > >>>> > > > > >>>> I was thinking that SVG might work as someone else has said. > > > > >>>> > > > > >>>> At first I thought you could create individual files for each > > letter > > > > and > > > > >>> number and put the path for a letter into a svg widget which you > > > could > > > > >>> rotate or scale. > > > > >>>> you would then have to calculate the angle of rotation and > > location > > > of > > > > >>> each svg widget on a path. But then when I tried rotating the > svg > > > > widget > > > > >>> its scale would change as it rotated because the bounds of the > rect > > > > were > > > > >>> changing. Then you would have to calculate the scale depending on > > the > > > > >>> rotation angle and that seemed a bit much. > > > > >>>> > > > > >>>> I also thought you could import the svg file as an image and > > perhaps > > > > >>> that > > > > >>> would not have the odd behaviour when rotating. I did not try > that > > > > >>> though. > > > > >>>> > > > > >>>> Then I found this. > > > > >>>> > > > > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > > > > >>> > > > > >>>> > > > > >>>> it shows how to use css to put text along a SVG path. At the > > > LiveCode > > > > >>> Dev > > > > >>> Con there were a few unconventional uses of the browser widget > > beyond > > > > >>> displaying webpages that add features that can add features that > > > > LiveCode > > > > >>> does not have natively. So I thought maybe this is one of them. > > So > > > > what > > > > >>> I > > > > >>> thought could be done is display the above in a browser widget > or, > > > If > > > > you > > > > >>> did not want to show the browser widget, use the browser widget > to > > > > render > > > > >>> the curved text, thentake a snapshot of the rendered text and > then > > > show > > > > >>> that > > > > >>> in an image. > > > > >>>> > > > > >>>> Not sure if it will work but the sessions at the conference have > > > > really > > > > >>> got me thinking of new ways to leverage the technology in that > > > widget. > > > > >>>> > > > > >>>> Martin Koob > > > > >>> > > > > >>> > > > > >>> _______________________________________________ > > > > >>> use-livecode mailing list > > > > >>> use-livecode 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 > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 jbv at souslelogo.com Fri May 20 06:34:12 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 20 May 2022 06:34:12 -0400 Subject: Maximum length of mySQL request ? Message-ID: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Hi list, Is there a maximum length limit for mySQL requests ? I don't mean the results returned by mySQL, but the request itself. For instance, I have a table with 180000 entries and counting, and I will need to send requests such as : SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id = 34895... and at times the request might concern 100 ids or even more. I am not too concerned about execution speed, as id is a unique key, but rather for the request itself : I wonder if it might be truncated if too long... Or perhaps a better and safer practice would be to break it into a serie of shorter successive requests when it exceeds a certain threshold ? Thank you in advance. jbv From heather at livecode.com Fri May 20 07:34:57 2022 From: heather at livecode.com (Heather Laine) Date: Fri, 20 May 2022 12:34:57 +0100 Subject: Potential third party products Message-ID: <6B717F96-1CB4-4667-A802-58A3565C3A3C@livecode.com> Dear List Members, We're conducting a general review of our vendor program and I was wondering if there are any lurking potential vendors on this list? Anyone with an addon for LiveCode they'd like to sell via our Extensions store? Or is there something you know of or find particularly useful, made by someone else, that you think would be a good candidate for a wider audience? Probably best to reply to support at livecode.com rather than cluttering up the list. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From paul at researchware.com Fri May 20 08:00:37 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 20 May 2022 08:00:37 -0400 Subject: Maximum length of mySQL request ? In-Reply-To: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: <3027d818-4a0b-c422-06f5-7db31b5adccf@researchware.com> You can save some characters by the following: SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) which is the same as using multiple OR equals in your example. If you need to break this up further, you can UNION the results of multiple queries, such as: SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) -- i.e. the first 100 or 1000 ids UNION SELECT ... FROM myTable WHERE id IN (100,512,9999,16545,...) -- the next 100 or 1000 ids UNION ... repeat as needed On 5/20/2022 6:34 AM, jbv via use-livecode wrote: > Hi list, > > Is there a maximum length limit for mySQL requests ? > I don't mean the results returned by mySQL, but the request itself. > > For instance, I have a table with 180000 entries and counting, and > I will need to send requests such as : > SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id > = 34895... > and at times the request might concern 100 ids or even more. > > I am not too concerned about execution speed, as id is a unique key, > but rather for the request itself : I wonder if it might be truncated > if too long... > Or perhaps a better and safer practice would be to break it into a > serie of > shorter successive requests when it exceeds a certain threshold ? > > 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 bobsneidar at iotecdigital.com Fri May 20 11:24:40 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 May 2022 15:24:40 +0000 Subject: Maximum length of mySQL request ? In-Reply-To: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: I googled around a bit and there doesn't seem to be a limit on statement length. I will say though that the nature of the query indicates a possible design issue with the database. I suspect however that you are at the mercy of someone else's schema. That there is no common denominator you can query on is to me remarkable. How are you obtaining your IDs then? Bob S > On May 20, 2022, at 03:34 , jbv via use-livecode wrote: > > Hi list, > > Is there a maximum length limit for mySQL requests ? > I don't mean the results returned by mySQL, but the request itself. > > For instance, I have a table with 180000 entries and counting, and > I will need to send requests such as : > SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id = 34895... > and at times the request might concern 100 ids or even more. > > I am not too concerned about execution speed, as id is a unique key, > but rather for the request itself : I wonder if it might be truncated > if too long... > Or perhaps a better and safer practice would be to break it into a serie of > shorter successive requests when it exceeds a certain threshold ? > > 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 jbv at souslelogo.com Fri May 20 11:48:44 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 20 May 2022 11:48:44 -0400 Subject: Maximum length of mySQL request ? In-Reply-To: <3027d818-4a0b-c422-06f5-7db31b5adccf@researchware.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> <3027d818-4a0b-c422-06f5-7db31b5adccf@researchware.com> Message-ID: <8fe6f8ac697464a18709a781ab748448@souslelogo.com> Le 2022-05-20 08:00, Paul Dupuis via use-livecode a crit : > You can save some characters by the following: > > SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) > > which is the same as using multiple OR equals in your example. > Thank you. Yes I will try that. And I have no idea why it didn't cross my mind... Perhaps because it's friday... :) jbv From jbv at souslelogo.com Fri May 20 11:56:21 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 20 May 2022 11:56:21 -0400 Subject: Maximum length of mySQL request ? In-Reply-To: References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: Le 2022-05-20 11:24, Bob Sneidar via use-livecode a crit : > I googled around a bit and there doesn't seem to be a limit on > statement length. I will say though that the nature of the query > indicates a possible design issue with the database. I suspect however > that you are at the mercy of someone else's schema. That there is no > common denominator you can query on is to me remarkable. How are you > obtaining your IDs then? > Thank you for your reply. I also did some google search before asking the question, but didn't find anything, only about the size of the data returned by mySQL. What makes you think of a possible design issue ? The ids are auto-incremented every time a new entry is added to the table, and the ids in the request are obtained by intersecting various multi-dimensional arrays that make very complex searches very fast (less than 1 sec, when it takes 5 to 10 sec with regular SQL queries). From jacque at hyperactivesw.com Fri May 20 12:32:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 11:32:04 -0500 Subject: HTML font size in percentages Message-ID: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri May 20 12:38:09 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 May 2022 16:38:09 +0000 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <33CFF2DA-4DA1-44BE-ABE1-86D77364DB53@iotecdigital.com> I know that typically cmd +/- (or ctrl for Win) will increase or decrease the zoom of a web page. You can try that, or else use a browser widget. (I wonder if that trick would work in a widget?? It should...) Bob S > On May 20, 2022, at 09:32 , J. Landman Gay via use-livecode wrote: > > I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. > > -- > 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 bobsneidar at iotecdigital.com Fri May 20 12:42:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 May 2022 16:42:51 +0000 Subject: Maximum length of mySQL request ? In-Reply-To: References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: OIC you are searching arrays to obtain your IDs. That would make sense because arrays are memory based. SQL is file based as in sqLite, or else accessed (typically) over a network which would account for the speed disparity. Of course, to be fail, you will have to add the time to search the arrays, THEN the time to query your SQL database with the IDs to make that comparison equal. Bob S > On May 20, 2022, at 08:56 , jbv via use-livecode wrote: > > Le 2022-05-20 11:24, Bob Sneidar via use-livecode a écrit : >> I googled around a bit and there doesn't seem to be a limit on >> statement length. I will say though that the nature of the query >> indicates a possible design issue with the database. I suspect however >> that you are at the mercy of someone else's schema. That there is no >> common denominator you can query on is to me remarkable. How are you >> obtaining your IDs then? > > Thank you for your reply. > I also did some google search before asking the question, but didn't > find anything, only about the size of the data returned by mySQL. > > What makes you think of a possible design issue ? > The ids are auto-incremented every time a new entry is added to the > table, and the ids in the request are obtained by intersecting various > multi-dimensional arrays that make very complex searches very fast > (less than 1 sec, when it takes 5 to 10 sec with regular SQL queries). > > _______________________________________________ > use-livecode mailing list > use-livecode 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 devin_asay at byu.edu Fri May 20 12:45:13 2022 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 20 May 2022 16:45:13 +0000 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <5AA3874B-B85D-4D87-A3A1-2FA7E7A2C903@byu.edu> Jacque, It sounds like the HTML tags are setting the size for runs of text in the field, so you can’t just set the textSize of the field? Are there varying sizes of text runs in the field? Could you set the textSize of the char 1 to -1 of the field to empty, then set it for the whole field? In one project I’ve implemented a feature similar to what Bob was talking about where I increment the textSize of the field by 1 point using Cmd/Cntl + or -. - Devin On May 20, 2022, at 10:32 AM, J. Landman Gay via use-livecode > wrote: I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. -- 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 Devin Asay Office of Digital Humanities Brigham Young University From keith.clarke at me.com Fri May 20 12:50:55 2022 From: keith.clarke at me.com (Keith Clarke) Date: Fri, 20 May 2022 17:50:55 +0100 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hi Jaque, A lot will depend: 1) Whether the changes in font size within the nested HTML tags have been set locally or ‘more properly' as relative to the root font size of the page in ‘rem’, where 1 rem = 100% of the root font-size). 2) you want a global font-size adjustment or more granular. If you can set CSS in the page (via the browser widget of by inserting text into the HTML), you could try experimenting with setting the body or other outermost element font-size to 5rem to see if that affected sizing throughout? For example, if the page it has a body tag, you could insert the following style block into the HTML header tag. Best, Keith > On 20 May 2022, at 17:32, J. Landman Gay via use-livecode wrote: > > I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. > > -- > 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 jacque at hyperactivesw.com Fri May 20 13:05:45 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 12:05:45 -0500 Subject: HTML font size in percentages In-Reply-To: <33CFF2DA-4DA1-44BE-ABE1-86D77364DB53@iotecdigital.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <33CFF2DA-4DA1-44BE-ABE1-86D77364DB53@iotecdigital.com> Message-ID: <180e26eaa28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The text has to be in a field for lots of reasons. Browsers and widgets are too limited. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 20, 2022 11:40:12 AM Bob Sneidar via use-livecode wrote: > I know that typically cmd +/- (or ctrl for Win) will increase or decrease > the zoom of a web page. You can try that, or else use a browser widget. (I > wonder if that trick would work in a widget?? It should...) > > Bob S > > >> On May 20, 2022, at 09:32 , J. Landman Gay via use-livecode >> wrote: >> >> I have a field whose HTMLtext is set to a heavily tagged HTML file that >> changes the font size repeatedly. We want to allow the user to adjust the >> size of the text. The easiest way would be to use percentages for the font >> sizes so that changing the field's textsize would change the markup >> proportionally, but LC fields don't seem to support that. Is there a trick >> or do I need to do a series of replacements? I'm afraid that will be too >> slow, there's a lot of text. >> >> -- >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri May 20 15:08:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 20 May 2022 15:08:51 -0400 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: You have to do replacement of the size value in the field's htmlText (or perhaps styledText) I have code that does this. I can provide it to you if you like. I don't claim it is the bets or most effiecent. Unfortunately, I am gone for the rest of today, s tomorrow is the earliest I could send code to you. On 5/20/2022 12:32 PM, J. Landman Gay via use-livecode wrote: > I have a field whose HTMLtext is set to a heavily tagged HTML file > that changes the font size repeatedly. We want to allow the user to > adjust the size of the text. The easiest way would be to use > percentages for the font sizes so that changing the field's textsize > would change the markup proportionally, but LC fields don't seem to > support that. Is there a trick or do I need to do a series of > replacements? I'm afraid that will be too slow, there's a lot of text. > > -- > 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 jacque at hyperactivesw.com Fri May 20 15:13:22 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 14:13:22 -0500 Subject: HTML font size in percentages In-Reply-To: <5AA3874B-B85D-4D87-A3A1-2FA7E7A2C903@byu.edu> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5AA3874B-B85D-4D87-A3A1-2FA7E7A2C903@byu.edu> Message-ID: <28ea4792-d49b-2e87-7075-e9d410329fc9@hyperactivesw.com> On 5/20/22 11:45 AM, Devin Asay via use-livecode wrote: > It sounds like the HTML tags are setting the size for runs of text in the field, so you can’t just set the textSize of the field? I did try setting the text size of the field, and all untagged chunks reflect the new size as expected (default field text is 20 points.) But there are exceptions embedded in the text that require superscripts and/or other sizes for chapter headings and other things. It looks like this:

TEXT HERE TEXT HERETEXT HERETEXT HERETEXT HERE, ETC ETC The text is too long for a single field so I'm using Trevor's dataView (thank you so much Trevor!) The text sizes and superscripts are footnotes, references, and other supplementary info. They are scattered liberally around in the text. Untagged text responds well to the field text size, which I can easily change in the dataView template. But the superscripts text size and offset, and other changes do not because they are specifically indicated with integers. If I could use percentages, then changing the field text size would proportionally change everything else. But percentages don't work in my tests. I wish we could use CSS in LC fields, but it isn't supported. I can't use any type of browser because we need features that a browser doesn't support. > > Are there varying sizes of text runs in the field? Could you set the textSize of the char 1 to -1 of the field to empty, then set it for the whole field? In one project I’ve implemented a feature similar to what Bob was talking about where I increment the textSize of the field by 1 point using Cmd/Cntl + or -. This is a mobile app, so no keyboard is available. It's been in the app stores for about a year but our main complaint from users is that the text is too small on a phone. We'd like to fix that. The choice of font size would be a setting in user prefs and the text would accomodate that whenever the app runs. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri May 20 16:30:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 15:30:04 -0500 Subject: HTML font size in percentages In-Reply-To: References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Thanks for verifying it Paul, that's what I was thinking too. I'm looking at replacing the sizes via the style runs, I have a handler Mark Waddingham gave me/us on the list last year that I think I can modify. But I'd be grateful to see yours too. No big hurry, I just need to get an idea of how to estimate my time at this point. Thank you very much. On 5/20/22 2:08 PM, Paul Dupuis via use-livecode wrote: > You have to do replacement of the size value in the field's htmlText (or perhaps styledText) > > I have code that does this. I can provide it to you if you like. I don't claim it is the bets > or most effiecent. Unfortunately, I am gone for the rest of today, s tomorrow is the earliest I > could send code to you. > > > > On 5/20/2022 12:32 PM, J. Landman Gay via use-livecode wrote: >> I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size >> repeatedly. We want to allow the user to adjust the size of the text. The easiest way would >> be to use percentages for the font sizes so that changing the field's textsize would change >> the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I >> need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon May 23 14:22:23 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 May 2022 18:22:23 +0000 Subject: Is it a bug? Message-ID: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> I found one thing I think is a bug, and I'd like to report it, but I want to see if anyone else thinks this may be the expected behavior: It seems to me that when clicking and holding the mouse button down on an pulldown menu, then releasing outside that menu so that no menu item is actually selected, the parameter passed to menuPick ought to be empty, if menuPick even should get sent in the first place. What it actually does is it passes the first menu item, even though that item was not specifically chosen. If you click AND release while still IN the pulldown menu so that the menu remains expanded, THEN click off the menu, MenuPick never even gets sent to the pulldown menu, which is what one would expect. This is on MacOS 10.15.7 Catalina running 9.6.7 Pro. What say you? Bob S From richmondmathewson at gmail.com Mon May 23 14:34:01 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 23 May 2022 21:34:01 +0300 Subject: Is it a bug? In-Reply-To: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> References: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> Message-ID: Seem sensible, after all end-users should be able ti change their minds. On Mon, 23 May 2022, 21:23 Bob Sneidar via use-livecode, < use-livecode at lists.runrev.com> wrote: > I found one thing I think is a bug, and I'd like to report it, but I want > to see if anyone else thinks this may be the expected behavior: > > It seems to me that when clicking and holding the mouse button down on an > pulldown menu, then releasing outside that menu so that no menu item is > actually selected, the parameter passed to menuPick ought to be empty, if > menuPick even should get sent in the first place. What it actually does is > it passes the first menu item, even though that item was not specifically > chosen. > > If you click AND release while still IN the pulldown menu so that the menu > remains expanded, THEN click off the menu, MenuPick never even gets sent to > the pulldown menu, which is what one would expect. > > This is on MacOS 10.15.7 Catalina running 9.6.7 Pro. > > What say you? > > 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 > From Bernd.Niggemann at uni-wh.de Mon May 23 15:26:55 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Mon, 23 May 2022 19:26:55 +0000 Subject: Is it a bug? Message-ID: <80E408DA-1427-46D1-9F22-72A47A4F965A@uni-wh.de> sounds a lot like https://quality.livecode.com/show_bug.cgi?id=23693 Kind regards Bernd From rdimola at evergreeninfo.net Mon May 23 17:03:08 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 23 May 2022 17:03:08 -0400 Subject: Is it a bug? In-Reply-To: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> References: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> Message-ID: <004f01d86ee8$84a87450$8df95cf0$@net> I also expect nothing is done if I click on anything and move the mouse outside the active window THEN release(unless a drag and drop is involved). I use this all this time with the classic "S*&# I didn't mean to click on that". If move out of the window before releasing nothing happens. This behavior applies to all apps I have used including the LC IDE. I see this behavior both Windows and Mac. What are they doing in the LC IDE to create the expected behavior? 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 Bob Sneidar via use-livecode Sent: Monday, May 23, 2022 2:22 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Is it a bug? I found one thing I think is a bug, and I'd like to report it, but I want to see if anyone else thinks this may be the expected behavior: It seems to me that when clicking and holding the mouse button down on an pulldown menu, then releasing outside that menu so that no menu item is actually selected, the parameter passed to menuPick ought to be empty, if menuPick even should get sent in the first place. What it actually does is it passes the first menu item, even though that item was not specifically chosen. If you click AND release while still IN the pulldown menu so that the menu remains expanded, THEN click off the menu, MenuPick never even gets sent to the pulldown menu, which is what one would expect. This is on MacOS 10.15.7 Catalina running 9.6.7 Pro. What say you? 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 From klaus at major-k.de Tue May 24 06:36:29 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 May 2022 12:36:29 +0200 Subject: Xcode Message-ID: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Hi all, Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only support Xcode 13.2. Did I miss something? 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 Tue May 24 06:51:31 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 24 May 2022 13:51:31 +0300 Subject: Xcode In-Reply-To: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Message-ID: Hello Klaus, You do not have to use the latest version of Xcode if your goal is to be able to deploy to the latest version of iOS. This is the reason we have not moved (yet) to a newer Xcode version - you can still use Xcode 13.2 to build apps that will run not only on devices running the current most recent iOS version but also on future iOS versions. Hope this helps. Kind regards, Panos -- On Tue, 24 May 2022 at 13:37, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only support > Xcode 13.2. > Did I miss something? > > > 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 May 24 06:55:51 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 May 2022 12:55:51 +0200 Subject: Xcode In-Reply-To: References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Message-ID: <9E9122C5-D0F5-4898-B967-A9FDF178A8BA@major-k.de> Hi Panos, > Am 24.05.2022 um 12:51 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > You do not have to use the latest version of Xcode if your goal is to be > able to deploy to the latest version of iOS. > > This is the reason we have not moved (yet) to a newer Xcode version - you > can still use Xcode 13.2 to build apps that will run not only on devices > running the current most recent iOS version but also on future iOS versions. > > Hope this helps. Ah, I see, thank you! > Kind regards, > Panos 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 May 24 07:00:36 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 24 May 2022 12:00:36 +0100 Subject: Formatting code in word Message-ID: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Hello list, Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. Thanks! Mark From jmac at consensustech.com Tue May 24 10:53:08 2022 From: jmac at consensustech.com (Jim MacConnell) Date: Tue, 24 May 2022 07:53:08 -0700 Subject: Xcode In-Reply-To: References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Message-ID: <93731F94-7672-4063-92EC-F10BC167695F@consensustech.com> Panos, I’m so glad I saw this. Just for my clarity…. Are you saying we no longer need to do the “Hold off on Xcode updates until Livecode can catch up?” thing. I have folders full of older Xcode versions and go through a little dance each time I upgrade. It would be wonderful to not have to worry about that anymore and to just have one version I point Livecode t feeling completely free to upgrade my main version of Xcode without worrying that I might break something. Yours, Jim > On May 24, 2022, at 3:51 AM, panagiotis m via use-livecode wrote: > > Hello Klaus, > > You do not have to use the latest version of Xcode if your goal is to be > able to deploy to the latest version of iOS. > > This is the reason we have not moved (yet) to a newer Xcode version - you > can still use Xcode 13.2 to build apps that will run not only on devices > running the current most recent iOS version but also on future iOS versions. > > Hope this helps. > > Kind regards, > Panos > -- > > On Tue, 24 May 2022 at 13:37, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only support >> Xcode 13.2. >> Did I miss something? >> >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 hakan at exformedia.se Tue May 24 10:57:35 2022 From: hakan at exformedia.se (=?utf-8?Q?H=C3=A5kan_Liljegren?=) Date: Tue, 24 May 2022 16:57:35 +0200 Subject: Formatting code in word In-Reply-To: <02105F99-1416-4C08-B642-19D035702967@gmail.com> References: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Message-ID: Probably not what you want to hear, but I never distribute documents in Word as I then have no control on the formatting. The receiver might not have the same font installed and then the text might reflow and all kinds of bad things might happen! :) I always use PDF for distrution. BUT, if you still want to use Word you can create a specific format for the code blocks and then select the language for that format and check the “Do not check spelling or grammar” for that format. You can also select the newly pasted text and then do the same procedure (Select language and check the do not check checkbox). :-Håkan > On 24 May 2022, at 13:00, Mark Smith via use-livecode wrote: > > Hello list, > > Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. > > Thanks! > Mark > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 24 11:11:51 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 24 May 2022 11:11:51 -0400 Subject: Xcode In-Reply-To: <93731F94-7672-4063-92EC-F10BC167695F@consensustech.com> References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> <93731F94-7672-4063-92EC-F10BC167695F@consensustech.com> Message-ID: <003501d86f80$9ba41b30$d2ec5190$@net> You can have the most recent version of Xcode installed but must also have the LC supported version installed(if different as it usually is). The build tools must point to the LC supported version for building iOS apps but you can use the most recent version(beta or prod) for side-loading, backup, device upgrades, log file viewing... The dance continues. 1,2,3 1,2,3 1,2,3. 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 Jim MacConnell via use-livecode Sent: Tuesday, May 24, 2022 10:53 AM To: How to use LiveCode Cc: Jim MacConnell Subject: Re: Xcode Panos, I’m so glad I saw this. Just for my clarity…. Are you saying we no longer need to do the “Hold off on Xcode updates until Livecode can catch up?” thing. I have folders full of older Xcode versions and go through a little dance each time I upgrade. It would be wonderful to not have to worry about that anymore and to just have one version I point Livecode t feeling completely free to upgrade my main version of Xcode without worrying that I might break something. Yours, Jim > On May 24, 2022, at 3:51 AM, panagiotis m via use-livecode wrote: > > Hello Klaus, > > You do not have to use the latest version of Xcode if your goal is to > be able to deploy to the latest version of iOS. > > This is the reason we have not moved (yet) to a newer Xcode version - > you can still use Xcode 13.2 to build apps that will run not only on > devices running the current most recent iOS version but also on future iOS versions. > > Hope this helps. > > Kind regards, > Panos > -- > > On Tue, 24 May 2022 at 13:37, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only >> support Xcode 13.2. >> Did I miss something? >> >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 24 11:15:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 May 2022 15:15:18 +0000 Subject: Is it a bug? In-Reply-To: <004f01d86ee8$84a87450$8df95cf0$@net> References: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> <004f01d86ee8$84a87450$8df95cf0$@net> Message-ID: If you are seeing a different behavior then perhaps something in my code is doing it. I'll check the executionContexts to see. Bob S > On May 23, 2022, at 14:03 , Ralph DiMola via use-livecode wrote: > > I also expect nothing is done if I click on anything and move the mouse > outside the active window THEN release(unless a drag and drop is involved). > I use this all this time with the classic "S*&# I didn't mean to click on > that". If move out of the window before releasing nothing happens. This > behavior applies to all apps I have used including the LC IDE. I see this > behavior both Windows and Mac. What are they doing in the LC IDE to create > the expected behavior? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Tue May 24 11:17:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 May 2022 15:17:00 +0000 Subject: Formatting code in word In-Reply-To: <02105F99-1416-4C08-B642-19D035702967@gmail.com> References: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Message-ID: <4793DA51-AD1C-4764-9671-3725D5F6DE41@iotecdigital.com> One word solution: Don't. (Actually two words it's a contraction. Word's grammar checker would probably have corrected that.) Bob S > On May 24, 2022, at 04:00 , Mark Smith via use-livecode wrote: > > Hello list, > > Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. > > Thanks! > Mark > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dochawk at gmail.com Tue May 24 13:19:23 2022 From: dochawk at gmail.com (doc hawk) Date: Tue, 24 May 2022 10:19:23 -0700 Subject: Maximum length of mySQL request ? In-Reply-To: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: <81B11393-2BB1-4CCE-89F8-ACA71E72A906@gmail.com> When opening a “file”, my software makes a compound query with several hundred queries within it, so . . . This is possible on Postgres and SQLite, but (last I checked) not on MySQL From bobsneidar at iotecdigital.com Tue May 24 13:38:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 May 2022 17:38:24 +0000 Subject: Maximum length of mySQL request ? In-Reply-To: <81B11393-2BB1-4CCE-89F8-ACA71E72A906@gmail.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> <81B11393-2BB1-4CCE-89F8-ACA71E72A906@gmail.com> Message-ID: There may be an environment variable you need to set to increase it. Because it's network based, it stands to reason that an unlimited query string can be exploited as a denial of service strategy. Bob S > On May 24, 2022, at 10:19 , doc hawk via use-livecode wrote: > > When opening a “file”, my software makes a compound query with several hundred queries within it, so . . . > > This is possible on Postgres and SQLite, but (last I checked) not on MySQL From marksmithhfx at gmail.com Tue May 24 16:37:05 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 24 May 2022 21:37:05 +0100 Subject: Formatting code in word In-Reply-To: References: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Message-ID: Thanks, I wasn’t aware that could be applied to just a specific format… I had always thought of it as document wide. Mind you, I don’t take advantage of 90% of the features in Word either. PDF sounds like a good option for distribution but don’t you still need to create the file in something else? I’ve only ever converted documents to/from PDF. > On 24 May 2022, at 3:57 pm, Håkan Liljegren wrote: > > Probably not what you want to hear, but I never distribute documents in Word as I then have no control on the formatting. The receiver might not have the same font installed and then the text might reflow and all kinds of bad things might happen! :) > > I always use PDF for distrution. BUT, if you still want to use Word you can create a specific format for the code blocks and then select the language for that format and check the “Do not check spelling or grammar” for that format. You can also select the newly pasted text and then do the same procedure (Select language and check the do not check checkbox). > > :-Håkan > >> On 24 May 2022, at 13:00, Mark Smith via use-livecode > wrote: >> >> Hello list, >> >> Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. >> >> Thanks! >> Mark >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Tue May 24 20:48:57 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 25 May 2022 10:48:57 +1000 Subject: s it a bug? In-Reply-To: References: Message-ID: Bob: I'm not seeing this in the IDE or standalone. LC 9.6.7, macOS Monterey > > I found one thing I think is a bug, and I'd like to report it, but I want to see if anyone else thinks this may be the expected behavior: > > It seems to me that when clicking and holding the mouse button down on an pulldown menu, then releasing outside that menu so that no menu item is actually selected, the parameter passed to menuPick ought to be empty, if menuPick even should get sent in the first place. What it actually does is it passes the first menu item, even though that item was not specifically chosen. > > Bob S > > > ********************************************* From paul at researchware.com Wed May 25 07:36:43 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 25 May 2022 07:36:43 -0400 Subject: HTML font size in percentages In-Reply-To: References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <0f444390-49f7-12bf-a3b5-9edd0d959f39@researchware.com> On 5/20/2022 4:30 PM, J. Landman Gay via use-livecode wrote: > Thanks for verifying it Paul, that's what I was thinking too. I'm > looking at replacing the sizes via the style runs, I have a handler > Mark Waddingham gave me/us on the list last year that I think I can > modify. > > But I'd be grateful to see yours too. No big hurry, I just need to get > an idea of how to estimate my time at this point. Thank you very much. > > Sorry for the delay. By some weird email glitch I only saw this list post today. Anyway, here is the routine, While it works, if I was rewriting it, I would probably just do a loop with a match to the html font size attribute. This code does ensure that the size can't go below a minimum where LC's legacy font size values actually make the text bigger. on ChangeTextSize pBiggerOrSmaller, pObj   -- usage: ChangeTextSize "bigger"|"smaller",the long ID of field X of stack Y   lock screen   if len(the text of pObj) > 5000 then     set cursor to watch   end if   -- Get current scaling. The textSize will be set to the effectove textSize + tCurScale (+1|-1)   -- uTextScaling is defauted to 0 in the object (field) custom properties   put the uTextScaling of pObj into tScale   if tScale is empty then put 0 into tScale   if pBiggerOrSmaller is "bigger" then     add 1 to tScale     put 1 into tCurScale   else     subtract 1 from tScale     put -1 into tCurScale   end if   set the uTextScaling of pObj to tScale   --   put the htmlText of pObj into tHtml   --   set the textHeight of pObj to empty   set the textSize   of pObj to max(8,the effective textSize of pObj+tCurScale)   --   replace "size=""e with "size="&numToChar(1500) in tHtml   set the itemdel to numToChar(1500)   if the number of items of tHtml <> 1 then     put 0 into testItem     repeat for each item theItem in tHtml       add 1 to testItem       if testItem<>1 then         put offset(quote,theitem) into counter         put char 1 to counter-1 of theItem into theSize         put max(8,theSize+tCurScale) into theSize         put theSize into char 1 to counter-1 of theItem         put quote&theItem after newHTML       else         put theItem into newHTML         next repeat       end if     end repeat     set the htmlText of pObj to newHTML     --   end if   unlock screen end ChangeTextSize From hakan at exformedia.se Wed May 25 13:52:30 2022 From: hakan at exformedia.se (Hakan@exformedia.se) Date: Wed, 25 May 2022 19:52:30 +0200 Subject: Formatting code in word In-Reply-To: References: Message-ID: Yes, you need to use something to create the PDF first of course. And here Word might be a good candidate. Especially if you are to write a lot of explaining text and then paste some code. I think I still would go for an automated setup and write the explanations in the code. Then you could automate the full process (in Livecode of course :) But it all depends on the purpose of course. If you are looking for a tool to convert between a lot of different formats I suggest you take a look at pandoc. A command line Swiss army tool for document conversion. Good Luck! :-Håkan Skickat från min iPhone > 24 maj 2022 kl. 22:37 skrev Mark Smith : > > Thanks, I wasn’t aware that could be applied to just a specific format… I had always thought of it as document wide. Mind you, I don’t take advantage of 90% of the features in Word either. PDF sounds like a good option for distribution but don’t you still need to create the file in something else? I’ve only ever converted documents to/from PDF. > >> On 24 May 2022, at 3:57 pm, Håkan Liljegren wrote: >> >> Probably not what you want to hear, but I never distribute documents in Word as I then have no control on the formatting. The receiver might not have the same font installed and then the text might reflow and all kinds of bad things might happen! :) >> >> I always use PDF for distrution. BUT, if you still want to use Word you can create a specific format for the code blocks and then select the language for that format and check the “Do not check spelling or grammar” for that format. You can also select the newly pasted text and then do the same procedure (Select language and check the do not check checkbox). >> >> :-Håkan >> >>> On 24 May 2022, at 13:00, Mark Smith via use-livecode wrote: >>> >>> Hello list, >>> >>> Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. >>> >>> Thanks! >>> Mark >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Wed May 25 13:57:31 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 25 May 2022 20:57:31 +0300 Subject: Formatting code in word In-Reply-To: References: Message-ID: A better bet is LibreOffice as cheap jacks like me can see no obvious reason for paying for something when a functional equivalent exists for free. On Wed, 25 May 2022, 20:53 Hakan--- via use-livecode, < use-livecode at lists.runrev.com> wrote: > Yes, you need to use something to create the PDF first of course. And here > Word might be a good candidate. Especially if you are to write a lot of > explaining text and then paste some code. > I think I still would go for an automated setup and write the explanations > in the code. Then you could automate the full process (in Livecode of > course :) But it all depends on the purpose of course. > > If you are looking for a tool to convert between a lot of different > formats I suggest you take a look at pandoc. A command line Swiss army tool > for document conversion. > > Good Luck! > :-Håkan > > Skickat från min iPhone > > > 24 maj 2022 kl. 22:37 skrev Mark Smith : > > > > Thanks, I wasn’t aware that could be applied to just a specific format… > I had always thought of it as document wide. Mind you, I don’t take > advantage of 90% of the features in Word either. PDF sounds like a good > option for distribution but don’t you still need to create the file in > something else? I’ve only ever converted documents to/from PDF. > > > >> On 24 May 2022, at 3:57 pm, Håkan Liljegren > wrote: > >> > >> Probably not what you want to hear, but I never distribute documents in > Word as I then have no control on the formatting. The receiver might not > have the same font installed and then the text might reflow and all kinds > of bad things might happen! :) > >> > >> I always use PDF for distrution. BUT, if you still want to use Word you > can create a specific format for the code blocks and then select the > language for that format and check the “Do not check spelling or grammar” > for that format. You can also select the newly pasted text and then do the > same procedure (Select language and check the do not check checkbox). > >> > >> :-Håkan > >> > >>> On 24 May 2022, at 13:00, Mark Smith via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> Hello list, > >>> > >>> Do you use anything to make code look more readable when inserted into > a Word document? I ask because all those squiggly red underlines > (spellcheck marks) makes it pretty unattractive, although they can be > turned off. However, when distributing a document to others they may not > know how to turn that off. Just wondering if you’ve found a better way for > distributing code in word docs. > >>> > >>> Thanks! > >>> Mark > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 Wed May 25 14:32:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 May 2022 13:32:04 -0500 Subject: HTML font size in percentages In-Reply-To: <0f444390-49f7-12bf-a3b5-9edd0d959f39@researchware.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <0f444390-49f7-12bf-a3b5-9edd0d959f39@researchware.com> Message-ID: <28f40f53-0ab8-decb-6af1-48a5c590ad8e@hyperactivesw.com> On 5/25/22 6:36 AM, Paul Dupuis via use-livecode wrote: > Anyway, here is the routine, While it works, if I was rewriting it, I would probably just do a > loop with a match to the html font size attribute. This code does ensure that the size can't go > below a minimum where LC's legacy font size values actually make the text bigger. Thanks so much, very helpful. It's close to what I was thinking of doing. The other alternative is looping through style runs in the styledText property. The text I'm dealing with is pretty long, so I'll do some tests to see which method is faster. Thanks again, Jacque -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From heather at livecode.com Fri May 27 07:20:32 2022 From: heather at livecode.com (Heather Laine) Date: Fri, 27 May 2022 12:20:32 +0100 Subject: A test, move along Message-ID: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Just checking all is working as it should. Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From bobsneidar at iotecdigital.com Fri May 27 11:13:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 May 2022 15:13:18 +0000 Subject: A test, move along In-Reply-To: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Message-ID: Define, "all." Currently I have some code that is giving me fits... ;-) Bob S > On May 27, 2022, at 04:20 , Heather Laine via use-livecode wrote: > > Just checking all is working as it should. > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 heather at livecode.com Fri May 27 11:30:57 2022 From: heather at livecode.com (Heather Laine) Date: Fri, 27 May 2022 16:30:57 +0100 Subject: A test, move along In-Reply-To: References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Message-ID: There had to be one. I'm happy to report there appears to be nothing wrong with the list software. And in fact, the users are also working as expected. ;) H Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 27 May 2022, at 16:13, Bob Sneidar via use-livecode wrote: > > Define, "all." Currently I have some code that is giving me fits... ;-) > > Bob S > > >> On May 27, 2022, at 04:20 , Heather Laine via use-livecode wrote: >> >> Just checking all is working as it should. >> >> >> Heather Laine >> Customer Services Manager >> LiveCode Ltd >> www.livecode.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dochawk at gmail.com Fri May 27 19:03:23 2022 From: dochawk at gmail.com (doc hawk) Date: Fri, 27 May 2022 16:03:23 -0700 Subject: A test, move along In-Reply-To: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Message-ID: <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> As a professor, I’ll grade it a B-. :) > On May 27, 2022, at 4:20 AM, Heather Laine via use-livecode wrote: > > Just checking all is working as it should. > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 ahsoftware at sonic.net Fri May 27 19:28:22 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 27 May 2022 16:28:22 -0700 Subject: A test, move along In-Reply-To: <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> Message-ID: <832a41bf-e848-cc87-39c5-024b7a069e46@sonic.net> On 5/27/22 16:03, doc hawk via use-livecode wrote: > As a professor, Ill grade it a B-. I thought that was a pessimistic blood type. -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Fri May 27 20:37:28 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 28 May 2022 01:37:28 +0100 Subject: A test, move along In-Reply-To: <832a41bf-e848-cc87-39c5-024b7a069e46@sonic.net> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> <832a41bf-e848-cc87-39c5-024b7a069e46@sonic.net> Message-ID: <701578b7-74c3-5201-2904-9f6f1869b238@tweedly.net> On 28/05/2022 00:28, Mark Wieder via use-livecode wrote: > On 5/27/22 16:03, doc hawk via use-livecode wrote: >> As a professor, Ill grade it a B-. > > I thought that was a pessimistic blood type. > I thought it was short for balderdash! From General.2018 at outlook.com Sat May 28 10:15:50 2022 From: General.2018 at outlook.com (General 2018) Date: Sat, 28 May 2022 14:15:50 +0000 Subject: Substacks Message-ID: Hi , New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? Looked at docs and other posts. But stuck no doubt I have missed something. Livecode 9.6.6 and Win 10 Regards Cam From runrev at vonfintel.org Sat May 28 12:28:09 2022 From: runrev at vonfintel.org (Thomas von Fintel) Date: Sat, 28 May 2022 18:28:09 +0200 Subject: Substacks In-Reply-To: References: Message-ID: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Hi, did you try  close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. Livecode 9.6.7 and Windows 10 Hope this helps Thomas Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: > Hi , > > New to substacks - I have a mainstack used as a menu page for 2x substacks > > When substacks opened from mainstack they open fine using go to stack xyz > > The problem is closing of the substacks using - close stack, go to mainstack or close this stack it always closes (quit) everything. Need mainstack to reappear/remain ? > > Looked at docs and other posts. But stuck no doubt I have missed something. > > Livecode 9.6.6 and Win 10 > > Regards > Cam > _______________________________________________ > use-livecode mailing list > use-livecode 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 General.2018 at outlook.com Sat May 28 15:40:00 2022 From: General.2018 at outlook.com (General 2018) Date: Sat, 28 May 2022 19:40:00 +0000 Subject: Substacks In-Reply-To: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> References: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Message-ID: Thanks for the tip but still no good. So button in “xyz” substack with close stack “xyz” still closes all ? Regards Camm > On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode wrote: > > Hi, > > did you try close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. > > Livecode 9.6.7 and Windows 10 > > > Hope this helps > > Thomas > > >> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >> Hi , >> >> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >> >> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >> >> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >> >> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Livecode 9.6.6 and Win 10 >> >> Regards >> Cam >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Sat May 28 16:30:10 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 28 May 2022 15:30:10 -0500 Subject: Substacks In-Reply-To: References: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Message-ID: <1810c5cb050.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> In an app, the mainstack is the home stack. If it's closed and no other stack is open then the app will quit. But if you open a substack, the app can't quit because the substack is part of the stackfile but the mainstack is still marked as closed. So the trick is not to close the mainstack, just hide it instead when you open the substack. When you close the substack, show the mainstack. At least, that's what I think is happening. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 28, 2022 2:42:24 PM General 2018 via use-livecode wrote: > Thanks for the tip but still no good. > > So button in xyz substack with close stack xyz still closes all ? > > Regards Camm > >> On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode >> wrote: >> >> Hi, >> >> did you try close stack "xyz" ? Thias works for me, in the IDE at least, >> both if called from the mainstack and from the substack. Only the substack >> is closed. >> >> Livecode 9.6.7 and Windows 10 >> >> >> Hope this helps >> >> Thomas >> >> >>> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >>> Hi , >>> >>> New to substacks - I have a mainstack used as a menu page for 2x substacks >>> >>> When substacks opened from mainstack they open fine using go to stack >>> xyz >>> >>> The problem is closing of the substacks using - close stack, go to >>> mainstack or close this stack it always closes (quit) everything. Need >>> mainstack to reappear/remain ? >>> >>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Livecode 9.6.6 and Win 10 >>> >>> Regards >>> Cam >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 bobsneidar at iotecdigital.com Sat May 28 16:48:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 28 May 2022 20:48:19 +0000 Subject: Substacks In-Reply-To: References: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Message-ID: <8468155B-9F45-4542-957F-A64B656A42DF@iotecdigital.com> Hide the mainstack, when opening the substack, then show the mainstack in the substack’s closestack handler. Sent from my iPhone > On May 28, 2022, at 12:41, General 2018 via use-livecode wrote: > > Thanks for the tip but still no good. > > So button in “xyz” substack with close stack “xyz” still closes all ? > > Regards Camm > >> On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode wrote: >> >> Hi, >> >> did you try close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. >> >> Livecode 9.6.7 and Windows 10 >> >> >> Hope this helps >> >> Thomas >> >> >>>> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >>> Hi , >>> >>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >>> >>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >>> >>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >>> >>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Livecode 9.6.6 and Win 10 >>> >>> Regards >>> Cam >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 ahsoftware at sonic.net Sat May 28 19:11:25 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 28 May 2022 16:11:25 -0700 Subject: Substacks In-Reply-To: References: Message-ID: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> On 5/28/22 07:15, General 2018 via use-livecode wrote: > Hi , > > New to substacks - I have a mainstack used as a menu page for 2x substacks > > When substacks opened from mainstack they open fine using go to stack xyz > > The problem is closing of the substacks using - close stack, go to mainstack or close this stack it always closes (quit) everything. Need mainstack to reappear/remain ? > > Looked at docs and other posts. But stuck no doubt I have missed something. Do you have a closeStack handler in the script of the mainstack? -- Mark Wieder ahsoftware at gmail.com From General.2018 at outlook.com Sun May 29 07:02:52 2022 From: General.2018 at outlook.com (General 2018) Date: Sun, 29 May 2022 11:02:52 +0000 Subject: Substacks In-Reply-To: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> References: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> Message-ID: Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” Will keep looking…….. Regards > On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: > > On 5/28/22 07:15, General 2018 via use-livecode wrote: >> Hi , >> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >> Looked at docs and other posts. But stuck no doubt I have missed something. > > Do you have a closeStack handler in the script of the mainstack? > > > -- > 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 jmac at consensustech.com Sun May 29 09:48:59 2022 From: jmac at consensustech.com (Jim At Consensus) Date: Sun, 29 May 2022 06:48:59 -0700 Subject: Substacks In-Reply-To: References: Message-ID: <67E5C8AF-C440-44CA-AE5B-CD6EB34FAC4D@consensustech.com> At the risk of repeating someone else’s suggestion. I address this by have an on closeStsck handler in the main stack. I’m in my phone so don’t have access to code but it’s along the lines of: On closeStack If the short name of me is “xxxx” then closeStack End closeStack Works rely as bay for me though variations could include “if name is not “xxx” then exit closeStsck Will see which is correct when I get to my machine. Good Luck. Jim NOTE: This has worked reliably for years. I doubt something has changed but perhaps? NOTE 2: To avoid the “mental pain” of not having something like this working, I’d recommend creating a new stack and sub stack combination just to trouble shoot the problem. I’d say 9 times out of 10, I can get the simple test to work which points me to some other issue I never would have discovered that ended up being the issue (like not remembering that before my closeStack was issued, i navigated back to the main stack by a go card “YYYY” of the main stack as part of my trying to figure out what was happening but the timing was such I never saw the transition.) Sent from Jim's iPhone Please excuse brevity, typos and errors > On May 29, 2022, at 4:05 AM, General 2018 via use-livecode wrote: > > Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” > > Will keep looking…….. > > Regards > >>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: >>> >>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>> Hi , >>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >>> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Do you have a closeStack handler in the script of the mainstack? >> >> >> -- >> 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun May 29 12:25:51 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 29 May 2022 11:25:51 -0500 Subject: Substacks In-Reply-To: References: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> Message-ID: <18110a35e98.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Just to clarify, are they real substacks or do you mean they are separate stacks that you include in the build? Also, double check that standalone settings isn't set up to move substacks into separate files. I think that option is in the general pane but I'm not at my computer to check. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 29, 2022 6:05:08 AM General 2018 via use-livecode wrote: > Still no luck, no closestack handler in main stack , tried the other > suggestions with hide/show etc. But still mainstack quits on closing the > substack xyz > > Will keep looking.. > > Regards > >> On 29 May 2022, at 00:12, Mark Wieder via use-livecode >> wrote: >> >> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>> Hi , >>> New to substacks - I have a mainstack used as a menu page for 2x substacks >>> When substacks opened from mainstack they open fine using go to stack >>> xyz >>> The problem is closing of the substacks using - close stack, go to >>> mainstack or close this stack it always closes (quit) everything. Need >>> mainstack to reappear/remain ? >>> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Do you have a closeStack handler in the script of the mainstack? >> >> >> -- >> 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 General.2018 at outlook.com Sun May 29 15:31:30 2022 From: General.2018 at outlook.com (General 2018) Date: Sun, 29 May 2022 19:31:30 +0000 Subject: Substacks In-Reply-To: <18110a35e98.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> <18110a35e98.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hi Jacquline, Think your question lead me to the issue. For some reason on the stack that did not work I added the substack by opening the mainstack and substack and saving the substack into the mainstack somehow. I started from new and added the substack by using the add stack file button within standalone settings and it worked fine. Regards Camm > On 29 May 2022, at 17:27, J. Landman Gay via use-livecode wrote: > > Just to clarify, are they real substacks or do you mean they are separate stacks that you include in the build? Also, double check that standalone settings isn't set up to move substacks into separate files. I think that option is in the general pane but I'm not at my computer to check. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On May 29, 2022 6:05:08 AM General 2018 via use-livecode wrote: >> >> Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” >> >> Will keep looking…….. >> >> Regards >> >>>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: >>> >>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>>> Hi , >>>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >>>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >>>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >>>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Do you have a closeStack handler in the script of the mainstack? >>> >>> >>> -- >>> 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 >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 tom at makeshyft.com Mon May 30 22:33:20 2022 From: tom at makeshyft.com (Tom Glod) Date: Mon, 30 May 2022 22:33:20 -0400 Subject: Android,iOS stay in background? Message-ID: Hi Folks, Just a quick question for all you Livecode pros .... do we have a way as of yet to have our applications stay in the background and not get unloaded by Android and iOS? I found 1 way ...and thats by playing the radio inside a browser. I thought about "playing nothing" but that is too hacky to go into production with. Thanks for any thoughts on this? -- Tom Glod Founder & Developer @ MakeShyft R.D.A Build Software with AppStarterStack for Livecode Save Time with The Time Saver's Toolbox From matthias_livecode_150811 at m-r-d.de Tue May 31 02:53:05 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 31 May 2022 08:53:05 +0200 Subject: Android,iOS stay in background? In-Reply-To: References: Message-ID: Hm, if i recall correctly, Android keeps an app running in background as long as Android does not need the memory the app is "consuming". And i think iOS is doing that as well. In the past one had to modify the plist file to allow background execution in iOS. But for some time now you should be able to allow background execution by enabling the requirement "Background Fetch" in the standalone settings. If there is also a way in Android , i do not know. Matthias > Am 31.05.2022 um 04:33 schrieb Tom Glod via use-livecode : > > Hi Folks, > > Just a quick question for all you Livecode pros .... do we have a way as of > yet to have our applications stay in the background and not get unloaded by > Android and iOS? > > I found 1 way ...and thats by playing the radio inside a browser. > > I thought about "playing nothing" but that is too hacky to go into > production with. > > Thanks for any thoughts on this? > > -- > Tom Glod > > Founder & Developer @ MakeShyft R.D.A > Build Software with AppStarterStack for > Livecode > Save Time with The Time Saver's Toolbox > _______________________________________________ > use-livecode mailing list > use-livecode 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 panos.merakos at livecode.com Tue May 31 11:27:02 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 31 May 2022 18:27:02 +0300 Subject: [[ ANN ]] Release 9.6.8 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.8 RC-1. You can find more details on the bug fixes and improvements of this new release here: https://livecode.com/m1-native-latest-livecode-releases/ You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From bobsneidar at iotecdigital.com Tue May 31 11:27:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 May 2022 15:27:18 +0000 Subject: Android,iOS stay in background? In-Reply-To: References: Message-ID: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> It's my understanding that iOS does not "load" apps like Android or other operating systems do. It simply "activates" apps already in "memory". The app may allocate more memory for itself of course, or access other services that are constantly running. Bob S > On May 30, 2022, at 23:53 , matthias rebbe via use-livecode wrote: > > if i recall correctly, Android keeps an app running in background as long as Android does not need the memory the app is "consuming". > And i think iOS is doing that as well. From panos.merakos at livecode.com Tue May 31 11:30:18 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 31 May 2022 18:30:18 +0300 Subject: [[ ANN ]] Release 10.0.0 DP-4 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 10.0.0 DP-4. You can find more details on the new features and the bug fixes of this new release here: https://livecode.com/m1-native-latest-livecode-releases/ You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From tom at makeshyft.com Tue May 31 13:51:46 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 31 May 2022 13:51:46 -0400 Subject: Android,iOS stay in background? In-Reply-To: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> References: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> Message-ID: Interesting .....Thanks guys. On Tue, May 31, 2022 at 11:28 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > It's my understanding that iOS does not "load" apps like Android or other > operating systems do. It simply "activates" apps already in "memory". The > app may allocate more memory for itself of course, or access other services > that are constantly running. > > Bob S > > > > On May 30, 2022, at 23:53 , matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > if i recall correctly, Android keeps an app running in background as > long as Android does not need the memory the app is "consuming". > > And i think iOS is doing that as well. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 marksmithhfx at gmail.com Tue May 31 16:48:44 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 31 May 2022 21:48:44 +0100 Subject: Android,iOS stay in background? In-Reply-To: References: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> Message-ID: Hi Tom, You can “suspend” iOS apps by putting them into the background, where they are maintained in a sort of “hibernated” state, ready to go when you open them again, and you can detect this. But it is also possible to “unload” them from memory by swiping up on apps that you can see lurking in the background. This closes the app completely and a restart is initiated when you re-open it. I have had apps “freeze" during development and the only way to restore them was to remove it from memory (close it) and then reopen it again. I also have code that detects when an app is put into the background (and only executes under those conditions) so I do know that this can be detected for iOS apps, but I don’t think there is a way to do it in Android apps yet. The “detecting" is part of Monte's mergNotify package that was incorporated into LC. You can find more info on it in the dictionary. mergNotify "UIApplicationWillResignActiveNotification" -- enables the app to detect when it is moving into the background mergNotify "UIApplicationDidBecomeActiveNotification" -- and when it is being brought back to the foreground See also mergBkTask for more information on background processing in iOS. > On 31 May 2022, at 6:51 pm, Tom Glod via use-livecode wrote: > > Interesting .....Thanks guys. > > On Tue, May 31, 2022 at 11:28 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> It's my understanding that iOS does not "load" apps like Android or other >> operating systems do. It simply "activates" apps already in "memory". The >> app may allocate more memory for itself of course, or access other services >> that are constantly running. >> >> Bob S >> >> >>> On May 30, 2022, at 23:53 , matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> if i recall correctly, Android keeps an app running in background as >> long as Android does not need the memory the app is "consuming". >>> And i think iOS is doing that as well. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 marksmithhfx at gmail.com Tue May 31 16:53:06 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 31 May 2022 21:53:06 +0100 Subject: MrSign'n'Notarize Message-ID: <922E24BA-C062-4E46-AB5E-D997A95D8CAA@gmail.com> Hey Matthias, I just wanted to drop you a quick note to thank you for the amazing utility you put together to sign and staple macOS apps. I tried it for the first time the other day and it was a real joy to use — very well organised. Thanks for that. Definitely a life-saver (or at least a life-enhancer!!). Cheers, Mark From bobsneidar at iotecdigital.com Tue May 3 18:00:02 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 May 2022 22:00:02 +0000 Subject: getProp and passing values Message-ID: <5C185F9D-C7C3-43A6-B7BE-9A46347CD191@iotecdigital.com> Hi all. I seem to recall the ability to define a virtual custom property in such a way that I could for example code: put the maingriddata ["customers"] of card "Main" into tCustomersA As is I cannot pass args to a getprop handler. I can only pass args to a setProp handler. Any ideas? I checked the dictionary and lessons. Not a peep. Bob S From bobsneidar at iotecdigital.com Tue May 3 18:12:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 May 2022 22:12:24 +0000 Subject: getProp and passing values In-Reply-To: <5C185F9D-C7C3-43A6-B7BE-9A46347CD191@iotecdigital.com> References: <5C185F9D-C7C3-43A6-B7BE-9A46347CD191@iotecdigital.com> Message-ID: NVM I figured it out (again). Given that lGridDataA is a script local containing an array of all the datagrid arrays: The getProp handler needs to be written like this: getProp maingriddata [pKey] if pKey is not empty then return lGridDataA [pKey] else return lGridDataA end if end maingridData Bob S > On May 3, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: > > Hi all. > > I seem to recall the ability to define a virtual custom property in such a way that I could for example code: > > put the maingriddata ["customers"] of card "Main" into tCustomersA > > As is I cannot pass args to a getprop handler. I can only pass args to a setProp handler. > > Any ideas? I checked the dictionary and lessons. Not a peep. > > 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 From neville.smythe at optusnet.com.au Wed May 4 10:47:47 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Thu, 5 May 2022 00:47:47 +1000 Subject: Zip file problem on Mac Message-ID: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. This has worked fine until macOS Monterey or LiveCode 9.6.x Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make the rev zip tool fail. Can anyone verify the following? On my Mac, the Archive Utility in Monterey, which automagically unzips files when a zip file is downloaded by Safari or double-clicked, now unsets the execute bit on the application (more precisely, on the executable file in the bundle). Which means the user gets a “This application could not be opened”, with no options to continue, when they try to launch the unzipped app. A terminal savvy user can use chmod x+ to make the app launchable, but I can hardly expect the ordinary user to have to do that. The execute bit is definitely set in the archive, because TheUnarchiver, a free third party decompression tool, unzips the file leaving the app launchable. This also suggests that the problem is not in my code. I can see why Granny Apple might have thought this was a good idea, executables in zip files are a the major sources of trojans, but if Apple has made this change it is a bit nasty because there is no obvious way to override the behaviour. If I use the Archive Utility to actually create the zip file from the standalone app bundle rather than using the rev tools, and then double-click it to decompress, the file unzips with the execute bit set. This shows the archive produced by revZip is not the same as that expected by the Archive Utility. It also suggests a workaround would be to use Archive Utility from a shell command (it is not AppleScriptable – bad Apple!). From a cursory search on Stackoverflow, the command line would be (this is not yet tested and the post is 5 years old) ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip to create the zip file for the Mac platform. The post says that is what the Archive Utility uses to compress files. Probably the rev zip tools use zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. Neville From matthias_livecode_150811 at m-r-d.de Wed May 4 18:35:07 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 5 May 2022 00:35:07 +0200 Subject: Zip file problem on Mac In-Reply-To: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> Message-ID: <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> Neville, i can confirm that behavior even under BigSur. I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. So it seems the LC's zip library does not store the permissions in the zip. According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. But... As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. At least Keka seems to have such feature according to its change log Changes in version 1.0.11 But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. Matthias > Am 04.05.2022 um 16:47 schrieb Neville Smythe via use-livecode : > > I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. > > This has worked fine until macOS Monterey or LiveCode 9.6.x > > Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make the rev zip tool fail. Can anyone verify the following? > > On my Mac, the Archive Utility in Monterey, which automagically unzips files when a zip file is downloaded by Safari or double-clicked, now unsets the execute bit on the application (more precisely, on the executable file in the bundle). Which means the user gets a “This application could not be opened”, with no options to continue, when they try to launch the unzipped app. A terminal savvy user can use chmod x+ to make the app launchable, but I can hardly expect the ordinary user to have to do that. The execute bit is definitely set in the archive, because TheUnarchiver, a free third party decompression tool, unzips the file leaving the app launchable. This also suggests that the problem is not in my code. > > I can see why Granny Apple might have thought this was a good idea, executables in zip files are a the major sources of trojans, but if Apple has made this change it is a bit nasty because there is no obvious way to override the behaviour. > > If I use the Archive Utility to actually create the zip file from the standalone app bundle rather than using the rev tools, and then double-click it to decompress, the file unzips with the execute bit set. This shows the archive produced by revZip is not the same as that expected by the Archive Utility. It also suggests a workaround would be to use Archive Utility from a shell command (it is not AppleScriptable – bad Apple!). From a cursory search on Stackoverflow, the command line would be (this is not yet tested and the post is 5 years old) > > ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip > > to create the zip file for the Mac platform. The post says that is what the Archive Utility uses to compress files. Probably the rev zip tools use zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. > > Neville > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu May 5 11:06:43 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 May 2022 15:06:43 +0000 Subject: Zip file problem on Mac In-Reply-To: <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> Message-ID: <3450E5C1-FD72-4482-A059-F369CD9708FA@iotecdigital.com> Open a bug report and I will +1 it. Bob S > On May 4, 2022, at 15:35 , matthias rebbe via use-livecode wrote: > > Neville, i can confirm that behavior even under BigSur. > > I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. > > Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. > So it seems the LC's zip library does not store the permissions in the zip. > > According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. > But... > As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. > > So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. > At least Keka seems to have such feature according to its change log Changes in version 1.0.11 > > > But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. > > > Matthias > > >> Am 04.05.2022 um 16:47 schrieb Neville Smythe via use-livecode : >> >> I distribute a Mac standalone via a zip file, created using revZipOpenArchive etc. >> >> This has worked fine until macOS Monterey or LiveCode 9.6.x >> >> Either a bug has been introduced into the revZip tools in 9.6.x, or I have a corrupted version, or the Mac Archive Utility has changed so as to make the rev zip tool fail. Can anyone verify the following? >> >> On my Mac, the Archive Utility in Monterey, which automagically unzips files when a zip file is downloaded by Safari or double-clicked, now unsets the execute bit on the application (more precisely, on the executable file in the bundle). Which means the user gets a “This application could not be opened”, with no options to continue, when they try to launch the unzipped app. A terminal savvy user can use chmod x+ to make the app launchable, but I can hardly expect the ordinary user to have to do that. The execute bit is definitely set in the archive, because TheUnarchiver, a free third party decompression tool, unzips the file leaving the app launchable. This also suggests that the problem is not in my code. >> >> I can see why Granny Apple might have thought this was a good idea, executables in zip files are a the major sources of trojans, but if Apple has made this change it is a bit nasty because there is no obvious way to override the behaviour. >> >> If I use the Archive Utility to actually create the zip file from the standalone app bundle rather than using the rev tools, and then double-click it to decompress, the file unzips with the execute bit set. This shows the archive produced by revZip is not the same as that expected by the Archive Utility. It also suggests a workaround would be to use Archive Utility from a shell command (it is not AppleScriptable – bad Apple!). From a cursory search on Stackoverflow, the command line would be (this is not yet tested and the post is 5 years old) >> >> ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip >> >> to create the zip file for the Mac platform. The post says that is what the Archive Utility uses to compress files. Probably the rev zip tools use zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. >> >> Neville >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 5 12:16:32 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 5 May 2022 19:16:32 +0300 Subject: Zip file problem on Mac In-Reply-To: <3450E5C1-FD72-4482-A059-F369CD9708FA@iotecdigital.com> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <3450E5C1-FD72-4482-A059-F369CD9708FA@iotecdigital.com> Message-ID: Hello all, This sounds like this enhancement request https://quality.livecode.com/show_bug.cgi?id=9642 Kind regards, Panos -- On Thu, 5 May 2022 at 18:08, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Open a bug report and I will +1 it. > > Bob S > > > > On May 4, 2022, at 15:35 , matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Neville, i can confirm that behavior even under BigSur. > > > > I've created a small standalone with LC 10DP3 on BigSur and created 2 > zip files from the output folder using LC's zip library and using shell > command zip. > > > > Running the shell command 'zipinfo' to analyse both zip files showed, > that the zip created with LC's zip library did not contain any executable > permissions while the zip created with macOS zip shell command did contain > the permissions. > > So it seems the LC's zip library does not store the permissions in the > zip. > > > > According to your comment about The Unarchiver. Yes, i can also confirm > that The Unarchiver and also Keka can extract the zip file created with LC > and the standalone in the extracted folder is executable again. > > But... > > As zipinfo did list all the files wihtout any executable permissions, i > unzipped the zip with the shell command 'unzip' and that standalone was not > executable again. All files showed exact those permissions that zipinfo > showed before. > > > > So i assume the following: Keka and The Unarchive seem to correct file > permissions when they detect a folder structure that seems to be an app > bundle. But that's just an assumption. > > At least Keka seems to have such feature according to its change log > Changes in version 1.0.11 > > > > > > But anyway. The LC zip library ignores the permission when creating an > archive. If this worked before with older versions of LC i cannot say, as > i always used the zip shell command or tools like Keka. > > > > > > Matthias > > > > > >> Am 04.05.2022 um 16:47 schrieb Neville Smythe via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> I distribute a Mac standalone via a zip file, created using > revZipOpenArchive etc. > >> > >> This has worked fine until macOS Monterey or LiveCode 9.6.x > >> > >> Either a bug has been introduced into the revZip tools in 9.6.x, or I > have a corrupted version, or the Mac Archive Utility has changed so as to > make the rev zip tool fail. Can anyone verify the following? > >> > >> On my Mac, the Archive Utility in Monterey, which automagically unzips > files when a zip file is downloaded by Safari or double-clicked, now unsets > the execute bit on the application (more precisely, on the executable file > in the bundle). Which means the user gets a “This application could not be > opened”, with no options to continue, when they try to launch the unzipped > app. A terminal savvy user can use chmod x+ to make the app launchable, but > I can hardly expect the ordinary user to have to do that. The execute bit > is definitely set in the archive, because TheUnarchiver, a free third party > decompression tool, unzips the file leaving the app launchable. This also > suggests that the problem is not in my code. > >> > >> I can see why Granny Apple might have thought this was a good idea, > executables in zip files are a the major sources of trojans, but if Apple > has made this change it is a bit nasty because there is no obvious way to > override the behaviour. > >> > >> If I use the Archive Utility to actually create the zip file from the > standalone app bundle rather than using the rev tools, and then > double-click it to decompress, the file unzips with the execute bit set. > This shows the archive produced by revZip is not the same as that expected > by the Archive Utility. It also suggests a workaround would be to use > Archive Utility from a shell command (it is not AppleScriptable – bad > Apple!). From a cursory search on Stackoverflow, the command line would be > (this is not yet tested and the post is 5 years old) > >> > >> ditto -c -k --sequesterRsrc --keepParent Product.app Product.app.zip > >> > >> to create the zip file for the Mac platform. The post says that is what > the Archive Utility uses to compress files. Probably the rev zip tools use > zlib. Or maybe I should be creating a .dmg disk image instead of a zip file. > >> > >> Neville > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 harrison at all-auctions.com Thu May 5 13:33:14 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 5 May 2022 13:33:14 -0400 Subject: Visual Dissolve Times In-Reply-To: <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> Message-ID: <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Greetings LiveCoders, I was playing around with the visual dissolve effect and I wanted to be able to specify an amount of time for the effect. In my case I wanted it to do the effect in 0.75 seconds (3/4 of a second). We only get choices of very fast fast normal slow very slow When I tried the very fast setting, the fastest time I got was about 1 second. Is there anyway to make it faster? Thanks Rick From tore.nilsen at me.com Thu May 5 13:45:36 2022 From: tore.nilsen at me.com (Tore Nilsen) Date: Thu, 5 May 2022 19:45:36 +0200 Subject: Visual Dissolve Times In-Reply-To: <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Message-ID: You can set the effectRate to speed up or down the visual effects. Lower number increases the speed. Look it up in the Dictionary for more precise explanation. Best regards Tore Nilsen > 5. mai 2022 kl. 19:33 skrev Rick Harrison via use-livecode : > > Greetings LiveCoders, > > I was playing around with the visual dissolve effect > and I wanted to be able to specify an amount of > time for the effect. In my case I wanted it to > do the effect in 0.75 seconds (3/4 of a second). > > We only get choices of > > very fast > fast > normal > slow > very slow > > When I tried the very fast setting, the > fastest time I got was about 1 second. > > Is there anyway to make it faster? > > Thanks > > Rick > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 5 13:53:40 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 5 May 2022 19:53:40 +0200 Subject: Visual Dissolve Times In-Reply-To: References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Message-ID: Hi Tore and Rick, > Am 05.05.2022 um 19:45 schrieb Tore Nilsen via use-livecode : > > You can set the effectRate to speed up or down the visual effects. Lower number increases the speed. Look it up in the Dictionary for more precise explanation. exactly! The fact that "the effectrate" will only take effect with the "very slow" parameter is a bit mentally challenging however! :-D ... set the effectrate to 500 ## millisecs hide image 1 with visual effect dissolve VERY SLOW ## :-D ... > Best regards > Tore Nilsen > >> 5. mai 2022 kl. 19:33 skrev Rick Harrison via use-livecode : >> >> Greetings LiveCoders, >> >> I was playing around with the visual dissolve effect >> and I wanted to be able to specify an amount of >> time for the effect. In my case I wanted it to >> do the effect in 0.75 seconds (3/4 of a second). >> >> We only get choices of >> >> very fast >> fast >> normal >> slow >> very slow >> >> When I tried the very fast setting, the >> fastest time I got was about 1 second. >> >> Is there anyway to make it faster? >> >> Thanks >> >> Rick Best Klaus > -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From harrison at all-auctions.com Thu May 5 14:49:37 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 5 May 2022 14:49:37 -0400 Subject: Visual Dissolve Times In-Reply-To: References: <70CCBDF9-E343-4CCD-885E-B727CCF4B925@optusnet.com.au> <040F4A7D-49E5-4AEA-8C7D-8911B1BE878B@m-r-d.de> <9824930D-10BD-4C2F-B361-4CDED84F18E3@all-auctions.com> Message-ID: <66460160-EA0A-436C-AE31-9B5C8A4B294D@all-auctions.com> Hi Tore, set the effectRate.. Cool! Thanks Tore! > On May 5, 2022, at 1:45 PM, Tore Nilsen via use-livecode wrote: > > You can set the effectRate to speed up or down the visual effects. Lower number increases the speed. Look it up in the Dictionary for more precise explanation. > > Best regards > Tore Nilsen From neville.smythe at optusnet.com.au Thu May 5 19:59:44 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 6 May 2022 09:59:44 +1000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: I have submitting a report to QC (Bug 23698 ) Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly. So the problem is nothing to do with Apple. TheUnarchiver and Keka changing the permissions to what they think they ought to be sounds well-intentioned but highly problematic (what’s the meme for the opposite of an overprotective nanny? Busybody big sister?) Your last comment caused me to realise that I have only changed very recently to automating the process of creating the zip files as a post-standalone build-process using revZip. Previously I created the zip files by hand, and my beta-tester uses Windows. Thought I was being clever. So the bug in the LC implementation may have been present for a long time. Neville > > Neville, i can confirm that behavior even under BigSur. > > I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. > > Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. > So it seems the LC's zip library does not store the permissions in the zip. > > According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. > But... > As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. > > So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. > At least Keka seems to have such feature according to its change log Changes in version 1.0.11 > > > But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. > > > Matthias > > From matthias_livecode_150811 at m-r-d.de Fri May 6 03:09:02 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 6 May 2022 09:09:02 +0200 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: Hm, is it really a bug or does revZip just stick to the zip specs? > Am 06.05.2022 um 01:59 schrieb Neville Smythe via use-livecode : > > I have submitting a report to QC (Bug 23698 ) > > Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly. > > So the problem is nothing to do with Apple. TheUnarchiver and Keka changing the permissions to what they think they ought to be sounds well-intentioned but highly problematic (what’s the meme for the opposite of an overprotective nanny? Busybody big sister?) > > Your last comment caused me to realise that I have only changed very recently to automating the process of creating the zip files as a post-standalone build-process using revZip. Previously I created the zip files by hand, and my beta-tester uses Windows. Thought I was being clever. So the bug in the LC implementation may have been present for a long time. > > Neville > >> >> Neville, i can confirm that behavior even under BigSur. >> >> I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. >> >> Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. >> So it seems the LC's zip library does not store the permissions in the zip. >> >> According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. >> But... >> As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. >> >> So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. >> At least Keka seems to have such feature according to its change log Changes in version 1.0.11 >> >> >> But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. >> >> >> 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 bobsneidar at iotecdigital.com Fri May 6 11:09:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 May 2022 15:09:51 +0000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <714A2529-DBFA-4FFB-892F-653FDACC8F98@iotecdigital.com> Should be an enhancement request. Bob S > On May 6, 2022, at 24:09 , matthias rebbe via use-livecode wrote: > > Hm, > is it really a bug or does revZip just stick to the zip specs? From waprothero at gmail.com Fri May 6 16:40:42 2022 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 May 2022 13:40:42 -0700 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: Message-ID: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Folks: I have a nasty accounting problem and need to somehow get data into Quicken (or perhaps find another management program). My question is whether it’s possible (or known) how to take csv data (easy) and convert to acceptable QIF form, which quicken requires. Best, Bill Prothero William Prothero waprothero at gmail.com From bobsneidar at iotecdigital.com Fri May 6 16:48:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 May 2022 20:48:26 +0000 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: Is QIF a text based format, or is it encrypted? If the latter (and it probably is), it is doubtful that there is a way to do this without software (of which there are some options if you google it). Bob S > On May 6, 2022, at 13:40 , William Prothero via use-livecode wrote: > > Folks: > I have a nasty accounting problem and need to somehow get data into Quicken (or perhaps find another management program). My question is whether it’s possible (or known) how to take csv data (easy) and convert to acceptable QIF form, which quicken requires. > > Best, > Bill Prothero > > William Prothero > waprothero 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 brian at milby7.com Fri May 6 16:49:45 2022 From: brian at milby7.com (Brian Milby) Date: Fri, 6 May 2022 16:49:45 -0400 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <0DC03651-8604-4197-BEDB-EE3003AC5E18@milby7.com> It is a bug somewhere. See this big report: https://quality.livecode.com/show_bug.cgi?id=21447 I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. Thanks, Brian Sent from my iPhone > On May 6, 2022, at 3:10 AM, matthias rebbe via use-livecode wrote: > > Hm, > is it really a bug or does revZip just stick to the zip specs? > > > >> Am 06.05.2022 um 01:59 schrieb Neville Smythe via use-livecode : >> >> I have submitting a report to QC (Bug 23698 ) >> >> Thanks Matthias for clarifying that permissions are not correct in the archive. I can now add that the Linux archive has the same problem. The Windows archive created by revZip executes correctly. >> >> So the problem is nothing to do with Apple. TheUnarchiver and Keka changing the permissions to what they think they ought to be sounds well-intentioned but highly problematic (what’s the meme for the opposite of an overprotective nanny? Busybody big sister?) >> >> Your last comment caused me to realise that I have only changed very recently to automating the process of creating the zip files as a post-standalone build-process using revZip. Previously I created the zip files by hand, and my beta-tester uses Windows. Thought I was being clever. So the bug in the LC implementation may have been present for a long time. >> >> Neville >> >>> >>> Neville, i can confirm that behavior even under BigSur. >>> >>> I've created a small standalone with LC 10DP3 on BigSur and created 2 zip files from the output folder using LC's zip library and using shell command zip. >>> >>> Running the shell command 'zipinfo' to analyse both zip files showed, that the zip created with LC's zip library did not contain any executable permissions while the zip created with macOS zip shell command did contain the permissions. >>> So it seems the LC's zip library does not store the permissions in the zip. >>> >>> According to your comment about The Unarchiver. Yes, i can also confirm that The Unarchiver and also Keka can extract the zip file created with LC and the standalone in the extracted folder is executable again. >>> But... >>> As zipinfo did list all the files wihtout any executable permissions, i unzipped the zip with the shell command 'unzip' and that standalone was not executable again. All files showed exact those permissions that zipinfo showed before. >>> >>> So i assume the following: Keka and The Unarchive seem to correct file permissions when they detect a folder structure that seems to be an app bundle. But that's just an assumption. >>> At least Keka seems to have such feature according to its change log Changes in version 1.0.11 >>> >>> >>> But anyway. The LC zip library ignores the permission when creating an archive. If this worked before with older versions of LC i cannot say, as i always used the zip shell command or tools like Keka. >>> >>> >>> 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 richmondmathewson at gmail.com Fri May 6 17:12:14 2022 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 7 May 2022 00:12:14 +0300 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: <88841474-c5b9-c0a5-1761-458bf5f39056@gmail.com> Awkward: Whackypedia says: "Different (and incompatible) versions of Quicken run on Windows and Macintosh systems." and "the absence of a common cross-platform file format" so getting data "into Quicken" could mean several things. "newer versions of Quicken for Mac use an SQLite database" So, my first question is going to be, 'which version of Quicken are you talking about?' and my second one is going to be, 'Windows or Mac?' and my third one is, 'Doesn't the person with this problem still have access to the version of quicken they previously used?' On 6.05.22 23:48, Bob Sneidar via use-livecode wrote: > Is QIF a text based format, or is it encrypted? If the latter (and it probably is), it is doubtful that there is a way to do this without software (of which there are some options if you google it). > > Bob S > > >> On May 6, 2022, at 13:40 , William Prothero via use-livecode wrote: >> >> Folks: >> I have a nasty accounting problem and need to somehow get data into Quicken (or perhaps find another management program). My question is whether its possible (or known) how to take csv data (easy) and convert to acceptable QIF form, which quicken requires. >> >> Best, >> Bill Prothero >> >> William Prothero >> waprothero 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri May 6 17:16:54 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 6 May 2022 17:16:54 -0400 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: why did you ask about another management program? what up? On Fri, May 6, 2022 at 4:41 PM William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Folks: > I have a nasty accounting problem and need to somehow get data into > Quicken (or perhaps find another management program). My question is > whether it’s possible (or known) how to take csv data (easy) and convert to > acceptable QIF form, which quicken requires. > > Best, > Bill Prothero > > William Prothero > waprothero 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 > -- 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 waprothero at gmail.com Fri May 6 18:45:36 2022 From: waprothero at gmail.com (William Prothero) Date: Fri, 6 May 2022 15:45:36 -0700 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: Mike: Wellll, I notice that many folks are asking questions about merging and sorting lots of data using DataGrid, and databases, and I have a possible need for getting csv data into Quicken, on a Mac. I’m trying to see if a livecode solution fits my problem. It’s kinda like folks talking about using Livecode to format data for export to Excell. I had wondered if anybody on this list had faced this problem, and trying to format for Quicken, which is a very popular financial app. I’m not hopeful, but thought I’d check. I’m also considering just doing this completely in Livecode. There seem to be many pathways to financial management. Bank statement downloads don’t list the name of the person who made the transaction (at least some don’t), online payment systems (Converge, for example) allow csv downloads and it’s possible to get a csv formatted file of transactions that include payee name, address, phone, etc that I would like to keep. Merging these csv downloads with bank statements that list “Batches”, which often contain numerous credit card purchases, could be an onerous hand editing job..the kind I hate. I’m trying to streamline this task. Then there are the other online payment sites ……. WooCommerce, etc, which would presumably not involve Livecode programming. I’m not ready to go that way yet, hoping for something I know a bit more about. An approach connecting some of these various formats of financial data to Quicken (using Livecode) would require a livecode output to a quicken interchange format (QIF). In short (or was it “long”), if nobody has tried this, no worries, please ignore this post. I’m just doing “Do Diligence”. Best, Bill Prothero > On May 6, 2022, at 2:16 PM, Mike Kerner via use-livecode wrote: > > why did you ask about another management program? what up? > > On Fri, May 6, 2022 at 4:41 PM William Prothero via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Folks: >> I have a nasty accounting problem and need to somehow get data into >> Quicken (or perhaps find another management program). My question is >> whether it’s possible (or known) how to take csv data (easy) and convert to >> acceptable QIF form, which quicken requires. >> >> Best, >> Bill Prothero >> >> William Prothero >> waprothero 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 >> > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode William Prothero waprothero at gmail.com From martyknappster at gmail.com Fri May 6 18:52:06 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Fri, 6 May 2022 15:52:06 -0700 Subject: Anybody tried to import data to Quicken for Mac? In-Reply-To: References: <795128B3-E761-4159-A137-5CA2EF4720C4@gmail.com> Message-ID: <526FBEDE-DAA5-4B50-BF1F-25467E8B352C@gmail.com> I have a crude little LC utility stack that converts a CSV file to QIF - that would give you a start. Just contact me off list and I can send that to you if you want. Marty Knapp > On May 6, 2022, at 3:45 PM, William Prothero via use-livecode wrote: > > Mike: > Wellll, I notice that many folks are asking questions about merging and sorting lots of data using DataGrid, and databases, and I have a possible need for getting csv data into Quicken, on a Mac. I’m trying to see if a livecode solution fits my problem. It’s kinda like folks talking about using Livecode to format data for export to Excell. I had wondered if anybody on this list had faced this problem, and trying to format for Quicken, which is a very popular financial app. I’m not hopeful, but thought I’d check. > > I’m also considering just doing this completely in Livecode. There seem to be many pathways to financial management. Bank statement downloads don’t list the name of the person who made the transaction (at least some don’t), online payment systems (Converge, for example) allow csv downloads and it’s possible to get a csv formatted file of transactions that include payee name, address, phone, etc that I would like to keep. Merging these csv downloads with bank statements that list “Batches”, which often contain numerous credit card purchases, could be an onerous hand editing job..the kind I hate. I’m trying to streamline this task. > > Then there are the other online payment sites ……. WooCommerce, etc, which would presumably not involve Livecode programming. I’m not ready to go that way yet, hoping for something I know a bit more about. > > An approach connecting some of these various formats of financial data to Quicken (using Livecode) would require a livecode output to a quicken interchange format (QIF). > > In short (or was it “long”), if nobody has tried this, no worries, please ignore this post. I’m just doing “Do Diligence”. > > Best, > Bill Prothero From neville.smythe at optusnet.com.au Sat May 7 02:19:08 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sat, 7 May 2022 16:19:08 +1000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <47B441DF-1F6A-4731-AC3B-87E3AE4C5F60@optusnet.com.au> > On 7 May 2022, at 2:00 am, use-livecode-request at lists.runrev.com wrote: > > This sounds like this enhancement request > https://quality.livecode.com/show_bug.cgi?id=9642 Thanks Panos for pointing out this is a duplicate to bug 9642, an enhancement request since 2011. I did do a quick search but clearly not very thoroughly. The comments in that request hint that it is an OSX specific thing to include the execute permission flag in the zip files, and maybe the revZip tools are just following the zip specs as Matthias says, but I’m not sure about either. The original zip description said it included a copy of the file directory, but that was in the context of MSDOS which didn’t have an execute flag. Whether permissions are included in the archive does depend on the tool used to create the zip file and the platform. There is a long and confuseing thread on Stackoverflow about producing zip files which include execute permissions. Recall my objective was to use LC to post-process the standalone build to produce a compressed file of each of the Mac, Windows and Linux standalones created by LC, and to do this whether the development platform was a Mac, Windows or a Linux box. At the time zip appeared to be the obvious choice. I haven’t checked what the OSX shell command zip produces, but the Mac version produced by the default archiver (in effect the shell command ditto) does include the x flag. As Matthias notes one can check this using zipInfo or its equivalent unzip -Z on any platform. But it is not just Mac specific in the sense that Linux will happily decompress the Mac-created Linux standalone into an executable – at least on Ubuntu unzip -Z reports that x is set to true. On Windows unzip -Z looks at the .exe extension to decide if the file is executable rather than looking at unix permissions, so the Windows standalone will decompress into a launchable app (and I guess that is the reasoning behind TheUnarchiver and Keka setting the permission when unzipping a file with .app file extension on a Mac, even if the permission is not set in the archive itself). So I can achieve my objective if the development platform is a Mac using a shell command from LC. On Linux I don’t know what shell command would work. Windows not being unix-based clearly requires something more than just zip to set the permissions in the archives of the two non-Windows standalones. The clever people at LC know how to set unix permissions for the unix standalones themselves from the Windows IDE but it's beyond my skillset I’m afraid. I had hoped this could all be done in LC without going to platform-specific tools. So the requested enhancement would be nice. But I won’t hold my breath. From neville.smythe at optusnet.com.au Sat May 7 02:36:01 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sat, 7 May 2022 16:36:01 +1000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: The pulldownmenu bug I reported has been confirmed: bug 23693 To remind the reader: On a Mac, when a user select a menu item from a pulldown menu button, the menuPick message is sent first followed by a mouseLeave message (generated as the mouse leaves the button rect to select the menu item). On Windows, the mouseLeave is sent immediately, followed by menuPick. The Mac order is correct, the mouseLeave should be delayed until the displayed menu is dismissed. Linux has the same incorrect behaviour as Windows. The same situation applies to popupmenus and option menu buttons: the Mac has the correct order, Windows and Linux incorrect. However for the combobox button, all three platforms give the wrong message order! And one last twist, although the Mac implementation gives the correct order for 3 menu buttons, it sends the mouseLeave message twice, once immediately after the menuPick, and then again when the mouse is released. Neville From williamdesmet at gmail.com Sat May 7 04:06:01 2022 From: williamdesmet at gmail.com (William de Smet) Date: Sat, 7 May 2022 10:06:01 +0200 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 Message-ID: Hi there, Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. Building the app is no problem and gives no error message on my Mac Putting the app with Xcode on my iPad however gives an error: Unable to Install App I checked the Provisioning Profile but the iPad is listed on it. I did know this because there are other apps on it. I did work before. Am I overseeing something? , greetings, William From ambassador at fourthworld.com Sat May 7 16:42:30 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 7 May 2022 13:42:30 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. Background: ---------- MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. And until the port to MacOS, all platforms behaved consistently. So why the Mac change? Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. The Here-And-Now: ---------------- Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: Looking Forward: --------------- Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. What do you need from mouseLeave during a menu drop? What are you doing in response to that message? There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. -- Richard Gaskin Fourth World Systems Neville Smythe wrote: > The pulldownmenu bug I reported has been confirmed: bug 23693 > > > To remind the reader: On a Mac, when a user select a menu item from > a pulldown menu button, the menuPick message is sent first followed > by a mouseLeave message (generated as the mouse leaves the button > rect to select the menu item). On Windows, the mouseLeave is sent > immediately, followed by menuPick. > > The Mac order is correct, the mouseLeave should be delayed until the > displayed menu is dismissed. > > Linux has the same incorrect behaviour as Windows. > > The same situation applies to popupmenus and option menu buttons: > the Mac has the correct order, Windows and Linux incorrect. > > However for the combobox button, all three platforms give the wrong > message order! > > And one last twist, although the Mac implementation gives the correct > order for 3 menu buttons, it sends the mouseLeave message twice, once > immediately after the menuPick, and then again when the mouse is > released. > > Neville From bobsneidar at iotecdigital.com Sat May 7 17:35:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 7 May 2022 21:35:51 +0000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> References: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> Message-ID: Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? Sent from my iPhone > On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: > > It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. > > > Background: > ---------- > MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. > > On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. > > And until the port to MacOS, all platforms behaved consistently. > > So why the Mac change? > > Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. > > Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). > > So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. > > The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. > > So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. > > This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). > > It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. > > If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. > > On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. > > I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? > > All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. > > > > The Here-And-Now: > ---------------- > Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. > > They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. > > I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: > > > > Looking Forward: > --------------- > Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. > > What do you need from mouseLeave during a menu drop? What are you doing in response to that message? > > There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. > > -- > Richard Gaskin > Fourth World Systems > > > > Neville Smythe wrote: > > The pulldownmenu bug I reported has been confirmed: bug 23693 > > > > > > To remind the reader: On a Mac, when a user select a menu item from > > a pulldown menu button, the menuPick message is sent first followed > > by a mouseLeave message (generated as the mouse leaves the button > > rect to select the menu item). On Windows, the mouseLeave is sent > > immediately, followed by menuPick. > > > > The Mac order is correct, the mouseLeave should be delayed until the > > displayed menu is dismissed. > > > > Linux has the same incorrect behaviour as Windows. > > > > The same situation applies to popupmenus and option menu buttons: > > the Mac has the correct order, Windows and Linux incorrect. > > > > However for the combobox button, all three platforms give the wrong > > message order! > > > > And one last twist, although the Mac implementation gives the correct > > order for 3 menu buttons, it sends the mouseLeave message twice, once > > immediately after the menuPick, and then again when the mouse is > > released. > > > > Neville > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat May 7 21:18:20 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 8 May 2022 11:18:20 +1000 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <561F27BA-F608-4AFF-B339-B79EDC38A1B6@optusnet.com.au> > On 8 May 2022, at 2:00 am, Brian Milby wrote: > > It is a bug somewhere. See this big report: > https://quality.livecode.com/show_bug.cgi?id=21447 > > I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. > Brian, utter genius! Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) I tried the implausible trick of using the undocumented revZipSetItemAttributes put 0x80000000 into tExtAttributes -- regular file add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! Neville From marksmithhfx at gmail.com Sun May 8 10:11:13 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 8 May 2022 15:11:13 +0100 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: References: Message-ID: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Hi William, In the Standalone Application setting for iOS there are options to build for “iPod and iPhone” or two options for building for iPad (“iPad” only and “iPod, iPhone, iPad”). I was going to suggest checking those, but then, just to be sure I rebuilt one of my own apps with “iPod and iPhone” setting, and it installed and ran just fine on my iPad. I tried with both the Test button in LC and installing the app with Xcode and in both cases it worked ok, so that can’t be the problem. Do let us know if you track down the cause. Cheers, Mark > On May 7, 2022, at 9:06 AM, William de Smet via use-livecode wrote: > > Hi there, > > Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 > Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. > Building the app is no problem and gives no error message on my Mac > Putting the app with Xcode on my iPad however gives an error: Unable to > Install App > > I checked the Provisioning Profile but the iPad is listed on it. > I did know this because there are other apps on it. > I did work before. > > Am I overseeing something? > > , > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun May 8 11:32:49 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 11:32:49 -0400 Subject: Launch of multiple application instances (Mac vs Win) Message-ID: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> Seeking help: On MacOS when you try to launch a second instance of an application, the macOS just brings the open app to the front (for example, if it is hidden on minimized). On Windows, when you try to launch a second instance of an application, Windows launches a second (or 3rd or 4th or ...) instance of the application. All well and good, but here is my problem. We have some users of our application that, on Windows, are accidentally launching more than once instance of our application and then getting confused (our users are often not very computer literate).. This confusion can lead to them thinking they have lost data or other problems caused by doing some work in one instance and some in another and not recognizing they have multiple instances running. I would like to add some start up code to application, that on Windows, detects if our app is already running and  (a) shuts the 2nd instance down OR (b) [PREFERABLY] warns the user they are launching a second instance and offers to (1) bring the existing instance to the foreground (and shut itself down) or actually continue and launch a seconds instance (for power users who know what they are doing) Has anyone written code to do this? i.e. code to detect an already running instance and code to bring that instance to the foreground? If so, are you willing to share the code? Just looking to not have to reinvent the wheel here. Thank you in advance! From klaus at major-k.de Sun May 8 11:37:08 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 8 May 2022 17:37:08 +0200 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> Message-ID: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Hi Paul, > Am 08.05.2022 um 17:32 schrieb Paul Dupuis via use-livecode : > > Seeking help: > > On MacOS when you try to launch a second instance of an application, the macOS just brings the open app to the front (for example, if it is hidden on minimized). > On Windows, when you try to launch a second instance of an application, Windows launches a second (or 3rd or 4th or ...) instance of the application. > > All well and good, but here is my problem. We have some users of our application that, on Windows, are accidentally launching more than once instance of our application and then getting confused (our users are often not very computer literate).. This confusion can lead to them thinking they have lost data or other problems caused by doing some work in one instance and some in another and not recognizing they have multiple instances running. > > I would like to add some start up code to application, that on Windows, detects if our app is already running and (a) shuts the 2nd instance down OR (b) [PREFERABLY] warns the user they are launching a second instance and offers to (1) bring the existing instance to the foreground (and shut itself down) or actually continue and launch a seconds instance (for power users who know what they are doing) > > Has anyone written code to do this? > i.e. code to detect an already running instance and code to bring that instance to the foreground? > If so, are you willing to share the code? > > Just looking to not have to reinvent the wheel here. just add this "dummy" handler to your stack: ---------------------------- on relaunch ## Nada :-) end relaunch ----------------------------- That will prevent the launching of multiple instances on Windows! > Thank you in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From colinholgate at gmail.com Sun May 8 11:47:36 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 8 May 2022 09:47:36 -0600 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: <38C2CEA9-EC96-40D3-A962-3185C7BA27BB@gmail.com> I wonder if the relaunch approach would leave the user in File Explorer, and would not switch across to the existing app instance? Hopefully it will be that simple. If it isn’t, try this approach: https://use-livecode.runrev.narkive.com/wOjpGm5V/external-for-running-one-instance-on-windows > On May 8, 2022, at 9:37 AM, Klaus major-k via use-livecode wrote: > > Hi Paul, > >> Am 08.05.2022 um 17:32 schrieb Paul Dupuis via use-livecode : >> >> Seeking help: >> >> On MacOS when you try to launch a second instance of an application, the macOS just brings the open app to the front (for example, if it is hidden on minimized). >> On Windows, when you try to launch a second instance of an application, Windows launches a second (or 3rd or 4th or ...) instance of the application. >> >> All well and good, but here is my problem. We have some users of our application that, on Windows, are accidentally launching more than once instance of our application and then getting confused (our users are often not very computer literate).. This confusion can lead to them thinking they have lost data or other problems caused by doing some work in one instance and some in another and not recognizing they have multiple instances running. >> >> I would like to add some start up code to application, that on Windows, detects if our app is already running and (a) shuts the 2nd instance down OR (b) [PREFERABLY] warns the user they are launching a second instance and offers to (1) bring the existing instance to the foreground (and shut itself down) or actually continue and launch a seconds instance (for power users who know what they are doing) >> >> Has anyone written code to do this? >> i.e. code to detect an already running instance and code to bring that instance to the foreground? >> If so, are you willing to share the code? >> >> Just looking to not have to reinvent the wheel here. > > just add this "dummy" handler to your stack: > ---------------------------- > on relaunch > ## Nada :-) > end relaunch > ----------------------------- > That will prevent the launching of multiple instances on Windows! > >> Thank you in advance! > > 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 paul at researchware.com Sun May 8 11:57:47 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 11:57:47 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: On 5/8/2022 11:37 AM, Klaus major-k via use-livecode wrote: > just add this "dummy" handler to your stack: > ---------------------------- > on relaunch > ## Nada :-) > end relaunch > ----------------------------- > That will prevent the launching of multiple instances on Windows! > > Thank you! I was unaware of 'relaunch' and it looks like I can make it do exactly what I want (warn the user and let them bring the 1st instance to the foreground or continue). Much appreciated! From paul at researchware.com Sun May 8 12:01:42 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 12:01:42 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <38C2CEA9-EC96-40D3-A962-3185C7BA27BB@gmail.com> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> <38C2CEA9-EC96-40D3-A962-3185C7BA27BB@gmail.com> Message-ID: On 5/8/2022 11:47 AM, Colin Holgate via use-livecode wrote: > I wonder if the relaunch approach would leave the user in File Explorer, and would not switch across to the existing app instance? Hopefully it will be that simple. > > If it isnt, try this approach: > > https://use-livecode.runrev.narkive.com/wOjpGm5V/external-for-running-one-instance-on-windows > Thanks! From paul at researchware.com Sun May 8 12:08:35 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 12:08:35 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: The LC 9.6.7 Dictionary entry to 'relaunch" states: It can be used in the following three ways: |1. If the message is passed, then the new instance continues running. 2. If "background" is returned, then the new instance is terminated. 3. If nothing is returned but the message is not passed, then the new instance is terminated and the existing instance's "defaultStack" is made the foreground window.| If there are no existing instances, the new instance will run. 1. seems pretty straightforward: on relaunch   pass relaunch end relaunch Would allow the 2nd (or whatever number) instance to continue to start up 3. Seems obvious as well: on relaunch   -- trap the message end relaunch Here, the message is not passed, so the new instance is terminated and the "defaultStack" of the existing instance is brought to the foreground However, I do not understand 2. What the heck does ;If "background" is returned" mean in the context of this handler? Returned from what? The only example given is: onrelaunch pDocument openDocument pDocument endrelaunch And the Dictionary states that actually multiple parameters can be passed (for example if multiple documents where dragged onto the app to launch it). I feel there is something missing in the Dictionary entry! From paul at researchware.com Sun May 8 12:32:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 May 2022 12:32:01 -0400 Subject: Launch of multiple application instances (Mac vs Win) In-Reply-To: References: <50fc996e-5117-d70c-da98-6648a4d37e9b@researchware.com> <1ED6165B-399A-4231-991F-D68048EE4190@major-k.de> Message-ID: Nevermind. I found the "Relaunch Sampler.rev" stack referred to in the Dictionary entry and it explains how the message is used further. On 5/8/2022 12:08 PM, Paul Dupuis via use-livecode wrote: > The LC 9.6.7 Dictionary entry to 'relaunch" states: > > It can be used in the following three ways: > > |1. If the message is passed, then the new instance continues running. > 2. If "background" is returned, then the new instance is terminated. > 3. If nothing is returned but the message is not passed, then the new > instance is terminated and the existing instance's "defaultStack" is > made the foreground window.| > > If there are no existing instances, the new instance will run. > > 1. seems pretty straightforward: > > on relaunch > >   pass relaunch > > end relaunch > > Would allow the 2nd (or whatever number) instance to continue to start up > > > 3. Seems obvious as well: > > on relaunch > >   -- trap the message > > end relaunch > > Here, the message is not passed, so the new instance is terminated and > the "defaultStack" of the existing instance is brought to the foreground > > > However, I do not understand 2. What the heck does ;If "background" is > returned" mean in the context of this handler? Returned from what? The > only example given is: > > onrelaunch pDocument openDocument pDocument endrelaunch > > And the Dictionary states that actually multiple parameters can be > passed (for example if multiple documents where dragged onto the app > to launch it). I feel there is something missing in the Dictionary entry! > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun May 8 13:32:54 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 8 May 2022 19:32:54 +0200 Subject: Zip file problem on Mac In-Reply-To: <561F27BA-F608-4AFF-B339-B79EDC38A1B6@optusnet.com.au> References: <561F27BA-F608-4AFF-B339-B79EDC38A1B6@optusnet.com.au> Message-ID: Hi all, > Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode : >> On 8 May 2022, at 2:00 am, Brian Milby wrote: >> It is a bug somewhere. See this big report: >> https://quality.livecode.com/show_bug.cgi?id=21447 >> I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. > Brian, utter genius! > Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) > I tried the implausible trick of using the undocumented revZipSetItemAttributes > put 0x80000000 into tExtAttributes -- regular file > add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) > revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system > for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. > Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. > As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. > I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! > > Neville I really wonder how much more useful features are undocumented and why they do not find their way into the dictionary!? -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From brian at milby7.com Sun May 8 14:19:59 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 8 May 2022 14:19:59 -0400 Subject: Zip file problem on Mac In-Reply-To: References: Message-ID: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> I imagine this one isn’t documented due to the issues where you can’t read properties from an existing zip file. I think I found it when digging into the source. I’m sure there are some that could be found by looking at the source code that is still available. Sent from my iPhone > On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode wrote: > > Hi all, > >>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode : >>>> On 8 May 2022, at 2:00 am, Brian Milby wrote: >>> It is a bug somewhere. See this big report: >>> https://quality.livecode.com/show_bug.cgi?id=21447 >>> I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. >> Brian, utter genius! >> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) >> I tried the implausible trick of using the undocumented revZipSetItemAttributes >> put 0x80000000 into tExtAttributes -- regular file >> add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) >> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system >> for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. >> Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. >> As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. >> I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! >> >> Neville > > I really wonder how much more useful features are undocumented and why they do not find their way into the dictionary!? > > -- > 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 Sun May 8 14:23:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 8 May 2022 20:23:16 +0200 Subject: Zip file problem on Mac In-Reply-To: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> References: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> Message-ID: <41EDA2A7-0CEE-46AC-AE0F-493ED3C88952@major-k.de> Hi Brian, > Am 08.05.2022 um 20:19 schrieb Brian Milby via use-livecode : > > I imagine this one isn’t documented due to the issues where you can’t read properties from an existing zip file. I think I found it when digging into the source. > I’m sure there are some that could be found by looking at the source code that is still available. I bet there are, but surely won't take a look... 8-) > Sent from my iPhone > >> On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode wrote: >> >> Hi all, >> >>>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode : >>>>> On 8 May 2022, at 2:00 am, Brian Milby wrote: >>>> It is a bug somewhere. See this big report: >>>> https://quality.livecode.com/show_bug.cgi?id=21447 >>>> I actually think it is related. The zip should be created as a Unix variant and not Fat and file attributes should be stored. One thing that could be tried is to manually set the executable bit when creating the archive. I was able to store a link in a zip using this method, but there is no way to read the file attributes in LC. >>> Brian, utter genius! >>> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not a ‘unx’ zip and not adding the external attributes – but it looks like you have provided the workaround (for my problem of execute permissions at least) >>> I tried the implausible trick of using the undocumented revZipSetItemAttributes >>> put 0x80000000 into tExtAttributes -- regular file >>> add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file (and may only do for Mac,Linux?) >>> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for unix system >>> for each file as it is added to the archive. I didn’t really expect this to work as the file is already added to the archive in ‘fat’ format. >>> Not only does unzip -Z report that the archive items are now in ‘unx’ format with permissions rwxrwxr-x, but astonishingly the zip actually decompresses to a working executable – well, only so far briefly tested on a Mac but it seems likely this is going to work on all platforms. >>> As you point out in your bug 21447 report, revZip probably won’t be able to decompress the archive correctly because of other deficiencies, but I only need the user's system to unpack it. And I will have to modify the permissions for each individual file in the archive. >>> I never thought I would use the expression, but, like , awesome! OK sorry I went there, but jolly well done, that man! >>> >>> Neville >> >> I really wonder how much more useful features are undocumented and why they do not find their way into the dictionary!? 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 Sun May 8 16:00:00 2022 From: merakosp at gmail.com (panagiotis m) Date: Sun, 8 May 2022 23:00:00 +0300 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> References: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Message-ID: Hello William, Could it be the case you have checked the "beta version" checkbox in the iOS standalone settings? Cheers, Panos On Sun, 8 May 2022, 17:12 Mark Smith via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi William, > > In the Standalone Application setting for iOS there are options to build > for “iPod and iPhone” or two options for building for iPad (“iPad” only and > “iPod, iPhone, iPad”). I was going to suggest checking those, but then, > just to be sure I rebuilt one of my own apps with “iPod and iPhone” > setting, and it installed and ran just fine on my iPad. I tried with both > the Test button in LC and installing the app with Xcode and in both cases > it worked ok, so that can’t be the problem. Do let us know if you track > down the cause. > > Cheers, > Mark > > > > On May 7, 2022, at 9:06 AM, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi there, > > > > Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 > > Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. > > Building the app is no problem and gives no error message on my Mac > > Putting the app with Xcode on my iPad however gives an error: Unable to > > Install App > > > > I checked the Provisioning Profile but the iPad is listed on it. > > I did know this because there are other apps on it. > > I did work before. > > > > Am I overseeing something? > > > > , > > > > greetings, > > > > William > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 markclark at mac.com Sun May 8 18:45:31 2022 From: markclark at mac.com (Mark Clark) Date: Sun, 8 May 2022 17:45:31 -0500 Subject: Decrypting (and encrypting) Large files Message-ID: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Wondering if anyone has used LiveCode for encrypting-decrypting large files? The docs typically have nice examples for files that can fit into a variable, but what are folks doing for big files that are larger than what you’d want in a variable? I’m thinking about using LC for decrypting zip compressed log files that can be multiple gigabytes in size. I’d like to use just LC vs. resorting to shell if possible. Likely need a hash value to compare the decrypted output against the original as well. I’m thinking some variation along the lines of open file x for read, reading some manageable chunk into memory, decrypting a portion, writing that to disk and repeat. But that seems too simple. Think we need AES 256. Any shared experience much appreciated. Thanks all, Mark From neville.smythe at optusnet.com.au Sun May 8 20:05:06 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Mon, 9 May 2022 10:05:06 +1000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: <6F883029-00DB-41BD-ADF1-437890FF4D5F@optusnet.com.au> Thanks Richard for your wise observations. As cross-platform developers we do indeed need to be aware of differences that will arise in standalones because of GUI differences in the operating systems – different placement of menus, different text string lengths, some features not even being available. These things are largely well-known and documented with warnings. But I contend this problem is something different. Here the order of processing user events from an LC object is different. Although this may indeed be an artefact of the way the LC button menu objects are implemented, I don’t think the developer could be expected to expect this, and to my mind that makes it a definite bug. If it occurred with more common event pairs, LC coding would be much more difficult. I am not actually fussed which processing order is accepted as “correct”: although I expressed an IMO preference for the order as implemented on a Mac, the case for the opposite order is at least as strong. My use-case was as follows. I have a pulldownmenu, not an application-wide menu, which applied to only certain selected items in a field. On mouseEnter, the selection changed colour, as a visual cue to the user that these menu items could be applied to the selection. On mouseLeave the colour changed back. At some point I inadvertently added a line of code to the mouseLeave handler which had the effect of killing the selection; this line was supposed to go into the menuPick handler. On my Mac the app continued to work as intended, but on a user's Windows PC the effect was to change a very minor cosmetic difference into a major bug because the menu no longer did anything. This was quite difficult to track down. As to the priority of the bug: very low. Unless it turns to be easy to fix I don’t expect the inconsistency will ever be fixed even if the expert review agrees that it is actually a bug. Consistency of event order across platforms is clearly of very high importance, but this is a pretty extreme edge case, which only cropped up for me because of my own coding mistake. I reported it here because it caused me grief and I thought it of general interest. If anyone else is bitten and is looking for documentation, it is probably sufficient that the matter is now on record at least for readers of this list and in the bug submission. Neville From williamdesmet at gmail.com Mon May 9 04:00:37 2022 From: williamdesmet at gmail.com (William de Smet) Date: Mon, 9 May 2022 10:00:37 +0200 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: References: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Message-ID: Hi there, Thanks for answering my questions. First off all I downloaded a newer version of Xcode 13.2.1 yesterday but that didn't make a difference. Then Jaque replied on the forum and suggested an issue with Apple Intermediate Certificate: https://developer.apple.com/support/expiration/ After checking Apple Keychain I noticed that there were double entries and one of them was not attached to apps. So first I downloaded all 4 certificates as advised on the Apple developer page. Then I deleted the wrong entry in Keychain, restarted my Mac and now it works again. Happy days! groeten, William Op zo 8 mei 2022 om 22:01 schreef panagiotis m via use-livecode < use-livecode at lists.runrev.com>: > Hello William, > > Could it be the case you have checked the "beta version" checkbox in the > iOS standalone settings? > > Cheers, > Panos > > On Sun, 8 May 2022, 17:12 Mark Smith via use-livecode, < > use-livecode at lists.runrev.com> wrote: > > > Hi William, > > > > In the Standalone Application setting for iOS there are options to build > > for “iPod and iPhone” or two options for building for iPad (“iPad” only > and > > “iPod, iPhone, iPad”). I was going to suggest checking those, but then, > > just to be sure I rebuilt one of my own apps with “iPod and iPhone” > > setting, and it installed and ran just fine on my iPad. I tried with both > > the Test button in LC and installing the app with Xcode and in both cases > > it worked ok, so that can’t be the problem. Do let us know if you track > > down the cause. > > > > Cheers, > > Mark > > > > > > > On May 7, 2022, at 9:06 AM, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Hi there, > > > > > > Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 > > > Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. > > > Building the app is no problem and gives no error message on my Mac > > > Putting the app with Xcode on my iPad however gives an error: Unable to > > > Install App > > > > > > I checked the Provisioning Profile but the iPad is listed on it. > > > I did know this because there are other apps on it. > > > I did work before. > > > > > > Am I overseeing something? > > > > > > , > > > > > > greetings, > > > > > > William > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 MikeKerner at roadrunner.com Mon May 9 08:49:26 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 9 May 2022 08:49:26 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: have you tried ti? i have not run into a situation where a variable was too big. On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < use-livecode at lists.runrev.com> wrote: > Wondering if anyone has used LiveCode for encrypting-decrypting large > files? The docs typically have nice examples for files that can fit into a > variable, but what are folks doing for big files that are larger than what > you’d want in a variable? I’m thinking about using LC for decrypting zip > compressed log files that can be multiple gigabytes in size. I’d like to > use just LC vs. resorting to shell if possible. > > Likely need a hash value to compare the decrypted output against the > original as well. I’m thinking some variation along the lines of open file > x for read, reading some manageable chunk into memory, decrypting a > portion, writing that to disk and repeat. But that seems too simple. Think > we need AES 256. Any shared experience much appreciated. > > Thanks all, > > Mark > _______________________________________________ > use-livecode mailing list > use-livecode 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 MikeKerner at roadrunner.com Mon May 9 08:52:29 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 9 May 2022 08:52:29 -0400 Subject: Zip file problem on Mac In-Reply-To: <41EDA2A7-0CEE-46AC-AE0F-493ED3C88952@major-k.de> References: <6BC38519-DF4E-437F-A98D-E15B308E9CDF@milby7.com> <41EDA2A7-0CEE-46AC-AE0F-493ED3C88952@major-k.de> Message-ID: completely off-topic, but brian said something that i forgot to repeat, at the time access to source in the libraries, etc. has saved me a lot of time when debugging. i ran into a situation with one of the other libraries, a couple of weeks ago. i was stumped, and thought about submitting a ts request or a bug report, but being able to read through and step through the source helped me solve the problem. On Sun, May 8, 2022 at 2:23 PM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Brian, > > > Am 08.05.2022 um 20:19 schrieb Brian Milby via use-livecode < > use-livecode at lists.runrev.com>: > > > > I imagine this one isn’t documented due to the issues where you can’t > read properties from an existing zip file. I think I found it when digging > into the source. > > I’m sure there are some that could be found by looking at the source > code that is still available. > > I bet there are, but surely won't take a look... 8-) > > > Sent from my iPhone > > > >> On May 8, 2022, at 1:33 PM, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hi all, > >> > >>>> Am 08.05.2022 um 03:18 schrieb Neville Smythe via use-livecode < > use-livecode at lists.runrev.com>: > >>>>> On 8 May 2022, at 2:00 am, Brian Milby wrote: > >>>> It is a bug somewhere. See this big report: > >>>> https://quality.livecode.com/show_bug.cgi?id=21447 < > https://quality.livecode.com/show_bug.cgi?id=21447> > >>>> I actually think it is related. The zip should be created as a Unix > variant and not Fat and file attributes should be stored. One thing that > could be tried is to manually set the executable bit when creating the > archive. I was able to store a link in a zip using this method, but there > is no way to read the file attributes in LC. > >>> Brian, utter genius! > >>> Not only do you pinpoint the bug — revZip is creating a ‘fat’ zip not > a ‘unx’ zip and not adding the external attributes – but it looks like you > have provided the workaround (for my problem of execute permissions at > least) > >>> I tried the implausible trick of using the undocumented > revZipSetItemAttributes > >>> put 0x80000000 into tExtAttributes -- regular file > >>> add 0x01ED0000 to tExtAttributes -- rwxrwxr-x -- modify as per file > (and may only do for Mac,Linux?) > >>> revZipSetItemAttributes pArchive, pName, 3, tExtAttributes — 3 for > unix system > >>> for each file as it is added to the archive. I didn’t really expect > this to work as the file is already added to the archive in ‘fat’ format. > >>> Not only does unzip -Z report that the archive items are now in ‘unx’ > format with permissions rwxrwxr-x, but astonishingly the zip actually > decompresses to a working executable – well, only so far briefly tested on > a Mac but it seems likely this is going to work on all platforms. > >>> As you point out in your bug 21447 report, revZip probably won’t be > able to decompress the archive correctly because of other deficiencies, but > I only need the user's system to unpack it. And I will have to modify the > permissions for each individual file in the archive. > >>> I never thought I would use the expression, but, like , awesome! OK > sorry I went there, but jolly well done, that man! > >>> > >>> Neville > >> > >> I really wonder how much more useful features are undocumented and why > they do not find their way into the dictionary!? > > 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 > -- 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 marksmithhfx at gmail.com Mon May 9 09:22:47 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 9 May 2022 14:22:47 +0100 Subject: Error: Unable to install app - Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 In-Reply-To: References: <1767E4E5-961A-4F21-A6EA-2286F85DD5A4@gmail.com> Message-ID: <701E8DD5-FD07-4ACE-AFFE-7E7AEAED3139@gmail.com> Thanks for letting us know William. Glad the cleanup did the trick. Mark > On May 9, 2022, at 9:00 AM, William de Smet via use-livecode wrote: > > Hi there, > > Thanks for answering my questions. > First off all I downloaded a newer version of Xcode 13.2.1 yesterday but > that didn't make a difference. > Then Jaque replied on the forum and suggested an issue with Apple > Intermediate Certificate: https://developer.apple.com/support/expiration/ > After checking Apple Keychain I noticed that there were double entries and > one of them was not attached to apps. > So first I downloaded all 4 certificates as advised on the Apple developer > page. > Then I deleted the wrong entry in Keychain, restarted my Mac and now it > works again. > > Happy days! > > > > groeten, > > William > > > > > Op zo 8 mei 2022 om 22:01 schreef panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > >> Hello William, >> >> Could it be the case you have checked the "beta version" checkbox in the >> iOS standalone settings? >> >> Cheers, >> Panos >> >> On Sun, 8 May 2022, 17:12 Mark Smith via use-livecode, < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi William, >>> >>> In the Standalone Application setting for iOS there are options to build >>> for “iPod and iPhone” or two options for building for iPad (“iPad” only >> and >>> “iPod, iPhone, iPad”). I was going to suggest checking those, but then, >>> just to be sure I rebuilt one of my own apps with “iPod and iPhone” >>> setting, and it installed and ran just fine on my iPad. I tried with both >>> the Test button in LC and installing the app with Xcode and in both cases >>> it worked ok, so that can’t be the problem. Do let us know if you track >>> down the cause. >>> >>> Cheers, >>> Mark >>> >>> >>>> On May 7, 2022, at 9:06 AM, William de Smet via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi there, >>>> >>>> Mac OS 11.5.2 , Xcode 13.2 (13C90), LC 9.6.7 en iOS 15.2 >>>> Yesterday I tried to put an app on my iPad 2020 with iOS 15.2 on it. >>>> Building the app is no problem and gives no error message on my Mac >>>> Putting the app with Xcode on my iPad however gives an error: Unable to >>>> Install App >>>> >>>> I checked the Provisioning Profile but the iPad is listed on it. >>>> I did know this because there are other apps on it. >>>> I did work before. >>>> >>>> Am I overseeing something? >>>> >>>> , >>>> >>>> greetings, >>>> >>>> William >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 craig at starfirelighting.com Mon May 9 09:42:50 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 9 May 2022 09:42:50 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> I believe that there is no upper limit to the size of a variable in LC. So I am with Mike here. What makes you nervous about dealing with a large dataset within LC itself? Craig > On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode wrote: > > have you tried ti? i have not run into a situation where a variable was too > big. > > On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Wondering if anyone has used LiveCode for encrypting-decrypting large >> files? The docs typically have nice examples for files that can fit into a >> variable, but what are folks doing for big files that are larger than what >> you’d want in a variable? I’m thinking about using LC for decrypting zip >> compressed log files that can be multiple gigabytes in size. I’d like to >> use just LC vs. resorting to shell if possible. >> >> Likely need a hash value to compare the decrypted output against the >> original as well. I’m thinking some variation along the lines of open file >> x for read, reading some manageable chunk into memory, decrypting a >> portion, writing that to disk and repeat. But that seems too simple. Think >> we need AES 256. Any shared experience much appreciated. >> >> Thanks all, >> >> Mark >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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." > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon May 9 09:54:46 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 9 May 2022 09:54:46 -0400 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> Message-ID: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> Richard. So glad to have you in this world. Craig > On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode wrote: > > Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? > > Sent from my iPhone > >> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: >> >> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. >> >> >> Background: >> ---------- >> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. >> >> On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. >> >> And until the port to MacOS, all platforms behaved consistently. >> >> So why the Mac change? >> >> Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. >> >> Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). >> >> So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. >> >> The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. >> >> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. >> >> This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). >> >> It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. >> >> If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. >> >> On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. >> >> I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? >> >> All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. >> >> >> >> The Here-And-Now: >> ---------------- >> Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. >> >> They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. >> >> I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: >> >> >> >> Looking Forward: >> --------------- >> Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. >> >> What do you need from mouseLeave during a menu drop? What are you doing in response to that message? >> >> There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> >> >> Neville Smythe wrote: >>> The pulldownmenu bug I reported has been confirmed: bug 23693 >>> >>> >>> To remind the reader: On a Mac, when a user select a menu item from >>> a pulldown menu button, the menuPick message is sent first followed >>> by a mouseLeave message (generated as the mouse leaves the button >>> rect to select the menu item). On Windows, the mouseLeave is sent >>> immediately, followed by menuPick. >>> >>> The Mac order is correct, the mouseLeave should be delayed until the >>> displayed menu is dismissed. >>> >>> Linux has the same incorrect behaviour as Windows. >>> >>> The same situation applies to popupmenus and option menu buttons: >>> the Mac has the correct order, Windows and Linux incorrect. >>> >>> However for the combobox button, all three platforms give the wrong >>> message order! >>> >>> And one last twist, although the Mac implementation gives the correct >>> order for 3 menu buttons, it sends the mouseLeave message twice, once >>> immediately after the menuPick, and then again when the mouse is >>> released. >>> >>> Neville >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 tom at makeshyft.com Mon May 9 12:42:16 2022 From: tom at makeshyft.com (Tom Glod) Date: Mon, 9 May 2022 12:42:16 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> Message-ID: there is no way to decrypt something that does not fit in memory. with 64 bit builds the limit is whatever the motherboard supports. on 32 bit builds the limit is whatever the os will allow 1 process to have, but then u need memory to store the decrypted data too. you can use a command line program to outsource that work and memory management. On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > I believe that there is no upper limit to the size of a variable in LC. So > I am with Mike here. What makes you nervous about dealing with a large > dataset within LC itself? > > Craig > > > On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > have you tried ti? i have not run into a situation where a variable was > too > > big. > > > > On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Wondering if anyone has used LiveCode for encrypting-decrypting large > >> files? The docs typically have nice examples for files that can fit > into a > >> variable, but what are folks doing for big files that are larger than > what > >> you’d want in a variable? I’m thinking about using LC for decrypting zip > >> compressed log files that can be multiple gigabytes in size. I’d like to > >> use just LC vs. resorting to shell if possible. > >> > >> Likely need a hash value to compare the decrypted output against the > >> original as well. I’m thinking some variation along the lines of open > file > >> x for read, reading some manageable chunk into memory, decrypting a > >> portion, writing that to disk and repeat. But that seems too simple. > Think > >> we need AES 256. Any shared experience much appreciated. > >> > >> Thanks all, > >> > >> Mark > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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." > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 craig at starfirelighting.com Mon May 9 14:41:41 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 9 May 2022 14:41:41 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> Message-ID: Ah, I see. I did not appreciate that the dataset could be in the many gigabytes. Craig > On May 9, 2022, at 12:42 PM, Tom Glod via use-livecode wrote: > > there is no way to decrypt something that does not fit in memory. with 64 > bit builds the limit is whatever the motherboard supports. on 32 bit > builds the limit is whatever the os will allow 1 process to have, > but then u need memory to store the decrypted data too. > you can use a command line program to outsource that work and memory > management. > > On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I believe that there is no upper limit to the size of a variable in LC. So >> I am with Mike here. What makes you nervous about dealing with a large >> dataset within LC itself? >> >> Craig >> >>> On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> have you tried ti? i have not run into a situation where a variable was >> too >>> big. >>> >>> On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Wondering if anyone has used LiveCode for encrypting-decrypting large >>>> files? The docs typically have nice examples for files that can fit >> into a >>>> variable, but what are folks doing for big files that are larger than >> what >>>> you’d want in a variable? I’m thinking about using LC for decrypting zip >>>> compressed log files that can be multiple gigabytes in size. I’d like to >>>> use just LC vs. resorting to shell if possible. >>>> >>>> Likely need a hash value to compare the decrypted output against the >>>> original as well. I’m thinking some variation along the lines of open >> file >>>> x for read, reading some manageable chunk into memory, decrypting a >>>> portion, writing that to disk and repeat. But that seems too simple. >> Think >>>> we need AES 256. Any shared experience much appreciated. >>>> >>>> Thanks all, >>>> >>>> Mark >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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." >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 ambassador at fourthworld.com Mon May 9 21:20:32 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 9 May 2022 18:20:32 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <6F883029-00DB-41BD-ADF1-437890FF4D5F@optusnet.com.au> References: <6F883029-00DB-41BD-ADF1-437890FF4D5F@optusnet.com.au> Message-ID: <9cdb105f-0379-f14d-4e18-95c926699360@fourthworld.com> Neville Smythe wrote: > My use-case was as follows. I have a pulldownmenu, not an application- > wide menu, which applied to only certain selected items in a field. > On mouseEnter, the selection changed colour, as a visual cue to the > user that these menu items could be applied to the selection. On > mouseLeave the colour changed back. At some point I inadvertently > added a line of code to the mouseLeave handler which had the effect > of killing the selection; this line was supposed to go into the > menuPick handler. On my Mac the app continued to work as intended, > but on a user's Windows PC the effect was to change a very minor > cosmetic difference into a major bug because the menu no longer > did anything. This was quite difficult to track down. Thank you for that description. Just to make sure I understand this, the menu button in question is on the card and does not appear in the menu bar, is that correct? I think what you're seeing there is a side effect of the special handling LC uses for Mac menus, using OS routines rather than internal routines which emulate menus from temporary stacks. On Mac it seems the engine is suspending other mouse messages while it lets the OS handle the popped up menu, whereas on other platforms the normal mouseLeave is happening as soon as the mouse leaves the menu button. At the moment the only solution I can think of is a bit kludgy, but seems to work: Use stack menus on all platforms, with a timer to track when the menu stack has been closed. It takes more to explain than to demonstrate, so here's a demo - feel free to ask any follow-up questions: http://fourthworld.net/lc/MenuMessaging.livecode If you want to make the stack menu look less kludgy you could embrace the kludge: add a preview pane or other elements that clearly show this is a non-standard menu, but in a good way. :) I sometimes use stack menus for graphical pickers. They're kinda nice when you need 'em. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From MikeKerner at roadrunner.com Tue May 10 09:03:28 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 10 May 2022 09:03:28 -0400 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> <83D75B2D-398C-4948-AB80-5C27BB62ED00@starfirelighting.com> Message-ID: I don't think you're necessarily going to be limited by physical memory, as the computer will have a certain addressing space in VM, as well, right? On Mon, May 9, 2022 at 2:42 PM Craig Newman via use-livecode < use-livecode at lists.runrev.com> wrote: > Ah, I see. > > I did not appreciate that the dataset could be in the many gigabytes. > > Craig > > > On May 9, 2022, at 12:42 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > there is no way to decrypt something that does not fit in memory. with 64 > > bit builds the limit is whatever the motherboard supports. on 32 bit > > builds the limit is whatever the os will allow 1 process to have, > > but then u need memory to store the decrypted data too. > > you can use a command line program to outsource that work and memory > > management. > > > > On Mon, May 9, 2022 at 9:44 AM Craig Newman via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> I believe that there is no upper limit to the size of a variable in LC. > So > >> I am with Mike here. What makes you nervous about dealing with a large > >> dataset within LC itself? > >> > >> Craig > >> > >>> On May 9, 2022, at 8:49 AM, Mike Kerner via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> have you tried ti? i have not run into a situation where a variable was > >> too > >>> big. > >>> > >>> On Sun, May 8, 2022 at 6:46 PM Mark Clark via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> Wondering if anyone has used LiveCode for encrypting-decrypting large > >>>> files? The docs typically have nice examples for files that can fit > >> into a > >>>> variable, but what are folks doing for big files that are larger than > >> what > >>>> you’d want in a variable? I’m thinking about using LC for decrypting > zip > >>>> compressed log files that can be multiple gigabytes in size. I’d like > to > >>>> use just LC vs. resorting to shell if possible. > >>>> > >>>> Likely need a hash value to compare the decrypted output against the > >>>> original as well. I’m thinking some variation along the lines of open > >> file > >>>> x for read, reading some manageable chunk into memory, decrypting a > >>>> portion, writing that to disk and repeat. But that seems too simple. > >> Think > >>>> we need AES 256. Any shared experience much appreciated. > >>>> > >>>> Thanks all, > >>>> > >>>> Mark > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode 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." > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 > -- 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 jbv at souslelogo.com Tue May 10 14:33:34 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 10 May 2022 14:33:34 -0400 Subject: LC subscription and special characters Message-ID: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> Hi list, I have been asked by a client to make some upgrades to a standalone app that I built with LC 6.5 about 12 years ago. The app is a front end for managing a remote DB on a server. The DB content is roughly 90% in french, and the rest in english and german. It has about 160000 entries and counting. I am about to buy a LC standard plan for both Mac and Win, since the app is been used on both platforms, and will also be in the future. But before I proceed, I'd like to make sure that it will help solving a minor problem that users have met lately. Last year a re-compiled the app, without changing anything, with a LC 8.2 Community version. It keeps running fine on both Win & Mac, except that on Windows, some special characters in french (like or or ) have become impossible to type with regular keys combinations (or any other mean), when it was possible before with the LC 6.5 version. Furthermore, a few new users will be added to the crew, who will work with qwerty keyboards, when the rest of the staff will continue to work with azerty keyboards. So finally my question : it seems that the standard plan is the best option because it will give me access to the latest LC versions, but what about these special characters issue ? Is it only related to LC 8.2, or will it also occur with the latest versions ? Thanks in advance. jbv From markclark at mac.com Tue May 10 15:14:12 2022 From: markclark at mac.com (Mark Clark) Date: Tue, 10 May 2022 14:14:12 -0500 Subject: use-livecode Digest, Vol 224, Issue 8 In-Reply-To: <9D607A97-1476-407F-A2BD-4F19BC956578@me.com> References: <9D607A97-1476-407F-A2BD-4F19BC956578@me.com> Message-ID: <43F0B7CD-462D-49D4-96A1-0398B38AD069@mac.com> Thanks Tom, Mike and Craig. Sorry for the late response, I’m on the digest version. My thought was that an open file for read does not require placing the whole file into memory. Am I mistaken in that assumption? Seems like it would be nice to not use all of the available memory to run the decrypt. Results below seem to confirm this... I worked up a quick stack using the chunking notion I referenced in the original post and this seems to work fine. I compressed the Mac system folder on an old SSD. That directory was 8.9GB on disk. Compressing it with the Finder took about 28 minutes. Compressed size was 5.9GB. Using a byte range of 1048576 (1MB—small but useful for testing), I was able to read the source compressed file, encrypt and write to the new (encrypted) file in about 2 minutes. Decrypt took a little longer (less than 3 min). Memory utilization (I did a quick build of the stack) was 44-45MB during both operations. I’ll bump up the byte range and see how that compares. Thanks, Mark > On May 10, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > there is no way to decrypt something that does not fit in memory. with 64 > bit builds the limit is whatever the motherboard supports. on 32 bit > builds the limit is whatever the os will allow 1 process to have, > but then u need memory to store the decrypted data too. > you can use a command line program to outsource that work and memory > management. From ambassador at fourthworld.com Tue May 10 15:35:18 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 May 2022 12:35:18 -0700 Subject: Decrypting (and encrypting) Large files In-Reply-To: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: Mark Clark wrote: > Wondering if anyone has used LiveCode for encrypting-decrypting large > files? ... > Im thinking about using LC for decrypting zip compressed log files > that can be multiple gigabytes in size. Id like to use just LC vs. > resorting to shell if possible. What is behind the preference to roll your own rather than call existing purpose-built command-line tools from LC with shell()? Your chunking described in your latest post seems the way to go, AFAIK pretty much how other tools would handle it. Another option: if you're in an environment where even log files require strong encryption, could you pipe log data to a separate secured log server instead? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Tue May 10 15:50:54 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 May 2022 12:50:54 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> References: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> Message-ID: What a very kind thing of you to say. Thank you. After 30 years as a recipient of so much wisdom and lore shared with me, I've felt compelled to share some of that forward. In recent years most of what I write seems ignored, so I've been spending my time elsewhere. Your encouragement may see me checking in on LC stuff more often. Thank you. -- Richard Gaskin Fourth World Systems Craig Newman wrote: > Richard. > > So glad to have you in this world. > > Craig > >> On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode wrote: >> >> Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? >> >> Sent from my iPhone >> >>> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: >>> >>> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. >>> >>> >>> Background: >>> ---------- >>> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. >>> >>> On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. >>> >>> And until the port to MacOS, all platforms behaved consistently. >>> >>> So why the Mac change? >>> >>> Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. >>> >>> Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). >>> >>> So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. >>> >>> The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. >>> >>> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. >>> >>> This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). >>> >>> It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. >>> >>> If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. >>> >>> On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. >>> >>> I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? >>> >>> All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. >>> >>> >>> >>> The Here-And-Now: >>> ---------------- >>> Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. >>> >>> They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. >>> >>> I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: >>> >>> >>> >>> Looking Forward: >>> --------------- >>> Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. >>> >>> What do you need from mouseLeave during a menu drop? What are you doing in response to that message? >>> >>> There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> From paul at researchware.com Tue May 10 17:53:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 10 May 2022 17:53:51 -0400 Subject: LC subscription and special characters In-Reply-To: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> Message-ID: <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> I thought I recalled a bug in the LC engine where using the keyboard method of typing the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X, didn't work in Livecode. However, I just tried searching the Livecode Quality Center for a bug number and couldn't find it so perhaps I am mis-remembering. On 5/10/2022 2:33 PM, jbv via use-livecode wrote: > Hi list, > I have been asked by a client to make some upgrades to a standalone > app that I built with LC 6.5 about 12 years ago. > The app is a front end for managing a remote DB on a server. The DB > content is roughly 90% in french, and the rest in english and german. > It has about 160000 entries and counting. > > I am about to buy a LC standard plan for both Mac and Win, since the > app is been used on both platforms, and will also be in the future. > But before I proceed, I'd like to make sure that it will help solving > a minor problem that users have met lately. > > Last year a re-compiled the app, without changing anything, with a LC > 8.2 Community version. > It keeps running fine on both Win & Mac, except that on Windows, some > special characters in french (like or or ) have become impossible > to type with regular keys combinations (or any other mean), when it > was possible before with the LC 6.5 version. > Furthermore, a few new users will be added to the crew, who will work > with qwerty keyboards, when the rest of the staff will continue to > work with azerty keyboards. > > So finally my question : it seems that the standard plan is the best > option because it will give me access to the latest LC versions, but > what about these special characters issue ? Is it only related to LC > 8.2, or will it also occur with the latest versions ? > > Thanks 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 bobsneidar at iotecdigital.com Tue May 10 18:30:46 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 10 May 2022 22:30:46 +0000 Subject: use-livecode Digest, Vol 224, Issue 8 In-Reply-To: <43F0B7CD-462D-49D4-96A1-0398B38AD069@mac.com> References: <9D607A97-1476-407F-A2BD-4F19BC956578@me.com> <43F0B7CD-462D-49D4-96A1-0398B38AD069@mac.com> Message-ID: You can read for x characters then check the result for empty. So no you do not need to read the entire file into memory. Bob S > On May 10, 2022, at 12:14 , Mark Clark via use-livecode wrote: > > Thanks Tom, Mike and Craig. Sorry for the late response, I’m on the digest version. > > My thought was that an open file for read does not require placing the whole file into memory. Am I mistaken in that assumption? Seems like it would be nice to not use all of the available memory to run the decrypt. Results below seem to confirm this... > > I worked up a quick stack using the chunking notion I referenced in the original post and this seems to work fine. I compressed the Mac system folder on an old SSD. That directory was 8.9GB on disk. Compressing it with the Finder took about 28 minutes. Compressed size was 5.9GB. > > Using a byte range of 1048576 (1MB—small but useful for testing), I was able to read the source compressed file, encrypt and write to the new (encrypted) file in about 2 minutes. Decrypt took a little longer (less than 3 min). Memory utilization (I did a quick build of the stack) was 44-45MB during both operations. I’ll bump up the byte range and see how that compares. > > > > Thanks, > Mark > > >> On May 10, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: >> >> there is no way to decrypt something that does not fit in memory. with 64 >> bit builds the limit is whatever the motherboard supports. on 32 bit >> builds the limit is whatever the os will allow 1 process to have, >> but then u need memory to store the decrypted data too. >> you can use a command line program to outsource that work and memory >> management. > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue May 10 20:14:33 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 11 May 2022 10:14:33 +1000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: Message-ID: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Thanks again Richard In my case I don’t actually need a workaround. Once I had corrected my own error, the only effect of the inconsistent event order is that on Windows and Linux the colour coding of the selection turns off a fraction of a second earlier than on a Mac. I am not so obsessive as to need to fix that. Nevertheless it is conceivable, if unlikely, that someone might want to do something more significant in the mouseLeave handler, so I continue to call the inconsistency a bug. The fact that the combobox menu button behaves in the same way on all 3 platforms does seem to indicate that the inconsistency could be resolved (in favour of the Windows event order). But I am also not so obsessive as to expect the LC team to do a major architectural reset to address the issue. I have added a note to my bug submission suggesting a small note in the documentation for the 3 anomalous buttons noting how they behave slightly differently on a Mac, thus turning a hidden bug into a documented feature. Neville From jbv at souslelogo.com Wed May 11 01:54:41 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 11 May 2022 01:54:41 -0400 Subject: LC subscription and special characters In-Reply-To: <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> Message-ID: <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> Thank you for your reply. Obviously, it was possible in earlier versions of LC. So, could someone be kind enough to make a quick test with the most recent versions of LC, by typing text inside a field, if special characters can be used, like alt+144 for , and possibly on azerty and qwerty keyboards ? Thank you in advance. Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : > I thought I recalled a bug in the LC engine where using the keyboard > method of typing the character code, press ALT, and then press X. For > example, to type a dollar symbol ($), type 0024, press ALT, and then > press X, didn't work in Livecode. However, I just tried searching the > Livecode Quality Center for a bug number and couldn't find it so > perhaps I am mis-remembering. > From devin_asay at byu.edu Wed May 11 11:37:22 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 11 May 2022 15:37:22 +0000 Subject: LC subscription and special characters In-Reply-To: <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> Message-ID: Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. https://quality.livecode.com/show_bug.cgi?id=18702 On May 10, 2022, at 11:54 PM, jbv via use-livecode > wrote: Thank you for your reply. Obviously, it was possible in earlier versions of LC. So, could someone be kind enough to make a quick test with the most recent versions of LC, by typing text inside a field, if special characters can be used, like alt+144 for É, and possibly on azerty and qwerty keyboards ? Thank you in advance. Le 2022-05-10 17:53, Paul Dupuis via use-livecode a écrit : I thought I recalled a bug in the LC engine where using the keyboard method of typing the character code, press ALT, and then press X. For example, to type a dollar symbol ($), type 0024, press ALT, and then press X, didn't work in Livecode. However, I just tried searching the Livecode Quality Center for a bug number and couldn't find it so perhaps I am mis-remembering. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From dochawk at gmail.com Wed May 11 12:06:51 2022 From: dochawk at gmail.com (doc hawk) Date: Wed, 11 May 2022 09:06:51 -0700 Subject: I can't find a reason to keep business subscription! References: <0CBBB506-8A22-43FC-B6C3-2A12B0615F00@gmail.com> Message-ID: <66BE8C7F-AEF8-4DF9-B586-53ED320F3BBC@gmail.com> I have a perpetual indy license, and a $299/year business license, which renews on Thursday. I only picked it up during a promotion because it seemed like a good deal, and I might want it in the future. To date, the only thing I’ve ever tried to do with it is the PDFs that got added a couple of years ago, which were a complete failure (it renders at screen resolution when printing/outputting a new pdf!). The project I got them for will never see release; I missed the window a few years ago and the field is now crowded. That, and I have no interest in pouring the energy into starting a new business instead of retiring . . . Anyway, it’s still hard to cut the cord . . . From ambassador at fourthworld.com Wed May 11 14:27:33 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 May 2022 11:27:33 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> References: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Message-ID: Neville Smythe wrote: > Thanks again Richard > > In my case I dont actually need a workaround. Once I had corrected > my own error, the only effect of the inconsistent event order is that > on Windows and Linux the colour coding of the selection turns off a > fraction of a second earlier than on a Mac. I am not so obsessive as > to need to fix that. Glad you have a solution. Hopefully the demo I posted will be of use to others. Using stacks as menus are a poor substitute for text menus when all you need is text, but a wide range of graphical pickers can be made which can be very attractive and super-simple to make: Set the menuName property of a menu button to the short name of the stack you want to use as a menu, make sure the buttons you're using in the menu stack have their autoArm set to true, and all the normal menu behaviors you'd expect just work. Imagine icons used to represent a set of templates, or sample report output, or graphical effects, or anything else that lends itself well to a graphical picker menu. I just updated the example stack this morning to include a simple graphical picker so folks could get a clearer idea of how it can be very useful: http://fourthworld.net/lc/MenuMessaging.livecode -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paul at researchware.com Wed May 11 16:41:56 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 May 2022 16:41:56 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> Message-ID: <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with a single new scrolling field. I switch to run mode (pointer tool) and with a blinking insertion bar in the field, tried: ALT+00A9 and ALT00A9 Which should have produced a symbol Neither worked. I tried several other Unicode codes. None worked. Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be reopened It may be related to bug https://quality.livecode.com/show_bug.cgi?id=23688 as the optionKeyDown (ALT key on Window) message is completely broken On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote: > Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. > > https://quality.livecode.com/show_bug.cgi?id=18702 > > > On May 10, 2022, at 11:54 PM, jbv via use-livecode > wrote: > > Thank you for your reply. > Obviously, it was possible in earlier versions of LC. > > So, could someone be kind enough to make a quick test with the most recent versions of LC, by typing text inside a field, if special characters can be used, like alt+144 for , and possibly on azerty and qwerty keyboards ? > Thank you in advance. > > Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : > I thought I recalled a bug in the LC engine where using the keyboard > method of typing the character code, press ALT, and then press X. For > example, to type a dollar symbol ($), type 0024, press ALT, and then > press X, didn't work in Livecode. However, I just tried searching the > Livecode Quality Center for a bug number and couldn't find it so > perhaps I am mis-remembering. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 11 17:00:03 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 May 2022 21:00:03 +0000 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Message-ID: <12701F97-1FE2-4F8A-B0DA-025DCC7C2140@iotecdigital.com> I'm going to have a look at that Richard. Thanks. Bob S > On May 11, 2022, at 11:27 , Richard Gaskin via use-livecode wrote: > > Neville Smythe wrote: > > Thanks again Richard > > > > In my case I don’t actually need a workaround. Once I had corrected > > my own error, the only effect of the inconsistent event order is that > > on Windows and Linux the colour coding of the selection turns off a > > fraction of a second earlier than on a Mac. I am not so obsessive as > > to need to fix that. > > Glad you have a solution. > > Hopefully the demo I posted will be of use to others. Using stacks as menus are a poor substitute for text menus when all you need is text, but a wide range of graphical pickers can be made which can be very attractive and super-simple to make: > > Set the menuName property of a menu button to the short name of the stack you want to use as a menu, make sure the buttons you're using in the menu stack have their autoArm set to true, and all the normal menu behaviors you'd expect just work. > > Imagine icons used to represent a set of templates, or sample report output, or graphical effects, or anything else that lends itself well to a graphical picker menu. > > I just updated the example stack this morning to include a simple graphical picker so folks could get a clearer idea of how it can be very useful: > > http://fourthworld.net/lc/MenuMessaging.livecode > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.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 paul at researchware.com Wed May 11 17:10:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 May 2022 17:10:51 -0400 Subject: LC subscription and special characters In-Reply-To: <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> Message-ID: According to Microsoft, for Windows 10, Unicode typing is now ALT X This works for me in TextPad Press and hold ALT and X together a box appears in Textpad to enter the Unicode number into. Once 4 digits have been entered the character appears. It does not work in LC 9.6.7 STABLE in a new stack with a new scrolling field. -- Paul On 5/11/2022 4:41 PM, Paul Dupuis via use-livecode wrote: > In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with a > single new scrolling field. I switch to run mode (pointer tool) and > with a blinking insertion bar in the field, tried: > > ALT+00A9 > and > ALT00A9 > > Which should have produced a symbol > > Neither worked. I tried several other Unicode codes. None worked. > > Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be reopened > It may be related to bug > https://quality.livecode.com/show_bug.cgi?id=23688 as the > optionKeyDown (ALT key on Window) message is completely broken > > > On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote: >> Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. >> >> https://quality.livecode.com/show_bug.cgi?id=18702 >> >> >> On May 10, 2022, at 11:54 PM, jbv via use-livecode >> > >> wrote: >> >> Thank you for your reply. >> Obviously, it was possible in earlier versions of LC. >> >> So, could someone be kind enough to make a quick test with the most >> recent versions of LC, by typing text inside a field, if special >> characters can be used, like alt+144 for , and possibly on azerty >> and qwerty keyboards ? >> Thank you in advance. >> >> Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : >> I thought I recalled a bug in the LC engine where using the keyboard >> method of typing the character code, press ALT, and then press X. For >> example, to type a dollar symbol ($), type 0024, press ALT, and then >> press X, didn't work in Livecode. However, I just tried searching the >> Livecode Quality Center for a bug number and couldn't find it so >> perhaps I am mis-remembering. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> Devin Asay >> Office of Digital Humanities >> Brigham Young University >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed May 11 17:21:05 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 May 2022 17:21:05 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> Message-ID: Well, Microsoft is not consistent (not that I am surprised!) ALT X number works in TextPAd, but not in MS-Word. The alternate method (mention in this MS support note: https://support.microsoft.com/en-us/office/insert-ascii-or-unicode-latin-based-symbols-and-characters-d13f58d3-7bcb-44a7-a4d5-972ee12e50e0) of type U+ such as U+B5 for and then pressing ALT-X does work in MS-Word, but not in TextPad! Neither method works in Livecode 9.6.7 So, not: ALT + 00A9 ALT 00A9 ALT X 00A9 U+A9 ALT X On 5/11/2022 5:10 PM, Paul Dupuis via use-livecode wrote: > According to Microsoft, for Windows 10, Unicode typing is now ALT X > > > This works for me in TextPad Press and hold ALT and X together a box > appears in Textpad to enter the Unicode number into. Once 4 digits > have been entered the character appears. > > It does not work in LC 9.6.7 STABLE in a new stack with a new > scrolling field. > > -- Paul > > On 5/11/2022 4:41 PM, Paul Dupuis via use-livecode wrote: >> In Livecode 9.6.7 STABLE under Windows 10, I create a new stack with >> a single new scrolling field. I switch to run mode (pointer tool) and >> with a blinking insertion bar in the field, tried: >> >> ALT+00A9 >> and >> ALT00A9 >> >> Which should have produced a symbol >> >> Neither worked. I tried several other Unicode codes. None worked. >> >> Bug https://quality.livecode.com/show_bug.cgi?id=18702 should be >> reopened >> It may be related to bug >> https://quality.livecode.com/show_bug.cgi?id=23688 as the >> optionKeyDown (ALT key on Window) message is completely broken >> >> >> On 5/11/2022 11:37 AM, Devin Asay via use-livecode wrote: >>> Here is the bug report. It was reported as fixed as of LV 9.0.3 RC1. >>> >>> https://quality.livecode.com/show_bug.cgi?id=18702 >>> >>> >>> On May 10, 2022, at 11:54 PM, jbv via use-livecode >>> > >>> wrote: >>> >>> Thank you for your reply. >>> Obviously, it was possible in earlier versions of LC. >>> >>> So, could someone be kind enough to make a quick test with the most >>> recent versions of LC, by typing text inside a field, if special >>> characters can be used, like alt+144 for , and possibly on azerty >>> and qwerty keyboards ? >>> Thank you in advance. >>> >>> Le 2022-05-10 17:53, Paul Dupuis via use-livecode a crit : >>> I thought I recalled a bug in the LC engine where using the keyboard >>> method of typing the character code, press ALT, and then press X. For >>> example, to type a dollar symbol ($), type 0024, press ALT, and then >>> press X, didn't work in Livecode. However, I just tried searching the >>> Livecode Quality Center for a bug number and couldn't find it so >>> perhaps I am mis-remembering. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> Devin Asay >>> Office of Digital Humanities >>> Brigham Young University >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 markclark at mac.com Wed May 11 21:10:10 2022 From: markclark at mac.com (Mark Clark) Date: Wed, 11 May 2022 20:10:10 -0500 Subject: use-livecode Digest, Vol 224, Issue 9, Re: Decrypting (and encrypting) Large files In-Reply-To: References: Message-ID: <6072070D-3DFB-422F-AC94-C50FD961CA13@mac.com> Why the preference? It’s not a hard and fast rule by any means, but I suppose because rolling your own means owning your code, flaws and all. In simple system environments I wouldn’t use LC at all, I’d just use shell scripting. Since different users will have different shells (or none) probably best in this case to make it standalone. Calling shell might cause more support cases than a roll your own especially since there are different versions of openssl, LibreSSL v OpenSSL, etc. The default message digest differs from one flavor of openssl to another—looks like built in encrypt is using md5 still? Maybe I’m missing some knob I could turn at encrypt time, wouldn’t be the first time I missed something obvious. Yeah, chunking seems to work just fine, although I ran into another issue. I decided to not use cbc (big IV for my use case) and instead use gcm and this seems to be broken somehow in LC 9.6.3. There aren’t any useful error messages that I can see. Just to fast check I downloaded an old stack by Bill Vlahos (from 2012) and checked to see if I was doing something egregiosuly wrong. If I am, I’m not alone;) aes-256-gcm seems to “work” on encrypt and blow up on decrypt. Ditto for 192, 128, etc. The last option you mentioned doesn’t work in my use case, though it makes plenty of good sense in a standard type data center scenario. I really do appreciate all the nice folks on this list. One of the main reasons I enjoy LiveCode is the people who use it. If I can resolve the use of gcm soonish I’ll do a few more tests at different ranges of blocks. Intuitively it might seem that a larger chunk for encryption would be faster, but that’s not what the tests produced. Below are the results for a 1MB chunk to encrypt vs a 1GB chunk. Obviously the memory requirements for the standalone are much friendlier for the smaller chunk. This is from an oldish mac laptop Processor Name: Quad-Core Intel Core i7 Processor Speed: 2.8 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Hyper-Threading Technology: Enabled Memory: 16 GB cipher is aes-256-cbc source zip: 5,904,809,647 bytes (5.9 GB on disk) encrypted zip: 5,904,990,880 bytes (5.92 GB on disk) decrypted zip: 5,904,809,647 bytes (5.9 GB on disk) ----- byte range: 1073741824 (1GB) Total milliseconds required to encrypt in 6 runs: 61884 memory peaked at 4GB, returned to 42 MB after encryption run Total milliseconds required to decrypt in 6 runs: 69678 memory peaked at just under 4GB, fluctuates at 2-3.5GB ---- byte range: 1048576 (1 MB) memory utilization went from 42 MB to 45.5MB Total milliseconds required to encrypt in 5632 runs: 45918 memory utilization 45.7 MB Total milliseconds required to decrypt in 5632 runs: 41725 Thanks all, if anyone would like to check out the gcm flavor from a Mac I’d like to know if you get different (better) results. I’m on 11.6.4, btw. Mark > On May 11, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > What is behind the preference to roll your own rather than call existing > purpose-built command-line tools from LC with shell()? > > Your chunking described in your latest post seems the way to go, AFAIK > pretty much how other tools would handle it. > > Another option: if you're in an environment where even log files > require strong encryption, could you pipe log data to a separate secured > log server instead? From jbv at souslelogo.com Thu May 12 03:03:24 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Thu, 12 May 2022 03:03:24 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> Message-ID: <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> Thank you all for your answers. I am going to contact tech support to see if there is any solution to be expected in the near future. FYI, so far we are using a workaround : https://www.azerty.global/ jbv From merakosp at gmail.com Thu May 12 06:18:02 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 12 May 2022 13:18:02 +0300 Subject: LC subscription and special characters In-Reply-To: <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> Message-ID: Hello Paul, Does Alt+A9 work for you? Cheers, Panos -- On Thu, 12 May 2022 at 10:04, jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Thank you all for your answers. > I am going to contact tech support to see if there is any solution to be > expected in the near future. > > FYI, so far we are using a workaround : > https://www.azerty.global/ > > 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 williamdesmet at gmail.com Thu May 12 06:43:19 2022 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 12 May 2022 12:43:19 +0200 Subject: =?UTF-8?Q?LibKiosk_by_Andr=C3=A9_Garzia?= Message-ID: Hi there, I found some information about LibKiosk André Garzia released 15 years ago. Is there still a download available somewhere or is it deprecated now? groeten, William From benr_mc at cogapp.com Thu May 12 07:37:34 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 12 May 2022 12:37:34 +0100 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> References: <12bd8706-5b92-6686-4d14-bd68c69d5cce@fourthworld.com> <44FC459F-0E69-4B39-A986-391CDA53C7B8@starfirelighting.com> Message-ID: <14f317e6-dce7-365c-3109-cfe40ae3c424@cogapp.com> Ditto that. There should be a "Lifetime contribution" award for Livecode heroes. Ben On 09/05/2022 14:54, Craig Newman via use-livecode wrote: > Richard. > > So glad to have you in this world. > > Craig > >> On May 7, 2022, at 5:35 PM, Bob Sneidar via use-livecode wrote: >> >> Well put. I wonder what the real world effect of the order of messages is, and whether or not it could be compensated for by send in time? >> >> Sent from my iPhone >> >>> On May 7, 2022, at 13:44, Richard Gaskin via use-livecode wrote: >>> >>> It's definitely an inconsistency, but the bug's status as requiring "EXPERT REVIEW" prompts us to consider why these differences exist, and which, if any, should be considered "wrong" or "right". It may not be as simple as it seems at first glance. >>> >>> >>> Background: >>> ---------- >>> MetaCard (the engine we now call LiveCode) was born on Unix, later ported to Windows, Linux, and then MacOS. >>> >>> On all platforms menus are implemented as selector buttons, buttons which provide the appearance and behavior of OS-provided menu objects. >>> >>> And until the port to MacOS, all platforms behaved consistently. >>> >>> So why the Mac change? >>> >>> Mac is unique among popular GUI OSes in its use of a global menu bar, attached to the top of the display; other OSes place the menu bar attached to the top of the window. >>> >>> Internally, LC menus are implemented as temporary dynamically-instantiated nameless stacks, which may seem counterintuitive until you realize that a menu is in essence a highly specialized form of window, a viewport independent of other windows with its own buffer, contents, and like all windows needs to use a common compositor for rendering them all together. (Indeed you can even use stacks as menus explicitly when you need a non-standard look, like a graphical picker, but that's another topic). >>> >>> So the engine's method of using a subclass of the stack object for rendering menus worked well and consistently for a great many years - until the port to MacOS. >>> >>> The Mac global menubar required a deep rethink on how menus are handled, not only in terms of detaching them from the window but also in terms of the nuances of display and interaction. >>> >>> So Dr Raney special-cased menus on MacOS, so the engine uses OS routines to render those, fed by the menu button properties for things like the menu name as parameters to those OS routines. On every other platform you're interacting with a LiveCode object, but on Mac you're interacting with a system object into which the engine has inserted some hooks to tie it in with your scripting so you can at least know when an item has been selected. >>> >>> This rewiring of properties and messages is no small feat, and has pervasive effects. So from time to time you'll find Mac-specific things needed to conform to that platform like adding an "About" item to a menu that doesn't exist in your stack (the Mac's "Application" menu belongs to the OS). >>> >>> It's not surprising that messages related to menu objects also have some inconsistencies along with everything else. >>> >>> If we consider that on all other platforms the menu object we're interacting with is a button, and the menus that appear are a stack, the messaging you see with Windows and Linux is consistent with other button object messaging: once the mouse leaves the control the mouseLeave message is sent. >>> >>> On Mac we have an exception to LC's normal button messaging because we're not interacting with an LC button at all, but with a system object, into which the engine devs have grafted just enough messaging to trigger actions from scripts. >>> >>> I have no opinion on qualitative labels like "right" or "wrong" on this; that seems a matter of personal familiarity and taste. It may even be somewhat philosophical: is a menu a single thing that expands, or two things (menu and items) where one triggers the appearance of the other? >>> >>> All I can do is help describe the under-the-hood parts to help makes sense of how the difference came about. >>> >>> >>> >>> The Here-And-Now: >>> ---------------- >>> Whether or not we prefer it, the menu architecture is what it is, at least at the moment. Changing the behavior on all other platforms to be like Mac, or Mac to be like all other platforms, would be a scope of work that I'd guess the team would not be in a position to make a priority any time soon, even if they felt strongly about this one way or another. >>> >>> They have a lot on their plates, and for all the questions we see regarding Mac-specific menu differences (like the auto-migration of the "About", "Help" and "Preferences" items to system menus separate from the menu objects where we're asked to put them), I can't recall seeing a message here before about mouseLeave. >>> >>> I'm not saying it isn't important. It might well be. But observably this affects few; AFAIK this is the first such request in the 23 years I've been using this engine and participating in its communities. Just the same, let's roll up our sleeves and see what can be done: >>> >>> >>> >>> Looking Forward: >>> --------------- >>> Edge case or not, let's see what we can do to get a solution for you sooner than the engine team would be able to even thinking about revisions as sweeping as would be needed to satisfy the engine request. >>> >>> What do you need from mouseLeave during a menu drop? What are you doing in response to that message? >>> >>> There are some clever people on this list. I'll bet we can find a solution for your need once we more fully understand the goals. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> >>> >>> >>> Neville Smythe wrote: >>>> The pulldownmenu bug I reported has been confirmed: bug 23693 >>>> >>>> >>>> To remind the reader: On a Mac, when a user select a menu item from >>>> a pulldown menu button, the menuPick message is sent first followed >>>> by a mouseLeave message (generated as the mouse leaves the button >>>> rect to select the menu item). On Windows, the mouseLeave is sent >>>> immediately, followed by menuPick. >>>> >>>> The Mac order is correct, the mouseLeave should be delayed until the >>>> displayed menu is dismissed. >>>> >>>> Linux has the same incorrect behaviour as Windows. >>>> >>>> The same situation applies to popupmenus and option menu buttons: >>>> the Mac has the correct order, Windows and Linux incorrect. >>>> >>>> However for the combobox button, all three platforms give the wrong >>>> message order! >>>> >>>> And one last twist, although the Mac implementation gives the correct >>>> order for 3 menu buttons, it sends the mouseLeave message twice, once >>>> immediately after the menuPick, and then again when the mouse is >>>> released. >>>> >>>> Neville >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 andre at andregarzia.com Thu May 12 08:14:35 2022 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 12 May 2022 13:14:35 +0100 Subject: =?utf-8?Q?Re=3A_LibKiosk_by_Andr=C3=A9_Garzia?= In-Reply-To: References: Message-ID: Hi, I don’t even remember that library. I think the source is probably lost. I made it before I started using version control systems. Anyway, I doubt that this external would work today, too many things have changed. Maybe it is possible to replicate that without an external with some cleverly written LiveCode Builder gizmo. > On 12 May 2022, at 11:43, William de Smet via use-livecode wrote: > > Hi there, > > I found some information about LibKiosk André Garzia released 15 years ago. > Is there still a download available somewhere or is it deprecated now? > > > groeten, > > William > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu May 12 08:18:31 2022 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 12 May 2022 13:18:31 +0100 Subject: =?utf-8?Q?Re=3A_LibKiosk_by_Andr=C3=A9_Garzia?= In-Reply-To: References: Message-ID: https://developer.apple.com/library/archive/technotes/tn2062/_index.html#//apple_ref/doc/uid/DTS10003090-CH1-SECTION3 Looks like a good starting point for someone wanting to attempt to create a new external. > On 12 May 2022, at 13:14, Andre Garzia wrote: > > Hi, I don’t even remember that library. I think the source is probably lost. I made it before I started using version control systems. Anyway, I doubt that this external would work today, too many things have changed. Maybe it is possible to replicate that without an external with some cleverly written LiveCode Builder gizmo. > >> On 12 May 2022, at 11:43, William de Smet via use-livecode wrote: >> >> Hi there, >> >> I found some information about LibKiosk André Garzia released 15 years ago. >> Is there still a download available somewhere or is it deprecated now? >> >> >> groeten, >> >> William >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 12 08:26:34 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 12 May 2022 08:26:34 -0400 Subject: LC subscription and special characters In-Reply-To: References: <37c3d046c717f2336123dc13430a02b4@souslelogo.com> <045e341c-418b-2c19-f96a-426c1432128f@researchware.com> <9d7ef0a1327f6a7ddaafeb8914de6b30@souslelogo.com> <5f132986-1968-50bf-dd27-f2847aa4e38f@researchware.com> <4cd6beabc5bc0a2de307e5cb0544e100@souslelogo.com> Message-ID: On 5/12/2022 6:18 AM, panagiotis m via use-livecode wrote: > Hello Paul, > > Does Alt+A9 work for you? > > Cheers, > Panos > -- > No. Alt+A9 does not work. I checked my Registry (per https://quality.livecode.com/show_bug.cgi?id=18702#c15) and in Computer\HKEY_CURRENT_USER\Control Panel\Input Method there is no "EnableHexNumpad". There is only "(Default)" and "Show Status" and a "Hot Keys" sub key list. I thought I would be clever and write a bit of LC script (see below) using listRegistry, queryRegistry, and setRegistry. However, none of the registry functions appear to be working in the IDE under LC 9.6.7 and I vaguely recall that they now only work if the application executing them has Administrative privileges? Is that correct? I guess the larger question is: For a person developing an LC based app who's users what to enter Unicode characters, what is the "best practice" for doing this? Is it always copy and paste from some web site or the "Character Map" accessory on Windows or what? If there some bit of working code a person can put in their application to set the Registry key IF the user checks a preference option or clicks a button or something? For NEXT MONTH's Livecode Global troubleshooting session, how would one address this? :-) on mouseUp pMouseButton   if platform() = "Win32" then     put listRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method") into tList     answer "Keys at 'Computer\HKEY_CURRENT_USER\Control Panel\Input Method':"&cr&tList&cr&"On my computer I should see 1 key: 'Show Status'" -- DEBUG     if "EnableHexNumpad" is not among the lines of tList then       -- no registry key exists       put empty into tData -- flag teh key does not exists     else       -- a key exists, now check its value       put queryRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad\") into tData     end if     if tData <> 1 then       put "

Your Windows system is not configured for keyboard entry of Unicode characters!

" into tPrompt       put "

The value of Registery Key 'Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad\' is:"&&tData &"." after tPrompt       put "A reboot will be required.

" after tPrompt       answer warning tPrompt with "Confgured" or "Skip"       if it = "Configure" then         if not setRegistry("Computer\HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad",1) then           -- an error occured           answer error (the result)         else           answer warning "

Please reboot your computer.

"         end if       end if     end if   end if end mouseUp From ludovic.thebault at laposte.net Thu May 12 13:10:36 2022 From: ludovic.thebault at laposte.net (ludovic.thebault at laposte.net) Date: Thu, 12 May 2022 19:10:36 +0200 (CEST) Subject: Sqlite and Monterey on M1 Message-ID: <1035540836.1342971.1652375436147@wlpnf0205> ‌ ‌ ‌   Hello All, I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db) Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok. (-rwxr-xr-x for the database). The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted). What I miss ? Thanks ! From klaus at major-k.de Thu May 12 13:19:33 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 12 May 2022 19:19:33 +0200 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: References: <1FA387B4-CB94-4944-A6CF-D73110F9AAC7@optusnet.com.au> Message-ID: <4BDB07D7-FBFF-4A12-B98E-6F4D6D8EE8BE@major-k.de> Hi all, > Am 11.05.2022 um 20:27 schrieb Richard Gaskin via use-livecode : > ... make sure the buttons you're using in the menu stack have their autoArm set to true, ... Hint: that property "autoarm" did not make it into the inspector somehow, so you need to do this by script! > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Thu May 12 13:56:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 12 May 2022 17:56:15 +0000 Subject: Sqlite and Monterey on M1 In-Reply-To: <1035540836.1342971.1652375436147@wlpnf0205> References: <1035540836.1342971.1652375436147@wlpnf0205> Message-ID: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, even if you have explicit write permissions. It's better if you put the file into her documents folder somewhere. To answer the question you are about to ask, it's likely that her old Mac OS was not current enough to have the sandboxing limitations, and so it worked. Bob S > On May 12, 2022, at 10:10 , ludovic.thebault--- via use-livecode wrote: > > ‌ > > ‌ > > ‌ > > > Hello All, > > I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db) > > Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok. > (-rwxr-xr-x for the database). > > The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted). > > What I miss ? > > 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 klaus at major-k.de Thu May 12 14:01:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 12 May 2022 20:01:16 +0200 Subject: Sqlite and Monterey on M1 In-Reply-To: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> References: <1035540836.1342971.1652375436147@wlpnf0205> <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Message-ID: <24143D79-2908-4C19-BBC5-BD2424D59338@major-k.de> Bonsoir Ludovic, on the Mac we have write permissions here -> specialFolderPath("preferences") Works on Monterey as well and is "out of sight" of the user. ;-) > Am 12.05.2022 um 19:56 schrieb Bob Sneidar via use-livecode : > > Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, even if you have explicit write permissions. It's better if you put the file into her documents folder somewhere. To answer the question you are about to ask, it's likely that her old Mac OS was not current enough to have the sandboxing limitations, and so it worked. > > Bob S > >> On May 12, 2022, at 10:10 , ludovic.thebault--- via use-livecode wrote: >> Hello All, >> >> I've made an macOS app for my sister that use an sqlite database located in the application support folder (~/library/Application Support/myApp/base.db) >> Since she replaced her old mac with an iMac M1, the app cannot write on the database. I've checked the permissions on the folder and the sqlite file and all seem ok. >> (-rwxr-xr-x for the database). >> The app is not notarized, but at first launch (I recompiled the app with Livecode 9.6.4), an alert to give permissions to the "document" folder is displayed (and accepted). >> What I miss ? >> Thanks ! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Thu May 12 14:24:29 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 May 2022 13:24:29 -0500 Subject: Sqlite and Monterey on M1 In-Reply-To: <24143D79-2908-4C19-BBC5-BD2424D59338@major-k.de> References: <1035540836.1342971.1652375436147@wlpnf0205> <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> <24143D79-2908-4C19-BBC5-BD2424D59338@major-k.de> Message-ID: <46167dde-c007-474e-9029-5d5231ea7270@hyperactivesw.com> On 5/12/22 1:01 PM, Klaus major-k via use-livecode wrote: > on the Mac we have write permissions here -> specialFolderPath("preferences") > Works on Monterey as well and is "out of sight" of the user. ;-) > >> Am 12.05.2022 um 19:56 schrieb Bob Sneidar via use-livecode: >> >> Sandboxing. I don't think the latest Apple operating systems allow the writing to the App Support folder, That's kind of strange, since Mac OS provides the Application Support folder specifically for apps to store their data. Has that changed? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu May 12 14:25:06 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 12 May 2022 11:25:06 -0700 Subject: Sqlite and Monterey on M1 In-Reply-To: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> References: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Message-ID: Bob Sneidar wrote: > I don't think the latest Apple operating systems allow the writing > to the App Support folder, even if you have explicit write > permissions. Where are we supposed to write application support files if not to Application Support? First they demanded control of the file format apps use for Prefs, now this... -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Thu May 12 14:39:16 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 12 May 2022 11:39:16 -0700 Subject: Re Pulldownmenu button bug on Windows In-Reply-To: <4BDB07D7-FBFF-4A12-B98E-6F4D6D8EE8BE@major-k.de> References: <4BDB07D7-FBFF-4A12-B98E-6F4D6D8EE8BE@major-k.de> Message-ID: Klaus wrote: > Am 11.05.2022 um 20:27 schrieb Richard Gaskin wrote: >> ... make sure the buttons you're using in the menu stack have >> their autoArm set to true, ... > > Hint: > that property "autoarm" did not make it into the inspector somehow, > so you need to do this by script! It's far from the only one. LC objects have a LARGE number of properties we can work with. The Inspector shows only a subset of the most commonly-used ones. Inspectors are great for consumer tools, but dev tools tend to provide Property Sheets so they can expose a much larger range of properties developers will want to work with. LC attempts to straddle the space between consumer tool and dev tool, in both marketing and IDE design, and it sometimes leads to things one camp or the other may find confusing. I threw together a quick Property Sheet a while back: http://fourthworld.net/revnet/devolution/4W_Props.rev.gz -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From paul at researchware.com Thu May 12 15:30:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 12 May 2022 15:30:23 -0400 Subject: Sqlite and Monterey on M1 In-Reply-To: References: <7E16ABF6-B8E7-4DAE-92D5-312259D3F79E@iotecdigital.com> Message-ID: <67b6c0bb-5879-7e28-6e06-951947f12cd0@researchware.com> On 5/12/2022 2:25 PM, Richard Gaskin via use-livecode wrote: > Bob Sneidar wrote: > > > I don't think the latest Apple operating systems allow the writing > > to the App Support folder, even if you have explicit write > > permissions. > > Where are we supposed to write application support files if not to > Application Support? > > First they demanded control of the file format apps use for Prefs, now > this... > I did a little bit of research when I ran into my app breaking on Catalina and up when trying to reach a folder at specialFolderPath("temporary") and write files in that folder. The problem is that newer macOSes use an runtime algorithm to try to determine when an application is asking for access in "special" places. If the algorithm detect special access (sat to the Desktop or Documents folder or a Webcam and so on) the OS pops up the "Do you want to allow .. " dialog for the user to allow or deny access. An application signed and notarized WITH entitlements can specify some entitlements that are checked and if the App has declared these entitlements to protected resources, they are allowed. Some "protected" resources have NOT corresponding entitlements (at least currently). For disk access to folder paths without entitlements, the user can grant an application Full Disk Access, from System Preferences > Security, but and App can not specify an entitlement for Full Disk Access. It must be granted by the user. Further, an Apple Engineer is a forum response (or someone claiming to be an Apple Engineer) noted that the algorithm to detect requests for special access resources can make mistakes and not recognize a request as a request and there for present a dialog to the user for allowing or denying and the default is to deny. So some circumstances, like apps running  in multiple processes (was an example cited, but it was implied there are other circumstances) your app MIGHT get the allow/deny dialog OR it might not - depending on your app. And for some resources, it just won't get any dialog and no entitlement will allow access, only instructions to the user to grant Full Disk Access (or some other similar ONLY allowed by the user permissions) will work. In short, Apple's sandboxing is a developer mess. If you can, placing files in the Documents folder is best as (A) you can specify the Documents folder in an entitlement and (C) the sandboxing algorithm does seem to always detect (first time) Documents access requests and pop up the dialog. DISCLAIMER: I did not have time to research this in detail and the "apple engineer" may or may not have been a real Apple engineer or knew what they were posting about. Our installer asks people on the last screen to grant our apps full disk access (if they are on Catalina+) and most people do and it solved a lot of recoding. From dan at clearvisiontech.com Fri May 13 15:40:11 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 13 May 2022 19:40:11 +0000 Subject: Audio Control on Mobile? Message-ID: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE@clearvisiontech.com> Hello! On desktop, there is the player object which is great! However, it doesn't work on Mobile. Is there a way to deal with an audio file on mobile (Android and iOS)? Here's what I need to do: - Load an audio file from a server - Play the file - Pause file - Set the cursor (where to play from or jump to) - Know when the end of file is reached - length of audio file - current play position - file state (isPlaying or isPaused) Thank you in advance! -Dan From tom at makeshyft.com Sat May 14 14:07:32 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 14 May 2022 14:07:32 -0400 Subject: Audio Control on Mobile? In-Reply-To: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE@clearvisiontech.com> References: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE@clearvisiontech.com> Message-ID: Hi Dan, Look up mobilecontrolcreate "player" mobilecontrolset That should cover you. Also, the browser can display a HTML compatible player. On Fri, May 13, 2022 at 3:41 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello! On desktop, there is the player object which is great! However, > it doesn't work on Mobile. Is there a way to deal with an audio file on > mobile (Android and iOS)? Here's what I need to do: > > - Load an audio file from a server > - Play the file > - Pause file > - Set the cursor (where to play from or jump to) > - Know when the end of file is reached > - length of audio file > - current play position > - file state (isPlaying or isPaused) > > Thank you in advance! > > -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 andre at andregarzia.com Sun May 15 07:51:12 2022 From: andre at andregarzia.com (Andre Garzia) Date: Sun, 15 May 2022 12:51:12 +0100 Subject: 20% discount on advanced LiveCode development books Message-ID: <91A2EC68-64F5-45D5-B630-BE639036A85D@andregarzia.com> Hi Friends, I had a wonderful time at the LiveCode DevCon 2022 and decided to extend the discount I offered for my books at the con to the wider LC community. These are two books that complement each other, one about organising and developing effective code and the other about building your own dev tools to help your products succeed. LIVECODE ADVANCED APPLICATION ARCHITECTURE BOOK This book will help you learn about LiveCode best practices and advanced application architecture. With the techniques contained in it you will build applications that are easier to maintain and adapt leading to a more fun and profitable future. https://payhip.com/b/I1Un DEVELOPMENT ORIENTED DEVELOPMENT BOOK Development Oriented Development is a novel approach to coding with LiveCode that prioritizes developer comfort and robustness by favouring treating LiveCode as a mouldable environment. By the end of this book, you'll know how and why to build custom plugins to make your development workflow easier, and how bespoke project-specific tools lead to software that is easier to maintain. https://payhip.com/b/18eH The discount coupon is BOOKS20 and you need to apply it when you're checking out. Best Andre From alanstenhouse at hotmail.com Sun May 15 08:12:25 2022 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 15 May 2022 21:42:25 +0930 Subject: Audio Control on Mobile? In-Reply-To: References: Message-ID: Hi Dan, Check out mobilePlaySoundOnChannel in the dictionary and the related commands linked to it. Don't think there's a player command for mobile, though I may have missed it...! HTH cheers, Alan > On 15 May 2022, at 1:30 am, use-livecode-request at lists.runrev.com wrote: > > Date: Fri, 13 May 2022 19:40:11 +0000 > From: Dan Friedman > To: How to use LiveCode > Subject: Audio Control on Mobile? > Message-ID: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE at clearvisiontech.com> > Content-Type: text/plain; charset="utf-8" > > Hello! On desktop, there is the player object which is great! However, it doesn't work on Mobile. Is there a way to deal with an audio file on mobile (Android and iOS)? Here's what I need to do: > > - Load an audio file from a server > - Play the file > - Pause file > - Set the cursor (where to play from or jump to) > - Know when the end of file is reached > - length of audio file > - current play position > - file state (isPlaying or isPaused) > > Thank you in advance! > > -Dan From dan at clearvisiontech.com Sun May 15 13:14:06 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Sun, 15 May 2022 17:14:06 +0000 Subject: Audio Control on Mobile? In-Reply-To: References: Message-ID: <2CEE3CB3-B3A3-4123-9B5B-7581F3136AB2@clearvisiontech.com> Alan, Thank you for the info. I know of the mobileSound items... but, it doesn't have all the commands we need. For example, there is no method to start (or change) the sounds play position, or poll the sound for the current position. My client wants to make a music playing app. Need to replicate a music player... so, we need to keep our [custom] transport in sync with the sound. Stop, Start, Pause, Scrub, update current time and time remaining, etc. EASY on desktop, can't seem to do this on mobile with LiveCode. -Dan On 5/15/22, 5:12 AM, "Alan Stenhouse" wrote: Hi Dan, Check out mobilePlaySoundOnChannel in the dictionary and the related commands linked to it. Don't think there's a player command for mobile, though I may have missed it...! HTH cheers, Alan > On 15 May 2022, at 1:30 am, use-livecode-request at lists.runrev.com wrote: > > Date: Fri, 13 May 2022 19:40:11 +0000 > From: Dan Friedman > To: How to use LiveCode > Subject: Audio Control on Mobile? > Message-ID: <395FAC0D-ACA3-463E-AB3A-B932D222C8AE at clearvisiontech.com> > Content-Type: text/plain; charset="utf-8" > > Hello! On desktop, there is the player object which is great! However, it doesn't work on Mobile. Is there a way to deal with an audio file on mobile (Android and iOS)? Here's what I need to do: > > - Load an audio file from a server > - Play the file > - Pause file > - Set the cursor (where to play from or jump to) > - Know when the end of file is reached > - length of audio file > - current play position > - file state (isPlaying or isPaused) > > Thank you in advance! > > -Dan From harrison at all-auctions.com Mon May 16 13:46:05 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 13:46:05 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: I have a large chunk of data that I want to search as quickly as possible. Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. I don’t want to search line by line as that takes way too long. There’s no unique character dividing any of these data regions. What’s the best way to do this? Thanks in advance! Rick From jiml at netrin.com Mon May 16 13:58:08 2022 From: jiml at netrin.com (Jim Lambert) Date: Mon, 16 May 2022 10:58:08 -0700 Subject: Audio Control on Mobile? In-Reply-To: References: Message-ID: > Dan wrote: > My client wants to make a music playing app. Need to replicate a music player... so, we need to keep our [custom] transport in sync with the sound. Stop, Start, Pause, Scrub, update current time and time remaining, etc. EASY on desktop, can't seem to do this on mobile with LiveCode. I wonder if using the Browser widget would help? https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Cross-browser_audio_basics Jim Lambert From craig at starfirelighting.com Mon May 16 14:19:08 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 16 May 2022 14:19:08 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <398E76E5-1C2C-4D5D-990E-8BB276C2F5AB@starfirelighting.com> Hi. Can you get the number of lines of the whole blob, if lines are pertinent, divide that number by 3, and search from there? Another words, if you had 1000 lines, divide by 3 and search from line 333 to 666. Craig > On May 16, 2022, at 1:46 PM, Rick Harrison via use-livecode wrote: > > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I don’t want to search line by line as that > takes way too long. > > There’s no unique character dividing any > of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon May 16 14:23:23 2022 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 16 May 2022 21:23:23 +0300 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> Well one of the things you could do is this: slightly pseudo 1 put the number of chars in MyDATA into MyNUM 2 put MyNUM / 3 into SLICER 3 put chars 1-SLICER of MyDATA into firstTHIRD 4 put chars SLICER-(SLICER * 2) into secondTHIRD 5 put chars (SLICER * 2)-(SLICER*3) into thirdTHIRD at which point you can perform you search inwith secondTHIRD. Unless you want to recombine all those bits having performed some sort of operation on secondThird lines 3 and 5 are a waste of time. Best, Richmond. Best Richmond. On 16.05.22 20:46, Rick Harrison via use-livecode wrote: > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I dont want to search line by line as that > takes way too long. > > Theres no unique character dividing any > of these data regions. > > Whats the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon May 16 14:23:56 2022 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 16 May 2022 21:23:56 +0300 Subject: Divide Large Data Blob? In-Reply-To: <398E76E5-1C2C-4D5D-990E-8BB276C2F5AB@starfirelighting.com> References: <398E76E5-1C2C-4D5D-990E-8BB276C2F5AB@starfirelighting.com> Message-ID: <497e279b-aebb-379c-066b-0547199f5127@gmail.com> Great Behinds Stink Alike.  :) On 16.05.22 21:19, Craig Newman via use-livecode wrote: > Hi. > > Can you get the number of lines of the whole blob, if lines are pertinent, divide that number by 3, and search from there? Another words, if you had 1000 lines, divide by 3 and search from line 333 to 666. > > Craig > >> On May 16, 2022, at 1:46 PM, Rick Harrison via use-livecode wrote: >> >> I have a large chunk of data that I want to >> search as quickly as possible. >> >> Unfortunately the part I want to search is the >> middle third of the data. The other thirds at >> the beginning and at the end are just junk and >> slow down my search so I want to get rid of them. >> >> I dont want to search line by line as that >> takes way too long. >> >> Theres no unique character dividing any >> of these data regions. >> >> Whats the best way to do this? >> >> Thanks in advance! >> >> Rick >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 16 14:32:10 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 16 May 2022 11:32:10 -0700 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <27ee61cf-4d7e-f32e-9f82-a216dda31462@fourthworld.com> Rick Harrison wrote: > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I dont want to search line by line as that > takes way too long. > > Theres no unique character dividing any > of these data regions. > > Whats the best way to do this? The offset function has an optional third param for starting point, so setting that value to the number of bytes you want to skip would take you right where you want to be. Offset can then be used in a loop, updating the starting value as you go. Exiting the loop once your into the tail you don't want to index can be a simple if to escape the loop. There may also be options for using delimiters. What does the source data look like, and what should the resulting index look like? And the most central question with things like this: how large is "large"? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From phil at pdslabs.net Mon May 16 14:37:32 2022 From: phil at pdslabs.net (Phil Davis) Date: Mon, 16 May 2022 11:37:32 -0700 Subject: Decrypting (and encrypting) Large files In-Reply-To: References: <5A322D33-0867-4BCF-9C0C-4EF6A158904F@mac.com> Message-ID: On 5/10/22 12:35 PM, Richard Gaskin via use-livecode wrote: > Mark Clark wrote: > > > Wondering if anyone has used LiveCode for encrypting-decrypting large > > files? > ... > > Im thinking about using LC for decrypting zip compressed log files > > that can be multiple gigabytes in size. Id like to use just LC vs. > > resorting to shell if possible. > > What is behind the preference to roll your own rather than call > existing purpose-built command-line tools from LC with shell()? I like this option. You could use shell("openssl ") to encrypt any size file. Also it may be possible to run 'openssl' as a process, by which (I believe) you could make it non blocking, running in the background. (I haven't tried opening 'openssl' as a process, just speculating here.) Phil Davis > > Your chunking described in your latest post seems the way to go, AFAIK > pretty much how other tools would handle it. > > Another option:  if you're in an environment where even log files > require strong encryption, could you pipe log data to a separate > secured log server instead? > -- Phil Davis (503) 307-4363 From harrison at all-auctions.com Mon May 16 15:34:12 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 15:34:12 -0400 Subject: Divide Large Data Blob? In-Reply-To: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> References: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> Message-ID: Hi Richmond, An interesting approach. I’ll give it try Thanks! Rick > On May 16, 2022, at 2:23 PM, Richmond via use-livecode wrote: > > Well one of the things you could do is this: > > slightly pseudo > > 1 put the number of chars in MyDATA into MyNUM > 2 put MyNUM / 3 into SLICER > 3 put chars 1-SLICER of MyDATA into firstTHIRD > 4 put chars SLICER-(SLICER * 2) into secondTHIRD > 5 put chars (SLICER * 2)-(SLICER*3) into thirdTHIRD > > at which point you can perform you search inwith secondTHIRD. > > Unless you want to recombine all those bits having performed some sort of operation on secondThird > lines 3 and 5 are a waste of time. > > Best, Richmond. From harrison at all-auctions.com Mon May 16 15:38:29 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 15:38:29 -0400 Subject: Divide Large Data Blob? In-Reply-To: <27ee61cf-4d7e-f32e-9f82-a216dda31462@fourthworld.com> References: <27ee61cf-4d7e-f32e-9f82-a216dda31462@fourthworld.com> Message-ID: <1C881FB6-15E2-4638-90D8-6D0711E44C1E@all-auctions.com> Hi Richard, I was looking at the offset function and thinking about the starting points. It still presents a looping problem for me that I’m trying to avoid. If other methods aren’t more efficient I will play with it more. Thanks, Rick > On May 16, 2022, at 2:32 PM, Richard Gaskin via use-livecode wrote: > > The offset function has an optional third param for starting point, so setting that value to the number of bytes you want to skip would take you right where you want to be. Offset can then be used in a loop, updating the starting value as you go. Exiting the loop once your into the tail you don't want to index can be a simple if to escape the loop. > > There may also be options for using delimiters. What does the source data look like, and what should the resulting index look like? > > And the most central question with things like this: how large is "large"? From harrison at all-auctions.com Mon May 16 15:57:00 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 15:57:00 -0400 Subject: Divide Large Data Blob? In-Reply-To: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> References: <752ac670-0656-dffa-a199-e82c40f01a9e@gmail.com> Message-ID: <5C0D7D02-574C-45C6-9E61-8CBC109632B7@all-auctions.com> Hi Richmond, Doesn’t the following still require a loop? LC doesn’t like the syntax you provided. Thanks, Rick > On May 16, 2022, at 2:23 PM, Richmond via use-livecode wrote: > > 3 put chars 1-SLICER of MyDATA into firstTHIRD From rdimola at evergreeninfo.net Mon May 16 16:01:36 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 16 May 2022 16:01:36 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <004801d8695f$c27e0d00$477a2700$@net> If the needed OR unneeded lines have something in common then the filter command is your friend. Filter is blazingly fast. 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 Rick Harrison via use-livecode Sent: Monday, May 16, 2022 1:46 PM To: How to use LiveCode Cc: Rick Harrison Subject: Divide Large Data Blob? I have a large chunk of data that I want to search as quickly as possible. Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. I don’t want to search line by line as that takes way too long. There’s no unique character dividing any of these data regions. What’s the best way to do this? Thanks in advance! Rick _______________________________________________ use-livecode mailing list use-livecode 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 harrison at all-auctions.com Mon May 16 16:15:03 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 16:15:03 -0400 Subject: Divide Large Data Blob? In-Reply-To: <004801d8695f$c27e0d00$477a2700$@net> References: <004801d8695f$c27e0d00$477a2700$@net> Message-ID: Hi Ralph, I was looking at filter. It might help me to cut down on the amount of data to search, but I would still have to throw out the first 1/3 of the data. Perhaps filtering first and then processing what’s left by line number wouldn’t be too slow. Thanks for the suggestion! Rick > On May 16, 2022, at 4:01 PM, Ralph DiMola via use-livecode wrote: > > If the needed OR unneeded lines have something in common then the filter command is your friend. Filter is blazingly fast. > > 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 Rick Harrison via use-livecode > Sent: Monday, May 16, 2022 1:46 PM > To: How to use LiveCode > Cc: Rick Harrison > Subject: Divide Large Data Blob? > > I have a large chunk of data that I want to search as quickly as possible. > > Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. > > I don’t want to search line by line as that takes way too long. > > There’s no unique character dividing any of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 harrison at all-auctions.com Mon May 16 17:18:22 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 17:18:22 -0400 Subject: Divide Large Data Blob? In-Reply-To: <004801d8695f$c27e0d00$477a2700$@net> References: <004801d8695f$c27e0d00$477a2700$@net> Message-ID: <96C91646-AADD-4E84-B62C-5793A4A042EB@all-auctions.com> Hi Ralph, Filtering the data first made a huge difference in the size of the data I need to search. Thanks! Rick > On May 16, 2022, at 4:01 PM, Ralph DiMola via use-livecode wrote: > > If the needed OR unneeded lines have something in common then the filter command is your friend. Filter is blazingly fast. > > 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 Rick Harrison via use-livecode > Sent: Monday, May 16, 2022 1:46 PM > To: How to use LiveCode > Cc: Rick Harrison > Subject: Divide Large Data Blob? > > I have a large chunk of data that I want to search as quickly as possible. > > Unfortunately the part I want to search is the middle third of the data. The other thirds at the beginning and at the end are just junk and slow down my search so I want to get rid of them. > > I don’t want to search line by line as that takes way too long. > > There’s no unique character dividing any of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 16 18:00:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 22:00:51 +0000 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. You may only have to do this a dozen or so times to find the exact line where your valid data begins. The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. Bob S > On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: > > I have a large chunk of data that I want to > search as quickly as possible. > > Unfortunately the part I want to search is the > middle third of the data. The other thirds at > the beginning and at the end are just junk and > slow down my search so I want to get rid of them. > > I don’t want to search line by line as that > takes way too long. > > There’s no unique character dividing any > of these data regions. > > What’s the best way to do this? > > Thanks in advance! > > Rick > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 16 18:23:52 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 22:23:52 +0000 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> A maximum of 7 recursions are necessary to isolate a single instance of 100 possible values. 1000 requires a maximum of 10. 10000 values requires 14. The idea is that for every factor of 10, you need roughly 3 more recursions. This of course assumes the data is sorted, which in your case is sorted into 3 containers. If you know the limits of how many lines can be garbage, and how many can be valid data, you narrow your scope significantly. Livecode is pretty damn quick at parsing this kind of data. If there are consistent delimiters (in this case a line break) then even 20 or 30 recursions is child's play. Bob S > On May 16, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: > > Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? > If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. > > You may only have to do this a dozen or so times to find the exact line where your valid data begins. > > The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. > > Bob S > >> On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: >> >> I have a large chunk of data that I want to >> search as quickly as possible. >> >> Unfortunately the part I want to search is the >> middle third of the data. The other thirds at >> the beginning and at the end are just junk and >> slow down my search so I want to get rid of them. >> >> I don’t want to search line by line as that >> takes way too long. >> >> There’s no unique character dividing any >> of these data regions. >> >> What’s the best way to do this? >> >> Thanks in advance! >> >> Rick >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 May 16 18:44:44 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 22:44:44 +0000 Subject: Divide Large Data Blob? In-Reply-To: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> Message-ID: <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> So this has got me thinking. Apparently what I am calling Divide and Conquer is really called a binary sort. I have looked up on the interwebs to calculate the maximum number of iterations for a given number of values, but it seems that all the formulas offered up use functions for C. I am trying to figure out what a basic math formula for this is, given n values. Bob S > On May 16, 2022, at 15:23 , Bob Sneidar via use-livecode wrote: > > A maximum of 7 recursions are necessary to isolate a single instance of 100 possible values. 1000 requires a maximum of 10. 10000 values requires 14. The idea is that for every factor of 10, you need roughly 3 more recursions. This of course assumes the data is sorted, which in your case is sorted into 3 containers. If you know the limits of how many lines can be garbage, and how many can be valid data, you narrow your scope significantly. > > Livecode is pretty damn quick at parsing this kind of data. If there are consistent delimiters (in this case a line break) then even 20 or 30 recursions is child's play. > > Bob S > > >> On May 16, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: >> >> Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? >> If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. >> >> You may only have to do this a dozen or so times to find the exact line where your valid data begins. >> >> The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. >> >> Bob S >> >>> On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: >>> >>> I have a large chunk of data that I want to >>> search as quickly as possible. >>> >>> Unfortunately the part I want to search is the >>> middle third of the data. The other thirds at >>> the beginning and at the end are just junk and >>> slow down my search so I want to get rid of them. >>> >>> I don’t want to search line by line as that >>> takes way too long. >>> >>> There’s no unique character dividing any >>> of these data regions. >>> >>> What’s the best way to do this? >>> >>> Thanks in advance! >>> >>> Rick >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 bobsneidar at iotecdigital.com Mon May 16 19:53:32 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 May 2022 23:53:32 +0000 Subject: Divide Large Data Blob? In-Reply-To: <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> Message-ID: <5C7E3D16-4A55-4296-94A2-279294C774D6@iotecdigital.com> OK so it appears there is a log2 property. The log2 of 1000 yields 9.965784 so I suppsoe if you round up, that would give you the maximum number of iterations to isolate a single line in a 1000 line sorted list. Bob S > On May 16, 2022, at 15:44 , Bob Sneidar via use-livecode wrote: > > So this has got me thinking. Apparently what I am calling Divide and Conquer is really called a binary sort. I have looked up on the interwebs to calculate the maximum number of iterations for a given number of values, but it seems that all the formulas offered up use functions for C. I am trying to figure out what a basic math formula for this is, given n values. > > Bob S > > >> On May 16, 2022, at 15:23 , Bob Sneidar via use-livecode wrote: >> >> A maximum of 7 recursions are necessary to isolate a single instance of 100 possible values. 1000 requires a maximum of 10. 10000 values requires 14. The idea is that for every factor of 10, you need roughly 3 more recursions. This of course assumes the data is sorted, which in your case is sorted into 3 containers. If you know the limits of how many lines can be garbage, and how many can be valid data, you narrow your scope significantly. >> >> Livecode is pretty damn quick at parsing this kind of data. If there are consistent delimiters (in this case a line break) then even 20 or 30 recursions is child's play. >> >> Bob S >> >> >>> On May 16, 2022, at 15:00 , Bob Sneidar via use-livecode wrote: >>> >>> Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? >>> If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. >>> >>> You may only have to do this a dozen or so times to find the exact line where your valid data begins. >>> >>> The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. >>> >>> Bob S >>> >>>> On May 16, 2022, at 10:46 , Rick Harrison via use-livecode wrote: >>>> >>>> I have a large chunk of data that I want to >>>> search as quickly as possible. >>>> >>>> Unfortunately the part I want to search is the >>>> middle third of the data. The other thirds at >>>> the beginning and at the end are just junk and >>>> slow down my search so I want to get rid of them. >>>> >>>> I don’t want to search line by line as that >>>> takes way too long. >>>> >>>> There’s no unique character dividing any >>>> of these data regions. >>>> >>>> What’s the best way to do this? >>>> >>>> Thanks in advance! >>>> >>>> Rick >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 harrison at all-auctions.com Mon May 16 19:57:31 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 19:57:31 -0400 Subject: Divide Large Data Blob? In-Reply-To: References: Message-ID: Hi Bob, I just need to make one pass at the data, so building an SQL database for it doesn’t make sense. I don’t have any definitive line for the boundary between good and bad data. It’s more of a consistent first guess used just to cut down on the amount of data to process. I start looking for the good data after about a third of it has passed by. Thanks, Rick > On May 16, 2022, at 6:00 PM, Bob Sneidar via use-livecode wrote: > > Do you know exactly which lines you need to toss, or do you need to searc the data to find out where the beginning and end of the useful data is? > If the former, then just put line x to y of your data into a new variable. If the latter, then a divide and conquer approach might be the answer. Get the line 30% in, test for valid, get the line 40% in, test, then 35% then 32.5% or 37.5% depending on your test. > > You may only have to do this a dozen or so times to find the exact line where your valid data begins. > > The other way of course is to get it all into a SQL database (how did you all know I was going to say that??) The downside is that you have to iterate through all your data once. The upside is a good one liner query statement may be all you need to process your data. And if you need to make multiple passes at your data, all the better. > > Bob S From harrison at all-auctions.com Mon May 16 20:00:10 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 20:00:10 -0400 Subject: Divide Large Data Blob? In-Reply-To: <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> Message-ID: <02C1BB8F-2D83-47CC-80D6-D0D50B772AC2@all-auctions.com> Hi Bob, Yes, I was looking into the binary sort idea. It’s too bad that isn’t just a built-in function for LC. I’m not sure it’s worth that kind of effort for my particular case. Thanks, Rick > On May 16, 2022, at 6:44 PM, Bob Sneidar via use-livecode wrote: > > So this has got me thinking. Apparently what I am calling Divide and Conquer is really called a binary sort. I have looked up on the interwebs to calculate the maximum number of iterations for a given number of values, but it seems that all the formulas offered up use functions for C. I am trying to figure out what a basic math formula for this is, given n values. > > Bob S > From harrison at all-auctions.com Mon May 16 20:00:53 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 16 May 2022 20:00:53 -0400 Subject: Divide Large Data Blob? In-Reply-To: <5C7E3D16-4A55-4296-94A2-279294C774D6@iotecdigital.com> References: <45886FD1-D1E1-4A7E-9543-47A7E8A25A97@iotecdigital.com> <6D0AB1D7-7479-49D0-93F0-C39ABA5A57B8@iotecdigital.com> <5C7E3D16-4A55-4296-94A2-279294C774D6@iotecdigital.com> Message-ID: Hi Bob, Nice to know this for the future. Thanks for your research! Rick > On May 16, 2022, at 7:53 PM, Bob Sneidar via use-livecode wrote: > > OK so it appears there is a log2 property. The log2 of 1000 yields 9.965784 so I suppsoe if you round up, that would give you the maximum number of iterations to isolate a single line in a 1000 line sorted list. > > Bob S From ambassador at fourthworld.com Mon May 16 20:19:17 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 16 May 2022 17:19:17 -0700 Subject: Divide Large Data Blob? In-Reply-To: <1C881FB6-15E2-4638-90D8-6D0711E44C1E@all-auctions.com> References: <1C881FB6-15E2-4638-90D8-6D0711E44C1E@all-auctions.com> Message-ID: <37aa8558-118d-ae25-5545-7b23d8d8edda@fourthworld.com> There may be other approaches, but without knowing what the data looks like, what the resulting index should look like, and how big the data is we'd just be guessing. -- Richard Gaskin Fourth World Systems Rick Harrison wrote: > Hi Richard, > > I was looking at the offset function and thinking about > the starting points. It still presents a looping problem > for me that Im trying to avoid. If other methods arent > more efficient I will play with it more. > > Thanks, > > Rick > >> On May 16, 2022, at 2:32 PM, Richard Gaskin via use-livecode wrote: >> >> The offset function has an optional third param for starting point, so setting that value to the number of bytes you want to skip would take you right where you want to be. Offset can then be used in a loop, updating the starting value as you go. Exiting the loop once your into the tail you don't want to index can be a simple if to escape the loop. >> >> There may also be options for using delimiters. What does the source data look like, and what should the resulting index look like? >> >> And the most central question with things like this: how large is "large"? > From jbv at souslelogo.com Tue May 17 02:35:46 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 17 May 2022 02:35:46 -0400 Subject: Nested loops Message-ID: <076ae7149b2e80a8f9658ce1dac0bdf7@souslelogo.com> Hi list, What is the best and most efficient way to write the following javascript loops in LC ? for (let i = 0, j = myArray.length - 1; i < myArray.length; j = i++) { } This goes beyond simple nested loops. So far, because of lack of time, I have pre-calculated the successive values of i and j, and have put them into lists of words : 0 1 2 3 4 5 5 0 1 2 3 4 it remains fast enough for what I need to do, but there must be a more elegant approach... Thanks. jbv From alex at tweedly.net Tue May 17 07:49:20 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 17 May 2022 12:49:20 +0100 Subject: Nested loops In-Reply-To: <076ae7149b2e80a8f9658ce1dac0bdf7@souslelogo.com> References: <076ae7149b2e80a8f9658ce1dac0bdf7@souslelogo.com> Message-ID: <3ceac61a-5ba8-ab53-f52b-5ba87f04bb1e@tweedly.net> Direct equivalent is probably repeat with i = 0 to myArrayLength-1    put i-1 into j    if j < 0 then put myArrayLength-1 into j    ..... end repeat OR, if you prefer a single-statement version repeat with i = 0 to myArrayLength-1    put (i + myArrayLength-1) mod myArrayLength  into j    ..... end repeat OR - most efficient but risky - i.e. a bad choice iMHO :-) put myArrayLength-1 into j repeat with i = 0 to myArrayLength-1    .....    put i into j   -- NB at the very end of the loop body end repeat This is risky in case you ever do a "next repeat" inside the loop body !! Alex. On 17/05/2022 07:35, jbv via use-livecode wrote: > Hi list, > > What is the best and most efficient way to write the following > javascript loops in LC ? > > for (let i = 0, j = myArray.length - 1; i < myArray.length; j = i++) { > } > > This goes beyond simple nested loops. > So far, because of lack of time, I have pre-calculated the successive > values of i and j, and have put them into lists of words : > 0 1 2 3 4 5 > 5 0 1 2 3 4 > it remains fast enough for what I need to do, but there must be a more > elegant approach... > > Thanks. > 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 devin_asay at byu.edu Tue May 17 13:28:59 2022 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 17 May 2022 17:28:59 +0000 Subject: Movie text tracks Message-ID: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Hi all, I’m resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesn’t seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. Anybody know how to show, or at least recover, old text tracks from video files? (Man I hate it when the technology gets *less* capable!) - Devin Devin Asay Office of Digital Humanities Brigham Young University From richmondmathewson at gmail.com Tue May 17 14:02:25 2022 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 17 May 2022 21:02:25 +0300 Subject: Movie text tracks In-Reply-To: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Message-ID: <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html Best, Richmond. On 17.05.22 20:28, Devin Asay via use-livecode wrote: > Hi all, > > Im resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesnt seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 17 16:16:58 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 May 2022 15:16:58 -0500 Subject: Movie text tracks In-Reply-To: <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> Message-ID: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: > Here's a thought: > > Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: > > https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Tue May 17 16:32:32 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 17 May 2022 16:32:32 -0400 Subject: Movie text tracks In-Reply-To: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Message-ID: <0a30cbae-39bb-0154-d94a-96814ad2a976@researchware.com> This is not any sort of immediate help, but a quick Google search suggests that both AVF (Apple Video Foundation) and MMF (Microsoft Media Foundation - the underlying framework for the player in Livecode 10) support classes and APIs to access multiple media tracks and metadata. I don't know about Mobil player support (or Linux), but now is the time while Livecode 10 is in developer preview stages to lobby Livecode Ltd to broaden the player object to support more cross-platform features. I suggest opening an enhancement request at https://quality.livecode.com/ for text track access (subtitles are an accessibility requirement on lots of media these days) for LC 10. On 5/17/2022 1:28 PM, Devin Asay via use-livecode wrote: > Hi all, > > Im resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesnt seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin > > > Devin Asay > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 18 04:40:04 2022 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 18 May 2022 10:40:04 +0200 Subject: Curved text possible? In-Reply-To: References: <4D1A0C7B-72A6-47C1-A625-7C69043496DD@gmail.com> <0D4E5104-2E75-4978-A083-BEE016B844B7@rogers.com> <8A2E9450-8F9F-4BB4-B235-7A353CC93EFB@iotecdigital.com> <004101d85b14$2ecba080$8c62e180$@net> Message-ID: Hi there, I posted a curved text example (with use of the browser widget) on the forum: https://forums.livecode.com/viewtopic.php?f=120&t=37027 It works ok but still not satisfied with transparency. Maybe someone has a better idea on how to do that? groeten, William Op do 28 apr. 2022 om 17:42 schreef William de Smet : > Thanks! > > I came up with sort of the same idea yesterday evening and I am > tetsting it now. > I load a local html file within the browser widget with circletype.js > added to the html file. > > A native textfield (and some extra code) writes back into the html file > and then I refresh the card. > A snapshot gives me the curved text. > > There is also Arctext,js that I want to test. > > I will come back later with my result. > > groeten, > > William > > > > > Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com>: > >> +1 >> >> 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 Bob Sneidar via use-livecode >> Sent: Thursday, April 28, 2022 11:18 AM >> To: How to use LiveCode >> Cc: Bob Sneidar >> Subject: Re: Curved text possible? >> >> Great ideas Martin. I'm going to grant you an honorary doctorate from the >> institute of Sly Laboratories. >> >> Bob S >> >> >> > On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode >> wrote: >> > >> > I was thinking that SVG might work as someone else has said. >> > >> > At first I thought you could create individual files for each letter and >> number and put the path for a letter into a svg widget which you could >> rotate or scale. >> > you would then have to calculate the angle of rotation and location of >> each svg widget on a path. But then when I tried rotating the svg widget >> its scale would change as it rotated because the bounds of the rect were >> changing. Then you would have to calculate the scale depending on the >> rotation angle and that seemed a bit much. >> > >> > I also thought you could import the svg file as an image and perhaps >> that >> would not have the odd behaviour when rotating. I did not try that >> though. >> > >> > Then I found this. >> > >> > https://css-tricks.com/snippets/svg/curved-text-along-path/ >> >> > >> > it shows how to use css to put text along a SVG path. At the LiveCode >> Dev >> Con there were a few unconventional uses of the browser widget beyond >> displaying webpages that add features that can add features that LiveCode >> does not have natively. So I thought maybe this is one of them. So what >> I >> thought could be done is display the above in a browser widget or, If you >> did not want to show the browser widget, use the browser widget to render >> the curved text, thentake a snapshot of the rendered text and then show >> that >> in an image. >> > >> > Not sure if it will work but the sessions at the conference have really >> got me thinking of new ways to leverage the technology in that widget. >> > >> > Martin Koob >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed May 18 05:40:25 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 18 May 2022 10:40:25 +0100 Subject: Curved text possible? In-Reply-To: References: Message-ID: There is a better way to do this using LCB. If you don’t mind waiting I can pull something up. I’m out of office at the moment so can’t get to my files. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 18 May 2022, at 09:40, William de Smet via use-livecode wrote: > > Hi there, > > I posted a curved text example (with use of the browser widget) on the > forum: > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > It works ok but still not satisfied with transparency. > Maybe someone has a better idea on how to do that? > > > > groeten, > > William > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet > : > >> Thanks! >> >> I came up with sort of the same idea yesterday evening and I am >> tetsting it now. >> I load a local html file within the browser widget with circletype.js >> added to the html file. >> >> A native textfield (and some extra code) writes back into the html file >> and then I refresh the card. >> A snapshot gives me the curved text. >> >> There is also Arctext,js that I want to test. >> >> I will come back later with my result. >> >> groeten, >> >> William >> >> >> >> >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com>: >> >>> +1 >>> >>> 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 Bob Sneidar via use-livecode >>> Sent: Thursday, April 28, 2022 11:18 AM >>> To: How to use LiveCode >>> Cc: Bob Sneidar >>> Subject: Re: Curved text possible? >>> >>> Great ideas Martin. I'm going to grant you an honorary doctorate from the >>> institute of Sly Laboratories. >>> >>> Bob S >>> >>> >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode >>> wrote: >>>> >>>> I was thinking that SVG might work as someone else has said. >>>> >>>> At first I thought you could create individual files for each letter and >>> number and put the path for a letter into a svg widget which you could >>> rotate or scale. >>>> you would then have to calculate the angle of rotation and location of >>> each svg widget on a path. But then when I tried rotating the svg widget >>> its scale would change as it rotated because the bounds of the rect were >>> changing. Then you would have to calculate the scale depending on the >>> rotation angle and that seemed a bit much. >>>> >>>> I also thought you could import the svg file as an image and perhaps >>> that >>> would not have the odd behaviour when rotating. I did not try that >>> though. >>>> >>>> Then I found this. >>>> >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ >>> >>>> >>>> it shows how to use css to put text along a SVG path. At the LiveCode >>> Dev >>> Con there were a few unconventional uses of the browser widget beyond >>> displaying webpages that add features that can add features that LiveCode >>> does not have natively. So I thought maybe this is one of them. So what >>> I >>> thought could be done is display the above in a browser widget or, If you >>> did not want to show the browser widget, use the browser widget to render >>> the curved text, thentake a snapshot of the rendered text and then show >>> that >>> in an image. >>>> >>>> Not sure if it will work but the sessions at the conference have really >>> got me thinking of new ways to leverage the technology in that widget. >>>> >>>> Martin Koob >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 williamdesmet at gmail.com Wed May 18 07:57:55 2022 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 18 May 2022 13:57:55 +0200 Subject: Curved text possible? In-Reply-To: References: Message-ID: @Sean: Yes, a widget would be the best thing of course. Much appreciated! groeten, William Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < use-livecode at lists.runrev.com>: > There is a better way to do this using LCB. If you don’t mind waiting I > can pull something up. I’m out of office at the moment so can’t get to my > files. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi there, > > > > I posted a curved text example (with use of the browser widget) on the > > forum: > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > It works ok but still not satisfied with transparency. > > Maybe someone has a better idea on how to do that? > > > > > > > > groeten, > > > > William > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > williamdesmet at gmail.com > >> : > > > >> Thanks! > >> > >> I came up with sort of the same idea yesterday evening and I am > >> tetsting it now. > >> I load a local html file within the browser widget with circletype.js > >> added to the html file. > >> > >> A native textfield (and some extra code) writes back into the html file > >> and then I refresh the card. > >> A snapshot gives me the curved text. > >> > >> There is also Arctext,js that I want to test. > >> > >> I will come back later with my result. > >> > >> groeten, > >> > >> William > >> > >> > >> > >> > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > >> use-livecode at lists.runrev.com>: > >> > >>> +1 > >>> > >>> 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 Bob Sneidar via use-livecode > >>> Sent: Thursday, April 28, 2022 11:18 AM > >>> To: How to use LiveCode > >>> Cc: Bob Sneidar > >>> Subject: Re: Curved text possible? > >>> > >>> Great ideas Martin. I'm going to grant you an honorary doctorate from > the > >>> institute of Sly Laboratories. > >>> > >>> Bob S > >>> > >>> > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > >>> wrote: > >>>> > >>>> I was thinking that SVG might work as someone else has said. > >>>> > >>>> At first I thought you could create individual files for each letter > and > >>> number and put the path for a letter into a svg widget which you could > >>> rotate or scale. > >>>> you would then have to calculate the angle of rotation and location of > >>> each svg widget on a path. But then when I tried rotating the svg > widget > >>> its scale would change as it rotated because the bounds of the rect > were > >>> changing. Then you would have to calculate the scale depending on the > >>> rotation angle and that seemed a bit much. > >>>> > >>>> I also thought you could import the svg file as an image and perhaps > >>> that > >>> would not have the odd behaviour when rotating. I did not try that > >>> though. > >>>> > >>>> Then I found this. > >>>> > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > >>> > >>>> > >>>> it shows how to use css to put text along a SVG path. At the LiveCode > >>> Dev > >>> Con there were a few unconventional uses of the browser widget beyond > >>> displaying webpages that add features that can add features that > LiveCode > >>> does not have natively. So I thought maybe this is one of them. So > what > >>> I > >>> thought could be done is display the above in a browser widget or, If > you > >>> did not want to show the browser widget, use the browser widget to > render > >>> the curved text, thentake a snapshot of the rendered text and then show > >>> that > >>> in an image. > >>>> > >>>> Not sure if it will work but the sessions at the conference have > really > >>> got me thinking of new ways to leverage the technology in that widget. > >>>> > >>>> Martin Koob > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 sean at pidigital.co.uk Wed May 18 08:15:12 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Wed, 18 May 2022 13:15:12 +0100 Subject: Curved text possible? In-Reply-To: References: Message-ID: Actually, HH had put up this on his site and kept open for us kindly. https://hh.on-rev.com/widgets/svgtext.html At the bottom he describes that it is possible to use SVG to define paths for the text. How good are you at LCB in being able to manipulate what he had achieved here? Sean On Wed, 18 May 2022 at 12:57, William de Smet via use-livecode < use-livecode at lists.runrev.com> wrote: > @Sean: Yes, a widget would be the best thing of course. > Much appreciated! > > groeten, > > William > > > > > Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < > use-livecode at lists.runrev.com>: > > > There is a better way to do this using LCB. If you don’t mind waiting I > > can pull something up. I’m out of office at the moment so can’t get to my > > files. > > > > Sean Cole > > Pi Digital Productions Ltd > > > > eMail Ts & Cs > > > > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Hi there, > > > > > > I posted a curved text example (with use of the browser widget) on the > > > forum: > > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > > > It works ok but still not satisfied with transparency. > > > Maybe someone has a better idea on how to do that? > > > > > > > > > > > > groeten, > > > > > > William > > > > > > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > > williamdesmet at gmail.com > > >> : > > > > > >> Thanks! > > >> > > >> I came up with sort of the same idea yesterday evening and I am > > >> tetsting it now. > > >> I load a local html file within the browser widget with circletype.js > > >> added to the html file. > > >> > > >> A native textfield (and some extra code) writes back into the html > file > > >> and then I refresh the card. > > >> A snapshot gives me the curved text. > > >> > > >> There is also Arctext,js that I want to test. > > >> > > >> I will come back later with my result. > > >> > > >> groeten, > > >> > > >> William > > >> > > >> > > >> > > >> > > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > > >> use-livecode at lists.runrev.com>: > > >> > > >>> +1 > > >>> > > >>> 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 Bob Sneidar via use-livecode > > >>> Sent: Thursday, April 28, 2022 11:18 AM > > >>> To: How to use LiveCode > > >>> Cc: Bob Sneidar > > >>> Subject: Re: Curved text possible? > > >>> > > >>> Great ideas Martin. I'm going to grant you an honorary doctorate from > > the > > >>> institute of Sly Laboratories. > > >>> > > >>> Bob S > > >>> > > >>> > > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > > >>> wrote: > > >>>> > > >>>> I was thinking that SVG might work as someone else has said. > > >>>> > > >>>> At first I thought you could create individual files for each letter > > and > > >>> number and put the path for a letter into a svg widget which you > could > > >>> rotate or scale. > > >>>> you would then have to calculate the angle of rotation and location > of > > >>> each svg widget on a path. But then when I tried rotating the svg > > widget > > >>> its scale would change as it rotated because the bounds of the rect > > were > > >>> changing. Then you would have to calculate the scale depending on the > > >>> rotation angle and that seemed a bit much. > > >>>> > > >>>> I also thought you could import the svg file as an image and perhaps > > >>> that > > >>> would not have the odd behaviour when rotating. I did not try that > > >>> though. > > >>>> > > >>>> Then I found this. > > >>>> > > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > > >>> > > >>>> > > >>>> it shows how to use css to put text along a SVG path. At the > LiveCode > > >>> Dev > > >>> Con there were a few unconventional uses of the browser widget beyond > > >>> displaying webpages that add features that can add features that > > LiveCode > > >>> does not have natively. So I thought maybe this is one of them. So > > what > > >>> I > > >>> thought could be done is display the above in a browser widget or, > If > > you > > >>> did not want to show the browser widget, use the browser widget to > > render > > >>> the curved text, thentake a snapshot of the rendered text and then > show > > >>> that > > >>> in an image. > > >>>> > > >>>> Not sure if it will work but the sessions at the conference have > > really > > >>> got me thinking of new ways to leverage the technology in that > widget. > > >>>> > > >>>> Martin Koob > > >>> > > >>> > > >>> _______________________________________________ > > >>> use-livecode mailing list > > >>> use-livecode 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 18 11:24:15 2022 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 18 May 2022 17:24:15 +0200 Subject: Curved text possible? In-Reply-To: References: Message-ID: Hi Sean, Incredible to see what HH did. That is way over my head. And so is LCB. groeten, William Op wo 18 mei 2022 om 14:16 schreef Sean Cole via use-livecode < use-livecode at lists.runrev.com>: > Actually, HH had put up this on his site and kept open for us kindly. > https://hh.on-rev.com/widgets/svgtext.html > > At the bottom he describes that it is possible to use SVG to define paths > for the text. How good are you at LCB in being able to manipulate what he > had achieved here? > > Sean > > > On Wed, 18 May 2022 at 12:57, William de Smet via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > @Sean: Yes, a widget would be the best thing of course. > > Much appreciated! > > > > groeten, > > > > William > > > > > > > > > > Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < > > use-livecode at lists.runrev.com>: > > > > > There is a better way to do this using LCB. If you don’t mind waiting I > > > can pull something up. I’m out of office at the moment so can’t get to > my > > > files. > > > > > > Sean Cole > > > Pi Digital Productions Ltd > > > > > > eMail Ts & Cs > > > > > > > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > Hi there, > > > > > > > > I posted a curved text example (with use of the browser widget) on > the > > > > forum: > > > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > > > > > It works ok but still not satisfied with transparency. > > > > Maybe someone has a better idea on how to do that? > > > > > > > > > > > > > > > > groeten, > > > > > > > > William > > > > > > > > > > > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > > > williamdesmet at gmail.com > > > >> : > > > > > > > >> Thanks! > > > >> > > > >> I came up with sort of the same idea yesterday evening and I am > > > >> tetsting it now. > > > >> I load a local html file within the browser widget with > circletype.js > > > >> added to the html file. > > > >> > > > >> A native textfield (and some extra code) writes back into the html > > file > > > >> and then I refresh the card. > > > >> A snapshot gives me the curved text. > > > >> > > > >> There is also Arctext,js that I want to test. > > > >> > > > >> I will come back later with my result. > > > >> > > > >> groeten, > > > >> > > > >> William > > > >> > > > >> > > > >> > > > >> > > > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode < > > > >> use-livecode at lists.runrev.com>: > > > >> > > > >>> +1 > > > >>> > > > >>> 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 Bob Sneidar via use-livecode > > > >>> Sent: Thursday, April 28, 2022 11:18 AM > > > >>> To: How to use LiveCode > > > >>> Cc: Bob Sneidar > > > >>> Subject: Re: Curved text possible? > > > >>> > > > >>> Great ideas Martin. I'm going to grant you an honorary doctorate > from > > > the > > > >>> institute of Sly Laboratories. > > > >>> > > > >>> Bob S > > > >>> > > > >>> > > > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > > > >>> wrote: > > > >>>> > > > >>>> I was thinking that SVG might work as someone else has said. > > > >>>> > > > >>>> At first I thought you could create individual files for each > letter > > > and > > > >>> number and put the path for a letter into a svg widget which you > > could > > > >>> rotate or scale. > > > >>>> you would then have to calculate the angle of rotation and > location > > of > > > >>> each svg widget on a path. But then when I tried rotating the svg > > > widget > > > >>> its scale would change as it rotated because the bounds of the rect > > > were > > > >>> changing. Then you would have to calculate the scale depending on > the > > > >>> rotation angle and that seemed a bit much. > > > >>>> > > > >>>> I also thought you could import the svg file as an image and > perhaps > > > >>> that > > > >>> would not have the odd behaviour when rotating. I did not try that > > > >>> though. > > > >>>> > > > >>>> Then I found this. > > > >>>> > > > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > > > >>> > > > >>>> > > > >>>> it shows how to use css to put text along a SVG path. At the > > LiveCode > > > >>> Dev > > > >>> Con there were a few unconventional uses of the browser widget > beyond > > > >>> displaying webpages that add features that can add features that > > > LiveCode > > > >>> does not have natively. So I thought maybe this is one of them. > So > > > what > > > >>> I > > > >>> thought could be done is display the above in a browser widget or, > > If > > > you > > > >>> did not want to show the browser widget, use the browser widget to > > > render > > > >>> the curved text, thentake a snapshot of the rendered text and then > > show > > > >>> that > > > >>> in an image. > > > >>>> > > > >>>> Not sure if it will work but the sessions at the conference have > > > really > > > >>> got me thinking of new ways to leverage the technology in that > > widget. > > > >>>> > > > >>>> Martin Koob > > > >>> > > > >>> > > > >>> _______________________________________________ > > > >>> use-livecode mailing list > > > >>> use-livecode 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 > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 harrison at all-auctions.com Wed May 18 12:23:22 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:23:22 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: Message-ID: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> This works: set the HTMLText of field "HTMLTextField1" of this card to URL VarURL This doesn’t work: set the HTMLText of VarHTMLText to URL VarURL (The syntax is accepted fine, but it throws the following error at execution time.) Chunk: error in object expression This works: get the effective HTMLText of field "HTMLTextField1" of this card This doesn’t work: get the effective HTMLText of VarHTMLText2 (The syntax is accepted fine, but it throws the following error at execution time.) Chunk: error in object expression Why? Thanks for your insight in advance! Rick From tore.nilsen at me.com Wed May 18 12:28:32 2022 From: tore.nilsen at me.com (Tore Nilsen) Date: Wed, 18 May 2022 18:28:32 +0200 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: <004738FF-6E60-487D-930F-0888444C3E3E@me.com> I would think it is because the htmlText is a property of a field. It is one of the properties that it inherited by any field. The variable does not have this property. Best regards Tore Nilsen > 18. mai 2022 kl. 18:23 skrev Rick Harrison via use-livecode : > > This works: > > set the HTMLText of field "HTMLTextField1" of this card to URL VarURL > > > This doesn’t work: > > set the HTMLText of VarHTMLText to URL VarURL > > (The syntax is accepted fine, but it throws the following error at execution time.) > > Chunk: error in object expression > > > > This works: > > get the effective HTMLText of field "HTMLTextField1" of this card > > > This doesn’t work: > > get the effective HTMLText of VarHTMLText2 > > (The syntax is accepted fine, but it throws the following error at execution time.) > > Chunk: error in object expression > > > Why? > > Thanks for your insight in advance! > > Rick > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 18 12:29:27 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 18 May 2022 18:29:27 +0200 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: Hi Rick, > Am 18.05.2022 um 18:23 schrieb Rick Harrison via use-livecode : > > This works: > set the HTMLText of field "HTMLTextField1" of this card to URL VarURL > > This doesn’t work: > set the HTMLText of VarHTMLText to URL VarURL > (The syntax is accepted fine, but it throws the following error at execution time.) > Chunk: error in object expression > > This works: > get the effective HTMLText of field "HTMLTextField1" of this card > > This doesn’t work: > get the effective HTMLText of VarHTMLText2 > (The syntax is accepted fine, but it throws the following error at execution time.) > Chunk: error in object expression > > Why? > Thanks for your insight in advance! > > Rick HTMLTEXT is a property of FIELDS, variables do not have this! Presumed VarHTMLText is a variable. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed May 18 12:38:58 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 May 2022 16:38:58 +0000 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: <761B16A6-F934-4366-8676-5693009B0B6B@iotecdigital.com> If I may add something to this, the reason why the syntax did not throw an error at compile time is because the compiler does not know whether or not VarHTMLText is a variable that contains the value "field HTMLTextField1" or the name of any object to be precise. If it did then it would be valid syntax. I do this all the time for DataGrids, as I can have datagrids on different cards in different stacks with the same name, eg. "dgCustomers". So I script put the long id of group "dgCustomers" into tGridID Now I can script put the dgHilitedIndex of tGridID into tIndex Bob S > On May 18, 2022, at 09:23 , Rick Harrison via use-livecode wrote: > > This works: > > set the HTMLText of field "HTMLTextField1" of this card to URL VarURL > > > This doesn’t work: > > set the HTMLText of VarHTMLText to URL VarURL > > (The syntax is accepted fine, but it throws the following error at execution time.) > > Chunk: error in object expression From harrison at all-auctions.com Wed May 18 12:40:21 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:40:21 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <004738FF-6E60-487D-930F-0888444C3E3E@me.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <004738FF-6E60-487D-930F-0888444C3E3E@me.com> Message-ID: Thanks! It’s a bummer though, because variables are much faster. Rick > On May 18, 2022, at 12:28 PM, Tore Nilsen via use-livecode wrote: > > I would think it is because the htmlText is a property of a field. It is one of the properties that it inherited by any field. The variable does not have this property. > > Best regards > Tore Nilsen From harrison at all-auctions.com Wed May 18 12:43:24 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:43:24 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> Hi Klaus, Thanks for getting back to me on this. That explains the problem. I wish it worked with variables though because execution would be faster. Oh well, at least it will do for now until we have the LC 10 compiler which will make it all faster! Rick > On May 18, 2022, at 12:29 PM, Klaus major-k via use-livecode wrote: > > HTMLTEXT is a property of FIELDS, variables do not have this! > Presumed VarHTMLText is a variable. > > > Best > > Klaus From bobsneidar at iotecdigital.com Wed May 18 12:43:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 May 2022 16:43:30 +0000 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <004738FF-6E60-487D-930F-0888444C3E3E@me.com> Message-ID: Can't you just put URL VarURL into VarHTMLText ? Bob S > On May 18, 2022, at 09:40 , Rick Harrison via use-livecode wrote: > > Thanks! It’s a bummer though, > because variables are much faster. > > Rick > >> On May 18, 2022, at 12:28 PM, Tore Nilsen via use-livecode wrote: >> >> I would think it is because the htmlText is a property of a field. It is one of the properties that it inherited by any field. The variable does not have this property. >> >> Best regards >> Tore Nilsen > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 18 12:49:30 2022 From: mark at livecode.com (Mark Waddingham) Date: Wed, 18 May 2022 17:49:30 +0100 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> Message-ID: <8cefcd66b81a956ca5edeb5d2cb2c07a@livecode.com> On 2022-05-18 17:43, Rick Harrison via use-livecode wrote: > I wish it worked with variables though > because execution would be faster. If variables could manipulate styled text (aka htmlText) then they wouldn't be any faster than fields ;) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ambassador at fourthworld.com Wed May 18 12:53:35 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 18 May 2022 09:53:35 -0700 Subject: Movie text tracks In-Reply-To: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> References: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Message-ID: <747ad1eb-9942-e3c2-5d53-7d4eb0ae1e12@fourthworld.com> Good to see you here, Devin. If your app can handle the RAM hit of embedding a browser app instance with the Browser Widget, and if you can extract the text track info from QT's proprietary format, HTML supports text tracks nicely via the WebVTT standard: https://www.3playmedia.com/learn/how-to-guides/html5-video-captioning/ -- Richard Gaskin Fourth World Systems Devin Asay wrote: > Im resurrecting some QuickTime movies from years ago, and some of > them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track > with `put the tracks of player 1`. But there doesnt seem to be a > way anymore to show text tracks, either in the player object or in > QT Player. All of the hits I get on the topic in a DuckDuckGo search > are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from > video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin From harrison at all-auctions.com Wed May 18 12:58:59 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 12:58:59 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <004738FF-6E60-487D-930F-0888444C3E3E@me.com> Message-ID: <8AC8EC22-E34C-4EAB-9A10-FF8FF2994A58@all-auctions.com> Hi Bob, That might be what I need, but I’ll have to look at the resulting code to see if that will work. Thanks, Rick > On May 18, 2022, at 12:43 PM, Bob Sneidar via use-livecode wrote: > > put URL VarURL into VarHTMLText From paul at researchware.com Wed May 18 13:38:52 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 13:38:52 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: Instead of: set the HTMLText of VarHTMLText to URL VarURL Use: set the HTMLText of the templateField to URL VarURL And instead of: get the effective HTMLText of VarHTMLText2 Use: get the effective HTMLText of the templateField From harrison at all-auctions.com Wed May 18 13:46:48 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 18 May 2022 13:46:48 -0400 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> Message-ID: Hi Paul, Thanks for this. I’ll keep this in mind for the future. I found that Bob’s simple suggestion of: put URL VarURL into VarHTMLText to work the best for me. Thanks again! Rick > On May 18, 2022, at 1:38 PM, Paul Dupuis via use-livecode wrote: > > Instead of: > > set the HTMLText of VarHTMLText to URL VarURL > > Use: > > set the HTMLText of the templateField to URL VarURL > > And instead of: > > get the effective HTMLText of VarHTMLText2 > > Use: > > get the effective HTMLText of the templateField > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed May 18 14:58:05 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 May 2022 18:58:05 +0000 Subject: Set HTMLText and Get Effective HTMLText In-Reply-To: <8cefcd66b81a956ca5edeb5d2cb2c07a@livecode.com> References: <556C2156-1E3B-4079-BFBB-F67E160D22BD@all-auctions.com> <5CF6F998-BBD1-412B-8458-AB78686850AD@all-auctions.com> <8cefcd66b81a956ca5edeb5d2cb2c07a@livecode.com> Message-ID: Haha! I forget sometimes that everything is just some bit of memory. I keep thinking for example that if I store values I want in a script local that it will somehow be much faster than a custom property of an object, but of course that can only be true if the code for accessing custom properties was not very efficient. Bob S > On May 18, 2022, at 09:49 , Mark Waddingham via use-livecode wrote: > > On 2022-05-18 17:43, Rick Harrison via use-livecode wrote: >> I wish it worked with variables though >> because execution would be faster. > > If variables could manipulate styled text (aka htmlText) then they wouldn't be any faster than fields ;) > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps From matthias_livecode_150811 at m-r-d.de Wed May 18 15:54:39 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 18 May 2022 21:54:39 +0200 Subject: Where is the pdf external in LC 9.6 and 10? Message-ID: Hi all. I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? Am i am missing something? I do not remember that XPDF was discontinued. Was there any notification about it? Regards, Matthias From ambassador at fourthworld.com Tue May 17 17:00:57 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 17 May 2022 14:00:57 -0700 Subject: Movie text tracks In-Reply-To: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> Message-ID: Good to see you here, Devin. If your app can handle the RAM hit of embedding a browser app instance with the Browser Widget, and if you can extract the text track info from QT's proprietary format, HTML supports text tracks nicely via the WebVTT standard: https://www.3playmedia.com/learn/how-to-guides/html5-video-captioning/ -- Richard Gaskin Fourth World Systems Devin Asay wrote: > Im resurrecting some QuickTime movies from years ago, and some of them have text tracks. (Remember those?) > > In the LC player object you can still see that there is a text track with `put the tracks of player 1`. But there doesnt seem to be a way anymore to show text tracks, either in the player object or in QT Player. All of the hits I get on the topic in a DuckDuckGo search are 15 - 20 years old. > > Anybody know how to show, or at least recover, old text tracks from video files? > > (Man I hate it when the technology gets *less* capable!) > > - Devin From devin_asay at byu.edu Wed May 18 16:36:58 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 18 May 2022 20:36:58 +0000 Subject: Movie text tracks In-Reply-To: <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Message-ID: Hi all, Thanks for the advice. I wanted to follow up with what I eventually ended up doing. So, both Jacque’s and Richmond’s suggestions were good, but too much work for just peeking at some text tracks. But they got me thinking: Hey, Windows 10 actually still runs QT 7, and I have an old QT Pro license key for Windows. I wonder if it still works. (Spoiler alert—it does!) So I was at least able to open up the movie files. Score 1 for Microsoft and backward compatibility! And there, magically, were my text tracks! Paul, I think your suggestion to encourage LiveCode to support text track access that exists in the modern AV frameworks is a great one. Maybe timely, now that the mothership has asked for top 10 bug fix requests again. Richard, thanks for pointing me in the direction of HTML 5. It set me on a little journey to educate myself on the state of video captioning in *this* century! Definitely glad I took that little detour and learned about WebVTT captioning format. Thanks again for the help and suggestions. This community never disappoints! - Devin On May 17, 2022, at 2:16 PM, J. Landman Gay via use-livecode > wrote: Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html -- 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 Devin Asay Office of Digital Humanities Brigham Young University From paul at researchware.com Wed May 18 16:44:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 16:44:31 -0400 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. You can copy it from the 9.6.5 of earlier to the ccorresponding folder for LC 9.6.7. For example, on Windows it is C:\Program Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45 Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7 -- Paul On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote: > Hi all. > > I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? > > Am i am missing something? > > I do not remember that XPDF was discontinued. Was there any notification about it? > > 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 devin_asay at byu.edu Wed May 18 16:49:39 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 18 May 2022 20:49:39 +0000 Subject: Movie text tracks In-Reply-To: References: <48984827-A402-4EA9-9831-19B543B14A41@byu.edu> <27ed10c2-8cb3-a7ff-18b5-7487cde83b2c@gmail.com> <9bdf829a-907c-a614-7937-eb4a3590e174@hyperactivesw.com> Message-ID: <697397D1-D0F5-41F5-9200-3BFE4E2F821A@byu.edu> Sorry, I left out the punch line. My original need was simply to extract the text tracks from the old .mov files. It turns out you can do that, after a fashion, with QT Pro, but it comes out with lots of binary cruft. I found out you can also do this with ffmpeg, the Swiss Army Knife of video tools. This website explains how: https://forum.videohelp.com/threads/403944-Extract-and-convert-QuickTime-7-Pro-TextTracks Neither method was perfect, but both were good enough for what I wanted. - Devin On May 18, 2022, at 2:36 PM, Devin Asay via use-livecode > wrote: Hi all, Thanks for the advice. I wanted to follow up with what I eventually ended up doing. So, both Jacque’s and Richmond’s suggestions were good, but too much work for just peeking at some text tracks. But they got me thinking: Hey, Windows 10 actually still runs QT 7, and I have an old QT Pro license key for Windows. I wonder if it still works. (Spoiler alert—it does!) So I was at least able to open up the movie files. Score 1 for Microsoft and backward compatibility! And there, magically, were my text tracks! Paul, I think your suggestion to encourage LiveCode to support text track access that exists in the modern AV frameworks is a great one. Maybe timely, now that the mothership has asked for top 10 bug fix requests again. Richard, thanks for pointing me in the direction of HTML 5. It set me on a little journey to educate myself on the state of video captioning in *this* century! Definitely glad I took that little detour and learned about WebVTT captioning format. Thanks again for the help and suggestions. This community never disappoints! - Devin On May 17, 2022, at 2:16 PM, J. Landman Gay via use-livecode > wrote: Or you could use an OS 9 emulator like SheepShaver where the old version of QT is available. On 5/17/22 1:02 PM, Richmond via use-livecode wrote: Here's a thought: Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this: https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html -- 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 Devin Asay Office of Digital Humanities Brigham Young University _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Office of Digital Humanities Brigham Young University From paul at researchware.com Wed May 18 16:50:11 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 16:50:11 -0400 Subject: IDE Property Editor for Custom Properties error Message-ID: This bug probably won't impact many people, but I just reported bug https://quality.livecode.com/show_bug.cgi?id=23712 In older versions of LC you could have custom property keys that had commas in them, such as a key like "topic,subtopic" for a online help system. The current (and recent) property inspect tries to convert custom property keys with a comma into arrays! Just thought I would raise this on the list for anyone else who might be impacted. From klaus at major-k.de Wed May 18 16:55:20 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 18 May 2022 22:55:20 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: Hi Paul, > Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : > > It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? > You can copy it from the 9.6.5 of earlier to the ccorresponding folder for LC 9.6.7. For example, on Windows it is C:\Program Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45 > Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7 > > -- Paul > > On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote: >> Hi all. >> >> I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? >> >> Am i am missing something? >> >> I do not remember that XPDF was discontinued. Was there any notification about it? >> >> Regards, >> Matthias -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From matthias_livecode_150811 at m-r-d.de Wed May 18 16:59:24 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 18 May 2022 22:59:24 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: Ah thanks, Paul. I copied already the xpdf from an older LC version to LC 10DP3. But good to know that it will be back. XPDF allows me to get the imagedata of the currently rendered page and 'export' that as image. Matthias > Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : > > It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. > > You can copy it from the 9.6.5 of earlier to the ccorresponding folder for LC 9.6.7. For example, on Windows it is C:\Program Files\RunRev\LiveCode 9.6.5\Ext\XPDF-1.0.45 > > Copy the XPDF-1.0.45 folder to the \Ext\ directory for LC 9.6.7 > > > -- Paul > > On 5/18/2022 3:54 PM, Matthias Rebbe via use-livecode wrote: >> Hi all. >> >> I just wanted to update an older stack in LC10 that uses the xpdf external, but it seems that XPDF is not available anymore in LC. Further testing shows that at least also LC 9.6 and up does not have XPDF included anymore? >> >> Am i am missing something? >> >> I do not remember that XPDF was discontinued. Was there any notification about it? >> >> 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 Wed May 18 17:19:33 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 May 2022 17:19:33 -0400 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: Message-ID: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: > Hi Paul, > >> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : >> >> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. > I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? > > I can't see how Livecode can replace the XPDF external with the PDF Widget UNTIL the PDF Widget provided all the functions the External does (and it does not). Well, of course they could drop the external even if it does a bunch of thinsg people depend on that the Widget does not, but it would just be bad of them to do so! From klaus at major-k.de Thu May 19 03:45:10 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 May 2022 09:45:10 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> References: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> Message-ID: Hi Paul, > Am 18.05.2022 um 23:19 schrieb Paul Dupuis via use-livecode : > > On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: >> Hi Paul, >> >>> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : >>> >>> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. >> I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? > > I can't see how Livecode can replace the XPDF external with the PDF Widget UNTIL the PDF Widget provided all the functions the External does (and it does not). Well, of course they could drop the external even if it does a bunch of thinsg people depend on that the Widget does not, but it would just be bad of them to do so! OK, my fault, obviously I don't know exactly what the external is and can do. 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 Thu May 19 03:56:18 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 May 2022 09:56:18 +0200 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: References: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> Message-ID: <07CCFFED-5445-4EFE-A593-C5E1433377DB@major-k.de> Hi Paul, > Am 19.05.2022 um 09:45 schrieb Klaus major-k via use-livecode : > Hi Paul, >> Am 18.05.2022 um 23:19 schrieb Paul Dupuis via use-livecode : >> On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: >>> Hi Paul, >>>> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode : >>>> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable and further releases in the 9.6.x series. >>> I thought this has been replaced with the PDF widget, which is only available in the "Pro Pack" addon? >> I can't see how Livecode can replace the XPDF external with the PDF Widget UNTIL the PDF Widget provided all the functions the External does (and it does not). Well, of course they could drop the external even if it does a bunch of thinsg people depend on that the Widget does not, but it would just be bad of them to do so! > OK, my fault, obviously I don't know exactly what the external is and can do. this (scroll to bottom) is what the PDF widget functionality provides: Is it different from the XPDF external? 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 Thu May 19 12:03:51 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 19 May 2022 19:03:51 +0300 Subject: Where is the pdf external in LC 9.6 and 10? In-Reply-To: <07CCFFED-5445-4EFE-A593-C5E1433377DB@major-k.de> References: <2b47ff7c-251d-64f7-1b3c-9f2fe09f6c08@researchware.com> <07CCFFED-5445-4EFE-A593-C5E1433377DB@major-k.de> Message-ID: Hello all, We will bring back XPDF, since it has some functionality that the PDF widget does not have, at least as of now :) https://quality.livecode.com/show_bug.cgi?id=23578 Kind regards, Panos -- On Thu, 19 May 2022 at 10:56, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Paul, > > > Am 19.05.2022 um 09:45 schrieb Klaus major-k via use-livecode < > use-livecode at lists.runrev.com>: > > Hi Paul, > >> Am 18.05.2022 um 23:19 schrieb Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com>: > >> On 5/18/2022 4:55 PM, Klaus major-k via use-livecode wrote: > >>> Hi Paul, > >>>> Am 18.05.2022 um 22:44 schrieb Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com>: > >>>> It got removed from LC 9.6.6 and 9.6.7 and 10.0.0 dp 1 to 3. They > (Livecode Support) said it would be back in LC 10.0.0 dp 4 and presumable > and further releases in the 9.6.x series. > >>> I thought this has been replaced with the PDF widget, which is only > available in the "Pro Pack" addon? > >> I can't see how Livecode can replace the XPDF external with the PDF > Widget UNTIL the PDF Widget provided all the functions the External does > (and it does not). Well, of course they could drop the external even if it > does a bunch of thinsg people depend on that the Widget does not, but it > would just be bad of them to do so! > > OK, my fault, obviously I don't know exactly what the external is and > can do. > > this (scroll to bottom) is what the PDF widget functionality provides: > > Is it different from the XPDF external? > > > 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 richmondmathewson at gmail.com Fri May 20 03:20:11 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 20 May 2022 10:20:11 +0300 Subject: Curved text possible? In-Reply-To: References: Message-ID: If that is over your head, use my method, which you can find over on the forums. All 'pure' LiveCode. Best, Richmond. On Wed, 18 May 2022, 18:26 William de Smet via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi Sean, > > Incredible to see what HH did. > That is way over my head. > And so is LCB. > > > > > groeten, > > William > > > > > Op wo 18 mei 2022 om 14:16 schreef Sean Cole via use-livecode < > use-livecode at lists.runrev.com>: > > > Actually, HH had put up this on his site and kept open for us kindly. > > https://hh.on-rev.com/widgets/svgtext.html > > > > At the bottom he describes that it is possible to use SVG to define paths > > for the text. How good are you at LCB in being able to manipulate what he > > had achieved here? > > > > Sean > > > > > > On Wed, 18 May 2022 at 12:57, William de Smet via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > @Sean: Yes, a widget would be the best thing of course. > > > Much appreciated! > > > > > > groeten, > > > > > > William > > > > > > > > > > > > > > > Op wo 18 mei 2022 om 11:41 schreef Pi Digital via use-livecode < > > > use-livecode at lists.runrev.com>: > > > > > > > There is a better way to do this using LCB. If you don’t mind > waiting I > > > > can pull something up. I’m out of office at the moment so can’t get > to > > my > > > > files. > > > > > > > > Sean Cole > > > > Pi Digital Productions Ltd > > > > > > > > eMail Ts & Cs > > > > > > > > > > > > > On 18 May 2022, at 09:40, William de Smet via use-livecode < > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > > Hi there, > > > > > > > > > > I posted a curved text example (with use of the browser widget) on > > the > > > > > forum: > > > > > https://forums.livecode.com/viewtopic.php?f=120&t=37027 > > > > > > > > > > It works ok but still not satisfied with transparency. > > > > > Maybe someone has a better idea on how to do that? > > > > > > > > > > > > > > > > > > > > groeten, > > > > > > > > > > William > > > > > > > > > > > > > > > > > > > > > > > > > Op do 28 apr. 2022 om 17:42 schreef William de Smet < > > > > williamdesmet at gmail.com > > > > >> : > > > > > > > > > >> Thanks! > > > > >> > > > > >> I came up with sort of the same idea yesterday evening and I am > > > > >> tetsting it now. > > > > >> I load a local html file within the browser widget with > > circletype.js > > > > >> added to the html file. > > > > >> > > > > >> A native textfield (and some extra code) writes back into the html > > > file > > > > >> and then I refresh the card. > > > > >> A snapshot gives me the curved text. > > > > >> > > > > >> There is also Arctext,js that I want to test. > > > > >> > > > > >> I will come back later with my result. > > > > >> > > > > >> groeten, > > > > >> > > > > >> William > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> Op do 28 apr. 2022 om 17:24 schreef Ralph DiMola via use-livecode > < > > > > >> use-livecode at lists.runrev.com>: > > > > >> > > > > >>> +1 > > > > >>> > > > > >>> 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 Bob Sneidar via use-livecode > > > > >>> Sent: Thursday, April 28, 2022 11:18 AM > > > > >>> To: How to use LiveCode > > > > >>> Cc: Bob Sneidar > > > > >>> Subject: Re: Curved text possible? > > > > >>> > > > > >>> Great ideas Martin. I'm going to grant you an honorary doctorate > > from > > > > the > > > > >>> institute of Sly Laboratories. > > > > >>> > > > > >>> Bob S > > > > >>> > > > > >>> > > > > >>>> On Apr 28, 2022, at 08:10 , Martin Koob via use-livecode > > > > >>> wrote: > > > > >>>> > > > > >>>> I was thinking that SVG might work as someone else has said. > > > > >>>> > > > > >>>> At first I thought you could create individual files for each > > letter > > > > and > > > > >>> number and put the path for a letter into a svg widget which you > > > could > > > > >>> rotate or scale. > > > > >>>> you would then have to calculate the angle of rotation and > > location > > > of > > > > >>> each svg widget on a path. But then when I tried rotating the > svg > > > > widget > > > > >>> its scale would change as it rotated because the bounds of the > rect > > > > were > > > > >>> changing. Then you would have to calculate the scale depending on > > the > > > > >>> rotation angle and that seemed a bit much. > > > > >>>> > > > > >>>> I also thought you could import the svg file as an image and > > perhaps > > > > >>> that > > > > >>> would not have the odd behaviour when rotating. I did not try > that > > > > >>> though. > > > > >>>> > > > > >>>> Then I found this. > > > > >>>> > > > > >>>> https://css-tricks.com/snippets/svg/curved-text-along-path/ > > > > >>> > > > > >>>> > > > > >>>> it shows how to use css to put text along a SVG path. At the > > > LiveCode > > > > >>> Dev > > > > >>> Con there were a few unconventional uses of the browser widget > > beyond > > > > >>> displaying webpages that add features that can add features that > > > > LiveCode > > > > >>> does not have natively. So I thought maybe this is one of them. > > So > > > > what > > > > >>> I > > > > >>> thought could be done is display the above in a browser widget > or, > > > If > > > > you > > > > >>> did not want to show the browser widget, use the browser widget > to > > > > render > > > > >>> the curved text, thentake a snapshot of the rendered text and > then > > > show > > > > >>> that > > > > >>> in an image. > > > > >>>> > > > > >>>> Not sure if it will work but the sessions at the conference have > > > > really > > > > >>> got me thinking of new ways to leverage the technology in that > > > widget. > > > > >>>> > > > > >>>> Martin Koob > > > > >>> > > > > >>> > > > > >>> _______________________________________________ > > > > >>> use-livecode mailing list > > > > >>> use-livecode 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 > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode 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 jbv at souslelogo.com Fri May 20 06:34:12 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 20 May 2022 06:34:12 -0400 Subject: Maximum length of mySQL request ? Message-ID: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Hi list, Is there a maximum length limit for mySQL requests ? I don't mean the results returned by mySQL, but the request itself. For instance, I have a table with 180000 entries and counting, and I will need to send requests such as : SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id = 34895... and at times the request might concern 100 ids or even more. I am not too concerned about execution speed, as id is a unique key, but rather for the request itself : I wonder if it might be truncated if too long... Or perhaps a better and safer practice would be to break it into a serie of shorter successive requests when it exceeds a certain threshold ? Thank you in advance. jbv From heather at livecode.com Fri May 20 07:34:57 2022 From: heather at livecode.com (Heather Laine) Date: Fri, 20 May 2022 12:34:57 +0100 Subject: Potential third party products Message-ID: <6B717F96-1CB4-4667-A802-58A3565C3A3C@livecode.com> Dear List Members, We're conducting a general review of our vendor program and I was wondering if there are any lurking potential vendors on this list? Anyone with an addon for LiveCode they'd like to sell via our Extensions store? Or is there something you know of or find particularly useful, made by someone else, that you think would be a good candidate for a wider audience? Probably best to reply to support at livecode.com rather than cluttering up the list. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From paul at researchware.com Fri May 20 08:00:37 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 20 May 2022 08:00:37 -0400 Subject: Maximum length of mySQL request ? In-Reply-To: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: <3027d818-4a0b-c422-06f5-7db31b5adccf@researchware.com> You can save some characters by the following: SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) which is the same as using multiple OR equals in your example. If you need to break this up further, you can UNION the results of multiple queries, such as: SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) -- i.e. the first 100 or 1000 ids UNION SELECT ... FROM myTable WHERE id IN (100,512,9999,16545,...) -- the next 100 or 1000 ids UNION ... repeat as needed On 5/20/2022 6:34 AM, jbv via use-livecode wrote: > Hi list, > > Is there a maximum length limit for mySQL requests ? > I don't mean the results returned by mySQL, but the request itself. > > For instance, I have a table with 180000 entries and counting, and > I will need to send requests such as : > SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id > = 34895... > and at times the request might concern 100 ids or even more. > > I am not too concerned about execution speed, as id is a unique key, > but rather for the request itself : I wonder if it might be truncated > if too long... > Or perhaps a better and safer practice would be to break it into a > serie of > shorter successive requests when it exceeds a certain threshold ? > > 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 bobsneidar at iotecdigital.com Fri May 20 11:24:40 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 May 2022 15:24:40 +0000 Subject: Maximum length of mySQL request ? In-Reply-To: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: I googled around a bit and there doesn't seem to be a limit on statement length. I will say though that the nature of the query indicates a possible design issue with the database. I suspect however that you are at the mercy of someone else's schema. That there is no common denominator you can query on is to me remarkable. How are you obtaining your IDs then? Bob S > On May 20, 2022, at 03:34 , jbv via use-livecode wrote: > > Hi list, > > Is there a maximum length limit for mySQL requests ? > I don't mean the results returned by mySQL, but the request itself. > > For instance, I have a table with 180000 entries and counting, and > I will need to send requests such as : > SELECT FROM myTable WHERE id = 5523 OR id = 7831 OR id = 162814 OR id = 34895... > and at times the request might concern 100 ids or even more. > > I am not too concerned about execution speed, as id is a unique key, > but rather for the request itself : I wonder if it might be truncated > if too long... > Or perhaps a better and safer practice would be to break it into a serie of > shorter successive requests when it exceeds a certain threshold ? > > 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 jbv at souslelogo.com Fri May 20 11:48:44 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 20 May 2022 11:48:44 -0400 Subject: Maximum length of mySQL request ? In-Reply-To: <3027d818-4a0b-c422-06f5-7db31b5adccf@researchware.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> <3027d818-4a0b-c422-06f5-7db31b5adccf@researchware.com> Message-ID: <8fe6f8ac697464a18709a781ab748448@souslelogo.com> Le 2022-05-20 08:00, Paul Dupuis via use-livecode a crit : > You can save some characters by the following: > > SELECT ... FROM myTable WHERE id IN (5523,7831,162814,34895,...) > > which is the same as using multiple OR equals in your example. > Thank you. Yes I will try that. And I have no idea why it didn't cross my mind... Perhaps because it's friday... :) jbv From jbv at souslelogo.com Fri May 20 11:56:21 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 20 May 2022 11:56:21 -0400 Subject: Maximum length of mySQL request ? In-Reply-To: References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: Le 2022-05-20 11:24, Bob Sneidar via use-livecode a crit : > I googled around a bit and there doesn't seem to be a limit on > statement length. I will say though that the nature of the query > indicates a possible design issue with the database. I suspect however > that you are at the mercy of someone else's schema. That there is no > common denominator you can query on is to me remarkable. How are you > obtaining your IDs then? > Thank you for your reply. I also did some google search before asking the question, but didn't find anything, only about the size of the data returned by mySQL. What makes you think of a possible design issue ? The ids are auto-incremented every time a new entry is added to the table, and the ids in the request are obtained by intersecting various multi-dimensional arrays that make very complex searches very fast (less than 1 sec, when it takes 5 to 10 sec with regular SQL queries). From jacque at hyperactivesw.com Fri May 20 12:32:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 11:32:04 -0500 Subject: HTML font size in percentages Message-ID: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri May 20 12:38:09 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 May 2022 16:38:09 +0000 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <33CFF2DA-4DA1-44BE-ABE1-86D77364DB53@iotecdigital.com> I know that typically cmd +/- (or ctrl for Win) will increase or decrease the zoom of a web page. You can try that, or else use a browser widget. (I wonder if that trick would work in a widget?? It should...) Bob S > On May 20, 2022, at 09:32 , J. Landman Gay via use-livecode wrote: > > I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. > > -- > 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 bobsneidar at iotecdigital.com Fri May 20 12:42:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 May 2022 16:42:51 +0000 Subject: Maximum length of mySQL request ? In-Reply-To: References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: OIC you are searching arrays to obtain your IDs. That would make sense because arrays are memory based. SQL is file based as in sqLite, or else accessed (typically) over a network which would account for the speed disparity. Of course, to be fail, you will have to add the time to search the arrays, THEN the time to query your SQL database with the IDs to make that comparison equal. Bob S > On May 20, 2022, at 08:56 , jbv via use-livecode wrote: > > Le 2022-05-20 11:24, Bob Sneidar via use-livecode a écrit : >> I googled around a bit and there doesn't seem to be a limit on >> statement length. I will say though that the nature of the query >> indicates a possible design issue with the database. I suspect however >> that you are at the mercy of someone else's schema. That there is no >> common denominator you can query on is to me remarkable. How are you >> obtaining your IDs then? > > Thank you for your reply. > I also did some google search before asking the question, but didn't > find anything, only about the size of the data returned by mySQL. > > What makes you think of a possible design issue ? > The ids are auto-incremented every time a new entry is added to the > table, and the ids in the request are obtained by intersecting various > multi-dimensional arrays that make very complex searches very fast > (less than 1 sec, when it takes 5 to 10 sec with regular SQL queries). > > _______________________________________________ > use-livecode mailing list > use-livecode 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 devin_asay at byu.edu Fri May 20 12:45:13 2022 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 20 May 2022 16:45:13 +0000 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <5AA3874B-B85D-4D87-A3A1-2FA7E7A2C903@byu.edu> Jacque, It sounds like the HTML tags are setting the size for runs of text in the field, so you can’t just set the textSize of the field? Are there varying sizes of text runs in the field? Could you set the textSize of the char 1 to -1 of the field to empty, then set it for the whole field? In one project I’ve implemented a feature similar to what Bob was talking about where I increment the textSize of the field by 1 point using Cmd/Cntl + or -. - Devin On May 20, 2022, at 10:32 AM, J. Landman Gay via use-livecode > wrote: I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. -- 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 Devin Asay Office of Digital Humanities Brigham Young University From keith.clarke at me.com Fri May 20 12:50:55 2022 From: keith.clarke at me.com (Keith Clarke) Date: Fri, 20 May 2022 17:50:55 +0100 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hi Jaque, A lot will depend: 1) Whether the changes in font size within the nested HTML tags have been set locally or ‘more properly' as relative to the root font size of the page in ‘rem’, where 1 rem = 100% of the root font-size). 2) you want a global font-size adjustment or more granular. If you can set CSS in the page (via the browser widget of by inserting text into the HTML), you could try experimenting with setting the body or other outermost element font-size to 5rem to see if that affected sizing throughout? For example, if the page it has a body tag, you could insert the following style block into the HTML header tag. Best, Keith > On 20 May 2022, at 17:32, J. Landman Gay via use-livecode wrote: > > I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size repeatedly. We want to allow the user to adjust the size of the text. The easiest way would be to use percentages for the font sizes so that changing the field's textsize would change the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. > > -- > 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 jacque at hyperactivesw.com Fri May 20 13:05:45 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 12:05:45 -0500 Subject: HTML font size in percentages In-Reply-To: <33CFF2DA-4DA1-44BE-ABE1-86D77364DB53@iotecdigital.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <33CFF2DA-4DA1-44BE-ABE1-86D77364DB53@iotecdigital.com> Message-ID: <180e26eaa28.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The text has to be in a field for lots of reasons. Browsers and widgets are too limited. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 20, 2022 11:40:12 AM Bob Sneidar via use-livecode wrote: > I know that typically cmd +/- (or ctrl for Win) will increase or decrease > the zoom of a web page. You can try that, or else use a browser widget. (I > wonder if that trick would work in a widget?? It should...) > > Bob S > > >> On May 20, 2022, at 09:32 , J. Landman Gay via use-livecode >> wrote: >> >> I have a field whose HTMLtext is set to a heavily tagged HTML file that >> changes the font size repeatedly. We want to allow the user to adjust the >> size of the text. The easiest way would be to use percentages for the font >> sizes so that changing the field's textsize would change the markup >> proportionally, but LC fields don't seem to support that. Is there a trick >> or do I need to do a series of replacements? I'm afraid that will be too >> slow, there's a lot of text. >> >> -- >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri May 20 15:08:51 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 20 May 2022 15:08:51 -0400 Subject: HTML font size in percentages In-Reply-To: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: You have to do replacement of the size value in the field's htmlText (or perhaps styledText) I have code that does this. I can provide it to you if you like. I don't claim it is the bets or most effiecent. Unfortunately, I am gone for the rest of today, s tomorrow is the earliest I could send code to you. On 5/20/2022 12:32 PM, J. Landman Gay via use-livecode wrote: > I have a field whose HTMLtext is set to a heavily tagged HTML file > that changes the font size repeatedly. We want to allow the user to > adjust the size of the text. The easiest way would be to use > percentages for the font sizes so that changing the field's textsize > would change the markup proportionally, but LC fields don't seem to > support that. Is there a trick or do I need to do a series of > replacements? I'm afraid that will be too slow, there's a lot of text. > > -- > 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 jacque at hyperactivesw.com Fri May 20 15:13:22 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 14:13:22 -0500 Subject: HTML font size in percentages In-Reply-To: <5AA3874B-B85D-4D87-A3A1-2FA7E7A2C903@byu.edu> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5AA3874B-B85D-4D87-A3A1-2FA7E7A2C903@byu.edu> Message-ID: <28ea4792-d49b-2e87-7075-e9d410329fc9@hyperactivesw.com> On 5/20/22 11:45 AM, Devin Asay via use-livecode wrote: > It sounds like the HTML tags are setting the size for runs of text in the field, so you can’t just set the textSize of the field? I did try setting the text size of the field, and all untagged chunks reflect the new size as expected (default field text is 20 points.) But there are exceptions embedded in the text that require superscripts and/or other sizes for chapter headings and other things. It looks like this:

TEXT HERE TEXT HERETEXT HERETEXT HERETEXT HERE, ETC ETC The text is too long for a single field so I'm using Trevor's dataView (thank you so much Trevor!) The text sizes and superscripts are footnotes, references, and other supplementary info. They are scattered liberally around in the text. Untagged text responds well to the field text size, which I can easily change in the dataView template. But the superscripts text size and offset, and other changes do not because they are specifically indicated with integers. If I could use percentages, then changing the field text size would proportionally change everything else. But percentages don't work in my tests. I wish we could use CSS in LC fields, but it isn't supported. I can't use any type of browser because we need features that a browser doesn't support. > > Are there varying sizes of text runs in the field? Could you set the textSize of the char 1 to -1 of the field to empty, then set it for the whole field? In one project I’ve implemented a feature similar to what Bob was talking about where I increment the textSize of the field by 1 point using Cmd/Cntl + or -. This is a mobile app, so no keyboard is available. It's been in the app stores for about a year but our main complaint from users is that the text is too small on a phone. We'd like to fix that. The choice of font size would be a setting in user prefs and the text would accomodate that whenever the app runs. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri May 20 16:30:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 May 2022 15:30:04 -0500 Subject: HTML font size in percentages In-Reply-To: References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Thanks for verifying it Paul, that's what I was thinking too. I'm looking at replacing the sizes via the style runs, I have a handler Mark Waddingham gave me/us on the list last year that I think I can modify. But I'd be grateful to see yours too. No big hurry, I just need to get an idea of how to estimate my time at this point. Thank you very much. On 5/20/22 2:08 PM, Paul Dupuis via use-livecode wrote: > You have to do replacement of the size value in the field's htmlText (or perhaps styledText) > > I have code that does this. I can provide it to you if you like. I don't claim it is the bets > or most effiecent. Unfortunately, I am gone for the rest of today, s tomorrow is the earliest I > could send code to you. > > > > On 5/20/2022 12:32 PM, J. Landman Gay via use-livecode wrote: >> I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size >> repeatedly. We want to allow the user to adjust the size of the text. The easiest way would >> be to use percentages for the font sizes so that changing the field's textsize would change >> the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I >> need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon May 23 14:22:23 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 23 May 2022 18:22:23 +0000 Subject: Is it a bug? Message-ID: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> I found one thing I think is a bug, and I'd like to report it, but I want to see if anyone else thinks this may be the expected behavior: It seems to me that when clicking and holding the mouse button down on an pulldown menu, then releasing outside that menu so that no menu item is actually selected, the parameter passed to menuPick ought to be empty, if menuPick even should get sent in the first place. What it actually does is it passes the first menu item, even though that item was not specifically chosen. If you click AND release while still IN the pulldown menu so that the menu remains expanded, THEN click off the menu, MenuPick never even gets sent to the pulldown menu, which is what one would expect. This is on MacOS 10.15.7 Catalina running 9.6.7 Pro. What say you? Bob S From richmondmathewson at gmail.com Mon May 23 14:34:01 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 23 May 2022 21:34:01 +0300 Subject: Is it a bug? In-Reply-To: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> References: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> Message-ID: Seem sensible, after all end-users should be able ti change their minds. On Mon, 23 May 2022, 21:23 Bob Sneidar via use-livecode, < use-livecode at lists.runrev.com> wrote: > I found one thing I think is a bug, and I'd like to report it, but I want > to see if anyone else thinks this may be the expected behavior: > > It seems to me that when clicking and holding the mouse button down on an > pulldown menu, then releasing outside that menu so that no menu item is > actually selected, the parameter passed to menuPick ought to be empty, if > menuPick even should get sent in the first place. What it actually does is > it passes the first menu item, even though that item was not specifically > chosen. > > If you click AND release while still IN the pulldown menu so that the menu > remains expanded, THEN click off the menu, MenuPick never even gets sent to > the pulldown menu, which is what one would expect. > > This is on MacOS 10.15.7 Catalina running 9.6.7 Pro. > > What say you? > > 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 > From Bernd.Niggemann at uni-wh.de Mon May 23 15:26:55 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Mon, 23 May 2022 19:26:55 +0000 Subject: Is it a bug? Message-ID: <80E408DA-1427-46D1-9F22-72A47A4F965A@uni-wh.de> sounds a lot like https://quality.livecode.com/show_bug.cgi?id=23693 Kind regards Bernd From rdimola at evergreeninfo.net Mon May 23 17:03:08 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 23 May 2022 17:03:08 -0400 Subject: Is it a bug? In-Reply-To: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> References: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> Message-ID: <004f01d86ee8$84a87450$8df95cf0$@net> I also expect nothing is done if I click on anything and move the mouse outside the active window THEN release(unless a drag and drop is involved). I use this all this time with the classic "S*&# I didn't mean to click on that". If move out of the window before releasing nothing happens. This behavior applies to all apps I have used including the LC IDE. I see this behavior both Windows and Mac. What are they doing in the LC IDE to create the expected behavior? 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 Bob Sneidar via use-livecode Sent: Monday, May 23, 2022 2:22 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Is it a bug? I found one thing I think is a bug, and I'd like to report it, but I want to see if anyone else thinks this may be the expected behavior: It seems to me that when clicking and holding the mouse button down on an pulldown menu, then releasing outside that menu so that no menu item is actually selected, the parameter passed to menuPick ought to be empty, if menuPick even should get sent in the first place. What it actually does is it passes the first menu item, even though that item was not specifically chosen. If you click AND release while still IN the pulldown menu so that the menu remains expanded, THEN click off the menu, MenuPick never even gets sent to the pulldown menu, which is what one would expect. This is on MacOS 10.15.7 Catalina running 9.6.7 Pro. What say you? 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 From klaus at major-k.de Tue May 24 06:36:29 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 May 2022 12:36:29 +0200 Subject: Xcode Message-ID: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Hi all, Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only support Xcode 13.2. Did I miss something? 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 Tue May 24 06:51:31 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 24 May 2022 13:51:31 +0300 Subject: Xcode In-Reply-To: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Message-ID: Hello Klaus, You do not have to use the latest version of Xcode if your goal is to be able to deploy to the latest version of iOS. This is the reason we have not moved (yet) to a newer Xcode version - you can still use Xcode 13.2 to build apps that will run not only on devices running the current most recent iOS version but also on future iOS versions. Hope this helps. Kind regards, Panos -- On Tue, 24 May 2022 at 13:37, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only support > Xcode 13.2. > Did I miss something? > > > 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 May 24 06:55:51 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 May 2022 12:55:51 +0200 Subject: Xcode In-Reply-To: References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Message-ID: <9E9122C5-D0F5-4898-B967-A9FDF178A8BA@major-k.de> Hi Panos, > Am 24.05.2022 um 12:51 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > You do not have to use the latest version of Xcode if your goal is to be > able to deploy to the latest version of iOS. > > This is the reason we have not moved (yet) to a newer Xcode version - you > can still use Xcode 13.2 to build apps that will run not only on devices > running the current most recent iOS version but also on future iOS versions. > > Hope this helps. Ah, I see, thank you! > Kind regards, > Panos 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 May 24 07:00:36 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 24 May 2022 12:00:36 +0100 Subject: Formatting code in word Message-ID: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Hello list, Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. Thanks! Mark From jmac at consensustech.com Tue May 24 10:53:08 2022 From: jmac at consensustech.com (Jim MacConnell) Date: Tue, 24 May 2022 07:53:08 -0700 Subject: Xcode In-Reply-To: References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> Message-ID: <93731F94-7672-4063-92EC-F10BC167695F@consensustech.com> Panos, I’m so glad I saw this. Just for my clarity…. Are you saying we no longer need to do the “Hold off on Xcode updates until Livecode can catch up?” thing. I have folders full of older Xcode versions and go through a little dance each time I upgrade. It would be wonderful to not have to worry about that anymore and to just have one version I point Livecode t feeling completely free to upgrade my main version of Xcode without worrying that I might break something. Yours, Jim > On May 24, 2022, at 3:51 AM, panagiotis m via use-livecode wrote: > > Hello Klaus, > > You do not have to use the latest version of Xcode if your goal is to be > able to deploy to the latest version of iOS. > > This is the reason we have not moved (yet) to a newer Xcode version - you > can still use Xcode 13.2 to build apps that will run not only on devices > running the current most recent iOS version but also on future iOS versions. > > Hope this helps. > > Kind regards, > Panos > -- > > On Tue, 24 May 2022 at 13:37, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only support >> Xcode 13.2. >> Did I miss something? >> >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 hakan at exformedia.se Tue May 24 10:57:35 2022 From: hakan at exformedia.se (=?utf-8?Q?H=C3=A5kan_Liljegren?=) Date: Tue, 24 May 2022 16:57:35 +0200 Subject: Formatting code in word In-Reply-To: <02105F99-1416-4C08-B642-19D035702967@gmail.com> References: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Message-ID: Probably not what you want to hear, but I never distribute documents in Word as I then have no control on the formatting. The receiver might not have the same font installed and then the text might reflow and all kinds of bad things might happen! :) I always use PDF for distrution. BUT, if you still want to use Word you can create a specific format for the code blocks and then select the language for that format and check the “Do not check spelling or grammar” for that format. You can also select the newly pasted text and then do the same procedure (Select language and check the do not check checkbox). :-Håkan > On 24 May 2022, at 13:00, Mark Smith via use-livecode wrote: > > Hello list, > > Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. > > Thanks! > Mark > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 24 11:11:51 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 24 May 2022 11:11:51 -0400 Subject: Xcode In-Reply-To: <93731F94-7672-4063-92EC-F10BC167695F@consensustech.com> References: <6D0603B9-8003-4AD4-A9BA-7A353F10094F@major-k.de> <93731F94-7672-4063-92EC-F10BC167695F@consensustech.com> Message-ID: <003501d86f80$9ba41b30$d2ec5190$@net> You can have the most recent version of Xcode installed but must also have the LC supported version installed(if different as it usually is). The build tools must point to the LC supported version for building iOS apps but you can use the most recent version(beta or prod) for side-loading, backup, device upgrades, log file viewing... The dance continues. 1,2,3 1,2,3 1,2,3. 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 Jim MacConnell via use-livecode Sent: Tuesday, May 24, 2022 10:53 AM To: How to use LiveCode Cc: Jim MacConnell Subject: Re: Xcode Panos, I’m so glad I saw this. Just for my clarity…. Are you saying we no longer need to do the “Hold off on Xcode updates until Livecode can catch up?” thing. I have folders full of older Xcode versions and go through a little dance each time I upgrade. It would be wonderful to not have to worry about that anymore and to just have one version I point Livecode t feeling completely free to upgrade my main version of Xcode without worrying that I might break something. Yours, Jim > On May 24, 2022, at 3:51 AM, panagiotis m via use-livecode wrote: > > Hello Klaus, > > You do not have to use the latest version of Xcode if your goal is to > be able to deploy to the latest version of iOS. > > This is the reason we have not moved (yet) to a newer Xcode version - > you can still use Xcode 13.2 to build apps that will run not only on > devices running the current most recent iOS version but also on future iOS versions. > > Hope this helps. > > Kind regards, > Panos > -- > > On Tue, 24 May 2022 at 13:37, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> Xcode 13.4 is already available but LC 9.67 and LC 10 dp3 only >> support Xcode 13.2. >> Did I miss something? >> >> >> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 May 24 11:15:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 May 2022 15:15:18 +0000 Subject: Is it a bug? In-Reply-To: <004f01d86ee8$84a87450$8df95cf0$@net> References: <63C5EE9E-B30D-4CE1-A22A-9945C4A8B766@iotecdigital.com> <004f01d86ee8$84a87450$8df95cf0$@net> Message-ID: If you are seeing a different behavior then perhaps something in my code is doing it. I'll check the executionContexts to see. Bob S > On May 23, 2022, at 14:03 , Ralph DiMola via use-livecode wrote: > > I also expect nothing is done if I click on anything and move the mouse > outside the active window THEN release(unless a drag and drop is involved). > I use this all this time with the classic "S*&# I didn't mean to click on > that". If move out of the window before releasing nothing happens. This > behavior applies to all apps I have used including the LC IDE. I see this > behavior both Windows and Mac. What are they doing in the LC IDE to create > the expected behavior? > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Tue May 24 11:17:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 May 2022 15:17:00 +0000 Subject: Formatting code in word In-Reply-To: <02105F99-1416-4C08-B642-19D035702967@gmail.com> References: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Message-ID: <4793DA51-AD1C-4764-9671-3725D5F6DE41@iotecdigital.com> One word solution: Don't. (Actually two words it's a contraction. Word's grammar checker would probably have corrected that.) Bob S > On May 24, 2022, at 04:00 , Mark Smith via use-livecode wrote: > > Hello list, > > Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. > > Thanks! > Mark > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dochawk at gmail.com Tue May 24 13:19:23 2022 From: dochawk at gmail.com (doc hawk) Date: Tue, 24 May 2022 10:19:23 -0700 Subject: Maximum length of mySQL request ? In-Reply-To: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> Message-ID: <81B11393-2BB1-4CCE-89F8-ACA71E72A906@gmail.com> When opening a “file”, my software makes a compound query with several hundred queries within it, so . . . This is possible on Postgres and SQLite, but (last I checked) not on MySQL From bobsneidar at iotecdigital.com Tue May 24 13:38:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 May 2022 17:38:24 +0000 Subject: Maximum length of mySQL request ? In-Reply-To: <81B11393-2BB1-4CCE-89F8-ACA71E72A906@gmail.com> References: <9ff1454432a320811d6b37c23f59abf5@souslelogo.com> <81B11393-2BB1-4CCE-89F8-ACA71E72A906@gmail.com> Message-ID: There may be an environment variable you need to set to increase it. Because it's network based, it stands to reason that an unlimited query string can be exploited as a denial of service strategy. Bob S > On May 24, 2022, at 10:19 , doc hawk via use-livecode wrote: > > When opening a “file”, my software makes a compound query with several hundred queries within it, so . . . > > This is possible on Postgres and SQLite, but (last I checked) not on MySQL From marksmithhfx at gmail.com Tue May 24 16:37:05 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 24 May 2022 21:37:05 +0100 Subject: Formatting code in word In-Reply-To: References: <02105F99-1416-4C08-B642-19D035702967@gmail.com> Message-ID: Thanks, I wasn’t aware that could be applied to just a specific format… I had always thought of it as document wide. Mind you, I don’t take advantage of 90% of the features in Word either. PDF sounds like a good option for distribution but don’t you still need to create the file in something else? I’ve only ever converted documents to/from PDF. > On 24 May 2022, at 3:57 pm, Håkan Liljegren wrote: > > Probably not what you want to hear, but I never distribute documents in Word as I then have no control on the formatting. The receiver might not have the same font installed and then the text might reflow and all kinds of bad things might happen! :) > > I always use PDF for distrution. BUT, if you still want to use Word you can create a specific format for the code blocks and then select the language for that format and check the “Do not check spelling or grammar” for that format. You can also select the newly pasted text and then do the same procedure (Select language and check the do not check checkbox). > > :-Håkan > >> On 24 May 2022, at 13:00, Mark Smith via use-livecode > wrote: >> >> Hello list, >> >> Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. >> >> Thanks! >> Mark >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Tue May 24 20:48:57 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 25 May 2022 10:48:57 +1000 Subject: s it a bug? In-Reply-To: References: Message-ID: Bob: I'm not seeing this in the IDE or standalone. LC 9.6.7, macOS Monterey > > I found one thing I think is a bug, and I'd like to report it, but I want to see if anyone else thinks this may be the expected behavior: > > It seems to me that when clicking and holding the mouse button down on an pulldown menu, then releasing outside that menu so that no menu item is actually selected, the parameter passed to menuPick ought to be empty, if menuPick even should get sent in the first place. What it actually does is it passes the first menu item, even though that item was not specifically chosen. > > Bob S > > > ********************************************* From paul at researchware.com Wed May 25 07:36:43 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 25 May 2022 07:36:43 -0400 Subject: HTML font size in percentages In-Reply-To: References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <0f444390-49f7-12bf-a3b5-9edd0d959f39@researchware.com> On 5/20/2022 4:30 PM, J. Landman Gay via use-livecode wrote: > Thanks for verifying it Paul, that's what I was thinking too. I'm > looking at replacing the sizes via the style runs, I have a handler > Mark Waddingham gave me/us on the list last year that I think I can > modify. > > But I'd be grateful to see yours too. No big hurry, I just need to get > an idea of how to estimate my time at this point. Thank you very much. > > Sorry for the delay. By some weird email glitch I only saw this list post today. Anyway, here is the routine, While it works, if I was rewriting it, I would probably just do a loop with a match to the html font size attribute. This code does ensure that the size can't go below a minimum where LC's legacy font size values actually make the text bigger. on ChangeTextSize pBiggerOrSmaller, pObj   -- usage: ChangeTextSize "bigger"|"smaller",the long ID of field X of stack Y   lock screen   if len(the text of pObj) > 5000 then     set cursor to watch   end if   -- Get current scaling. The textSize will be set to the effectove textSize + tCurScale (+1|-1)   -- uTextScaling is defauted to 0 in the object (field) custom properties   put the uTextScaling of pObj into tScale   if tScale is empty then put 0 into tScale   if pBiggerOrSmaller is "bigger" then     add 1 to tScale     put 1 into tCurScale   else     subtract 1 from tScale     put -1 into tCurScale   end if   set the uTextScaling of pObj to tScale   --   put the htmlText of pObj into tHtml   --   set the textHeight of pObj to empty   set the textSize   of pObj to max(8,the effective textSize of pObj+tCurScale)   --   replace "size=""e with "size="&numToChar(1500) in tHtml   set the itemdel to numToChar(1500)   if the number of items of tHtml <> 1 then     put 0 into testItem     repeat for each item theItem in tHtml       add 1 to testItem       if testItem<>1 then         put offset(quote,theitem) into counter         put char 1 to counter-1 of theItem into theSize         put max(8,theSize+tCurScale) into theSize         put theSize into char 1 to counter-1 of theItem         put quote&theItem after newHTML       else         put theItem into newHTML         next repeat       end if     end repeat     set the htmlText of pObj to newHTML     --   end if   unlock screen end ChangeTextSize From hakan at exformedia.se Wed May 25 13:52:30 2022 From: hakan at exformedia.se (Hakan@exformedia.se) Date: Wed, 25 May 2022 19:52:30 +0200 Subject: Formatting code in word In-Reply-To: References: Message-ID: Yes, you need to use something to create the PDF first of course. And here Word might be a good candidate. Especially if you are to write a lot of explaining text and then paste some code. I think I still would go for an automated setup and write the explanations in the code. Then you could automate the full process (in Livecode of course :) But it all depends on the purpose of course. If you are looking for a tool to convert between a lot of different formats I suggest you take a look at pandoc. A command line Swiss army tool for document conversion. Good Luck! :-Håkan Skickat från min iPhone > 24 maj 2022 kl. 22:37 skrev Mark Smith : > > Thanks, I wasn’t aware that could be applied to just a specific format… I had always thought of it as document wide. Mind you, I don’t take advantage of 90% of the features in Word either. PDF sounds like a good option for distribution but don’t you still need to create the file in something else? I’ve only ever converted documents to/from PDF. > >> On 24 May 2022, at 3:57 pm, Håkan Liljegren wrote: >> >> Probably not what you want to hear, but I never distribute documents in Word as I then have no control on the formatting. The receiver might not have the same font installed and then the text might reflow and all kinds of bad things might happen! :) >> >> I always use PDF for distrution. BUT, if you still want to use Word you can create a specific format for the code blocks and then select the language for that format and check the “Do not check spelling or grammar” for that format. You can also select the newly pasted text and then do the same procedure (Select language and check the do not check checkbox). >> >> :-Håkan >> >>> On 24 May 2022, at 13:00, Mark Smith via use-livecode wrote: >>> >>> Hello list, >>> >>> Do you use anything to make code look more readable when inserted into a Word document? I ask because all those squiggly red underlines (spellcheck marks) makes it pretty unattractive, although they can be turned off. However, when distributing a document to others they may not know how to turn that off. Just wondering if you’ve found a better way for distributing code in word docs. >>> >>> Thanks! >>> Mark >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Wed May 25 13:57:31 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 25 May 2022 20:57:31 +0300 Subject: Formatting code in word In-Reply-To: References: Message-ID: A better bet is LibreOffice as cheap jacks like me can see no obvious reason for paying for something when a functional equivalent exists for free. On Wed, 25 May 2022, 20:53 Hakan--- via use-livecode, < use-livecode at lists.runrev.com> wrote: > Yes, you need to use something to create the PDF first of course. And here > Word might be a good candidate. Especially if you are to write a lot of > explaining text and then paste some code. > I think I still would go for an automated setup and write the explanations > in the code. Then you could automate the full process (in Livecode of > course :) But it all depends on the purpose of course. > > If you are looking for a tool to convert between a lot of different > formats I suggest you take a look at pandoc. A command line Swiss army tool > for document conversion. > > Good Luck! > :-Håkan > > Skickat från min iPhone > > > 24 maj 2022 kl. 22:37 skrev Mark Smith : > > > > Thanks, I wasn’t aware that could be applied to just a specific format… > I had always thought of it as document wide. Mind you, I don’t take > advantage of 90% of the features in Word either. PDF sounds like a good > option for distribution but don’t you still need to create the file in > something else? I’ve only ever converted documents to/from PDF. > > > >> On 24 May 2022, at 3:57 pm, Håkan Liljegren > wrote: > >> > >> Probably not what you want to hear, but I never distribute documents in > Word as I then have no control on the formatting. The receiver might not > have the same font installed and then the text might reflow and all kinds > of bad things might happen! :) > >> > >> I always use PDF for distrution. BUT, if you still want to use Word you > can create a specific format for the code blocks and then select the > language for that format and check the “Do not check spelling or grammar” > for that format. You can also select the newly pasted text and then do the > same procedure (Select language and check the do not check checkbox). > >> > >> :-Håkan > >> > >>> On 24 May 2022, at 13:00, Mark Smith via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> Hello list, > >>> > >>> Do you use anything to make code look more readable when inserted into > a Word document? I ask because all those squiggly red underlines > (spellcheck marks) makes it pretty unattractive, although they can be > turned off. However, when distributing a document to others they may not > know how to turn that off. Just wondering if you’ve found a better way for > distributing code in word docs. > >>> > >>> Thanks! > >>> Mark > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode 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 Wed May 25 14:32:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 May 2022 13:32:04 -0500 Subject: HTML font size in percentages In-Reply-To: <0f444390-49f7-12bf-a3b5-9edd0d959f39@researchware.com> References: <180e24fd3a0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <0f444390-49f7-12bf-a3b5-9edd0d959f39@researchware.com> Message-ID: <28f40f53-0ab8-decb-6af1-48a5c590ad8e@hyperactivesw.com> On 5/25/22 6:36 AM, Paul Dupuis via use-livecode wrote: > Anyway, here is the routine, While it works, if I was rewriting it, I would probably just do a > loop with a match to the html font size attribute. This code does ensure that the size can't go > below a minimum where LC's legacy font size values actually make the text bigger. Thanks so much, very helpful. It's close to what I was thinking of doing. The other alternative is looping through style runs in the styledText property. The text I'm dealing with is pretty long, so I'll do some tests to see which method is faster. Thanks again, Jacque -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From heather at livecode.com Fri May 27 07:20:32 2022 From: heather at livecode.com (Heather Laine) Date: Fri, 27 May 2022 12:20:32 +0100 Subject: A test, move along Message-ID: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Just checking all is working as it should. Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From bobsneidar at iotecdigital.com Fri May 27 11:13:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 27 May 2022 15:13:18 +0000 Subject: A test, move along In-Reply-To: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Message-ID: Define, "all." Currently I have some code that is giving me fits... ;-) Bob S > On May 27, 2022, at 04:20 , Heather Laine via use-livecode wrote: > > Just checking all is working as it should. > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 heather at livecode.com Fri May 27 11:30:57 2022 From: heather at livecode.com (Heather Laine) Date: Fri, 27 May 2022 16:30:57 +0100 Subject: A test, move along In-Reply-To: References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Message-ID: There had to be one. I'm happy to report there appears to be nothing wrong with the list software. And in fact, the users are also working as expected. ;) H Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 27 May 2022, at 16:13, Bob Sneidar via use-livecode wrote: > > Define, "all." Currently I have some code that is giving me fits... ;-) > > Bob S > > >> On May 27, 2022, at 04:20 , Heather Laine via use-livecode wrote: >> >> Just checking all is working as it should. >> >> >> Heather Laine >> Customer Services Manager >> LiveCode Ltd >> www.livecode.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dochawk at gmail.com Fri May 27 19:03:23 2022 From: dochawk at gmail.com (doc hawk) Date: Fri, 27 May 2022 16:03:23 -0700 Subject: A test, move along In-Reply-To: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> Message-ID: <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> As a professor, I’ll grade it a B-. :) > On May 27, 2022, at 4:20 AM, Heather Laine via use-livecode wrote: > > Just checking all is working as it should. > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 ahsoftware at sonic.net Fri May 27 19:28:22 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 27 May 2022 16:28:22 -0700 Subject: A test, move along In-Reply-To: <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> Message-ID: <832a41bf-e848-cc87-39c5-024b7a069e46@sonic.net> On 5/27/22 16:03, doc hawk via use-livecode wrote: > As a professor, Ill grade it a B-. I thought that was a pessimistic blood type. -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Fri May 27 20:37:28 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 28 May 2022 01:37:28 +0100 Subject: A test, move along In-Reply-To: <832a41bf-e848-cc87-39c5-024b7a069e46@sonic.net> References: <282F4A4B-F2F8-441A-A577-6B3EFC26DF46@livecode.com> <9781DF64-7838-4F8F-A89F-86C1E2E3310A@gmail.com> <832a41bf-e848-cc87-39c5-024b7a069e46@sonic.net> Message-ID: <701578b7-74c3-5201-2904-9f6f1869b238@tweedly.net> On 28/05/2022 00:28, Mark Wieder via use-livecode wrote: > On 5/27/22 16:03, doc hawk via use-livecode wrote: >> As a professor, Ill grade it a B-. > > I thought that was a pessimistic blood type. > I thought it was short for balderdash! From General.2018 at outlook.com Sat May 28 10:15:50 2022 From: General.2018 at outlook.com (General 2018) Date: Sat, 28 May 2022 14:15:50 +0000 Subject: Substacks Message-ID: Hi , New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? Looked at docs and other posts. But stuck no doubt I have missed something. Livecode 9.6.6 and Win 10 Regards Cam From runrev at vonfintel.org Sat May 28 12:28:09 2022 From: runrev at vonfintel.org (Thomas von Fintel) Date: Sat, 28 May 2022 18:28:09 +0200 Subject: Substacks In-Reply-To: References: Message-ID: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Hi, did you try  close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. Livecode 9.6.7 and Windows 10 Hope this helps Thomas Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: > Hi , > > New to substacks - I have a mainstack used as a menu page for 2x substacks > > When substacks opened from mainstack they open fine using go to stack xyz > > The problem is closing of the substacks using - close stack, go to mainstack or close this stack it always closes (quit) everything. Need mainstack to reappear/remain ? > > Looked at docs and other posts. But stuck no doubt I have missed something. > > Livecode 9.6.6 and Win 10 > > Regards > Cam > _______________________________________________ > use-livecode mailing list > use-livecode 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 General.2018 at outlook.com Sat May 28 15:40:00 2022 From: General.2018 at outlook.com (General 2018) Date: Sat, 28 May 2022 19:40:00 +0000 Subject: Substacks In-Reply-To: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> References: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Message-ID: Thanks for the tip but still no good. So button in “xyz” substack with close stack “xyz” still closes all ? Regards Camm > On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode wrote: > > Hi, > > did you try close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. > > Livecode 9.6.7 and Windows 10 > > > Hope this helps > > Thomas > > >> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >> Hi , >> >> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >> >> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >> >> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >> >> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Livecode 9.6.6 and Win 10 >> >> Regards >> Cam >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Sat May 28 16:30:10 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 28 May 2022 15:30:10 -0500 Subject: Substacks In-Reply-To: References: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Message-ID: <1810c5cb050.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> In an app, the mainstack is the home stack. If it's closed and no other stack is open then the app will quit. But if you open a substack, the app can't quit because the substack is part of the stackfile but the mainstack is still marked as closed. So the trick is not to close the mainstack, just hide it instead when you open the substack. When you close the substack, show the mainstack. At least, that's what I think is happening. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 28, 2022 2:42:24 PM General 2018 via use-livecode wrote: > Thanks for the tip but still no good. > > So button in xyz substack with close stack xyz still closes all ? > > Regards Camm > >> On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode >> wrote: >> >> Hi, >> >> did you try close stack "xyz" ? Thias works for me, in the IDE at least, >> both if called from the mainstack and from the substack. Only the substack >> is closed. >> >> Livecode 9.6.7 and Windows 10 >> >> >> Hope this helps >> >> Thomas >> >> >>> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >>> Hi , >>> >>> New to substacks - I have a mainstack used as a menu page for 2x substacks >>> >>> When substacks opened from mainstack they open fine using go to stack >>> xyz >>> >>> The problem is closing of the substacks using - close stack, go to >>> mainstack or close this stack it always closes (quit) everything. Need >>> mainstack to reappear/remain ? >>> >>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Livecode 9.6.6 and Win 10 >>> >>> Regards >>> Cam >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 bobsneidar at iotecdigital.com Sat May 28 16:48:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 28 May 2022 20:48:19 +0000 Subject: Substacks In-Reply-To: References: <8e9f8843-c2a8-2183-db5d-3462e74a541b@vonfintel.org> Message-ID: <8468155B-9F45-4542-957F-A64B656A42DF@iotecdigital.com> Hide the mainstack, when opening the substack, then show the mainstack in the substack’s closestack handler. Sent from my iPhone > On May 28, 2022, at 12:41, General 2018 via use-livecode wrote: > > Thanks for the tip but still no good. > > So button in “xyz” substack with close stack “xyz” still closes all ? > > Regards Camm > >> On 28 May 2022, at 17:29, Thomas von Fintel via use-livecode wrote: >> >> Hi, >> >> did you try close stack "xyz" ? Thias works for me, in the IDE at least, both if called from the mainstack and from the substack. Only the substack is closed. >> >> Livecode 9.6.7 and Windows 10 >> >> >> Hope this helps >> >> Thomas >> >> >>>> Am 28.05.2022 um 16:15 schrieb General 2018 via use-livecode: >>> Hi , >>> >>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >>> >>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >>> >>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >>> >>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Livecode 9.6.6 and Win 10 >>> >>> Regards >>> Cam >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 ahsoftware at sonic.net Sat May 28 19:11:25 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 28 May 2022 16:11:25 -0700 Subject: Substacks In-Reply-To: References: Message-ID: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> On 5/28/22 07:15, General 2018 via use-livecode wrote: > Hi , > > New to substacks - I have a mainstack used as a menu page for 2x substacks > > When substacks opened from mainstack they open fine using go to stack xyz > > The problem is closing of the substacks using - close stack, go to mainstack or close this stack it always closes (quit) everything. Need mainstack to reappear/remain ? > > Looked at docs and other posts. But stuck no doubt I have missed something. Do you have a closeStack handler in the script of the mainstack? -- Mark Wieder ahsoftware at gmail.com From General.2018 at outlook.com Sun May 29 07:02:52 2022 From: General.2018 at outlook.com (General 2018) Date: Sun, 29 May 2022 11:02:52 +0000 Subject: Substacks In-Reply-To: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> References: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> Message-ID: Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” Will keep looking…….. Regards > On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: > > On 5/28/22 07:15, General 2018 via use-livecode wrote: >> Hi , >> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >> Looked at docs and other posts. But stuck no doubt I have missed something. > > Do you have a closeStack handler in the script of the mainstack? > > > -- > 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 jmac at consensustech.com Sun May 29 09:48:59 2022 From: jmac at consensustech.com (Jim At Consensus) Date: Sun, 29 May 2022 06:48:59 -0700 Subject: Substacks In-Reply-To: References: Message-ID: <67E5C8AF-C440-44CA-AE5B-CD6EB34FAC4D@consensustech.com> At the risk of repeating someone else’s suggestion. I address this by have an on closeStsck handler in the main stack. I’m in my phone so don’t have access to code but it’s along the lines of: On closeStack If the short name of me is “xxxx” then closeStack End closeStack Works rely as bay for me though variations could include “if name is not “xxx” then exit closeStsck Will see which is correct when I get to my machine. Good Luck. Jim NOTE: This has worked reliably for years. I doubt something has changed but perhaps? NOTE 2: To avoid the “mental pain” of not having something like this working, I’d recommend creating a new stack and sub stack combination just to trouble shoot the problem. I’d say 9 times out of 10, I can get the simple test to work which points me to some other issue I never would have discovered that ended up being the issue (like not remembering that before my closeStack was issued, i navigated back to the main stack by a go card “YYYY” of the main stack as part of my trying to figure out what was happening but the timing was such I never saw the transition.) Sent from Jim's iPhone Please excuse brevity, typos and errors > On May 29, 2022, at 4:05 AM, General 2018 via use-livecode wrote: > > Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” > > Will keep looking…….. > > Regards > >>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: >>> >>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>> Hi , >>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >>> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Do you have a closeStack handler in the script of the mainstack? >> >> >> -- >> 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun May 29 12:25:51 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 29 May 2022 11:25:51 -0500 Subject: Substacks In-Reply-To: References: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> Message-ID: <18110a35e98.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Just to clarify, are they real substacks or do you mean they are separate stacks that you include in the build? Also, double check that standalone settings isn't set up to move substacks into separate files. I think that option is in the general pane but I'm not at my computer to check. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May 29, 2022 6:05:08 AM General 2018 via use-livecode wrote: > Still no luck, no closestack handler in main stack , tried the other > suggestions with hide/show etc. But still mainstack quits on closing the > substack xyz > > Will keep looking.. > > Regards > >> On 29 May 2022, at 00:12, Mark Wieder via use-livecode >> wrote: >> >> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>> Hi , >>> New to substacks - I have a mainstack used as a menu page for 2x substacks >>> When substacks opened from mainstack they open fine using go to stack >>> xyz >>> The problem is closing of the substacks using - close stack, go to >>> mainstack or close this stack it always closes (quit) everything. Need >>> mainstack to reappear/remain ? >>> Looked at docs and other posts. But stuck no doubt I have missed something. >> >> Do you have a closeStack handler in the script of the mainstack? >> >> >> -- >> 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 General.2018 at outlook.com Sun May 29 15:31:30 2022 From: General.2018 at outlook.com (General 2018) Date: Sun, 29 May 2022 19:31:30 +0000 Subject: Substacks In-Reply-To: <18110a35e98.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <7cb39a94-bf9c-8d78-c0d2-7d17f0adbe0a@sonic.net> <18110a35e98.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hi Jacquline, Think your question lead me to the issue. For some reason on the stack that did not work I added the substack by opening the mainstack and substack and saving the substack into the mainstack somehow. I started from new and added the substack by using the add stack file button within standalone settings and it worked fine. Regards Camm > On 29 May 2022, at 17:27, J. Landman Gay via use-livecode wrote: > > Just to clarify, are they real substacks or do you mean they are separate stacks that you include in the build? Also, double check that standalone settings isn't set up to move substacks into separate files. I think that option is in the general pane but I'm not at my computer to check. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On May 29, 2022 6:05:08 AM General 2018 via use-livecode wrote: >> >> Still no luck, no closestack handler in “main stack” , tried the other suggestions with hide/show etc. But still “mainstack” quits on closing the “substack xyz” >> >> Will keep looking…….. >> >> Regards >> >>>> On 29 May 2022, at 00:12, Mark Wieder via use-livecode wrote: >>> >>> On 5/28/22 07:15, General 2018 via use-livecode wrote: >>>> Hi , >>>> New to substacks - I have a “mainstack” used as a menu page for 2x “substacks” >>>> When “substacks” opened from “mainstack” they open fine using — go to stack “xyz” >>>> The problem is closing of the “substacks” using - close stack, go to “mainstack” or close this stack it always closes (quit) everything. Need “mainstack” to reappear/remain ? >>>> Looked at docs and other posts. But stuck no doubt I have missed something. >>> >>> Do you have a closeStack handler in the script of the mainstack? >>> >>> >>> -- >>> 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 >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 tom at makeshyft.com Mon May 30 22:33:20 2022 From: tom at makeshyft.com (Tom Glod) Date: Mon, 30 May 2022 22:33:20 -0400 Subject: Android,iOS stay in background? Message-ID: Hi Folks, Just a quick question for all you Livecode pros .... do we have a way as of yet to have our applications stay in the background and not get unloaded by Android and iOS? I found 1 way ...and thats by playing the radio inside a browser. I thought about "playing nothing" but that is too hacky to go into production with. Thanks for any thoughts on this? -- Tom Glod Founder & Developer @ MakeShyft R.D.A Build Software with AppStarterStack for Livecode Save Time with The Time Saver's Toolbox From matthias_livecode_150811 at m-r-d.de Tue May 31 02:53:05 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 31 May 2022 08:53:05 +0200 Subject: Android,iOS stay in background? In-Reply-To: References: Message-ID: Hm, if i recall correctly, Android keeps an app running in background as long as Android does not need the memory the app is "consuming". And i think iOS is doing that as well. In the past one had to modify the plist file to allow background execution in iOS. But for some time now you should be able to allow background execution by enabling the requirement "Background Fetch" in the standalone settings. If there is also a way in Android , i do not know. Matthias > Am 31.05.2022 um 04:33 schrieb Tom Glod via use-livecode : > > Hi Folks, > > Just a quick question for all you Livecode pros .... do we have a way as of > yet to have our applications stay in the background and not get unloaded by > Android and iOS? > > I found 1 way ...and thats by playing the radio inside a browser. > > I thought about "playing nothing" but that is too hacky to go into > production with. > > Thanks for any thoughts on this? > > -- > Tom Glod > > Founder & Developer @ MakeShyft R.D.A > Build Software with AppStarterStack for > Livecode > Save Time with The Time Saver's Toolbox > _______________________________________________ > use-livecode mailing list > use-livecode 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 panos.merakos at livecode.com Tue May 31 11:27:02 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 31 May 2022 18:27:02 +0300 Subject: [[ ANN ]] Release 9.6.8 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.8 RC-1. You can find more details on the bug fixes and improvements of this new release here: https://livecode.com/m1-native-latest-livecode-releases/ You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From bobsneidar at iotecdigital.com Tue May 31 11:27:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 May 2022 15:27:18 +0000 Subject: Android,iOS stay in background? In-Reply-To: References: Message-ID: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> It's my understanding that iOS does not "load" apps like Android or other operating systems do. It simply "activates" apps already in "memory". The app may allocate more memory for itself of course, or access other services that are constantly running. Bob S > On May 30, 2022, at 23:53 , matthias rebbe via use-livecode wrote: > > if i recall correctly, Android keeps an app running in background as long as Android does not need the memory the app is "consuming". > And i think iOS is doing that as well. From panos.merakos at livecode.com Tue May 31 11:30:18 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 31 May 2022 18:30:18 +0300 Subject: [[ ANN ]] Release 10.0.0 DP-4 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 10.0.0 DP-4. You can find more details on the new features and the bug fixes of this new release here: https://livecode.com/m1-native-latest-livecode-releases/ You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From tom at makeshyft.com Tue May 31 13:51:46 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 31 May 2022 13:51:46 -0400 Subject: Android,iOS stay in background? In-Reply-To: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> References: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> Message-ID: Interesting .....Thanks guys. On Tue, May 31, 2022 at 11:28 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > It's my understanding that iOS does not "load" apps like Android or other > operating systems do. It simply "activates" apps already in "memory". The > app may allocate more memory for itself of course, or access other services > that are constantly running. > > Bob S > > > > On May 30, 2022, at 23:53 , matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > if i recall correctly, Android keeps an app running in background as > long as Android does not need the memory the app is "consuming". > > And i think iOS is doing that as well. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 marksmithhfx at gmail.com Tue May 31 16:48:44 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 31 May 2022 21:48:44 +0100 Subject: Android,iOS stay in background? In-Reply-To: References: <67DE4965-2156-42AA-93F8-1E7D815CE28D@iotecdigital.com> Message-ID: Hi Tom, You can “suspend” iOS apps by putting them into the background, where they are maintained in a sort of “hibernated” state, ready to go when you open them again, and you can detect this. But it is also possible to “unload” them from memory by swiping up on apps that you can see lurking in the background. This closes the app completely and a restart is initiated when you re-open it. I have had apps “freeze" during development and the only way to restore them was to remove it from memory (close it) and then reopen it again. I also have code that detects when an app is put into the background (and only executes under those conditions) so I do know that this can be detected for iOS apps, but I don’t think there is a way to do it in Android apps yet. The “detecting" is part of Monte's mergNotify package that was incorporated into LC. You can find more info on it in the dictionary. mergNotify "UIApplicationWillResignActiveNotification" -- enables the app to detect when it is moving into the background mergNotify "UIApplicationDidBecomeActiveNotification" -- and when it is being brought back to the foreground See also mergBkTask for more information on background processing in iOS. > On 31 May 2022, at 6:51 pm, Tom Glod via use-livecode wrote: > > Interesting .....Thanks guys. > > On Tue, May 31, 2022 at 11:28 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> It's my understanding that iOS does not "load" apps like Android or other >> operating systems do. It simply "activates" apps already in "memory". The >> app may allocate more memory for itself of course, or access other services >> that are constantly running. >> >> Bob S >> >> >>> On May 30, 2022, at 23:53 , matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> if i recall correctly, Android keeps an app running in background as >> long as Android does not need the memory the app is "consuming". >>> And i think iOS is doing that as well. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 marksmithhfx at gmail.com Tue May 31 16:53:06 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 31 May 2022 21:53:06 +0100 Subject: MrSign'n'Notarize Message-ID: <922E24BA-C062-4E46-AB5E-D997A95D8CAA@gmail.com> Hey Matthias, I just wanted to drop you a quick note to thank you for the amazing utility you put together to sign and staple macOS apps. I tried it for the first time the other day and it was a real joy to use — very well organised. Thanks for that. Definitely a life-saver (or at least a life-enhancer!!). Cheers, Mark