From General.2018 at outlook.com Sat Jul 1 12:54:03 2023 From: General.2018 at outlook.com (General 2018) Date: Sat, 1 Jul 2023 16:54:03 +0000 Subject: Answer dialog text missing in standalone 9.6.9 In-Reply-To: References: <27C6F429-B111-49A1-B924-FF36CC6C58E6@starfirelighting.com> <48FB70CF-1528-40D2-9206-5FD495C0C3B1@m-r-d.de> Message-ID: Hi , Is this a bug ? Win 10 LC 9.6.8 Standalone Black Text. Background as stack colour but needs to set to white as text cannot be seen. Buttons black text on grey - a bit naff. LC 9.6.9 Standalone White Text. Background as stack colour - okay except for white as text is white. Buttons white text on grey - no good. LC 9.6.8 / 9.6.9 Always black text on white/grey regardless of stack colours? Is there a fundamental problem with ask/answer dialog on Windows ? Would expect this to work and why changing across versions ? Regards Camm > On 30 Jun 2023, at 19:23, Mike Kerner via use-livecode wrote: > > i think there are other ide stacks that switched from binary to > script-only stacks in 9.6.9. that broke some other behaviors, too. if > i was betting, i would bet that the SOS is not explicitly setting the > font color, but i haven't read the script to confirm, either. > >> On Fri, Jun 30, 2023 at 1:49 PM General 2018 via use-livecode >> wrote: >> >> Hi , >> >> Made new stack and works okay. >> >> Then found that I had set the background colour of ask and answer to white, this has worked for many years and showed black text. The stack background is blue. Do I assume something has changed in 9.6.9 ? >> >> I removed the set background to white and the answer background is now blue as expected with white text. The answer banner is white with black text but the yes/no buttons are grey with white text which is unreadable. >> >> Regards >> Camm >> >>>> On 30 Jun 2023, at 13:36, matthias rebbe via use-livecode wrote: >>> >>> Did you already try it with a new stack just with a button which includes only a mouseup script with only the answer.... command? >>> >>>> Am 30.06.2023 um 14:29 schrieb General 2018 via use-livecode : >>>> >>>> Windows 10 >>>> LC 9.6.9 >>>> >>>> Regards >>>> Camm >>>> >>>>>> On 30 Jun 2023, at 12:13, panagiotis m via use-livecode wrote: >>>>> >>>>> Hello Camm, >>>>> >>>>> In which platform? Seems to work as expected here (MacOS). >>>>> >>>>> Cheers, >>>>> Panos >>>>> -- >>>>> >>>>>> On Fri, 30 Jun 2023 at 09:54, General 2018 via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> Just the “Yes” , “No” >>>>>> >>>>>> “Some Text” missing. >>>>>> >>>>>> Works fine in IDE and previous standalones. >>>>>> >>>>>> Regards >>>>>> Camm >>>>>> >>>>>>> On 29 Jun 2023, at 23:13, Craig Newman via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> Hi. >>>>>>> >>>>>>> I assume you mean the standard “Answer” command. There is no “Answer >>>>>> Text”. >>>>>>> >>>>>>> So if you: >>>>>>> >>>>>>> answer “Some Text" with “Yes" or “No" >>>>>>> what exactly pops up? >>>>>>> >>>>>>> >>>>>>> >>>>>>> Craig >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> On Jun 29, 2023, at 4:21 PM, General 2018 via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Answer Text missing in standalone , the icon and buttons (with text) >>>>>> appear but no dialog text. >>>>>>>> All okay in IDE. >>>>>>>> >>>>>>>> Checked inclusions - all seems okay. >>>>>>>> >>>>>>>> Regards >>>>>>>> Camm >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 dfe4 at cornell.edu Sun Jul 2 14:24:26 2023 From: dfe4 at cornell.edu (David Epstein) Date: Sun, 2 Jul 2023 14:24:26 -0400 Subject: Remote debugger error message Message-ID: panagiotis m asked: @david How do you trigger this error? Could you provide a recipe? With the stacks that trigger the error it is hard to troubleshoot them without triggering the error. So I’m starting with an entirely new stack, and will report if I encounter the problem. I suspect the problem has something to do with a message that calls a handler in a stack-in-use. Best wishes, David > > > On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode > > wrote: >> >> I?ve just started using LiveCode 9.6.9 and 10.0.0 DP 5 on two Intel > Macs, and can do very little without getting this error message: >> >> ?There was an error executing a script in stack > com.livecode.library.remotedebugger. No more information is available > because the stack is password protected.? From jacque at hyperactivesw.com Sun Jul 2 15:08:35 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 2 Jul 2023 14:08:35 -0500 Subject: Remote debugger error message In-Reply-To: References: Message-ID: <192ac13f-7c64-9c46-0f1b-bf230294f08f@hyperactivesw.com> I've seen the same error more than once but it's a bit random and I don't know what triggers it. It's only in the IDE so far, even though I've included the remote debugger in the standalone. Funny that it should occur in the IDE when the remote debugger isn't active. The remote debugger in the standalone did trigger some errors a few times. Maybe something is left in memory? The IDE was still running while testing the standalone. On 7/2/23 1:24 PM, David Epstein via use-livecode wrote: > panagiotis m asked: > @david > How do you trigger this error? Could you provide a recipe? > > With the stacks that trigger the error it is hard to troubleshoot them without triggering the error. So I’m starting with an entirely new stack, and will report if I encounter the problem. > > I suspect the problem has something to do with a message that calls a handler in a stack-in-use. > > Best wishes, > David > >> >> >> On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode >> > wrote: >>> >>> I?ve just started using LiveCode 9.6.9 and 10.0.0 DP 5 on two Intel >> Macs, and can do very little without getting this error message: >>> >>> ?There was an error executing a script in stack >> com.livecode.library.remotedebugger. No more information is available >> because the stack is password protected.? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sun Jul 2 15:19:05 2023 From: paul at researchware.com (Paul Dupuis) Date: Sun, 2 Jul 2023 15:19:05 -0400 Subject: Remote debugger error message In-Reply-To: <192ac13f-7c64-9c46-0f1b-bf230294f08f@hyperactivesw.com> References: <192ac13f-7c64-9c46-0f1b-bf230294f08f@hyperactivesw.com> Message-ID: I got this error in a new install of LC969 on a brand new Windows 11 HP laptop. After I quit LC and started it again, I have not seen the error. I think there may have been some Windows notification that appeared but went away before I could do anything in the standard Win10/11 Notifications (lower right corner) and when I, later, popped open the notification panel, there was nothing there. I have now launched LC many times since without seeing the error again. On 7/2/2023 3:08 PM, J. Landman Gay via use-livecode wrote: > I've seen the same error more than once but it's a bit random and I > don't know what triggers it. It's only in the IDE so far, even though > I've included the remote debugger in the standalone. Funny that it > should occur in the IDE when the remote debugger isn't active. > > The remote debugger in the standalone did trigger some errors a few > times. Maybe something is left in memory? The IDE was still running > while testing the standalone. > > On 7/2/23 1:24 PM, David Epstein via use-livecode wrote: >> panagiotis m asked: >> @david >> How do you trigger this error? Could you provide a recipe? >> >> With the stacks that trigger the error it is hard to troubleshoot >> them without triggering the error.  So Im starting with an entirely >> new stack, and will report if I encounter the problem. >> >> I suspect the problem has something to do with a message that calls a >> handler in a stack-in-use. >> >> Best wishes, >> David >> >>> >>> >>> On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode >>> >> > wrote: >>>> >>>> I?ve just started using LiveCode 9.6.9 and 10.0.0 DP 5 on two Intel >>> Macs, and can do very little without getting this error message: >>>> >>>> ?There was an error executing a script in stack >>> com.livecode.library.remotedebugger.  No more information is available >>> because the stack is password protected.? >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From andrew at midwestcoastmedia.com Mon Jul 3 13:30:52 2023 From: andrew at midwestcoastmedia.com (Andrew at MWCM) Date: Mon, 3 Jul 2023 13:30:52 -0400 Subject: Installing mySQL on Windows In-Reply-To: References: Message-ID: <204E50D5-575C-4EB7-A63A-DAD7752FBFF6@midwestcoastmedia.com> The installer itself is 32bit but it will give you 64bit binaries. I had to upgrade my 5.7.x to the latest version first, but then I could add the x64 version of 8.0. —Andrew Bell > > Yes, and as you will note, those are 32 bit installers. I was hoping there was a 64 bit installer. There ARE 64 bit binaries, but no MSI. > > Bob S > > > On Jun 23, 2023, at 11:55 AM, Andrew at MWCM via use-livecode wrote: > > Just installed it last week on a Windows Server 2019 VM using the installer from https://dev.mysql.com/downloads/installer/ > > -Andrew Bell From jacque at hyperactivesw.com Mon Jul 3 15:44:33 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 3 Jul 2023 14:44:33 -0500 Subject: Writing to Mac Support folder In-Reply-To: <5BC05A6D-404D-4EF0-8D8A-38B95C0D31C0@m-r-d.de> References: <5BC05A6D-404D-4EF0-8D8A-38B95C0D31C0@m-r-d.de> Message-ID: <8b602e8b-f51f-828c-701b-94c2fbb23da5@hyperactivesw.com> On 6/30/23 1:32 AM, matthias rebbe via use-livecode wrote: > This is what Apple says: > > "If you distribute your macOS app through the App Store, you must enable App Sandbox. If you notarize your macOS app to distribute it outside of the App Store, you must enable hardened runtime and, optionally, can also enable App Sandbox." > https://help.apple.com/xcode/mac/current/#/devf87a2ac8f If I have notarized the app, is hardened runtime enabled? I don't even know what that means. I use mrSignNotarizeHelper. I tried to enable entitlements, but I don't need any of the listed ones and if none are selected then the Entitlements checkbox reverts to off. I assume that means my app is not sandboxed? How do I sandbox the app, and would that allow it to write to the App Support folder? Does LC automatically enable hardened runtime? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Jul 5 18:25:16 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Jul 2023 22:25:16 +0000 Subject: Installing mySQL on Windows In-Reply-To: <204E50D5-575C-4EB7-A63A-DAD7752FBFF6@midwestcoastmedia.com> References: <204E50D5-575C-4EB7-A63A-DAD7752FBFF6@midwestcoastmedia.com> Message-ID: Ah, thanks you. That is helpful. Bob S > On Jul 3, 2023, at 10:30 AM, Andrew at MWCM via use-livecode wrote: > > The installer itself is 32bit but it will give you 64bit binaries. I had to upgrade my 5.7.x to the latest version first, but then I could add the x64 version of 8.0. > > —Andrew Bell > >> >> Yes, and as you will note, those are 32 bit installers. I was hoping there was a 64 bit installer. There ARE 64 bit binaries, but no MSI. >> >> Bob S >> >> >> On Jun 23, 2023, at 11:55 AM, Andrew at MWCM via use-livecode wrote: >> >> Just installed it last week on a Windows Server 2019 VM using the installer from https://dev.mysql.com/downloads/installer/ >> >> -Andrew Bell > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 6 10:26:18 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 Jul 2023 10:26:18 -0400 Subject: A stack "revCursors" is already in memory. Message-ID: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> I have a new Livecode 9.6.9  install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. From jacque at hyperactivesw.com Thu Jul 6 17:12:49 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 6 Jul 2023 16:12:49 -0500 Subject: A stack "revCursors" is already in memory. In-Reply-To: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> Message-ID: <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: > I have a new Livecode 9.6.9  install on a new Windows 11 laptop. It was working normally for a > while, and, now, whenever I launch it, I get a warning message: > > A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. > > Can someone advise what I need to do to address this? I seem to recall this problem has been > seen before. I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. Check the substacks of your mainstack. If revCursors is in there, delete it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Thu Jul 6 17:28:59 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 Jul 2023 17:28:59 -0400 Subject: A stack "revCursors" is already in memory. In-Reply-To: <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> Message-ID: <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: > On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >> I have a new Livecode 9.6.9  install on a new Windows 11 laptop. It >> was working normally for a while, and, now, whenever I launch it, I >> get a warning message: >> >> A stack "revCursors" is already in memory. The Livecode UI does not >> ... etc.. >> >> Can someone advise what I need to do to address this? I seem to >> recall this problem has been seen before. > > I think it happens when you include cursors in a standalone build. > Sometimes LC adds it to your stack as well as to the executable. When > LC launches it see both the one in the stack and the one in the IDE. > > Check the substacks of your mainstack. If revCursors is in there, > delete it. > Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. From bobsneidar at iotecdigital.com Thu Jul 6 18:39:30 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 6 Jul 2023 22:39:30 +0000 Subject: A stack "revCursors" is already in memory. In-Reply-To: <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> Message-ID: Well….. What happens is that when you build an app, every stack it uses will be opened in the IDE, ostensibly to determine what inclusions are necessary. I have seen where the version of the stack that is open AFTER building the standalone is the one in the STANDALONE! So if you continue to use the IDE or try to build another app, you will get that conflict. That *may* be what you are experiencing, although that may have been addressed in 9.6.9 or some subsequent release. To avoid this altogether, I quit the IDE every time I build an app per platform so I do not encounter that. The first time it happened, I saved my stack and it replaced all the references to the stack files with the version from the standalone! I had a hell of a time cleaning it up! There is code you can put at the beginning of certain handlers like preOpenCard where you can check the value of the global variable reSaveAsStandalone (or something like that) and then exit accordingly, I forget the list of handlers you need to use this on. I think preOpenCard, preOpenstack, openCard and openStack. But if you do this, then you cannot use the Auto Inclusions feature. Really a bummer. I suppose you could trap for revSaveAsStandalone in your openCard handler of your main stack, then run a routine that registers all the stacksInUse, then when the standalone finishes, run a routine that closes those stacks by name, then reopens the correct versions, but that is a LOT to have to do for a feature so fundamental as building a standalone. Another thing building standalone does is it adds every stack the IDE opens to the recents list! BOOOO!!! BIG BAD BELLOWING BLUSTERY BOOOOOOO!!!!!!! The handler that does that should ITSELF be checking the status of revSaveAsStandalone! Bob S > On Jul 6, 2023, at 2:28 PM, Paul Dupuis via use-livecode wrote: > > On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: >> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >>> I have a new Livecode 9.6.9 install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: >>> >>> A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. >>> >>> Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. >> >> I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. >> >> Check the substacks of your mainstack. If revCursors is in there, delete it. >> > > Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 6 22:46:32 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 7 Jul 2023 12:46:32 +1000 Subject: A stack "revCursors" is already in memory. In-Reply-To: References: Message-ID: <9BB2DC6B-9524-4193-AF2D-35F418BDDE57@optusnet.com.au> Paul Are you launching a stack that has previously been made into a standalone? Some time ago very often when I created a standalone it added copies of the built-in revCursors stack(s) as substacks of my stack. Before I noticed this subsequent standalone builds could add multiple copies all with the same name. And then I would get that message when the stack was launched, since the copies conflicted with the original versions that the IDE needs. I never quite pinned down what caused the insertion, so couldn’t report it as a bug, and I haven’t seen it in recent versions of LiveCode. The solution was to use the project browser to list all the substacks of the stack and simply delete the nugatory copies of revCursors. As I recall there was some extra step such as renaming the substack before deleting, perhaps only necessary in the case there were multiple copies, so as to not to confuse the delete command. Neville > On 7 Jul 2023, at 2:00 am, use-livecode-request at lists.runrev.com wrote: > > A stack "revCursors" is already in memory. From bobsneidar at iotecdigital.com Fri Jul 7 11:43:20 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 7 Jul 2023 15:43:20 +0000 Subject: A stack "revCursors" is already in memory. In-Reply-To: References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> Message-ID: Correction: revSaveAsStandalone. Not even sure that is it though. For some reason I removed the bits of code where I was using this. Putting revSaveAsStandalone in the dialog box produces nothing, so it may be a global that gets created when a standalone is being built, and gets deleted when done. Bob S > On Jul 6, 2023, at 3:39 PM, Bob Sneidar via use-livecode wrote: > > Well….. > > What happens is that when you build an app, every stack it uses will be opened in the IDE, ostensibly to determine what inclusions are necessary. I have seen where the version of the stack that is open AFTER building the standalone is the one in the STANDALONE! So if you continue to use the IDE or try to build another app, you will get that conflict. That *may* be what you are experiencing, although that may have been addressed in 9.6.9 or some subsequent release. > > To avoid this altogether, I quit the IDE every time I build an app per platform so I do not encounter that. The first time it happened, I saved my stack and it replaced all the references to the stack files with the version from the standalone! I had a hell of a time cleaning it up! > > There is code you can put at the beginning of certain handlers like preOpenCard where you can check the value of the global variable reSaveAsStandalone (or something like that) and then exit accordingly, I forget the list of handlers you need to use this on. I think preOpenCard, preOpenstack, openCard and openStack. But if you do this, then you cannot use the Auto Inclusions feature. Really a bummer. > > I suppose you could trap for revSaveAsStandalone in your openCard handler of your main stack, then run a routine that registers all the stacksInUse, then when the standalone finishes, run a routine that closes those stacks by name, then reopens the correct versions, but that is a LOT to have to do for a feature so fundamental as building a standalone. > > Another thing building standalone does is it adds every stack the IDE opens to the recents list! BOOOO!!! BIG BAD BELLOWING BLUSTERY BOOOOOOO!!!!!!! The handler that does that should ITSELF be checking the status of revSaveAsStandalone! > > Bob S > > >> On Jul 6, 2023, at 2:28 PM, Paul Dupuis via use-livecode wrote: >> >> On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: >>> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >>>> I have a new Livecode 9.6.9 install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: >>>> >>>> A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. >>>> >>>> Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. >>> >>> I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. >>> >>> Check the substacks of your mainstack. If revCursors is in there, delete it. >>> >> >> Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 7 11:46:19 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 7 Jul 2023 15:46:19 +0000 Subject: A stack "revCursors" is already in memory. In-Reply-To: References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> Message-ID: Hmmm… the global variable revSaveAsStandalone does not seem to be available anymore, or is it a global created at build time, then deleted when done? Bob S > On Jul 6, 2023, at 3:39 PM, Bob Sneidar wrote: > > Well….. > > What happens is that when you build an app, every stack it uses will be opened in the IDE, ostensibly to determine what inclusions are necessary. I have seen where the version of the stack that is open AFTER building the standalone is the one in the STANDALONE! So if you continue to use the IDE or try to build another app, you will get that conflict. That *may* be what you are experiencing, although that may have been addressed in 9.6.9 or some subsequent release. > > To avoid this altogether, I quit the IDE every time I build an app per platform so I do not encounter that. The first time it happened, I saved my stack and it replaced all the references to the stack files with the version from the standalone! I had a hell of a time cleaning it up! > > There is code you can put at the beginning of certain handlers like preOpenCard where you can check the value of the global variable reSaveAsStandalone (or something like that) and then exit accordingly, I forget the list of handlers you need to use this on. I think preOpenCard, preOpenstack, openCard and openStack. But if you do this, then you cannot use the Auto Inclusions feature. Really a bummer. > > I suppose you could trap for revSaveAsStandalone in your openCard handler of your main stack, then run a routine that registers all the stacksInUse, then when the standalone finishes, run a routine that closes those stacks by name, then reopens the correct versions, but that is a LOT to have to do for a feature so fundamental as building a standalone. > > Another thing building standalone does is it adds every stack the IDE opens to the recents list! BOOOO!!! BIG BAD BELLOWING BLUSTERY BOOOOOOO!!!!!!! The handler that does that should ITSELF be checking the status of revSaveAsStandalone! > > Bob S > > >> On Jul 6, 2023, at 2:28 PM, Paul Dupuis via use-livecode wrote: >> >> On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: >>> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >>>> I have a new Livecode 9.6.9 install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: >>>> >>>> A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. >>>> >>>> Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. >>> >>> I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. >>> >>> Check the substacks of your mainstack. If revCursors is in there, delete it. >>> >> >> Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From bobcole at mac.com Fri Jul 7 12:14:24 2023 From: bobcole at mac.com (Robert Cole) Date: Fri, 7 Jul 2023 11:14:24 -0500 Subject: use-livecode Digest, Vol 237, Issue 17 Message-ID: Mike: I have created a SVG from a signature widget. Please see a sample start on the forum at https://forums.livecode.com/viewtopic.php?f=8&t=37299#p217928 Hope this helps. Bob > On Jun 22, 2023, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > Message: 2 > Date: Wed, 21 Jun 2023 16:52:23 -0400 > From: Mike Kerner > > To: How to use LiveCode > > Subject: signature widget > Message-ID: > > > Content-Type: text/plain; charset="UTF-8" > > i finally have a use-case for the signature widget. > * has anyone used it? > * does anyone have experiencing transporting the signature data, then > recreating it, say, by adding it to a document, or generating an svg > file? From MikeKerner at roadrunner.com Mon Jul 10 11:29:04 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 10 Jul 2023 11:29:04 -0400 Subject: bored LC nerd looking for projects Message-ID: ok, i'm bored. not unemployed, just bored. i'm actually considering working on my novel again. does anyone know of any lc projects in need of help-for-hire, saving the world from awful, contrived prose? -- 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 rdimola at evergreeninfo.net Mon Jul 10 12:25:52 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 10 Jul 2023 12:25:52 -0400 Subject: [OT ish] Visual Code Editor and Line Endings Message-ID: <002601d9b34b$3586dc10$a0949430$@net> Beware! I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. Code does not support CR line endings. I received a text file that was output from InDesign(latest version). I made a minor change in the text file. I processed it with a program that had been around for years. I sent the processed file to the customer and results were disastrous. Unknown to me all the LFs in the file were changed without warning to line endings. Apparently VC only has 2 line ending options LF and CRLF but not CR. Apparently I'm not the first to get bitten by this. An enhancement request to support CR line endings has been around for 5 years and not addressed. Seem like a simple fix, but what do I know about VC's internals. Hope this prevents one of you from getting bitten.. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Mon Jul 10 16:09:02 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 10 Jul 2023 20:09:02 +0000 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <002601d9b34b$3586dc10$a0949430$@net> References: <002601d9b34b$3586dc10$a0949430$@net> Message-ID: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. One of a hundred things that upset me about Microsoft. Bob S > On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode wrote: > > Beware! > > > > I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. > > Code does not support CR line endings. I received a text file that was > output from InDesign(latest version). I made a minor change in the text > file. I processed it with a program that had been around for years. I sent > the processed file to the customer and results were disastrous. Unknown to > me all the LFs in the file were changed without warning to line endings. > Apparently VC only has 2 line ending options LF and CRLF but not CR. > Apparently I'm not the first to get bitten by this. An enhancement request > to support CR line endings has been around for 5 years and not addressed. > Seem like a simple fix, but what do I know about VC's internals. > > > > Hope this prevents one of you from getting bitten.. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 10 16:11:56 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 10 Jul 2023 15:11:56 -0500 Subject: Solved: Writing to Mac Application Support folder Message-ID: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. 3. The path to the container is in ~/Library/Containers// We don't have a specialFolderPath for that, so here's how I did it: put specialFolderPath("support") into tContainer set the itemdel to slash put "Containers/your.bundle.id/" into last item of tContainer if there is no folder tContainer then create folder tContainer if the result <> empty then log "Create container:" && the result end if put tContainer & "yourFileName.ext" into tPath This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Tue Jul 11 07:28:13 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 07:28:13 -0400 Subject: Livecode 10.0.0dp5 new reserved words Message-ID: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> Does anyone, including folks at the mothership, have a list of new reserved words in Livecode 10? I have used a variable called "tExt" (t for temp, Ext for extension)  to pull of the file extension from file paths. i.e. if tFile contains "C:/users/paul/desktop/image.png" set itemDel to "." put last item of tFile into tExt -- tExt contains "png" However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears to be a reserved work and you can not use it as a variable. This is not true in LC 9.6.9.  This has me asking: Are there any other new reserved words I should refactor out of my code before I get mysterious errors? From mark at livecode.com Tue Jul 11 08:01:40 2023 From: mark at livecode.com (Mark Waddingham) Date: Tue, 11 Jul 2023 13:01:40 +0100 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> Message-ID: <8d4af0290da8c9afdc283119b52d5434@livecode.com> On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote: > Does anyone, including folks at the mothership, have a list of new > reserved words in Livecode 10? > > I have used a variable called "tExt" (t for temp, Ext for extension)  > to pull of the file extension from file paths. i.e. if tFile contains > "C:/users/paul/desktop/image.png" > > set itemDel to "." > put last item of tFile into tExt -- tExt contains "png" > > However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears > to be a reserved work and you can not use it as a variable. This is not > true in LC 9.6.9.  This has me asking: Are there any other new reserved > words I should refactor out of my code before I get mysterious errors? I don't think we knowingly made 'text' not be allowed as a variable in non-explicitVariables mode... You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I think) ever - but it obviously worked in 9.6.x and before if you don't use explicitVariables. I'm not sure what change we've made which has caused that - file a bug and we'll look into it - its probably a regression, but could be a (necessary, but unrealized) side-effect of another change we've made internally. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From mkoob at rogers.com Tue Jul 11 08:04:22 2023 From: mkoob at rogers.com (Martin Koob) Date: Tue, 11 Jul 2023 08:04:22 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> Message-ID: <9F011A00-9E10-4ED5-B540-14DFD6474218@rogers.com> Hi Paul, I remember that at a workshop or meeting, a few years PCE* it was says by someone from LiveCode (although possibly RunRev at the time) by Mark W (I think but I could be wrong but definitely from the mothership) that ‘All words in the English Dictionary should be considered reserved words.’ Or something to that effect. The rationale was that even though LiveCode does not use the words in its vocabulary currently It may in the future. (Can someone else corroborate my vague memory of this?) So with that in mind even though tExt is camelCase and visually does not appear to be a word livecode does not consider case so it sees it as ’text’ which is a word in the English dictionary and also one that would more likely be a part of LiveCode’s future lexicon ( more so than perhaps Oxford’s word of the year. https://languages.oup.com/word-of-the-year/2022/ Although I think it would be cool to have ‘goblin mode’ as a LiveCode word. e.g. command relaxHygieneStandards set goblin mode to “severe” end relaxHygieneStandards command restoreHygieneStandards set goblin mode to “false” end restoreHygieneStandards In any case the advice as to best practice was to never use an English dictionary word as the name of a variable in order to future proof your application should the MotherShip decide to add a new term from the English dictionary to the LiveCode lexicon. So in your case it would be better to use something like tExtn or even tExtension. Martin *PCE (Pre COVID Era) > On Jul 11, 2023, at 7:28 AM, Paul Dupuis via use-livecode wrote: > > Does anyone, including folks at the mothership, have a list of new reserved words in Livecode 10? > > I have used a variable called "tExt" (t for temp, Ext for extension) to pull of the file extension from file paths. i.e. if tFile contains "C:/users/paul/desktop/image.png" > > set itemDel to "." > put last item of tFile into tExt -- tExt contains "png" > > However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears to be a reserved work and you can not use it as a variable. This is not true in LC 9.6.9. This has me asking: Are there any other new reserved words I should refactor out of my code before I get mysterious errors? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Jul 11 08:20:12 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 08:20:12 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <8d4af0290da8c9afdc283119b52d5434@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> Message-ID: On 7/11/2023 8:01 AM, Mark Waddingham via use-livecode wrote: > On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote: >> Does anyone, including folks at the mothership, have a list of new >> reserved words in Livecode 10? >> >> I have used a variable called "tExt" (t for temp, Ext for extension)  >> to pull of the file extension from file paths. i.e. if tFile contains >> "C:/users/paul/desktop/image.png" >> >> set itemDel to "." >> put last item of tFile into tExt -- tExt contains "png" >> >> However, in LC 10.0.0dp5, the word "tExt" (which is "text") now >> appears to be a reserved work and you can not use it as a variable. >> This is not true in LC 9.6.9.  This has me asking: Are there any >> other new reserved words I should refactor out of my code before I >> get mysterious errors? > > I don't think we knowingly made 'text' not be allowed as a variable in > non-explicitVariables mode... > > You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I > think) ever - but it obviously worked in 9.6.x and before if you don't > use explicitVariables. > > I'm not sure what change we've made which has caused that - file a bug > and we'll look into it - its probably a regression, but could be a > (necessary, but unrealized) side-effect of another change we've made > internally. > > Warmest Regards, > > Mark. > Thank you! Bug filed: https://quality.livecode.com/show_bug.cgi?id=24266 I am fine changing 'tExt'. As Martin just posted, All words in the English Dictionary should be considered reserved words. is not a bad rule. Just to illustrate how the eyes and mind can play tricks, I have been using the variable 'tExt' for parsing file extensions for DECADES and ONLY TODAY realized that it was the word 'text'! I never saw it as a dictionary word until today! From mark at livecode.com Tue Jul 11 08:26:31 2023 From: mark at livecode.com (Mark Waddingham) Date: Tue, 11 Jul 2023 13:26:31 +0100 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> Message-ID: <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> On 2023-07-11 13:20, Paul Dupuis via use-livecode wrote: > Thank you! Bug filed: > https://quality.livecode.com/show_bug.cgi?id=24266 > > I am fine changing 'tExt'. As Martin just posted, All words in the > English Dictionary should be considered reserved words. is not a bad > rule. Just to illustrate how the eyes and mind can play tricks, I have > been using the variable 'tExt' for parsing file extensions for DECADES > and ONLY TODAY realized that it was the word 'text'! I never saw it as > a dictionary word until today! Yeah - Martin is correct that the rule about words in the English dictionary should all be considered reserved is still very much in force, and has been around longer than I've worked here! Cases of using 'tExt' is not uncommon - as it is really difficult to see that it is 'text'... Another one (which bit Ali recently) is `pLayer'. I'm sure there are a fair few other examples. Anyway, we'll try and figure out what has changed to cause the change in behavior - at the very least we can go back and add a 'breaking change' warning to the release note for the change which caused the issue. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From klaus at major-k.de Tue Jul 11 09:04:44 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 15:04:44 +0200 Subject: Search for an app in Google Play Store Message-ID: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> Hi friends, strange results whjen searching a german app in the Google Playstore. We have an app namde -> Sehen - Hören - Merken in the Apple and Google store. iOS Android However it is not easy to find the app in Google be it on the PC/Mac (via browser URL: https://play.google.com/store) or on an Android Device with the Googgle app: 1. If I enter -> Sehen - Hören App is found 2. If I enter its full name: Sehen - Hören - Merken NO results 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app App is found. Any hintst that may shed some light on this phenomenon very appreciated. Thank a lot in advance! Best Klaus -- 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 Tue Jul 11 09:34:21 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 11 Jul 2023 15:34:21 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> Message-ID: <5405C039-911D-4309-8474-40DFD1F3B3C5@m-r-d.de> Much better.... if i enter Sehen Hören Merkn or sehen-hören-merkn or sehen - hören - merkn the app is found and listed at first if i enter Sehen Hören Merken or sehen-hören-merk or sehen hören merk or sehen - hören - merken the app is also not found. > Am 11.07.2023 um 15:04 schrieb Klaus major-k via use-livecode : > > Hi friends, > > strange results whjen searching a german app in the Google Playstore. > We have an app namde -> Sehen - Hören - Merken > in the Apple and Google store. > iOS > > Android > > > However it is not easy to find the app in Google be it on the PC/Mac > (via browser URL: https://play.google.com/store) or on an Android Device > with the Googgle app: > 1. If I enter -> Sehen - Hören > App is found > > 2. If I enter its full name: Sehen - Hören - Merken > NO results > > 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app > App is found. > > Any hintst that may shed some light on this phenomenon very appreciated. > Thank a lot 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 klaus at major-k.de Tue Jul 11 09:42:19 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 15:42:19 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <5405C039-911D-4309-8474-40DFD1F3B3C5@m-r-d.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <5405C039-911D-4309-8474-40DFD1F3B3C5@m-r-d.de> Message-ID: <3FE9EF08-3C2F-47C9-B9BB-00EC7DCE5992@major-k.de> Hi Matthias, > Am 11.07.2023 um 15:34 schrieb matthias rebbe via use-livecode : > > Much better.... > if i enter > Sehen Hören Merkn > or > sehen-hören-merkn > or > sehen - hören - merkn > the app is found and listed at first YO!? merkn, oh my, oh my... :-D Thanks for testing! > if i enter > Sehen Hören Merken > or > sehen-hören-merk > or > sehen hören merk > or > sehen - hören - merken > the app is also not found. Molto mysterioso... So I guess there are no search-regularities of any kind here? >> Am 11.07.2023 um 15:04 schrieb Klaus major-k via use-livecode : >> >> Hi friends, >> >> strange results whjen searching a german app in the Google Playstore. >> We have an app namde -> Sehen - Hören - Merken >> in the Apple and Google store. >> iOS >> >> Android >> >> >> However it is not easy to find the app in Google be it on the PC/Mac >> (via browser URL: https://play.google.com/store) or on an Android Device >> with the Googgle app: >> 1. If I enter -> Sehen - Hören >> App is found >> >> 2. If I enter its full name: Sehen - Hören - Merken >> NO results >> >> 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app >> App is found. >> >> Any hintst that may shed some light on this phenomenon very appreciated. >> Thank a lot in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Tue Jul 11 10:56:32 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 10:56:32 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> Message-ID: <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> On 7/11/2023 8:26 AM, Mark Waddingham via use-livecode wrote: > Cases of using 'tExt' is not uncommon - as it is really difficult to > see that it is 'text'... Another one (which bit Ali recently) is > `pLayer'. I'm sure there are a fair few other examples. > Ouch! 'pLayer' is another I'd better check for. I may have used that as well! From bobsneidar at iotecdigital.com Tue Jul 11 11:20:26 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 15:20:26 +0000 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <8d4af0290da8c9afdc283119b52d5434@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> Message-ID: <9CD045C4-C74C-41B2-A2D8-23A52163503F@iotecdigital.com> Or… he could just go through his code using the find utility and replace every instance of tExt with tExtension. :-) Bob S On Jul 11, 2023, at 5:01 AM, Mark Waddingham via use-livecode wrote: On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote: Does anyone, including folks at the mothership, have a list of new reserved words in Livecode 10? I have used a variable called "tExt" (t for temp, Ext for extension) to pull of the file extension from file paths. i.e. if tFile contains "C:/users/paul/desktop/image.png" set itemDel to "." put last item of tFile into tExt -- tExt contains "png" However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears to be a reserved work and you can not use it as a variable. This is not true in LC 9.6.9. This has me asking: Are there any other new reserved words I should refactor out of my code before I get mysterious errors? I don't think we knowingly made 'text' not be allowed as a variable in non-explicitVariables mode... You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I think) ever - but it obviously worked in 9.6.x and before if you don't use explicitVariables. I'm not sure what change we've made which has caused that - file a bug and we'll look into it - its probably a regression, but could be a (necessary, but unrealized) side-effect of another change we've made internally. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From bobsneidar at iotecdigital.com Tue Jul 11 11:26:07 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 15:26:07 +0000 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> Message-ID: <1FBAA64A-E124-4289-B8DB-5539C4CE4922@iotecdigital.com> Interesting. The reason I’ve never been bit by this I think, is that I like to use more descriptive variables. For instance, I might have use tFileExt. I think I got that from one of the articles (or lessons or books) from one of the Livecode contributors, that variable names should be as descriptive as possible of their purpose. I am still tempted to try and shorten my variable names though. Bob S > On Jul 11, 2023, at 7:56 AM, Paul Dupuis via use-livecode wrote: > > On 7/11/2023 8:26 AM, Mark Waddingham via use-livecode wrote: >> Cases of using 'tExt' is not uncommon - as it is really difficult to see that it is 'text'... Another one (which bit Ali recently) is `pLayer'. I'm sure there are a fair few other examples. >> > > Ouch! 'pLayer' is another I'd better check for. I may have used 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 jacque at hyperactivesw.com Tue Jul 11 11:31:56 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Jul 2023 10:31:56 -0500 Subject: Search for an app in Google Play Store In-Reply-To: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> Message-ID: <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> My client had similar results where the name of the app was not found. It could be found by searching for the company name though. We couldn't explain it. Some weeks later it suddenly could be found normally by its name. I don't know how the search algorithm works, maybe it takes some time to populate. --- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 11, 2023 8:06:18 AM Klaus major-k via use-livecode wrote: > Hi friends, > > strange results whjen searching a german app in the Google Playstore. > We have an app namde -> Sehen - Hren - Merken > in the Apple and Google store. > iOS > > Android > > > However it is not easy to find the app in Google be it on the PC/Mac > (via browser URL: https://play.google.com/store) or on an Android Device > with the Googgle app: > 1. If I enter -> Sehen - Hren > App is found > > 2. If I enter its full name: Sehen - Hren - Merken > NO results > > 3. If I enter its full name and its file externsion: Sehen - Hren - Merke.app > App is found. > > Any hintst that may shed some light on this phenomenon very appreciated. > Thank a lot 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 rdimola at evergreeninfo.net Tue Jul 11 12:16:31 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 11 Jul 2023 12:16:31 -0400 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: <004901d9b413$11342a70$339c7f50$@net> Bob, Know what you mean. Another program that's been running for years failed last week because MS changed the behavior of Excel in 365. Customer received the very useful error "Run-time error '1004' Unable to update the FreezePanes property of the windows class". 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, July 10, 2023 4:09 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: [OT ish] Visual Code Editor and Line Endings Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. One of a hundred things that upset me about Microsoft. Bob S > On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode wrote: > > Beware! > > > > I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. > > Code does not support CR line endings. I received a text file that was > output from InDesign(latest version). I made a minor change in the > text file. I processed it with a program that had been around for > years. I sent the processed file to the customer and results were > disastrous. Unknown to me all the LFs in the file were changed without warning to line endings. > Apparently VC only has 2 line ending options LF and CRLF but not CR. > Apparently I'm not the first to get bitten by this. An enhancement > request to support CR line endings has been around for 5 years and not addressed. > Seem like a simple fix, but what do I know about VC's internals. > > > > Hope this prevents one of you from getting bitten.. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Jul 11 12:27:11 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 12:27:11 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <9CD045C4-C74C-41B2-A2D8-23A52163503F@iotecdigital.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <9CD045C4-C74C-41B2-A2D8-23A52163503F@iotecdigital.com> Message-ID: On 7/11/2023 11:20 AM, Bob Sneidar via use-livecode wrote: > Or he could just go through his code using the find utility and replace every instance of tExt with tExtension. :-) > > Yes, I plan to: tExt = t Ext = TEXT  > tFileExtension pLayer = p Layer = PLAYER > tObjectLayer etc. From ahsoftware at sonic.net Tue Jul 11 12:54:53 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 11 Jul 2023 09:54:53 -0700 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> Message-ID: <90888ad7-cd45-58c2-4e1e-9858607a5b8a@sonic.net> On 7/11/23 07:56, Paul Dupuis via use-livecode wrote: > On 7/11/2023 8:26 AM, Mark Waddingham via use-livecode wrote: >> Cases of using 'tExt' is not uncommon - as it is really difficult to >> see that it is 'text'... Another one (which bit Ali recently) is >> `pLayer'. I'm sure there are a fair few other examples. I'm not sure this is a bug that should be "fixed" other than with the breaking change warning as MW mentioned. > Ouch! 'pLayer' is another I'd better check for. I may have used that as > well! Of course neither tExt nor pLayer would be a problem if you enabled explicitVariables ("strict compilation mode" in LC preferences). If you tried to script that as a variable you'd get the compilation error not a valid variable or constant name -- Mark Wieder ahsoftware at gmail.com From mark at livecode.com Tue Jul 11 13:09:08 2023 From: mark at livecode.com (Mark Waddingham) Date: Tue, 11 Jul 2023 18:09:08 +0100 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> Message-ID: <6d94f65db7307fb8886ebeef55cabfa2@livecode.com> On 2023-07-11 13:26, Mark Waddingham via use-livecode wrote: > Anyway, we'll try and figure out what has changed to cause the change > in behavior - at the very least we can go back and add a 'breaking > change' warning to the release note for the change which caused the > issue. Okay so after a bit of digging I can confirm that this is down to an unintended consequence of implementation constant expressions. The behavior prior to that feature was: You are allowed to assign and evaluate variables whose name is the same as property keywords which can only appear as object properties (i.e. require an OF afterwards) and are not also constant keywords ('left' and 'right' I think are the only two which are object properties and constants). Further, if explicitVariables is true then you cannot declare such variables, but you can evaluate them. (In this case, they would act as unquoted literals - you can still assign indirectly using do with explicitVars turned off at the time of the do). The reason it was changed was to fix a problem with the constants 'left' and 'right' being used in constant initializer expressions - but at the expense of object only properties not being able to be variables. That problem needs to be resolved in a different way. So this is a bug/regression - not so much because of the use of 'tExt' (text) but because scripts which use any object property keyword as a variable name will break. As many object property keywords are not dictionary words - but compounds or contractions - this means that even scripts which conform to the long standing rule could fall foul. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From bobsneidar at iotecdigital.com Tue Jul 11 14:19:55 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 18:19:55 +0000 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: For what it’s worth, I use SublimeText which has linters for both Livecode Script and Livecode Builder that were so graciously provided by Trevor Devore. Not sure how many people know it, but we have a Datagrid and also sqlYoga because of Trevor. Bob S On Jul 10, 2023, at 1:08 PM, Bob Sneidar wrote: Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. One of a hundred things that upset me about Microsoft. Bob S From klaus at major-k.de Tue Jul 11 14:46:51 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 20:46:51 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> Hi Jacques, > Am 11.07.2023 um 17:31 schrieb J. Landman Gay via use-livecode : > > My client had similar results where the name of the app was not found. It could be found by searching for the company name though. > We couldn't explain it. Some weeks later it suddenly could be found normally by its name. the apps are in the stores since february... > I don't know how the search algorithm works, maybe it takes some time to populate. See above, well, that should be finished already. 8-) > --- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 11, 2023 8:06:18 AM Klaus major-k via use-livecode wrote: > >> Hi friends, >> >> strange results whjen searching a german app in the Google Playstore. >> We have an app namde -> Sehen - Hören - Merken >> in the Apple and Google store. >> iOS >> >> Android >> >> >> However it is not easy to find the app in Google be it on the PC/Mac >> (via browser URL: https://play.google.com/store) or on an Android Device >> with the Googgle app: >> 1. If I enter -> Sehen - Hören >> App is found >> >> 2. If I enter its full name: Sehen - Hören - Merken >> NO results >> >> 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app >> App is found. >> >> Any hintst that may shed some light on this phenomenon very appreciated. >> Thank a lot in advance! 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 Tue Jul 11 15:32:32 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Jul 2023 14:32:32 -0500 Subject: Search for an app in Google Play Store In-Reply-To: <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> Message-ID: On 7/11/23 1:46 PM, Klaus major-k via use-livecode wrote: >> I don't know how the search algorithm works, maybe it takes some time to populate. > See above, well, that should be finished already. 8-) > You could try writing to support and see if they can tell you what's wrong. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Tue Jul 11 15:44:45 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 21:44:45 +0200 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> Message-ID: <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Hi Jacques, > Am 11.07.2023 um 21:32 schrieb J. Landman Gay via use-livecode : > > On 7/11/23 1:46 PM, Klaus major-k via use-livecode wrote: >>> I don't know how the search algorithm works, maybe it takes some time to populate. >> See above, well, that should be finished already. 8-) > You could try writing to support and see if they can tell you what's wrong. yes, worth a try, do you have the supports email address? > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at livecode.org Tue Jul 11 15:54:47 2023 From: paul at livecode.org (Paul Hibbert) Date: Tue, 11 Jul 2023 12:54:47 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: Thank you for sharing. That’s a very useful snippet to save for the future. Paul > On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: > > After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. > > In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. > > 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. > > 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. > > 3. The path to the container is in ~/Library/Containers// > > We don't have a specialFolderPath for that, so here's how I did it: > > put specialFolderPath("support") into tContainer > set the itemdel to slash > put "Containers/your.bundle.id/" into last item of tContainer > if there is no folder tContainer then > create folder tContainer > if the result <> empty then log "Create container:" && the result > end if > put tContainer & "yourFileName.ext" into tPath > > This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. > > Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. > > -- > 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 Paul paul at livecode.org macOS Mojave 10.14 From marksmithhfx at gmail.com Tue Jul 11 16:21:57 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 11 Jul 2023 21:21:57 +0100 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: <82651319-13C7-4EBA-B15C-EA06B4EF33F3@gmail.com> Speaking of editors. Does anyone know if there is a list of all the colours used in the LC editor, and what they represent? (some are obvious, others less so) Thanks > On 11 Jul 2023, at 7:19 pm, Bob Sneidar via use-livecode wrote: > > For what it’s worth, I use SublimeText which has linters for both Livecode Script and Livecode Builder that were so graciously provided by Trevor Devore. Not sure how many people know it, but we have a Datagrid and also sqlYoga because of Trevor. > > Bob S > > > On Jul 10, 2023, at 1:08 PM, Bob Sneidar wrote: > > Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. > > It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? > > Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. > > One of a hundred things that upset me about Microsoft. > > 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 MikeKerner at roadrunner.com Tue Jul 11 16:27:48 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 11 Jul 2023 16:27:48 -0400 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: and levure quickbooks also provides amazingly useless errors, especially when you are trying to import data. On Tue, Jul 11, 2023 at 2:21 PM Bob Sneidar via use-livecode wrote: > > For what it’s worth, I use SublimeText which has linters for both Livecode Script and Livecode Builder that were so graciously provided by Trevor Devore. Not sure how many people know it, but we have a Datagrid and also sqlYoga because of Trevor. > > Bob S > > > On Jul 10, 2023, at 1:08 PM, Bob Sneidar wrote: > > Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. > > It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? > > Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. > > One of a hundred things that upset me about Microsoft. > > 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 -- 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 bobsneidar at iotecdigital.com Tue Jul 11 19:00:21 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 23:00:21 +0000 Subject: Get the nested behaviors of an object Message-ID: <5DE89A6F-E508-4F42-9E5C-04CE1E623634@iotecdigital.com> Hi all. I’ve got me doots, as Richmond would say, but is there a way to get (and even better SET) the nested behaviors of an object? Now that nested behaviors work for Datagrids, actually *setting* the nested behavior is problematic. There is no place to actually set it in the Datagrid properties, like there is in the properties of other objects. Bob S From bobsneidar at iotecdigital.com Tue Jul 11 19:15:47 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 23:15:47 +0000 Subject: Get the nested behaviors of an object In-Reply-To: <5DE89A6F-E508-4F42-9E5C-04CE1E623634@iotecdigital.com> References: <5DE89A6F-E508-4F42-9E5C-04CE1E623634@iotecdigital.com> Message-ID: <04012655-FCB9-4629-AEDE-2AF2F9852AE9@iotecdigital.com> Actually I can set the behavior of a Datagrid via the message box, so that’s okay, but it would be nice to have a property called the nestedBehaviors or something akin. I can probably write a function to iterate through the behaviors to get it and in the reverse to set it. I’ll give that a go. Bob S On Jul 11, 2023, at 4:00 PM, Bob Sneidar via use-livecode wrote: Hi all. I’ve got me doots, as Richmond would say, but is there a way to get (and even better SET) the nested behaviors of an object? Now that nested behaviors work for Datagrids, actually *setting* the nested behavior is problematic. There is no place to actually set it in the Datagrid properties, like there is in the properties of other objects. Bob S From benr_mc at cogapp.com Wed Jul 12 05:34:49 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 12 Jul 2023 10:34:49 +0100 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> I agree that the behaviour of the editors is very annoying. But LC is also needs to get with the program. On the positive side, it interprets any combination of LF, CR, CRLF as a line break when reading a file as text. But it persists in writing text files with a platform dependent encoding of line breaks, which on macOS (where the system default is LF) is still CR. As I wrote in https://quality.livecode.com/show_bug.cgi?id=17774: > As near as I can tell, Metacard introduced support for Mac around 1993 > (? -happy to be corrected). So MC/Rev/LC has already been writing the 'wrong' > files for twice as long as it was writing the 'right' ones (based on MacOS X > introduced in 2001). At what point can we change? If not now, when? But I was excited just now to see this: https://quality.livecode.com/show_bug.cgi?id=23943 Is it possible that the long reign of CR terror may soon be over? Ben On 10/07/2023 21:09, Bob Sneidar via use-livecode wrote: > Code is not the only editor to assume you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. > > It is in my opinion a serious violation of trust on Microsofts part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? > > Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will corrupt the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. > > One of a hundred things that upset me about Microsoft. > > Bob S > >> On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode wrote: >> >> Beware! >> >> >> >> I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. >> >> Code does not support CR line endings. I received a text file that was >> output from InDesign(latest version). I made a minor change in the text >> file. I processed it with a program that had been around for years. I sent >> the processed file to the customer and results were disastrous. Unknown to >> me all the LFs in the file were changed without warning to line endings. >> Apparently VC only has 2 line ending options LF and CRLF but not CR. >> Apparently I'm not the first to get bitten by this. An enhancement request >> to support CR line endings has been around for 5 years and not addressed. >> Seem like a simple fix, but what do I know about VC's internals. >> >> >> >> Hope this prevents one of you from getting bitten.. >> >> >> >> Ralph DiMola >> >> IT Director >> >> Evergreen Information Services >> >> rdimola at evergreeninfo.net >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Wed Jul 12 14:19:09 2023 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Jul 2023 18:19:09 +0000 Subject: Stylized Text on Mobile In-Reply-To: <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> Message-ID: Just want to make sure I’m not missing something… there is no method to enter, display or edit stylized text in a native mobile text control (or the widget). Is this true? If so, has anyone got a workaround? Kinda hard to believe that this is the case?! Then again, LC doesn’t have justified text. Sorry for the rant… LiveCode does SO MUCH that when you run into these seemingly core items that aren’t there, it’s a bit puzzling and frustrating. -Dan From jacque at hyperactivesw.com Wed Jul 12 18:15:27 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 12 Jul 2023 17:15:27 -0500 Subject: Stylized Text on Mobile In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> Message-ID: On 7/12/23 1:19 PM, Dan Friedman via use-livecode wrote: > Just want to make sure I’m not missing something… there is no method to enter, display or edit stylized text in a native mobile text control (or the widget). Is this true? If so, has anyone got a workaround? You can use a regular LC field for display and some editing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Wed Jul 12 18:21:57 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 12 Jul 2023 18:21:57 -0400 Subject: Field highlited Message-ID: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. OR There should be a feature enhancement: set the preserveHighlight of field X to true That keeps the highlighted selection unless or until you make a new one in that field From dan at clearvisiontech.com Wed Jul 12 18:49:48 2023 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Jul 2023 22:49:48 +0000 Subject: Stylized Text on Mobile In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> Message-ID: Jacque, Yes, I know that. But that’s kinda a hack… looking to use the native copy/paste and text editing features that we have all come to expect in even the most basic and simplistic apps. -Dan From: use-livecode on behalf of J. Landman Gay via use-livecode Date: Wednesday, July 12, 2023 at 3:17 PM To: How to use LiveCode Cc: J. Landman Gay Subject: Re: Stylized Text on Mobile On 7/12/23 1:19 PM, Dan Friedman via use-livecode wrote: > Just want to make sure I’m not missing something… there is no method to enter, display or edit stylized text in a native mobile text control (or the widget). Is this true? If so, has anyone got a workaround? You can use a regular LC field for display and some editing. -- 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 neville.smythe at optusnet.com.au Thu Jul 13 04:19:53 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Thu, 13 Jul 2023 18:19:53 +1000 Subject: Convert date Message-ID: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! Neville Smythe From bobsneidar at iotecdigital.com Thu Jul 13 11:22:50 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 15:22:50 +0000 Subject: Convert date In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: <11FBD08F-461A-4341-AE48-0D2CD9D32980@iotecdigital.com> I wrote a formatDate function years ago that called this "sql date". Maybe I should rename it “ISO Date” or just add a case for it. There is also an “sql time” format in the function formatTime. This way you can put format date(the date, “sql date”) && formative(the time, “sql time”) to get an sql datetime format for a database column. They should be in the Master Library. I suppose a lot of things could be done by the engine, but as was discussed years ago, what LC is NOT is a development environment that does almost anything. What it IS is a development environment that has the TOOLS to do almost anything. Bob S On Jul 13, 2023, at 1:19 AM, Neville Smythe via use-livecode wrote: I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! Neville Smythe From bobsneidar at iotecdigital.com Thu Jul 13 11:27:50 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 15:27:50 +0000 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: <67C38ED6-2EBA-4258-8CBE-10B7C852AC5D@iotecdigital.com> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. Bob S > On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: > > I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. > > Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. > > OR > > There should be a feature enhancement: set the preserveHighlight of field X to true > That keeps the highlighted selection unless or until you make a new one in that field From craig at starfirelighting.com Thu Jul 13 12:04:00 2023 From: craig at starfirelighting.com (Craig Newman) Date: Thu, 13 Jul 2023 12:04:00 -0400 Subject: Field highlited In-Reply-To: <67C38ED6-2EBA-4258-8CBE-10B7C852AC5D@iotecdigital.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <67C38ED6-2EBA-4258-8CBE-10B7C852AC5D@iotecdigital.com> Message-ID: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> Paul. I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. Craig > On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: > > I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. > > What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. > > Bob S > > >> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >> >> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >> >> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >> >> OR >> >> There should be a feature enhancement: set the preserveHighlight of field X to true >> That keeps the highlighted selection unless or until you make a new one in that field > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Thu Jul 13 12:50:57 2023 From: prothero at earthlearningsolutions.org (William Prothero) Date: Thu, 13 Jul 2023 09:50:57 -0700 Subject: Field highlited In-Reply-To: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> Message-ID: <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> Folks, A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. Just thinking. Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: > > Paul. > > I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. > > A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. > > I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. > > Craig > >> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >> >> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >> >> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >> >> Bob S >> >> >>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>> >>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>> >>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>> >>> OR >>> >>> There should be a feature enhancement: set the preserveHighlight of field X to true >>> That keeps the highlighted selection unless or until you make a new one in that field >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 13 13:07:04 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 13 Jul 2023 13:07:04 -0400 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: Thank your Bob, Craig, and William for the responses. It appears the way I have done it in the past is the "best" option. I was hoping there was some clever trick I don't know, but it is what it is. I'll do what I have done before. Thanks again. On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: > I've used the "selectionChanged" message to (1) set the background > color of the selection to a highlight color and store the start and > end characters as custom properties of the field. From bobsneidar at iotecdigital.com Thu Jul 13 13:12:17 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 17:12:17 +0000 Subject: Field highlited In-Reply-To: <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> Message-ID: <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> Untested This in a frontScript: on openField put long id of the target into pField set the selection to the savedChunk of pField — if you want to restore the last selection Set the savedChunk of pField to empty pass openField end openField on exitField put the long id of the target into pField set the savedChunk of pField to the selectedChunk pass exitField end exitField Bob S > On Jul 13, 2023, at 9:50 AM, William Prothero via use-livecode wrote: > > Folks, > A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. > > Just thinking. > Bill > > William A. Prothero, PhD > Prof Emeritus, Dept of Earth Science > University of California, Santa Barbara > >> On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: >> >> Paul. >> >> I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. >> >> A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. >> >> I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. >> >> Craig >> >>> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >>> >>> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >>> >>> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >>> >>> Bob S >>> >>> >>>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>>> >>>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>>> >>>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>>> >>>> OR >>>> >>>> There should be a feature enhancement: set the preserveHighlight of field X to true >>>> That keeps the highlighted selection unless or until you make a new one in that field >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 13 13:17:33 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Thu, 13 Jul 2023 18:17:33 +0100 Subject: Convert date In-Reply-To: <11FBD08F-461A-4341-AE48-0D2CD9D32980@iotecdigital.com> References: <11FBD08F-461A-4341-AE48-0D2CD9D32980@iotecdigital.com> Message-ID: Thanks Bob. Sounds very useful. How does one access (or locate) the master library? Cheers, Mark Sent from my iPhone > On Jul 13, 2023, at 4:24 PM, Bob Sneidar via use-livecode wrote: > > I wrote a formatDate function years ago that called this "sql date". Maybe I should rename it “ISO Date” or just add a case for it. There is also an “sql time” format in the function formatTime. This way you can put format date(the date, “sql date”) && formative(the time, “sql time”) to get an sql datetime format for a database column. They should be in the Master Library. > > I suppose a lot of things could be done by the engine, but as was discussed years ago, what LC is NOT is a development environment that does almost anything. What it IS is a development environment that has the TOOLS to do almost anything. > > Bob S > > > On Jul 13, 2023, at 1:19 AM, Neville Smythe via use-livecode wrote: > > I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. > > But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! > > Neville Smythe > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Jul 13 13:20:44 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 17:20:44 +0000 Subject: Field highlited In-Reply-To: <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> Message-ID: Correction: on openField put long id of the target into pField if the savedChunk of pField is not empty then put the savedChunk of pField into tSelection select tSelection Set the savedChunk of pField to empty end if pass openField end openField > On Jul 13, 2023, at 10:12 AM, Bob Sneidar wrote: > > > Untested > > This in a frontScript: > > on openField > put long id of the target into pField > set the selection to the savedChunk of pField — if you want to restore the last selection > Set the savedChunk of pField to empty > pass openField > end openField > > on exitField > put the long id of the target into pField > set the savedChunk of pField to the selectedChunk > pass exitField > end exitField > > Bob S > > >> On Jul 13, 2023, at 9:50 AM, William Prothero via use-livecode wrote: >> >> Folks, >> A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. >> >> Just thinking. >> Bill >> >> William A. Prothero, PhD >> Prof Emeritus, Dept of Earth Science >> University of California, Santa Barbara >> >>> On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: >>> >>> Paul. >>> >>> I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. >>> >>> A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. >>> >>> I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. >>> >>> Craig >>> >>>> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >>>> >>>> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >>>> >>>> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >>>> >>>> Bob S >>>> >>>> >>>>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>>>> >>>>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>>>> >>>>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>>>> >>>>> OR >>>>> >>>>> There should be a feature enhancement: set the preserveHighlight of field X to true >>>>> That keeps the highlighted selection unless or until you make a new one in that field >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Thu Jul 13 13:42:37 2023 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 13 Jul 2023 20:42:37 +0300 Subject: Field highlited In-Reply-To: References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> Message-ID: <223c4f49-b982-1ab6-0158-e983ad7a4c78@gmail.com> I just did this: on mouseLeave    put the selectedText of fld "f1" into fld "f2" end mouseLeave you can then do whatever you want with your button on the basis of the contents of fld "f2" Best, Richmond. On 13.07.23 20:20, Bob Sneidar via use-livecode wrote: > Correction: > > on openField > put long id of the target into pField > if the savedChunk of pField is not empty then > put the savedChunk of pField into tSelection > select tSelection > Set the savedChunk of pField to empty > end if > pass openField > end openField > > >> On Jul 13, 2023, at 10:12 AM, Bob Sneidar wrote: >> >> >> Untested >> >> This in a frontScript: >> >> on openField >> put long id of the target into pField >> set the selection to the savedChunk of pField if you want to restore the last selection >> Set the savedChunk of pField to empty >> pass openField >> end openField >> >> on exitField >> put the long id of the target into pField >> set the savedChunk of pField to the selectedChunk >> pass exitField >> end exitField >> >> Bob S >> >> >>> On Jul 13, 2023, at 9:50 AM, William Prothero via use-livecode wrote: >>> >>> Folks, >>> A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. >>> >>> Just thinking. >>> Bill >>> >>> William A. Prothero, PhD >>> Prof Emeritus, Dept of Earth Science >>> University of California, Santa Barbara >>> >>>> On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: >>>> >>>> Paul. >>>> >>>> I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot remember such a thing. >>>> >>>> A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. >>>> >>>> I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. >>>> >>>> Craig >>>> >>>>> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >>>>> >>>>> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >>>>> >>>>> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >>>>> >>>>> Bob S >>>>> >>>>> >>>>>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>>>>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>>>>> >>>>>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>>>>> >>>>>> OR >>>>>> >>>>>> There should be a feature enhancement: set the preserveHighlight of field X to true >>>>>> That keeps the highlighted selection unless or until you make a new one in that field >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 13 14:18:59 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Thu, 13 Jul 2023 19:18:59 +0100 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> Hi Paul, try “the selectedText". Create a scrolling text field, call it fld1, and put a large amount of text in it. Create 2 buttons: one with “on mouse down, answer “Hello World” and the other with “on mouse down, answer the selectedText of field “fld1” Now highlight an area of text in fld1. Click either button, the highlight in the text does not go away. The first button responds with “Hello World” and the second responds with the highlighted text in fld1. I am using LC 10 if that makes a difference, although just tested in 9.6.8 and it worked there as well. Mark > On 12 Jul 2023, at 11:21 pm, Paul Dupuis via use-livecode wrote: > > I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. > > Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. > > OR > > There should be a feature enhancement: set the preserveHighlight of field X to true > That keeps the highlighted selection unless or until you make a new one in that field > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 13 15:58:23 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 14:58:23 -0500 Subject: Field highlited In-Reply-To: <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> Message-ID: <5920d18b-c4a1-3e66-aa3a-6987e488b876@hyperactivesw.com> On 7/13/23 1:18 PM, Mark Smith via use-livecode wrote: > Hi Paul, try “the selectedText". Whaddya know...it works! Another way is to turn off traversalOn in the button. That prevents the focus from changing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at gmail.com Thu Jul 13 16:03:07 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 13 Jul 2023 13:03:07 -0700 Subject: Crazy question: is it possible/reasonable to use Python in LC? Message-ID: I've been playing with Python, and it has a lot of nice qualities, but a built-in GUI isn't one of them (no apologies to tkinter). So it would be interesting/nice to be able to open LC, add a button to a stack, and put some python into the script of that button and have it just work, with access to the rest of the LC stack/controls as usual. Obviously that's not possible, but how close can we come? I assume it would be possible to write a shell command to trigger a python script, but that seems complex and sub-optimal, especially when thinking about having to bundle together all the bits and bobs from the LC UI to pass as arguments to the Python script instead of having it able to just reference what it needs on the fly. Anyway, wondering if anyone else has thought about this. gc From MikeKerner at roadrunner.com Thu Jul 13 16:23:24 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 13 Jul 2023 16:23:24 -0400 Subject: Crazy question: is it possible/reasonable to use Python in LC? In-Reply-To: References: Message-ID: there are no crazy questions there is, however, bat-guano-crazy geoff canyon anyway, i think you will have to write the parser, linker, lexical analyzer, etc., and all the other pre-compiler stuff that you would have to write for any language. i'm not aware of something like a DLL for python. even better, while we're wondering, wouldn't it be great if we could implement any interpreted grammar? i'd love it, because our erp software is written in a a BASIC-COBOL-Fortran thing. I could dump all the 1970's-era tools for managing forms and databases and replace them with something nicer. On Thu, Jul 13, 2023 at 4:04 PM Geoff Canyon via use-livecode wrote: > > I've been playing with Python, and it has a lot of nice qualities, but a > built-in GUI isn't one of them (no apologies to tkinter). > > So it would be interesting/nice to be able to open LC, add a button to a > stack, and put some python into the script of that button and have it just > work, with access to the rest of the LC stack/controls as usual. > > Obviously that's not possible, but how close can we come? I assume it would > be possible to write a shell command to trigger a python script, but that > seems complex and sub-optimal, especially when thinking about having to > bundle together all the bits and bobs from the LC UI to pass as arguments > to the Python script instead of having it able to just reference what it > needs on the fly. > > Anyway, wondering if anyone else has thought about this. > > gc > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Thu Jul 13 16:43:39 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 15:43:39 -0500 Subject: Search for an app in Google Play Store In-Reply-To: <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote: >> You could try writing to support and see if they can tell you what's wrong. > > yes, worth a try, do you have the supports email address? Sorry for the late reply, you may have found it already but you can write to support here: Scroll to the middle of the page, there's a button. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jul 13 17:00:02 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 16:00:02 -0500 Subject: Field highlited In-Reply-To: <5920d18b-c4a1-3e66-aa3a-6987e488b876@hyperactivesw.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> <5920d18b-c4a1-3e66-aa3a-6987e488b876@hyperactivesw.com> Message-ID: <58d776a4-36fc-921b-cfe8-38456f7671a9@hyperactivesw.com> On 7/13/23 2:58 PM, J. Landman Gay via use-livecode wrote: > On 7/13/23 1:18 PM, Mark Smith via use-livecode wrote: >> Hi Paul, try “the selectedText". > > Whaddya know...it works! > > Another way is to turn off traversalOn in the button. That prevents the focus from changing. > Actually, I've been trying different button and field settings and no matter what I do, the selection doesn't go away It doesn't matter if I click a button or directly on the card. I'm not sure what changed because it didn't used to be that way. LC 9.6.9. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jul 13 17:05:44 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 16:05:44 -0500 Subject: Convert date In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: <1b81a696-4fcd-c11f-c1df-de61f01fc0ca@hyperactivesw.com> On 7/13/23 3:19 AM, Neville Smythe via use-livecode wrote: > I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. > > But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! I've been collecting handlers for this for some years. I have four now. I didn't note where the first two came from, but here's what I have: on formatTime put the long time into tTime convert tTime to dateItems split tTime by "," return format("%02d:%02d:%02d",tTime[4],tTime[5],tTime[6]) end formatTime function sqlDate pDate convert pDate to dateitems set the numberformat to "00" return merge("[[item 1 of pDate]]-[[item 2 of pDate + 0]]-[[item 3 of pDate + 0]]") end sqlDate -- Mark Waddingham, sql date and time: function convertDateTimeToISO pDateTime local tTimeZone convert pDateTime to internet date put the last word of pDateTime into tTimeZOne convert pDateTime to dateitems return format("%04d-%02d-%02d %02d:%02d:%02d%s", \ item 1 of pDateTime, item 2 of pDateTime, item 3 of pDateTime, \ item 4 of pDateTime, item 5 of pDateTime, item 6 of pDateTime, tTimeZone) end convertDateTimeToISO -- Klaus Major, using seconds: function smpt_lite tSecs return format("%02d:%02d:%02d", tSecs div 3600, (tSecs mod 3600) div 60, tSecs mod 60) end smpt_lite -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Thu Jul 13 18:01:23 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 13 Jul 2023 18:01:23 -0400 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: > I have a LC9 field object - just a scrolling field (not a list field) > with a lot of text. The user selects some text and then click a button > near the field. I want the selection to remain highlighted, but when > you click outside the field the highlight goes away. > Thanks to Richmond, Mark, and Jacque for your responses. So, I actually need to note the position of the selected (i.e. char x to y) rather than the selected text itself. Indeed, if you have text highlighted in a lock, scrolling text field (autohilite on) and click a button, the highlight does not go away. However, if you click on another field it does. I need a solution where the highlight appears to remain in the primary "Content" field no matter what else the user clicks on in terms of other UI actions. So, it still seems the "best" way to do this is using the on selectioChanged message and getting the selectedChunk and if not empty and word 2 is not > word 4 (insertion point), then save word 2 as the start and word 4 as the end and change the background color of the selected range to the highlight color, clearing another of background color This makes it appear that the selection remains, updates it when the use makes a new selection, but sacrifices any other use of background color for the text in the field (which I can live with) Thanks all, From ambassador at fourthworld.com Thu Jul 13 19:16:06 2023 From: ambassador at fourthworld.com (ambassador at fourthworld.com) Date: Thu, 13 Jul 2023 23:16:06 +0000 Subject: Field highlited Message-ID: <20230713231606.Horde.Awu7E-BDRXrJomyDxrKFfgZ@hub.4wsys.com> Paul Dupuis wrote:   > I have a LC9 field object - just a scrolling field (not a list field) with > a lot of text. The user selects some text and then click a button near > the field. I want the selection to remain highlighted, but when you  > click outside the field the highlight goes away. Any simple solutions > to this. Some property I am just blanking on? In another app, I've used > the "selectionChanged" message to (1) set the background color of > the selection to a highlight color and store the start and end characters > as custom properties of the field. I'm hoping there is an easier way I am > just missing. > OR > There should be a feature enhancement: set the  > preserveHighlight of field X to true That keeps the highlighted selection > unless or until you make a new one in that field   https://quality.livecode.com/show_bug.cgi?id=3327   --  Richard Gaskin  Fourth World Systems   From ambassador at fourthworld.com Thu Jul 13 19:19:53 2023 From: ambassador at fourthworld.com (ambassador at fourthworld.com) Date: Thu, 13 Jul 2023 23:19:53 +0000 Subject: Convert date Message-ID: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> Neville Smythe wrote: > I seem to have hallucinated that the built-in convert handler recognised > the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD  > hh:mm:ss+-http://hh.ss, etc) but I must have written my own conversion > routines in a former life. > But one would have to ask Why doesnt it? > After all, the original ISO 8601 standard was adopted 1988! https://quality.livecode.com/show_bug.cgi?id=4636   --  Richard Gaskin  Fourth World Systems   From neville.smythe at optusnet.com.au Thu Jul 13 22:59:59 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 14 Jul 2023 12:59:59 +1000 Subject: Convert date Message-ID: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. Neville Smythe From ludovic.thebault at laposte.net Fri Jul 14 02:26:17 2023 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 14 Jul 2023 08:26:17 +0200 Subject: Check connection and timeout Message-ID: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Hello, I use this code to check is there is an internet connection : tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders if tResult begins with "tsneterr:" then return false else return true end if But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. Is there an other settings ? Thanks. From ludovic.thebault at laposte.net Fri Jul 14 03:50:46 2023 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 14 Jul 2023 09:50:46 +0200 Subject: Check connection and timeout In-Reply-To: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Message-ID: <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> > Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. From klaus at major-k.de Fri Jul 14 04:23:25 2023 From: klaus at major-k.de (Klaus major-k) Date: Fri, 14 Jul 2023 10:23:25 +0200 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: <07405DCC-1AC4-4B93-BC23-53493AE02750@major-k.de> Hi Jacques, > Am 13.07.2023 um 22:43 schrieb J. Landman Gay via use-livecode : > > On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote: >>> You could try writing to support and see if they can tell you what's wrong. >> yes, worth a try, do you have the supports email address? > > Sorry for the late reply, you may have found it already but you can write to support here: > > Scroll to the middle of the page, there's a button. thank you very much! > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Fri Jul 14 07:08:12 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 14 Jul 2023 07:08:12 -0400 Subject: Convert date In-Reply-To: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Message-ID: Yes to this. I have, lot so many developer, a set of functions to translate to and from this date format. We can all write our own or use ones others have provided, but it would be nice if this was built into the language. On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote: > Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. Ill add the snippets to my own version. > > The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. > > Neville Smythe > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Fri Jul 14 08:09:46 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 14 Jul 2023 13:09:46 +0100 Subject: Convert date In-Reply-To: References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Message-ID: Which makes me think, it would be nice if we could have plug-in code modules. Essentially a faceless widget that could be called to perform some sort of action (with parameters). Completely encapsulated. Or is that “bat crazy” as Mike would say 😊 > On 14 Jul 2023, at 12:08 pm, Paul Dupuis via use-livecode wrote: > > Yes to this. I have, lot so many developer, a set of functions to translate to and from this date format. > > We can all write our own or use ones others have provided, but it would be nice if this was built into the language. > > > On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote: >> Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. >> >> The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. >> >> Neville Smythe >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 14 08:16:15 2023 From: klaus at major-k.de (Klaus major-k) Date: Fri, 14 Jul 2023 14:16:15 +0200 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: Hi Jacques, > Am 13.07.2023 um 22:43 schrieb J. Landman Gay via use-livecode : > > On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote: >>> You could try writing to support and see if they can tell you what's wrong. >> yes, worth a try, do you have the supports email address? > Sorry for the late reply, you may have found it already but you can write to support here: > oops, just noticed... I am looking for a support email at GOOGLE Dev. My problem is the search engine of Google Play Store. Just like the subject says. ;-) > Scroll to the middle of the page, there's a button. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From rdimola at evergreeninfo.net Fri Jul 14 11:14:01 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Jul 2023 11:14:01 -0400 Subject: Check connection and timeout In-Reply-To: <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> Message-ID: <002701d9b665$d5ca5720$815f0560$@net> Ludovic, Make sure that tsNet is active: command NetworkType if GetNetworkType() = "libURL" then answer"tsNet is disabled(LibURL)" else answer "tsNet in use"&cr&"Version==>"& tsNetVersion() end if end NetworkType Did you initialize tsNet? ==> tsNetInit Disable tsNet ==> dispatch "revunloadlibrary" to stack "tsnetliburl" To enable tsNet ==> dispatch "revloadlibrary" to stack "tsnetliburl" 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 Ludovic THEBAULT via use-livecode Sent: Friday, July 14, 2023 3:51 AM To: How to use LiveCode Cc: Ludovic THEBAULT Subject: Re: Check connection and timeout > Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 14 11:13:28 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:13:28 +0000 Subject: Convert date In-Reply-To: References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Message-ID: <0D1E1DEA-697A-4589-B017-8586BABAFF32@iotecdigital.com> I beg to differ. Again, Livecode is a way to build both the tools and the product made by those tools. Livecode is NOT a collection of every conceivable tool for everything everyone wants to do. No language is. I think the LC dev team is far more useful to everyone if they focus on completing the projects they already have, and squashing the long standing and pervasive bugs that exist. I think if there is a fairly easy way to create the tool you need with the codeset you now have, then you would need a compelling reason, like dramatic performance increases to justify building it into the engine. Bob S > On Jul 14, 2023, at 4:08 AM, Paul Dupuis via use-livecode wrote: > > Yes to this. I have, lot so many developer, a set of functions to translate to and from this date format. > > We can all write our own or use ones others have provided, but it would be nice if this was built into the language. > > > On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote: >> Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. >> >> The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. >> >> Neville Smythe From bobsneidar at iotecdigital.com Fri Jul 14 11:17:27 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:17:27 +0000 Subject: Check connection and timeout In-Reply-To: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Message-ID: I’m interested in this. But how do you GET the timeout? Bob S > On Jul 13, 2023, at 11:26 PM, Ludovic THEBAULT via use-livecode wrote: > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > > Thanks. From bobsneidar at iotecdigital.com Fri Jul 14 11:20:36 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:20:36 +0000 Subject: Check connection and timeout In-Reply-To: <002701d9b665$d5ca5720$815f0560$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> Message-ID: <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> getNetwotkType() is not a valid function. Bob S > On Jul 14, 2023, at 8:14 AM, Ralph DiMola via use-livecode wrote: > > Ludovic, > > Make sure that tsNet is active: > > command NetworkType > if GetNetworkType() = "libURL" then > answer"tsNet is disabled(LibURL)" > else > answer "tsNet in use"&cr&"Version==>"& tsNetVersion() > end if > end NetworkType > > Did you initialize tsNet? ==> tsNetInit > > Disable tsNet ==> dispatch "revunloadlibrary" to stack "tsnetliburl" > To enable tsNet ==> dispatch "revloadlibrary" to stack "tsnetliburl" > > 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 Ludovic THEBAULT via use-livecode > Sent: Friday, July 14, 2023 3:51 AM > To: How to use LiveCode > Cc: Ludovic THEBAULT > Subject: Re: Check connection and timeout > > > >> Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : >> >> Hello, >> >> I use this code to check is there is an internet connection : >> >> tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 >> >> put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders >> >> if tResult begins with "tsneterr:" then >> return false >> else >> return true >> end if >> >> >> But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. >> >> Is there an other settings ? >> > > > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 14 11:26:35 2023 From: brian at milby7.com (Brian Milby) Date: Fri, 14 Jul 2023 11:26:35 -0400 Subject: Convert date In-Reply-To: References: Message-ID: <74C72151-418C-4584-B7EB-9BDBB3FBCA83@milby7.com> We actually do with LCB libraries (Icon SVG Library is one example), but with the caveat that they are not as performant as LCS code in many cases (compare the LCS and LCB implementations of JSON for example). LCS libraries are doable too. Just make everything internal private/script local and only expose the calls you want to be public. We just don’t currently have a built in way to manage them like the LCB modules. Brian Milby brian at milby7.com > On Jul 14, 2023, at 8:11 AM, Mark Smith via use-livecode wrote: > > Which makes me think, it would be nice if we could have plug-in code modules. Essentially a faceless widget that could be called to perform some sort of action (with parameters). Completely encapsulated. Or is that “bat crazy” as Mike would say 😊 From bobsneidar at iotecdigital.com Fri Jul 14 11:34:24 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:34:24 +0000 Subject: Convert date In-Reply-To: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> Message-ID: <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> Hmmm… I read the enhancement request. I’m still in the dark though on how to get to "2023-07-14 08:30:00" from “7/14/23” using format strings. Here’s my solution for those who do not want to download the masterLibrary. Given these, what else do you need? FUNCTION formatDate theDate, theFormat /* Accepts any valid date for the first parameter. If not a valid date, it simply returns what was passed. Second parameter can be any of the following: sql date: date in the yyyy-mm-dd format short date, abbreviated date, internet date, long date: LC versions of the same julian date: Julian number based on (I believe) Jacques formula */ put theDate into tSavedDate put the itemdelimiter into theOldDelim set the itemdelimiter to "-" IF the length of item 1 of theDate = 4 AND \ the number of items of theDate = 3 AND \ item 1 of theDate is a number AND \ item 2 of theDate is a number AND \ item 3 of theDate is a number THEN put item 2 of theDate & "/" & \ item 3 of theDate & "/" & \ item 1 of theDate into theDate END IF -- replace "." with "/" in theDate convert theDate to dateitems set the itemdelimiter to theOldDelim if the number of items of theDate <> 7 then answer "'" & theDate & "' is not a valid date format!" return tSavedDate end if SWITCH theFormat CASE "sql date" put item 1 of theDate & "-" & \ format("%02d",item 2 of theDate) & "-" & \ format("%02d",item 3 of theDate) into theDate break CASE "short date" convert theDate from dateitems to short date break CASE "abbreviated date" convert theDate from dateitems to abbreviated date break CASE "abbr date" convert theDate from dateitems to abbreviated date break CASE "internet date" convert theDate from dateitems to internet date break CASE "long date" convert theDate from dateitems to long date break CASE "julian date" put the date into theDate convert theDate to dateItems IF ((item 2 of theDate = 1) OR (item 2 of theDate = 2)) THEN put 1 into theDay ELSE put 0 into theDay END IF put item 1 of theDate + 4800 - theDay into theYear put item 2 of theDate + (12 * theDay) - 3 into theMonth put item 3 of theDate + \ ((153 * theMonth + 2) div 5) + \ (365 * theYear) + \ (theYear div 4) - \ (theYear div 100) + \ (theYear div 400) - \ 32045 into theDate break END SWITCH return theDate END formatDate FUNCTION formatTime theTime, theFormat /* accepts any valid time and returns the form of the time specified in the second parameter. The valid formats are: sql time: hh:mm:ss (Note: combining sql date from the formatDate() function with the sql time will produce a valid SQL date time type). short time: LC short time format abbreviated time: LC abbr time format (same as short time) long time: LC long time format seconds: the number of seconds since the prior midnight military: the military time 00:00 - 23:59 */ IF theTime is empty THEN return empty set the numberformat to "00" SWITCH theFormat CASE "sql time" convert theTime to dateitems put (item 4 of theTime +0) & ":" & \ (item 5 of theTime +0) & ":" & \ (item 6 of theTime +0) into theTime break CASE "short time" convert theTime to short time break CASE "abbreviated time" convert theTime to abbreviated time break CASE "long time" convert theTime to long time break CASE "seconds" convert theTime to seconds break CASE "military" set the itemdelimiter to ":" IF theTime contains "PM" THEN add 12 to item 1 of theTime END IF put word 1 of item 2 of theTime into item 2 of theTime break END SWITCH return theTime END formatTime And as an added bonus, those who use Spiceworks know they format time for tickets as 0h0m0s. FUNCTION spiceTime pStartTime, pEndTime convert pStartTime to dateItems convert pEndTime to dateItems subtract item 4 of pStartTime from item 4 of pEndTime subtract item 5 of pStartTime from item 5 of pEndTime convert pEndTime from dateItems to short time put formatTime(pEndTime, "military") into pEndTime set the itemdelimiter to ":" IF item 1 of pEndTime > 11 THEN subtract 12 from item 1 of pEndTime put item 1 of pEndTime & "h" & item 2 of pEndTime & "m" into tTotalTime return tTotalTime END spiceTime Bob S > On Jul 13, 2023, at 4:19 PM, ambassador--- via use-livecode wrote: > > Neville Smythe wrote: >> I seem to have hallucinated that the built-in convert handler recognised >> the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD >> hh:mm:ss+-http://hh.ss, etc) but I must have written my own conversion >> routines in a former life. >> But one would have to ask… Why doesn’t it? >> After all, the original ISO 8601 standard was adopted 1988! > > https://quality.livecode.com/show_bug.cgi?id=4636 > > -- > Richard Gaskin > Fourth World Systems > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 14 11:36:22 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Jul 2023 11:36:22 -0400 Subject: Check connection and timeout In-Reply-To: <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> Message-ID: <002b01d9b668$f444e4b0$dcceae10$@net> Sorry, It was mine... function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "libURL" else return "tsNet" end if end GetNetworkType 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: Friday, July 14, 2023 11:21 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Check connection and timeout getNetwotkType() is not a valid function. Bob S > On Jul 14, 2023, at 8:14 AM, Ralph DiMola via use-livecode wrote: > > Ludovic, > > Make sure that tsNet is active: > > command NetworkType > if GetNetworkType() = "libURL" then > answer"tsNet is disabled(LibURL)" > else > answer "tsNet in use"&cr&"Version==>"& tsNetVersion() > end if > end NetworkType > > Did you initialize tsNet? ==> tsNetInit > > Disable tsNet ==> dispatch "revunloadlibrary" to stack "tsnetliburl" > To enable tsNet ==> dispatch "revloadlibrary" to stack "tsnetliburl" > > 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 Ludovic THEBAULT via use-livecode > Sent: Friday, July 14, 2023 3:51 AM > To: How to use LiveCode > Cc: Ludovic THEBAULT > Subject: Re: Check connection and timeout > > > >> Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : >> >> Hello, >> >> I use this code to check is there is an internet connection : >> >> tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 >> >> put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders >> >> if tResult begins with "tsneterr:" then >> return false >> else >> return true >> end if >> >> >> But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. >> >> Is there an other settings ? >> > > > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 14 11:47:10 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:47:10 +0000 Subject: Check connection and timeout In-Reply-To: <002b01d9b668$f444e4b0$dcceae10$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> <002b01d9b668$f444e4b0$dcceae10$@net> Message-ID: Thanks Ralph, very handy, but is there a way to get the timeout to see if the command to set the timeout worked? I change networks frequently, and if I do not disconnect and reconnect to my SQL database, I run the risk of using a stale connection, and then I face the dreaded 60 second stall before I can proceed. Bob S On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode wrote: Sorry, It was mine... function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "libURL" else return "tsNet" end if end GetNetworkType Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From rdimola at evergreeninfo.net Fri Jul 14 12:04:20 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Jul 2023 12:04:20 -0400 Subject: Check connection and timeout In-Reply-To: References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> <002b01d9b668$f444e4b0$dcceae10$@net> Message-ID: <002c01d9b66c$ddd50a30$997f1e90$@net> Bob, I use this function to return an array of the timeouts. function EIStsNetGetTimeouts local tTimeouts, tTsNetTimeoutArray put tsNetGetTimeouts() into tTimeouts put item 1 of tTimeouts into tTsNetTimeoutArray["DnsCacheTimeout"] put item 2 of tTimeouts into tTsNetTimeoutArray["RequestTimeoutMS"] put item 3 of tTimeouts into tTsNetTimeoutArray["ConnectTimeoutMS"] put item 4 of tTimeouts into tTsNetTimeoutArray["AcceptTimeoutMS"] put item 5 of tTimeouts into tTsNetTimeoutArray["LowSpeedTime"] put item 6 of tTimeouts into tTsNetTimeoutArray["LowSpeedLimit"] return tTsNetTimeoutArray end EIStsNetGetTimeouts 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: Friday, July 14, 2023 11:47 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Check connection and timeout Thanks Ralph, very handy, but is there a way to get the timeout to see if the command to set the timeout worked? I change networks frequently, and if I do not disconnect and reconnect to my SQL database, I run the risk of using a stale connection, and then I face the dreaded 60 second stall before I can proceed. Bob S On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode wrote: Sorry, It was mine... function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "libURL" else return "tsNet" end if end GetNetworkType Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 14 12:07:18 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 16:07:18 +0000 Subject: Check connection and timeout In-Reply-To: <002c01d9b66c$ddd50a30$997f1e90$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> <002b01d9b668$f444e4b0$dcceae10$@net> <002c01d9b66c$ddd50a30$997f1e90$@net> Message-ID: <574A85A7-F745-4D5C-803D-29D6A7A8511E@iotecdigital.com> Oooohhh… code candy! Thanks again Ralph! Bob S > On Jul 14, 2023, at 9:04 AM, Ralph DiMola via use-livecode wrote: > > Bob, > > I use this function to return an array of the timeouts. > > function EIStsNetGetTimeouts > local tTimeouts, tTsNetTimeoutArray > put tsNetGetTimeouts() into tTimeouts > put item 1 of tTimeouts into tTsNetTimeoutArray["DnsCacheTimeout"] > put item 2 of tTimeouts into tTsNetTimeoutArray["RequestTimeoutMS"] > put item 3 of tTimeouts into tTsNetTimeoutArray["ConnectTimeoutMS"] > put item 4 of tTimeouts into tTsNetTimeoutArray["AcceptTimeoutMS"] > put item 5 of tTimeouts into tTsNetTimeoutArray["LowSpeedTime"] > put item 6 of tTimeouts into tTsNetTimeoutArray["LowSpeedLimit"] > return tTsNetTimeoutArray > end EIStsNetGetTimeouts > > 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: Friday, July 14, 2023 11:47 AM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Re: Check connection and timeout > > Thanks Ralph, very handy, but is there a way to get the timeout to see if > the command to set the timeout worked? I change networks frequently, and if > I do not disconnect and reconnect to my SQL database, I run the risk of > using a stale connection, and then I face the dreaded 60 second stall before > I can proceed. > > Bob S > > > On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode > wrote: > > Sorry, > > It was mine... > > function GetNetworkType > local tLibUrlDriver > try > put the behavior of stack"revLibUrl" into tLibUrlDriver > end try > if tLibUrlDriver is empty then > return "libURL" > else > return "tsNet" > end if > end GetNetworkType > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 14 12:14:19 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 14 Jul 2023 17:14:19 +0100 Subject: Field highlited In-Reply-To: <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> Message-ID: BTW, is there a way of determining the default highlight colour? When I select some text in a field it highlights to a light blue color, but I can’t find where that color is set. Thanks Mark > On 13 Jul 2023, at 11:01 pm, Paul Dupuis via use-livecode wrote: > > On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: >> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >> > Thanks to Richmond, Mark, and Jacque for your responses. > > So, I actually need to note the position of the selected (i.e. char x to y) rather than the selected text itself. > > Indeed, if you have text highlighted in a lock, scrolling text field (autohilite on) and click a button, the highlight does not go away. However, if you click on another field it does. I need a solution where the highlight appears to remain in the primary "Content" field no matter what else the user clicks on in terms of other UI actions. > > So, it still seems the "best" way to do this is using the on selectioChanged message and getting the selectedChunk and if not empty and word 2 is not > word 4 (insertion point), then save word 2 as the start and word 4 as the end and change the background color of the selected range to the highlight color, clearing another of background color > > This makes it appear that the selection remains, updates it when the use makes a new selection, but sacrifices any other use of background color for the text in the field (which I can live with) > > Thanks all, > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 14 12:21:34 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 16:21:34 +0000 Subject: Check connection and timeout In-Reply-To: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Message-ID: Hi Ludovic. I use a simple method of sockets to determine if I have a connection to a host. I close the socket first: closeSocket 127.0.0.1:3306 Then I open the socket: Open socket to 127.0.0.1:3306 Put the result into tError If terror begins with “ERROR: “ then — your code here End if Then close the socket again. Close socket 127.0.0.1:3306 I find this to be the most reliable way to check a connection. I may not have internet, but the host may not be on the internet it may be local. Also, sockets will always work whereas ICMP can be blocked by a firewall. And simply trying to connect to a host will, as you have noticed bring timeouts into play. Bob S > On Jul 13, 2023, at 11:26 PM, Ludovic THEBAULT via use-livecode wrote: > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > > 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 paul at researchware.com Fri Jul 14 12:38:58 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 14 Jul 2023 12:38:58 -0400 Subject: Field highlited In-Reply-To: References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> Message-ID: <68ba3753-78e4-35fd-09b1-9f1a65dcafd0@researchware.com> Use the effective keyword as in: put the effective hiliteColor of field X into tHiliteColor It will figure out the color by inheritance. If you just put the hiliteColor of field X  (without it being set specifically for field X) your get empty On 7/14/2023 12:14 PM, Mark Smith wrote: > BTW, is there a way of determining the default highlight colour? When I select some text in a field it highlights to a light blue color, but I cant find where that color is set. > > Thanks > Mark > > >> On 13 Jul 2023, at 11:01 pm, Paul Dupuis via use-livecode wrote: >> >> On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: >>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>> >> Thanks to Richmond, Mark, and Jacque for your responses. >> >> So, I actually need to note the position of the selected (i.e. char x to y) rather than the selected text itself. >> >> Indeed, if you have text highlighted in a lock, scrolling text field (autohilite on) and click a button, the highlight does not go away. However, if you click on another field it does. I need a solution where the highlight appears to remain in the primary "Content" field no matter what else the user clicks on in terms of other UI actions. >> >> So, it still seems the "best" way to do this is using the on selectioChanged message and getting the selectedChunk and if not empty and word 2 is not > word 4 (insertion point), then save word 2 as the start and word 4 as the end and change the background color of the selected range to the highlight color, clearing another of background color >> >> This makes it appear that the selection remains, updates it when the use makes a new selection, but sacrifices any other use of background color for the text in the field (which I can live with) >> >> Thanks all, >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Jul 14 14:39:41 2023 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 14 Jul 2023 19:39:41 +0100 Subject: Convert date In-Reply-To: <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> Message-ID: <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> On 14/07/2023 16:34, Bob Sneidar via use-livecode wrote: > CASE "sql date" > put item 1 of theDate & "-" & \ > format("%02d",item 2 of theDate) & "-" & \ > format("%02d",item 3 of theDate) into theDate > break Why not just put format("%s-%02d-%02d", item 1 of theDate, item 2 of theDate), \ item 3 of theDate) into theDate Alex. btw - you forgot the if/switch check for "if in the USA" vs "if in the UK" :-) :-) From bobsneidar at iotecdigital.com Fri Jul 14 14:45:05 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 18:45:05 +0000 Subject: Convert date In-Reply-To: <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> Message-ID: <5D8C7A2C-43BD-41F2-A8EA-4CAA8D4D8892@iotecdigital.com> Because I’m not that good with regular expressions and the format function. :-) But you example has one too many close parens. Also, for SQL Date I do not thing UK or US matters. It’s YYYY-MM-DD everywhere, isn’t it? Also, I assumed that the localization of the LC engine would take into account the local date format for the built in date functions. Is that incorrect? Bob S > On Jul 14, 2023, at 11:39 AM, Alex Tweedly via use-livecode wrote: > > > On 14/07/2023 16:34, Bob Sneidar via use-livecode wrote: >> CASE "sql date" >> put item 1 of theDate & "-" & \ >> format("%02d",item 2 of theDate) & "-" & \ >> format("%02d",item 3 of theDate) into theDate >> break > > Why not just > > put format("%s-%02d-%02d", item 1 of theDate, item 2 of theDate), \ > item 3 of theDate) into theDate > > Alex. > > btw - you forgot the if/switch check for > "if in the USA" vs "if in the UK" :-) :-) > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 14 16:36:06 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 15:36:06 -0500 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: > I am looking for a support email at GOOGLE Dev. > My problem is the search engine of Google Play Store. > Just like the subject says. ;-) Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: They don't make it easy. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Jul 14 16:39:11 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 15:39:11 -0500 Subject: Field highlited In-Reply-To: References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> Message-ID: <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote: > BTW, is there a way of determining the default highlight colour? The dictionary says: "By default, the global hiliteColor property is set to the system highlight color." I'd guess yours is blue. That's pretty standard on Mac. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Fri Jul 14 17:09:21 2023 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 14 Jul 2023 14:09:21 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice about how to proceed. 2 questions: If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? Thanks for the heads-up and recipe on how to create the folder. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: > > After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. > > In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. > > 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. > > 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. > > 3. The path to the container is in ~/Library/Containers// > > We don't have a specialFolderPath for that, so here's how I did it: > > put specialFolderPath("support") into tContainer > set the itemdel to slash > put "Containers/your.bundle.id/" into last item of tContainer > if there is no folder tContainer then > create folder tContainer > if the result <> empty then log "Create container:" && the result > end if > put tContainer & "yourFileName.ext" into tPath > > This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. > > Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Fri Jul 14 17:10:37 2023 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 14 Jul 2023 14:10:37 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice about how to proceed. 2 questions: If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? Thanks for the heads-up and recipe on how to create the folder. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: > > After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. > > In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. > > 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. > > 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. > > 3. The path to the container is in ~/Library/Containers// > > We don't have a specialFolderPath for that, so here's how I did it: > > put specialFolderPath("support") into tContainer > set the itemdel to slash > put "Containers/your.bundle.id/" into last item of tContainer > if there is no folder tContainer then > create folder tContainer > if the result <> empty then log "Create container:" && the result > end if > put tContainer & "yourFileName.ext" into tPath > > This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. > > Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Jul 14 17:17:39 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 21:17:39 +0000 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: <53A8E4B5-4B70-4E5A-ADD1-4A3EC2057944@iotecdigital.com> Create file and write permissions are very seldom different. Sent from my iPhone > On Jul 14, 2023, at 14:11, scott--- via use-livecode wrote: > > Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice about how to proceed. 2 questions: > > If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? > > How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? > > Thanks for the heads-up and recipe on how to create the folder. > > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > >> On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: >> >> After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. >> >> In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. >> >> 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. >> >> 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. >> >> 3. The path to the container is in ~/Library/Containers// >> >> We don't have a specialFolderPath for that, so here's how I did it: >> >> put specialFolderPath("support") into tContainer >> set the itemdel to slash >> put "Containers/your.bundle.id/" into last item of tContainer >> if there is no folder tContainer then >> create folder tContainer >> if the result <> empty then log "Create container:" && the result >> end if >> put tContainer & "yourFileName.ext" into tPath >> >> This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. >> >> Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. >> >> -- >> 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 Jul 14 19:05:47 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 18:05:47 -0500 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> On 7/14/23 4:10 PM, scott--- via use-livecode wrote: > If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? > > How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? That's a very good question and I'm afraid I don't know the answer. It's worrying though, because a couple of my older products need to write to Preferences. Here's what I do know. The issue only came up recently. My tester with the problem is on Ventura but I suspect it's a little older than that. In the past I always wrote files to Preferences without issues. For my current project there was already a prefs file there and it worked. But it also worked if I put it directly in App Support, and also worked if I made a container. In fact, it worked anywhere because it's my machine. Not so for others. For the tester, I originally tried to create and write the file in Preferences as usual. It didn't work and no file was created. Another tester, also on Ventura, had the Mac ask for permissions, he gave it, and it worked. Everything else I subsequently tried also worked for him. Next, I changed the app to write directly to Application Support. Same problem, no file was created, the Mac didn't ask for permission. So I changed it again to create a folder in Application Support with the name of the app and put the prefs file in there. Same failure. Finally, I created the container folder in ~/Library/Conainers and bingo, success. The tester who gave permissions and had no trouble at any point, including reading and writing to the container. Since I can't test on my own machine, I'm waiting for someone who has my older products to tell me there's a problem. Or I'll lean on my husband to try it. Husbands are good for things like that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Jul 14 19:16:40 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 23:16:40 +0000 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> Message-ID: <4EAADF32-9551-42C8-907A-EB394841075C@iotecdigital.com> I don’t think there is any way past this. Ultimately the permissions to write to any path must be authorized by the current user agent. If they accept, well and good. If not, there cannot be any way around it. Sent from my iPhone > On Jul 14, 2023, at 16:07, J. Landman Gay via use-livecode wrote: > > On 7/14/23 4:10 PM, scott--- via use-livecode wrote: >> If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? >> How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? > > That's a very good question and I'm afraid I don't know the answer. It's worrying though, because a couple of my older products need to write to Preferences. Here's what I do know. > > The issue only came up recently. My tester with the problem is on Ventura but I suspect it's a little older than that. > > In the past I always wrote files to Preferences without issues. For my current project there was already a prefs file there and it worked. But it also worked if I put it directly in App Support, and also worked if I made a container. In fact, it worked anywhere because it's my machine. Not so for others. > > For the tester, I originally tried to create and write the file in Preferences as usual. It didn't work and no file was created. Another tester, also on Ventura, had the Mac ask for permissions, he gave it, and it worked. Everything else I subsequently tried also worked for him. > > Next, I changed the app to write directly to Application Support. Same problem, no file was created, the Mac didn't ask for permission. So I changed it again to create a folder in Application Support with the name of the app and put the prefs file in there. Same failure. Finally, I created the container folder in ~/Library/Conainers and bingo, success. > > The tester who gave permissions and had no trouble at any point, including reading and writing to the container. > > Since I can't test on my own machine, I'm waiting for someone who has my older products to tell me there's a problem. Or I'll lean on my husband to try it. Husbands are good for things like that. > > > -- > 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 Jul 14 19:27:17 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 18:27:17 -0500 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <4EAADF32-9551-42C8-907A-EB394841075C@iotecdigital.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> <4EAADF32-9551-42C8-907A-EB394841075C@iotecdigital.com> Message-ID: <18956bae808.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> What I found out is that the app container has permission automatically. That's the only place though. All other file access has to be initiated by the user. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 14, 2023 6:18:45 PM Bob Sneidar via use-livecode wrote: > I dont think there is any way past this. Ultimately the permissions to > write to any path must be authorized by the current user agent. If they > accept, well and good. If not, there cannot be any way around it. > > Sent from my iPhone > >> On Jul 14, 2023, at 16:07, J. Landman Gay via use-livecode >> wrote: >> >> On 7/14/23 4:10 PM, scott--- via use-livecode wrote: >>> If the file (say a preference.txt file) already exists in the Preferences >>> or App Support folder, are we able to continue writing to it? In other >>> words, is this an issue with the creation of the file or also of writing in >>> general? >>> How are you handling this? Are you attempting to write to the Preferences >>> or App Support folder first and are you moving existing files to the >>> Container folder? >> >> That's a very good question and I'm afraid I don't know the answer. It's >> worrying though, because a couple of my older products need to write to >> Preferences. Here's what I do know. >> >> The issue only came up recently. My tester with the problem is on Ventura >> but I suspect it's a little older than that. >> >> In the past I always wrote files to Preferences without issues. For my >> current project there was already a prefs file there and it worked. But it >> also worked if I put it directly in App Support, and also worked if I made >> a container. In fact, it worked anywhere because it's my machine. Not so >> for others. >> >> For the tester, I originally tried to create and write the file in >> Preferences as usual. It didn't work and no file was created. Another >> tester, also on Ventura, had the Mac ask for permissions, he gave it, and >> it worked. Everything else I subsequently tried also worked for him. >> >> Next, I changed the app to write directly to Application Support. Same >> problem, no file was created, the Mac didn't ask for permission. So I >> changed it again to create a folder in Application Support with the name of >> the app and put the prefs file in there. Same failure. Finally, I created >> the container folder in ~/Library/Conainers and bingo, success. >> >> The tester who gave permissions and had no trouble at any point, including >> reading and writing to the container. >> >> Since I can't test on my own machine, I'm waiting for someone who has my >> older products to tell me there's a problem. Or I'll lean on my husband to >> try it. Husbands are good for things like that. >> >> >> -- >> 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 scott at elementarysoftware.com Sat Jul 15 01:24:08 2023 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 14 Jul 2023 22:24:08 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> Message-ID: Thanks again, Jacque. My solution for migrating preference files from the Preferences folder to the Container turned out to be quite simple but for some reason I spent a bunch of time pondering other more complicated methods. In the end I changed an existing function which returns a path to the preferences file and had it first look to see if a Container exists. If it doesn’t then it creates the Container but still returns the path to the original Preferences folder. (This works in my use case because the app's first call to this function will always be to “read” the preference file) Now that the Container exists, all future calls to the function will return the Container path… and the original data, having been already loaded into the app, is ready to write to (and read from) the new Container location. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 14, 2023, at 4:05 PM, J. Landman Gay via use-livecode wrote: > > On 7/14/23 4:10 PM, scott--- via use-livecode wrote: >> If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? >> How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? > > That's a very good question and I'm afraid I don't know the answer. It's worrying though, because a couple of my older products need to write to Preferences. Here's what I do know. > > The issue only came up recently. My tester with the problem is on Ventura but I suspect it's a little older than that. > > In the past I always wrote files to Preferences without issues. For my current project there was already a prefs file there and it worked. But it also worked if I put it directly in App Support, and also worked if I made a container. In fact, it worked anywhere because it's my machine. Not so for others. > > For the tester, I originally tried to create and write the file in Preferences as usual. It didn't work and no file was created. Another tester, also on Ventura, had the Mac ask for permissions, he gave it, and it worked. Everything else I subsequently tried also worked for him. > > Next, I changed the app to write directly to Application Support. Same problem, no file was created, the Mac didn't ask for permission. So I changed it again to create a folder in Application Support with the name of the app and put the prefs file in there. Same failure. Finally, I created the container folder in ~/Library/Conainers and bingo, success. > > The tester who gave permissions and had no trouble at any point, including reading and writing to the container. > > Since I can't test on my own machine, I'm waiting for someone who has my older products to tell me there's a problem. Or I'll lean on my husband to try it. Husbands are good for things like that. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Sat Jul 15 03:06:23 2023 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 15 Jul 2023 10:06:23 +0300 Subject: Field highlited In-Reply-To: <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> Message-ID: It is really very easy to do this sort of thing: set the hilitecolor of fld "f1" to red Best, Richmond. On 14.07.23 23:39, J. Landman Gay via use-livecode wrote: > On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote: >> BTW, is there a way of determining the default highlight colour? > > The dictionary says: "By default, the global hiliteColor property is > set to the system highlight color." > > I'd guess yours is blue. That's pretty standard on Mac. > From klaus at major-k.de Sat Jul 15 03:52:28 2023 From: klaus at major-k.de (Klaus major-k) Date: Sat, 15 Jul 2023 09:52:28 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: <4D9B505A-B90B-4DEA-BD00-1E0D05E94D0B@major-k.de> Hi Jacques, > Am 14.07.2023 um 22:36 schrieb J. Landman Gay via use-livecode : > > On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: >> I am looking for a support email at GOOGLE Dev. >> My problem is the search engine of Google Play Store. >> Just like the subject says. ;-) > > Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: > ah, thank you, will try to get some help there. > They don't make it easy. So sad and so true... > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From alex at tweedly.net Sat Jul 15 08:12:13 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 15 Jul 2023 13:12:13 +0100 Subject: Convert date In-Reply-To: <0D1E1DEA-697A-4589-B017-8586BABAFF32@iotecdigital.com> References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> <0D1E1DEA-697A-4589-B017-8586BABAFF32@iotecdigital.com> Message-ID: <906c05ce-3b6e-9395-6ece-74e46e783817@tweedly.net> On 14/07/2023 16:13, Bob Sneidar via use-livecode wrote: > I beg to differ. Again, Livecode is a way to build both the tools and the product made by those tools. Livecode is NOT a collection of every conceivable tool for everything everyone wants to do. No language is. > > I think the LC dev team is far more useful to everyone if they focus on completing the projects they already have, and squashing the long standing and pervasive bugs that exist. > > I think if there is a fairly easy way to create the tool you need with the codeset you now have, then you would need a compelling reason, like dramatic performance increases to justify building it into the engine. I guess the primary argument is having it available "out of the box" for new users, or for those who are still unfamiliar / uncertain about LC scripting. What I'd *really* like to see the LC dev team work on is bringing LCS libraries up to the same level of support as LCB libraries. It's taken a few years to finally get LCS widgets - and that was clearly HARD work. I would have thought t would be much easier - and just about as useful - to get CS libraries. (and even to add some better support, such as "require library" that will properly deal with missing / duplicate attempts to load a library). Alex. From david.bovill at gmail.com Sat Jul 15 09:07:13 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 14:07:13 +0100 Subject: Workaround for regular Crash setting (audio) file of player? In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: I'm working a lot with media again - and the last two days I get a crash every 15 minutes when I set the filename of a player to various mp4 audio tracks. I'd love a workaround as its slowing things up quite a bit. I've seen this behavior quite a bit over the years with media and the player. it happens erratically - so works well then after 5 or 6 successful attempts setting the audio file in the script crashes livecode. Recipe: 1. *set* the filename of me to audioFile -- the offending line 2. audiioFile is one of several different m4a files (created using mergMicrophone) 3. The filename is a long path 4. No pattern regarding a particular audio file, or sequence I can detect If anyone has a thought of a way to set an audio file that will work without crashing... much appreciated. From david.bovill at gmail.com Sat Jul 15 09:09:54 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 14:09:54 +0100 Subject: Tree Widget - order of titles In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: Is there a way to display an indexed array in the tree widget without displaying the numeric inde items (ie first column)? I'm looking to display an ordered index of titles and would prefer not to use both a field and a tree widget to accomplish this? From alex at tweedly.net Sat Jul 15 09:41:07 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 15 Jul 2023 14:41:07 +0100 Subject: Convert date In-Reply-To: <5D8C7A2C-43BD-41F2-A8EA-4CAA8D4D8892@iotecdigital.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> <5D8C7A2C-43BD-41F2-A8EA-4CAA8D4D8892@iotecdigital.com> Message-ID: <7e723802-f4e7-78c8-42fa-49cdf31a031b@tweedly.net> On 14/07/2023 19:45, Bob Sneidar via use-livecode wrote: > Because Im not that good with regular expressions and the format function. :-) But you example has one too many close parens. Oops - I got caught out copying / pasting again :-( Yes, of course it should have been > put format("%s-%02d-%02d", item 1 of theDate, item 2 of theDate, \ > item 3 of theDate) into theDate > Also, for SQL Date I do not thing UK or US matters. Its YYYY-MM-DD everywhere, isnt it? Yes, sql (or ISO) is same everywhere. > > Also, I assumed that the localization of the LC engine would take into account the local date format for the built in date functions. Is that incorrect? That is correct, but there is kind of a problem (or at least limitation) with the function. If I have a user here (UK) type a date into a field, and then I try to format it to SQLdate (or anything else) using this function, it will fail. My user will type something  (15/07/2023), and that gets an "invalid date" error. I'm not sure there is anything you can do that is completely safe - you can't tell whether a /-separated date string is US or UK. But I'd argue that dates ready to pass in to the function are either internally-generated (so they'll be sql, or dateitems, or otherwise unambiguous), or they are user-generated (and hence local format).  And therefore I would suggest changing the code to > put item 2 of theDate & "/" & \ > item 3 of theDate & "/" & \ > item 1 of theDate into theDate > convert theDate to dateitems > ELSE > convert theDate from system date to dateitems > END IF > > -- replace "." with "/" in theDate > -- convert theDate to dateitems Alex. From paul at researchware.com Sat Jul 15 09:41:25 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 09:41:25 -0400 Subject: Workaround for regular Crash setting (audio) file of player? In-Reply-To: References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: <28ace82d-2b9a-5ac3-31b4-29129836e4a9@researchware.com> Are you on a single monitor or do you have more than 1 display? It is a known bug that the player object freezes or crashes when petting properties on any monitor but the primary display: https://quality.livecode.com/show_bug.cgi?id=20707 On 7/15/2023 9:07 AM, David Bovill via use-livecode wrote: > I'm working a lot with media again - and the last two days I get a crash > every 15 minutes when I set the filename of a player to various mp4 audio > tracks. I'd love a workaround as its slowing things up quite a bit. > > I've seen this behavior quite a bit over the years with media and the > player. it happens erratically - so works well then after 5 or 6 > successful attempts setting the audio file in the script crashes livecode. > > Recipe: > > 1. > > *set* the filename of me to audioFile -- the offending line > > 2. > > audiioFile is one of several different m4a files (created using > mergMicrophone) > 3. > > The filename is a long path > 4. > > No pattern regarding a particular audio file, or sequence I can detect > > If anyone has a thought of a way to set an audio file that will work > without crashing... much appreciated. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 10:27:32 2023 From: brian at milby7.com (Brian Milby) Date: Sat, 15 Jul 2023 10:27:32 -0400 Subject: Tree Widget - order of titles In-Reply-To: References: Message-ID: <3D217129-A6BB-4AD2-A647-A2A2C02B6D4A@milby7.com> While I don’t know if a way to hide the key, there is a way to get a manual sort by combining the key with a sortable leading value. See the charsToTrimFromKey property. Brian Milby brian at milby7.com > On Jul 15, 2023, at 9:11 AM, David Bovill via use-livecode wrote: > > Is there a way to display an indexed array in the tree widget without > displaying the numeric inde items (ie first column)? I'm looking to display > an ordered index of titles and would prefer not to use both a field and a > tree widget to accomplish this? > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 11:06:09 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 11:06:09 -0400 Subject: What is your best practice for setting a script in a script? Message-ID: So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? Example: BUTTON "Make" on mouseUp   local tScript   create button "Sample"   put "on mouseUp"&cr into tScript   put "  ask 'Please enter a number between 1 and 100'" &cr after tScript   put "  if it is not a number then exit mouseUp" &cr after tScript   put "  if it < 1 OR it > 100 then exit mouseUp" &cr after tScript   put "  put it into field 'Number'" &cr after tScript   put "end mouseUp" after tScript   replace "'" with quote in tScript   set the script of button "Sample" to tScript end mouseUp This create a button "Sample" with the script on mouseUp   ask "Please enter a number between 1 and 100"   if it is not a number then exit mouseUp   if it < 1 OR it > 100 then exit mouseUp   put it into field "Number" end mouseUp However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. I wish there was a command like "put begin block" where you could follow it any  number of lines and then "end block into tVar". i.e. put begin block on mouseUp   ask "Please enter a number between 1 and 100"   if it is not a number then exit mouseUp   if it < 1 OR it > 100 then exit mouseUp   put it into field "Number" end mouseUp end block into tScript Is there a better way to have a script written in a script? From gcanyon at gmail.com Sat Jul 15 13:05:27 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 15 Jul 2023 10:05:27 -0700 Subject: Shell + Python? Message-ID: In terminal, this works: python -c "print('hello world')" In LiveCode, this: *put* shell("python -c " & quote & "print('hello world')" & quote) puts this: /bin/sh: line 1: python: command not found while this: *put* shell("pwd") puts this: /Applications/LiveCode 9.6.9.app So any idea why terminal can find python but LC's shell function can't? From alex at tweedly.net Sat Jul 15 13:51:55 2023 From: alex at tweedly.net (Tweedly) Date: Sat, 15 Jul 2023 18:51:55 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: <683ACBBE-7C02-4D8B-A7FB-C4F68D736820@tweedly.net> Maybe keep the script in a custom property ? Or in a “prefs” file ? Or ….. any number of ways of avoiding the exact question you asked ;-) And yes, there’s been a request for “block” text constants for about as long as I’ve used RR/LC - say 20 years. Alex Sent from my iPad > On 15 Jul 2023, at 16:06, Paul Dupuis via use-livecode wrote: > > So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp > local tScript > create button "Sample" > put "on mouseUp"&cr into tScript > put " ask 'Please enter a number between 1 and 100'" &cr after tScript > put " if it is not a number then exit mouseUp" &cr after tScript > put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript > put " put it into field 'Number'" &cr after tScript > put "end mouseUp" after tScript > replace "'" with quote in tScript > set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could follow it any number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ludovic.thebault at laposte.net Sat Jul 15 13:59:12 2023 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Sat, 15 Jul 2023 19:59:12 +0200 Subject: Check connection and timeout In-Reply-To: <002701d9b665$d5ca5720$815f0560$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> Message-ID: > Le 14 juil. 2023 à 17:14, Ralph DiMola via use-livecode a écrit : > > Ludovic, > > Make sure that tsNet is active: > Hello Ralph Thanks. But yes tsnet was initialized. I’ve measured the timeouts in miliseconds and it was always 30003 milliseconds. But it’s only when there is a connection but there isn't enough network capacity for data transfer (so it’s difficult to test ! This can happen in the mountains, far from mobile antennas, or on the edge of wifi coverage. Ludovic From dick.kriesel at mail.com Sat Jul 15 15:46:18 2023 From: dick.kriesel at mail.com (Dick Kriesel) Date: Sat, 15 Jul 2023 12:46:18 -0700 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: > On Jul 15, 2023, at 8:06 AM, Paul Dupuis via use-livecode wrote: > > So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? Hi, Paul. The best way to set the script may be not to; that is, instead set the new object’s behavior to a button that contains the readable script. — Dick From david.bovill at gmail.com Sat Jul 15 15:56:22 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 20:56:22 +0100 Subject: Tree Widget - order of titles In-Reply-To: <3D217129-A6BB-4AD2-A647-A2A2C02B6D4A@milby7.com> References: <3D217129-A6BB-4AD2-A647-A2A2C02B6D4A@milby7.com> Message-ID: Thanks Brian - that works. I can remove the indent created by the now empty first column by using: set the separatorRatio of widget to 0 However there is still a separator line and if I: set the showSeparator to false Then the indent returns. But it mostly looks OK. On Sat, 15 Jul 2023 at 15:28, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > While I don’t know if a way to hide the key, there is a way to get a > manual sort by combining the key with a sortable leading value. See the > charsToTrimFromKey property. > > Brian Milby > brian at milby7.com > > > On Jul 15, 2023, at 9:11 AM, David Bovill via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Is there a way to display an indexed array in the tree widget without > > displaying the numeric inde items (ie first column)? I'm looking to > display > > an ordered index of titles and would prefer not to use both a field and a > > tree widget to accomplish this? > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david.bovill at gmail.com Sat Jul 15 16:00:54 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 21:00:54 +0100 Subject: Workaround for regular Crash setting (audio) file of player? In-Reply-To: <28ace82d-2b9a-5ac3-31b4-29129836e4a9@researchware.com> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> <28ace82d-2b9a-5ac3-31b4-29129836e4a9@researchware.com> Message-ID: Interesting - I do have two monitors - though the player is on the main default monitor - I will try with the monitor disconnected. On Sat, 15 Jul 2023 at 14:42, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Are you on a single monitor or do you have more than 1 display? > > It is a known bug that the player object freezes or crashes when petting > properties on any monitor but the primary display: > https://quality.livecode.com/show_bug.cgi?id=20707 > > > On 7/15/2023 9:07 AM, David Bovill via use-livecode wrote: > > I'm working a lot with media again - and the last two days I get a crash > > every 15 minutes when I set the filename of a player to various mp4 audio > > tracks. I'd love a workaround as its slowing things up quite a bit. > > > > I've seen this behavior quite a bit over the years with media and the > > player. it happens erratically - so works well then after 5 or 6 > > successful attempts setting the audio file in the script crashes > livecode. > > > > Recipe: > > > > 1. > > > > *set* the filename of me to audioFile -- the offending line > > > > 2. > > > > audiioFile is one of several different m4a files (created using > > mergMicrophone) > > 3. > > > > The filename is a long path > > 4. > > > > No pattern regarding a particular audio file, or sequence I can > detect > > > > If anyone has a thought of a way to set an audio file that will work > > without crashing... much appreciated. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 16:05:21 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 15 Jul 2023 15:05:21 -0500 Subject: What is your best practice for setting a script in a script? In-Reply-To: <683ACBBE-7C02-4D8B-A7FB-C4F68D736820@tweedly.net> References: <683ACBBE-7C02-4D8B-A7FB-C4F68D736820@tweedly.net> Message-ID: <7910ebed-de86-4765-e8e0-84507fe1bc42@hyperactivesw.com> On 7/15/23 12:51 PM, Tweedly via use-livecode wrote: > Maybe keep the script in a custom property ? That's what I usually do. If the variables or references may change, I use placeholders and the merge command to replace things before setting the script on the control. If it's a very short script I sometimes use this method: set the script of tObj to "on mouseUp;doSomething;end mouseUp" -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From david.bovill at gmail.com Sat Jul 15 16:06:12 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 21:06:12 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: This is the same type of problem as deleting an object from a user interaction with the object - but more common use case and I don;t know a good way of doing that either. I use: send "delete_Object" to somewhere in 2 ticks But it is messy and tends to be a bit unreliable in my experience. I don't know a way around it other than avoiding any events being trapped within the object itself - but that is not so easy. On Sat, 15 Jul 2023 at 20:47, Dick Kriesel via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On Jul 15, 2023, at 8:06 AM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > So in the instances where you have a script that creates an object and > then sets the script of that object (example below), what is you best > practice for having the script in a script and still be readable? > > Hi, Paul. The best way to set the script may be not to; that is, instead > set the new object’s behavior to a button that contains the readable script. > — Dick > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 16:16:37 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 15 Jul 2023 21:16:37 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: <288B8697-8BE6-433D-A8BF-92B8697C2711@gmail.com> Another possibility, which is sort of a combination of Alex and Dicks suggestions is to create a “scripts” card and store all of the scripts as readable custom properties. When I have done this in the past I typically just number the scripts (cScript1 … cScriptn) and put some metadata in the first line of each. Usually a comment of the form "—cScript1 — button Sample of cd X". If you do that, when you list the custom properties of the scripts in the property inspector you see the metadata along with each cp field name (so it would look like, cScript1 — cScript1 — button Sample of cd X) and you can see a whole list of them. In this situation, the code you provided would be replaced with: create button “Sample” set the script of btn “Sample” to the cScript1 of cd “Scripts" Mark > On 15 Jul 2023, at 4:06 pm, Paul Dupuis via use-livecode wrote: > > So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp > local tScript > create button "Sample" > put "on mouseUp"&cr into tScript > put " ask 'Please enter a number between 1 and 100'" &cr after tScript > put " if it is not a number then exit mouseUp" &cr after tScript > put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript > put " put it into field 'Number'" &cr after tScript > put "end mouseUp" after tScript > replace "'" with quote in tScript > set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could follow it any number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 16:22:01 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 15 Jul 2023 15:22:01 -0500 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> Message-ID: <003fd44c-f5c0-cdbf-8865-f4722e83bdcd@hyperactivesw.com> Good approach. I assume if there is no file in Preferences, you write defaults directly to the container. I got curious and looked at where LC stores its files. They do not have a container. It's mostly in Application Support, in a folder "RunRev" (there's also an older one there named "Runtime Revolution".) Some of the files were updated recently so it apparently still works. Now I wonder if there's another way to do this stuff. I'd like some definitive info about this. @Panos? @Mark? On 7/15/23 12:24 AM, scott--- via use-livecode wrote: > Thanks again, Jacque. > > My solution for migrating preference files from the Preferences folder to the Container turned out to be quite simple but for some reason I spent a bunch of time pondering other more complicated methods. In the end I changed an existing function which returns a path to the preferences file and had it first look to see if a Container exists. If it doesn’t then it creates the Container but still returns the path to the original Preferences folder. (This works in my use case because the app's first call to this function will always be to “read” the preference file) Now that the Container exists, all future calls to the function will return the Container path… and the original data, having been already loaded into the app, is ready to write to (and read from) the new Container location. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sat Jul 15 16:29:27 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 16:29:27 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> All good suggestions so far, but not what I was after, which was whether there is any better way to have the script you are setting the newly created object to, readable, in the script that setup of the new object. If a behavior script is used or properties or objects then I can not read (and potentially revise) the script right in the script that is making the object. I have to open something else if I want to revise the script. Of course I can have a comment that says "look here for the script" and it is generally obvious from "set the script of button "Sample" to . On 7/15/2023 11:06 AM, Paul Dupuis via use-livecode wrote: > So in the instances where you have a script that creates an object and > then sets the script of that object (example below), what is you best > practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp >   local tScript >   create button "Sample" >   put "on mouseUp"&cr into tScript >   put "  ask 'Please enter a number between 1 and 100'" &cr after tScript >   put "  if it is not a number then exit mouseUp" &cr after tScript >   put "  if it < 1 OR it > 100 then exit mouseUp" &cr after tScript >   put "  put it into field 'Number'" &cr after tScript >   put "end mouseUp" after tScript >   replace "'" with quote in tScript >   set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp >   ask "Please enter a number between 1 and 100" >   if it is not a number then exit mouseUp >   if it < 1 OR it > 100 then exit mouseUp >   put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with > the "pu" statements and quotes (double and single) and cr and so one > cumbersome to read. Yes there are behavior scripts, but this is about > the best practice of placing a script in a script (to set the script > of an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could > follow it any  number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp >   ask "Please enter a number between 1 and 100" >   if it is not a number then exit mouseUp >   if it < 1 OR it > 100 then exit mouseUp >   put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 16:47:29 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 15 Jul 2023 21:47:29 +0100 Subject: Field highlited In-Reply-To: <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> Message-ID: <5384A3D3-A3D5-43D1-BD80-3C6DAD4C371E@gmail.com> The effective attribute is what I was looking for. As Paul mentioned, if you just say “set the background of… to hiliteColor” you don’t get anything. But if you set it to the “effective hiliteColor” you get the system default (btw, I tried “system hiliteColor” but LC treats it as a syntax error. Pity, since “system” in this case makes more sense to me than effective. But that’s another story…) I was intrigued by Pauls example of trying to set some highlighting that “sticks” but that still gives the user the illusion that nothing unusual is going on ie. If you select another portion of text, the first selection unhighlights, of if you click in the field the highlighting goes away, but you can click in other fields and it doesn’t. I saw it as a challenge to try and get that working. He probably has more elegant code than I do but the following comes very close, I hope, to the solution he was describing. The biggest challenge I found is that when you have a selection in the field, and you go to change it to some other text the normal behaviour is to have the first selection immediately disappear. That doesn’t happen if you are depending on a selectionChanged message since you don’t actually get that until the end of the 2nd selection and you need the old one to disappear when you start the 2nd selection. I solved that by having an openField handler that just checks to see if there is a selection, and if there is, removes it. openField happens immediately and before selectionChanged is sent. I can’t remember at the moment why I left the removal in both handlers, but it seems it was necessary for some combination of clicks or selections. I’d have to go back and test that again. on openField -- a selection is potentially about to begin -- see if there is already a selection in the field and unhighlight it put the cpChunkExpression of field "fld1" into chunkExp if chunkExp is not empty then set the backgroundcolor of chunkExp to "" -- gets rid of our fake highlighting set the cpChunkExpression of field "fld1" to empty end if end openField on selectionChanged -- get the current highlight color put the effective hiliteColor of field "fld1" into tHiliteColor -- then initialize our new chunk expression put the selectedChunk of fld "fld1" into newChunkExp -- determine if there is an old chunk we need to unhighlight put the cpChunkExpression of field "fld1" into chunkExp if chunkExp is not empty then set the backgroundcolor of chunkExp to "" -- gets rid of our fake highlighting set the cpChunkExpression of field "fld1" to empty end if -- now, with regards to the new chunk expression there are 3 possibilities -- 1. its empty, in which case we do nothing -- 2. its just an insertion point, in which case we do nothing (ie. word 2 of newChunkExp > word 4) -- 3. But, if word 2 and word 4 of newChunkExp define a range of text, highlight it if word 2 of newChunkExp < word 4 of newChunkExp then set the backgroundcolor of newChunkExp to tHiliteColor -- and save it for future reference set the cpChunkExpression of field "fld1" to newChunkExp end if -- if we want to unhighlight everything we can just click anywhere in the field end selectionChanged > On 14 Jul 2023, at 9:39 pm, J. Landman Gay via use-livecode wrote: > > On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote: >> BTW, is there a way of determining the default highlight colour? > > The dictionary says: "By default, the global hiliteColor property is set to the system highlight color." > > I'd guess yours is blue. That's pretty standard on Mac. > > -- > 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 marksmithhfx at gmail.com Sat Jul 15 16:53:33 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 15 Jul 2023 21:53:33 +0100 Subject: Convert date In-Reply-To: <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> Message-ID: <08D97D2F-42E3-4DC1-9BBC-4FD22137FE8B@gmail.com> Thanks Bob. These examples are all very handy to have. Added to the wiki!! Just kidding, I do think we need a wiki somewhere for these kinds of code snippets but I’m not offering to build it (this year). We’ll have to see how bored I am next year, or, hopefully, someone else will beat me to it. 😊🙏 > On 14 Jul 2023, at 4:34 pm, Bob Sneidar via use-livecode wrote: > > Hmmm… I read the enhancement request. I’m still in the dark though on how to get to "2023-07-14 08:30:00" from “7/14/23” using format strings. Here’s my solution for those who do not want to download the masterLibrary. Given these, what else do you need? > > FUNCTION formatDate theDate, theFormat > /* > Accepts any valid date for the first parameter. If not a valid date, it simply returns > what was passed. Second parameter can be any of the following: > sql date: date in the yyyy-mm-dd format > short date, abbreviated date, internet date, long date: LC versions of the same > julian date: Julian number based on (I believe) Jacques formula > */ > > put theDate into tSavedDate > put the itemdelimiter into theOldDelim > set the itemdelimiter to "-" > > IF the length of item 1 of theDate = 4 AND \ > the number of items of theDate = 3 AND \ > item 1 of theDate is a number AND \ > item 2 of theDate is a number AND \ > item 3 of theDate is a number THEN > put item 2 of theDate & "/" & \ > item 3 of theDate & "/" & \ > item 1 of theDate into theDate > END IF > > -- replace "." with "/" in theDate > convert theDate to dateitems > set the itemdelimiter to theOldDelim > > if the number of items of theDate <> 7 then > answer "'" & theDate & "' is not a valid date format!" > return tSavedDate > end if > > SWITCH theFormat > CASE "sql date" > put item 1 of theDate & "-" & \ > format("%02d",item 2 of theDate) & "-" & \ > format("%02d",item 3 of theDate) into theDate > break > CASE "short date" > convert theDate from dateitems to short date > break > CASE "abbreviated date" > convert theDate from dateitems to abbreviated date > break > CASE "abbr date" > convert theDate from dateitems to abbreviated date > break > CASE "internet date" > convert theDate from dateitems to internet date > break > CASE "long date" > convert theDate from dateitems to long date > break > CASE "julian date" > put the date into theDate > convert theDate to dateItems > IF ((item 2 of theDate = 1) OR (item 2 of theDate = 2)) THEN > put 1 into theDay > ELSE > put 0 into theDay > END IF > put item 1 of theDate + 4800 - theDay into theYear > put item 2 of theDate + (12 * theDay) - 3 into theMonth > put item 3 of theDate + \ > ((153 * theMonth + 2) div 5) + \ > (365 * theYear) + \ > (theYear div 4) - \ > (theYear div 100) + \ > (theYear div 400) - \ > 32045 into theDate > break > END SWITCH > > return theDate > END formatDate > > FUNCTION formatTime theTime, theFormat > /* > accepts any valid time and returns the form of the time specified in the second parameter. > The valid formats are: > sql time: hh:mm:ss (Note: combining sql date from the formatDate() function with the > sql time will produce a valid SQL date time type). > short time: LC short time format > abbreviated time: LC abbr time format (same as short time) > long time: LC long time format > seconds: the number of seconds since the prior midnight > military: the military time 00:00 - 23:59 > */ > > IF theTime is empty THEN return empty > > set the numberformat to "00" > SWITCH theFormat > CASE "sql time" > convert theTime to dateitems > put (item 4 of theTime +0) & ":" & \ > (item 5 of theTime +0) & ":" & \ > (item 6 of theTime +0) into theTime > break > CASE "short time" > convert theTime to short time > break > CASE "abbreviated time" > convert theTime to abbreviated time > break > CASE "long time" > convert theTime to long time > break > CASE "seconds" > convert theTime to seconds > break > CASE "military" > set the itemdelimiter to ":" > > IF theTime contains "PM" THEN > add 12 to item 1 of theTime > END IF > > put word 1 of item 2 of theTime into item 2 of theTime > break > END SWITCH > > return theTime > END formatTime > > And as an added bonus, those who use Spiceworks know they format time for tickets as 0h0m0s. > > FUNCTION spiceTime pStartTime, pEndTime > convert pStartTime to dateItems > convert pEndTime to dateItems > subtract item 4 of pStartTime from item 4 of pEndTime > subtract item 5 of pStartTime from item 5 of pEndTime > convert pEndTime from dateItems to short time > put formatTime(pEndTime, "military") into pEndTime > set the itemdelimiter to ":" > IF item 1 of pEndTime > 11 THEN subtract 12 from item 1 of pEndTime > put item 1 of pEndTime & "h" & item 2 of pEndTime & "m" into tTotalTime > return tTotalTime > END spiceTime > > Bob S > > >> On Jul 13, 2023, at 4:19 PM, ambassador--- via use-livecode wrote: >> >> Neville Smythe wrote: >>> I seem to have hallucinated that the built-in convert handler recognised >>> the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD >>> hh:mm:ss+-http://hh.ss, etc) but I must have written my own conversion >>> routines in a former life. >>> But one would have to ask… Why doesn’t it? >>> After all, the original ISO 8601 standard was adopted 1988! >> >> https://quality.livecode.com/show_bug.cgi?id=4636 >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 18:57:25 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 15 Jul 2023 22:57:25 +0000 Subject: Shell + Python? In-Reply-To: References: Message-ID: <71CEE136-F97A-40C3-A813-958EAEBAD957@iotecdigital.com> I ran into a similar thing. Older versions of LC worked with anything you could type into the terminal but now basic things return an error. Sent from my iPhone > On Jul 15, 2023, at 10:07, Geoff Canyon via use-livecode wrote: > > In terminal, this works: > > python -c "print('hello world')" > > > In LiveCode, this: > > *put* shell("python -c " & quote & "print('hello world')" & quote) > > puts this: > > /bin/sh: line 1: python: command not found > > while this: > > *put* shell("pwd") > > puts this: > > /Applications/LiveCode 9.6.9.app > > So any idea why terminal can find python but LC's shell function can't? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sat Jul 15 19:14:48 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 15 Jul 2023 16:14:48 -0700 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: Custom properties would definitely be my go-to, similar to what others have said. That said, I think the merge command is your friend here. This script in a button does what you want: on mouseUp set the script of button "Sample" to \ merge("on mouseUp[[cr]]" &\ "ask [[quote]]Please enter a number between 1 and 100[[quote]][[cr]]" &\ "if it is not a number then exit mouseUp[[cr]]" &\ "if it < 1 OR it > 100 then exit mouseUp[[cr]]" &\ "put it into field [[quote]]Number[[quote]][[cr]]" &\ "end mouseUp") end mouseUp The use of \ to continue, and [[quote]] and [[cr]] results in a pretty readable script to my eye at least. gc On Sat, Jul 15, 2023 at 8:07 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > So in the instances where you have a script that creates an object and > then sets the script of that object (example below), what is you best > practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp > local tScript > create button "Sample" > put "on mouseUp"&cr into tScript > put " ask 'Please enter a number between 1 and 100'" &cr after tScript > put " if it is not a number then exit mouseUp" &cr after tScript > put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript > put " put it into field 'Number'" &cr after tScript > put "end mouseUp" after tScript > replace "'" with quote in tScript > set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with the > "pu" statements and quotes (double and single) and cr and so one > cumbersome to read. Yes there are behavior scripts, but this is about > the best practice of placing a script in a script (to set the script of > an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could follow > it any number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 19:35:03 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 15 Jul 2023 16:35:03 -0700 Subject: Shell + Python? In-Reply-To: References: Message-ID: <0c83d7ba-f81f-6bf6-a2df-3e9b1fc69f50@sonic.net> On 7/15/23 10:05, Geoff Canyon via use-livecode wrote: > So any idea why terminal can find python but LC's shell function can't? Your user context is different from LC's shell context. Try put shell("env | grep PATH") # in the message box and env | grep PATH # in terminal If you want to launch python from LC's shell you'll have to have it in LC's path somewhere, or at least an alias to it in the path. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Sat Jul 15 19:43:53 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 19:43:53 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: That's pretty good! On 7/15/2023 7:14 PM, Geoff Canyon via use-livecode wrote: > Custom properties would definitely be my go-to, similar to what others have > said. That said, I think the merge command is your friend here. > > This script in a button does what you want: > > on mouseUp > set the script of button "Sample" to \ > merge("on mouseUp[[cr]]" &\ > "ask [[quote]]Please enter a number between 1 and > 100[[quote]][[cr]]" &\ > "if it is not a number then exit mouseUp[[cr]]" &\ > "if it < 1 OR it > 100 then exit mouseUp[[cr]]" &\ > "put it into field [[quote]]Number[[quote]][[cr]]" &\ > "end mouseUp") > end mouseUp > > The use of \ to continue, and [[quote]] and [[cr]] results in a pretty > readable script to my eye at least. From alex at tweedly.net Sat Jul 15 20:23:18 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 16 Jul 2023 01:23:18 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> References: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> Message-ID: <33b83ecd-52d9-61df-8351-5c3f619a9fbd@tweedly.net> On 15/07/2023 21:29, Paul Dupuis via use-livecode wrote: > All good suggestions so far, but not what I was after, which was > whether there is any better way to have the script you are setting the > newly created object to, readable, in the script that setup of the new > object. If a behavior script is used or properties or objects then I > can not read (and potentially revise) the script right in the script > that is making the object. I have to open something else if I want to > revise the script. Of course I can have a comment that says "look here > for the script" and it is generally obvious from "set the script of > button "Sample" to . > OK, how about this ? > on mouseUp >    -- using special comments to set script of another object >    local tmp >    put the script of me into tmp >    filter tmp with "*--1 *" >    replace "--1 " with empty in tmp >    set the script of btn "B" to tmp >    --1 on mouseup >    --1   put "hello world" >    --1 end mouseup > end mouseUp of course, you could have multiple of them --1, --2, etc. and you could have metadata, say the first line of each "special comment" has the object name --1 -- script for button "abc" --1 on mouseup ... --1 end mouseup Alex. From paul at researchware.com Sat Jul 15 20:43:37 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 20:43:37 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: <33b83ecd-52d9-61df-8351-5c3f619a9fbd@tweedly.net> References: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> <33b83ecd-52d9-61df-8351-5c3f619a9fbd@tweedly.net> Message-ID: <7b573c23-489d-7cca-6eac-9b12cfd91367@researchware.com> Oh, another great solutions! On 7/15/2023 8:23 PM, Alex Tweedly via use-livecode wrote: > > On 15/07/2023 21:29, Paul Dupuis via use-livecode wrote: >> All good suggestions so far, but not what I was after, which was >> whether there is any better way to have the script you are setting >> the newly created object to, readable, in the script that setup of >> the new object. If a behavior script is used or properties or objects >> then I can not read (and potentially revise) the script right in the >> script that is making the object. I have to open something else if I >> want to revise the script. Of course I can have a comment that says >> "look here for the script" and it is generally obvious from "set the >> script of button "Sample" to . >> > OK, how about this ? > >> on mouseUp >>    -- using special comments to set script of another object >>    local tmp >>    put the script of me into tmp >>    filter tmp with "*--1 *" >>    replace "--1 " with empty in tmp >>    set the script of btn "B" to tmp >>    --1 on mouseup >>    --1   put "hello world" >>    --1 end mouseup >> end mouseUp > > of course, you could have multiple of them --1, --2, etc. > > and you could have metadata, say the first line of each "special > comment" has the object name > > --1 -- script for button "abc" > --1 on mouseup > ... > --1 end mouseup > > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alanstenhouse at hotmail.com Sat Jul 15 22:09:05 2023 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 16 Jul 2023 11:39:05 +0930 Subject: Workaround for regular Crash setting (audio) file of player? Message-ID: Hi David This rings a distant bell... not sure, but can you try set the filename of me to empty and then set the filename of me to audioFile to see if that makes a difference? HTH, cheers Alan From marksmithhfx at gmail.com Sun Jul 16 05:57:24 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 16 Jul 2023 10:57:24 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> References: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> Message-ID: Not a perfect solution but it does solve the problem of not having to use all the put statements and other grammar which as you note is cumbersome to read, let alone write. I agree though, a more elegant solution to this problem would be useful. > On 15 Jul 2023, at 9:29 pm, Paul Dupuis via use-livecode wrote: > > All good suggestions so far, but not what I was after, which was whether there is any better way to have the script you are setting the newly created object to, readable, in the script that setup of the new object. If a behavior script is used or properties or objects then I can not read (and potentially revise) the script right in the script that is making the object. I have to open something else if I want to revise the script. Of course I can have a comment that says "look here for the script" and it is generally obvious from "set the script of button "Sample" to . > > > > On 7/15/2023 11:06 AM, Paul Dupuis via use-livecode wrote: >> So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? >> >> Example: >> BUTTON "Make" >> on mouseUp >> local tScript >> create button "Sample" >> put "on mouseUp"&cr into tScript >> put " ask 'Please enter a number between 1 and 100'" &cr after tScript >> put " if it is not a number then exit mouseUp" &cr after tScript >> put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript >> put " put it into field 'Number'" &cr after tScript >> put "end mouseUp" after tScript >> replace "'" with quote in tScript >> set the script of button "Sample" to tScript >> end mouseUp >> >> This create a button "Sample" with the script >> on mouseUp >> ask "Please enter a number between 1 and 100" >> if it is not a number then exit mouseUp >> if it < 1 OR it > 100 then exit mouseUp >> put it into field "Number" >> end mouseUp >> >> However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. >> >> I wish there was a command like "put begin block" where you could follow it any number of lines and then "end block into tVar". i.e. >> >> put begin block >> on mouseUp >> ask "Please enter a number between 1 and 100" >> if it is not a number then exit mouseUp >> if it < 1 OR it > 100 then exit mouseUp >> put it into field "Number" >> end mouseUp >> end block into tScript >> >> Is there a better way to have a script written in a script? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Sun Jul 16 18:25:47 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Sun, 16 Jul 2023 23:25:47 +0100 Subject: Browser widget "Navigation request cancelled"/"NSURLErrorDomain error -999" Message-ID: <1ebb2680-c423-7b65-0012-a19dd072ed67@cogapp.com> I'm finding intermittent issues with the browser widget failing to load an internal site. In 9.6.8, the error (in browserDocumentLoadFailed) will usually be "NSURLErrorDomain error -999". In 10.0.0 (dp 5) it will be "Navigation request cancelled". Alternatively, sometimes (at least in 9.6.8) it will be "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." ... which is fair enough, because it's an "http:" URL rather than an "https:" (this is an application on our intranet); but the whacky part is that _sometimes_ I can load the site, and once loaded I can navigate it fine. In particular I have more success in loading it in 10.0.0 (dp 5) - although sometimes the site will load, _and_ the browserDocumentLoadFailed message will be sent! I also sometimes find I can load it if I set the URL in the property inspector for the browser widget, where setting it in script fails. Can anyone shed light? I'd prefer to get this working in 9.6.8, because due to https://quality.livecode.com/show_bug.cgi?id=24268 I tend to lose work in 10.0.0 (dp 5) - but if I could get it consistently working in either that would be a step forward! TIA, Ben From klaus at major-k.de Mon Jul 17 04:10:26 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Jul 2023 10:10:26 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: Hi all, > Am 14.07.2023 um 22:36 schrieb J. Landman Gay via use-livecode : > > On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: >> I am looking for a support email at GOOGLE Dev. >> My problem is the search engine of Google Play Store. >> Just like the subject says. ;-) > > Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: > > > They don't make it easy. just received a response from Google. It is completely generic, does not make any sense to me, but it looks like they do NOT search for the correct and complete title of an app in their database. :-/ Maybe I do not understand it correctly? ------------------------------------------------------------ Hi Klaus, Thanks for contacting Google Play Developer Support. Google Play app search works across title, developer name, and app descriptions. Your title should be unique and accessible, avoid common terms, and reinforce what your app is about. Using common or generic words like "Puzzle" or "Sports" can often increase the total number of potential search results, thus making your app more difficult to find. Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). For more information about Google Search Operators, please see this Google Search Help Center article. ... ------------------------------------------------------------ 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 Mon Jul 17 06:02:24 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Jul 2023 12:02:24 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi friends, FYI: I solved the problem! 1. For testing I ordered the cheapest USB footswitch fom Mr. Pesos -> 15.99 Euro 2. Also ordered an USB-A to Micro-USB adapter 3. Downloaded the software for setting up the footswitch, there is even a Mac version! 4. Configured the footswitch to act as a mouseclick 5. Tested with a quick LC app on my Android tablet and... ... IT WORKS, hooray! :-) The P.S. in my initial posting is still waiting for an answer. :-) > Am 25.05.2023 um 17:22 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I'm still an active musician (bass guitar) and am currently playing in four bands. > > Nowadays bulky music stands on stage are OUT and tablets are IN! > So I am considering to create a little app for myself to display PDF leadsheets > (= lyrics and chord symbols) on an Andorid tablet, which I still have to buy. :-) > > There are some USB footswitches, and I would like to use one of them to browse > through the (multipage) PDFs (next page, previous page). > > Anyone knows if these switches will act like an "external keyboard", means if they > will just send any RAWKEY that I could catch in LC? > Or will I need something created with LCB to do so? > > Thanks for any hint! P.S. Since PDFs are not accessible via "mobilepickmedia" are there ANY other ways to add some PDFs later without having to download them from some URL? 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 Mon Jul 17 11:20:17 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Jul 2023 15:20:17 +0000 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: <43849C96-3A38-427D-A7F3-653032BEA7B9@iotecdigital.com> I bet the dashes mean something in the search algorithm. Bob S > On Jul 17, 2023, at 1:10 AM, Klaus major-k via use-livecode wrote: > > Hi all, > >> Am 14.07.2023 um 22:36 schrieb J. Landman Gay via use-livecode : >> >> On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: >>> I am looking for a support email at GOOGLE Dev. >>> My problem is the search engine of Google Play Store. >>> Just like the subject says. ;-) >> >> Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: >> >> >> They don't make it easy. > > just received a response from Google. > > It is completely generic, does not make any sense to me, but it looks like they do NOT > search for the correct and complete title of an app in their database. :-/ > > Maybe I do not understand it correctly? > ------------------------------------------------------------ > Hi Klaus, > > Thanks for contacting Google Play Developer Support. > > Google Play app search works across title, developer name, and app descriptions. > Your title should be unique and accessible, avoid common terms, and reinforce > what your app is about. > > Using common or generic words like "Puzzle" or "Sports" can often increase the > total number of potential search results, thus making your app more difficult to find. > Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect > the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). > > For more information about Google Search Operators, please see this Google Search Help Center article. > ... > ------------------------------------------------------------ > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Mon Jul 17 11:26:19 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Jul 2023 17:26:19 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <43849C96-3A38-427D-A7F3-653032BEA7B9@iotecdigital.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <43849C96-3A38-427D-A7F3-653032BEA7B9@iotecdigital.com> Message-ID: <6EE26599-DD5D-4188-9CC6-3ED93A8BDBD3@major-k.de> Hi Bob, > Am 17.07.2023 um 17:20 schrieb Bob Sneidar via use-livecode : > > I bet the dashes mean something in the search algorithm. well, maybe. However that entering a misspelled app name will lead to a successfull find is really ridiculous! sehen - hören - merkn -> App found (missing E renders this to a NON german word!) instead of sehen - hören - merken -> no result 8-) > Bob S > >> On Jul 17, 2023, at 1:10 AM, Klaus major-k via use-livecode wrote: >> ... >> just received a response from Google. >> It is completely generic, does not make any sense to me, but it looks like they do NOT >> search for the correct and complete title of an app in their database. :-/ >> Maybe I do not understand it correctly? >> ------------------------------------------------------------ >> Hi Klaus, >> >> Thanks for contacting Google Play Developer Support. >> >> Google Play app search works across title, developer name, and app descriptions. >> Your title should be unique and accessible, avoid common terms, and reinforce >> what your app is about. >> >> Using common or generic words like "Puzzle" or "Sports" can often increase the >> total number of potential search results, thus making your app more difficult to find. >> Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect >> the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). >> >> For more information about Google Search Operators, please see this Google Search Help Center article. >> ... >> ------------------------------------------------------------ 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 Mon Jul 17 11:32:42 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Jul 2023 15:32:42 +0000 Subject: Shell + Python? In-Reply-To: <0c83d7ba-f81f-6bf6-a2df-3e9b1fc69f50@sonic.net> References: <0c83d7ba-f81f-6bf6-a2df-3e9b1fc69f50@sonic.net> Message-ID: <5A153757-647E-443F-9B18-BBD700B5CA2E@iotecdigital.com> OK mine are definitely different. So what changed? Virtually everything I used for shell in the past worked without a problem but at some point in the recent updates this changed. So then what is the solution? Obviously I am going to have to change the shell for LC, and not the one for Terminal. LC’s shellCommand is /bin/sh. The terminal is zsh so I set Livecode’s shellCommand to /bin/zsh. The path changed but is still different from what I grep in the terminal!! Shouldn’t there be a way to tell LC what the default shell is in the terminal?? Bob S > On Jul 15, 2023, at 4:35 PM, Mark Wieder via use-livecode wrote: > > On 7/15/23 10:05, Geoff Canyon via use-livecode wrote: > >> So any idea why terminal can find python but LC's shell function can't? > > Your user context is different from LC's shell context. Try > > put shell("env | grep PATH") # in the message box > > and > > env | grep PATH # in terminal > > If you want to launch python from LC's shell you'll have to have it in LC's path somewhere, or at least an alias to it in the path. > > -- > Mark Wieder > ahsoftware at gmail.com From paul at researchware.com Mon Jul 17 12:39:32 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Jul 2023 12:39:32 -0400 Subject: Apple Notarization changes... Message-ID: I got an email from Apple Developer date 13-Jun-2023 that: "Were reaching out because you recently used the altool command-line utility to notarize your macOS software with Apple. As announced last year at WWDC22, if youre still using altool with the Apple notary service, you should transition to the notarytool command-line utility as soon as possible. Notarizing software with altool was deprecated in Xcode 13, and the Apple notary service will no longer accept uploads from altool as of November 1, 2023. Existing notarized software will continue to function properly. " So, my questions for the Hivemind and/or the Mothership are: 1) I currently code sign and notarize using some version of Xcode under Mojave on a MacBook Pro. I do not really want to upgrade the OS from Mojave. The MacBook pro literal only function is macOS code signing and notarization. It sits off line and doesn't get any updates because I am terrified some update will break the code signing and notarization process. So, is there a version of Xcode that will run on Mojave and supports the new notarytool (vs attool as the terminal command - I have been using is "xcrun altool -type osx --notarize-app --primary-bundle-id ... etc.")? What is the minimum OS/Xcode combination that lets me use notarytool? 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! From matthias_livecode_150811 at m-r-d.de Mon Jul 17 12:48:52 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 17 Jul 2023 18:48:52 +0200 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: > > 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? > see here https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Mon Jul 17 12:56:10 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 17 Jul 2023 17:56:10 +0100 Subject: Crazy question: is it possible/reasonable to use Python in LC? In-Reply-To: References: Message-ID: "do ... as python" ?? On 13/07/2023 21:03, Geoff Canyon via use-livecode wrote: > I've been playing with Python, and it has a lot of nice qualities, but a > built-in GUI isn't one of them (no apologies to tkinter). > > So it would be interesting/nice to be able to open LC, add a button to a > stack, and put some python into the script of that button and have it just > work, with access to the rest of the LC stack/controls as usual. > > Obviously that's not possible, but how close can we come? I assume it would > be possible to write a shell command to trigger a python script, but that > seems complex and sub-optimal, especially when thinking about having to > bundle together all the bits and bobs from the LC UI to pass as arguments > to the Python script instead of having it able to just reference what it > needs on the fly. > > Anyway, wondering if anyone else has thought about this. > > gc > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 13:11:38 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Jul 2023 13:11:38 -0400 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: Well, I'm glad the lesson and tool exists and thanks for the link. On the negative side, I just found the Apple developer Xcode page that shows that Xcode 13minimum OS version is  macOS Big Sur 11.3 So, no more Mojave. Huge bummer for me. We have a macBook Air with Ventura (latest version), so I guess it is time to set up and get used to Xcode 15. Ugh, I have when OS vendors change things. We have enough changes we need to make in our own products we can't keep up with :-( On 7/17/2023 12:48 PM, matthias rebbe via use-livecode wrote: >> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? >> > see here > https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > > > >> November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 13:11:55 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 17 Jul 2023 12:11:55 -0500 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: <18964d65378.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> @Paul : Matthias' helper stack is a great gift to the community. I think the LC team even uses it. You'll never have to use Terminal or Xcode again. You can download the stack from the lesson he linked to, then scroll down to section 9 to see the setup. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 17, 2023 11:50:50 AM matthias rebbe via use-livecode wrote: >> >> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, >> etc, for using this new notarytool? If so, can anyone point me to it? > see here > https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > > > >> November 1 is still a ways off, but I find Apple Notarization so >> incomprehensible that once I get a set of steps to work, I document them >> and follow them verbatim and the thought of trying to figure out what this >> change means is daunting! From marksmithhfx at gmail.com Mon Jul 17 13:18:40 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 17 Jul 2023 18:18:40 +0100 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: Matthias, thanks for upgrading your lesson plan to work with the new signing tool. It’s an invaluable asset and assistance to the community of mobile app developers. Mark > On 17 Jul 2023, at 5:48 pm, matthias rebbe via use-livecode wrote: > >> >> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? >> > see here > https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > > > >> November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 13:25:30 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 17 Jul 2023 18:25:30 +0100 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: <4CACAABE-BC41-4E31-AA81-39C2E540AB32@gmail.com> Hi Paul, my sentiments exactly. I also shudder at having to change, modify or upgrade any aspect of the development environment because, like a set of dominoes, once you change one thing you are pretty much committed to having to upgrade and change everything else as well. Its an unfortunate aspect of developing in the modern computer age but tools like Matthias’s MrSignNotarizeHelperV4 makes it a LOT less bumpy. I probably would have given up ages ago without it!! Mark > On 17 Jul 2023, at 6:11 pm, Paul Dupuis via use-livecode wrote: > > Well, I'm glad the lesson and tool exists and thanks for the link. > > On the negative side, I just found the Apple developer Xcode page that shows that Xcode 13minimum OS version is macOS Big Sur 11.3 > > So, no more Mojave. Huge bummer for me. > > We have a macBook Air with Ventura (latest version), so I guess it is time to set up and get used to Xcode 15. Ugh, I have when OS vendors change things. We have enough changes we need to make in our own products we can't keep up with :-( > > > > On 7/17/2023 12:48 PM, matthias rebbe via use-livecode wrote: >>> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? >>> >> see here >> https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up >> >> >> >>> November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 16:05:04 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 17 Jul 2023 15:05:04 -0500 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: > Maybe I do not understand it correctly? > ------------------------------------------------------------ > Hi Klaus, > > Thanks for contacting Google Play Developer Support. > > Google Play app search works across title, developer name, and app descriptions. > Your title should be unique and accessible, avoid common terms, and reinforce > what your app is about. > > Using common or generic words like "Puzzle" or "Sports" can often increase the > total number of potential search results, thus making your app more difficult to find. > Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect > the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). Interesting. The app that couldn't be found for me had an "@" sign in the name. So I agree that symbols or punctuation like hyphens may be the problem. Since their algorithm converts the search term, you could try putting the Google version in the description somewhere. You could put it way at the bottom of the description, just for reference. I very occasionally see titles like this: Sehen-Hören-Merken (Sehen - Hören - Merken) I wondered why but now I think I know. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Jul 17 16:44:45 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Jul 2023 20:44:45 +0000 Subject: Search for an app in Google Play Store In-Reply-To: <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> Message-ID: <1179EAF4-180E-4AE7-8942-8D96161C58E1@iotecdigital.com> That IS weird. Bob S > On Jul 17, 2023, at 1:05 PM, J. Landman Gay via use-livecode wrote: > > On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: >> Maybe I do not understand it correctly? >> ------------------------------------------------------------ >> Hi Klaus, >> Thanks for contacting Google Play Developer Support. >> Google Play app search works across title, developer name, and app descriptions. >> Your title should be unique and accessible, avoid common terms, and reinforce >> what your app is about. >> Using common or generic words like "Puzzle" or "Sports" can often increase the >> total number of potential search results, thus making your app more difficult to find. >> Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect >> the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). > > Interesting. The app that couldn't be found for me had an "@" sign in the name. So I agree that symbols or punctuation like hyphens may be the problem. > > Since their algorithm converts the search term, you could try putting the Google version in the description somewhere. You could put it way at the bottom of the description, just for reference. > > I very occasionally see titles like this: > Sehen-Hören-Merken (Sehen - Hören - Merken) > > I wondered why but now I think I know. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Jul 17 20:00:11 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 18 Jul 2023 00:00:11 +0000 Subject: sqlYoga question Message-ID: <738BAEAA-02A7-4FA9-BE79-0F23E89178EB@iotecdigital.com> Hi ll. I have a curious problem. I am trying to select only records with the highest value in an SQL table. I know the SQL to do it, but how to get sqlYoga to do it is a mystery to me. The actual SQL looks something like this: select * from files t1 where custid = '289' and fileversion = (select max(fileversion) from files t2 where t2.filename = t1.filename) I know I can do this in the native API, but the question is, how to do this in sqlYoga?? Bob S From marksmithhfx at gmail.com Tue Jul 18 06:59:41 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 11:59:41 +0100 Subject: tsneterr Message-ID: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> I received the following error: tsenterr (55) SSLWrite() returned error -9805 Anyone know what this means or where to lookup what it means? Thanks From klaus at major-k.de Tue Jul 18 07:03:32 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 13:03:32 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> Message-ID: Hi Jacque, > Am 17.07.2023 um 22:05 schrieb J. Landman Gay via use-livecode : > > On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: >> Maybe I do not understand it correctly? >> ------------------------------------------------------------ >> Hi Klaus, >> Thanks for contacting Google Play Developer Support. >> Google Play app search works across title, developer name, and app descriptions. >> Your title should be unique and accessible, avoid common terms, and reinforce >> what your app is about. >> Using common or generic words like "Puzzle" or "Sports" can often increase the >> total number of potential search results, thus making your app more difficult to find. >> Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect >> the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). > Interesting. The app that couldn't be found for me had an "@" sign in the name. So I agree that symbols or punctuation like hyphens may be the problem. yes, looks like... > Since their algorithm converts the search term, you could try putting the Google version in the description somewhere. You could put it way at the bottom of the description, just for reference. Do you mean in the description on the page in the Google Play Store? If yes, that will not make sense, since the problem is to find that page first! Chicken and egg problem... :-) If not, please explain. > I very occasionally see titles like this: > Sehen-Hören-Merken (Sehen - Hören - Merken) > > I wondered why but now I think I know. > > -- > Jacqueline Landman Gay Best Klaus -- 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 Tue Jul 18 07:27:58 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 18 Jul 2023 13:27:58 +0200 Subject: tsneterr In-Reply-To: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> Message-ID: <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> The error numbers in the brackets returned by tsNet are curl error numbers. And according to https://curl.se/libcurl/c/libcurl-errors.html it means there was a problem sending data to the peer. Searching further for Curl error 55 i found some causes 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server 2. Your or the remote compute could have incorrect time settings 3. wrong firewall settings on the remote system > Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : > > I received the following error: > > tsenterr (55) SSLWrite() returned error -9805 > > Anyone know what this means or where to lookup what it means? > > 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 marksmithhfx at gmail.com Tue Jul 18 08:20:37 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 13:20:37 +0100 Subject: tsneterr In-Reply-To: <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> Message-ID: <3C6E86B1-0033-4759-87B5-339A58AF8258@gmail.com> Thanks Matthias. I’ve bookmarked the curl page for future reference. That solves about 1/2 the problem. Too bad it is difficult to find any information on error code -9805. I’ll follow up with dropbox to see if they are issuing it and what it means. I checked the things you mentioned and none of them seemed to apply (I’m using http not ftp so that rules out #1, time settings have not changed on my end since forever, unlikely dropbox would change them either so that probably rules out #2, and I can’t speak to their firewall settings). Very helpful, so many thanks! PS I’ve noticed this error only since upgrading to LC10. I wonder if anything changed in LC that might be contributing? I’d go back to using 9.6.8 (I still have it installed) but since upgrading Xcode to be compatible I don’t have the old SDK available to test with. BTW, this is a question I’ve long wondered but never answered: is it possible to just have (or keep) the SDK files and not all of Xcode? That would sure make life easier space wise. Mark > On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode wrote: > > The error numbers in the brackets returned by tsNet are curl error numbers. > And according to > https://curl.se/libcurl/c/libcurl-errors.html > > it means there was a problem sending data to the peer. > > Searching further for Curl error 55 i found some causes > > 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server > 2. Your or the remote compute could have incorrect time settings > 3. wrong firewall settings on the remote system > > >> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >> >> I received the following error: >> >> tsenterr (55) SSLWrite() returned error -9805 >> >> Anyone know what this means or where to lookup what it means? >> >> Thanks >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Jul 18 08:33:07 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 14:33:07 +0200 Subject: permanency of an unsigned Android app on the phone? Message-ID: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> Hi all, if I "Do not sign" my Android app and let someone install the app via Google Drive, will the app cease to work at some point like iOS apps do after 90 days (I think)? Thanks for any hint! 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 Jul 18 08:49:25 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 13:49:25 +0100 Subject: tsneterr In-Reply-To: <3C6E86B1-0033-4759-87B5-339A58AF8258@gmail.com> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> <3C6E86B1-0033-4759-87B5-339A58AF8258@gmail.com> Message-ID: <5A92DDC7-32BF-4827-B9AD-F8EFD7BF416E@gmail.com> Here is another timing issue I hadn’t thought of. My upload has recently passed the 1/2 mb size and this may cause a timeout of some sort on the receiving end if it has grown too big?? I don’t think 1/2 mb on DB would be a problem (I have 2 TB of storage, with 25% still free) but maybe when combined with a slow transfer rate? Anyway, I’ve sent a msg to DB so will see what they come back with. Mark > On 18 Jul 2023, at 1:20 pm, Mark Smith wrote: > > Thanks Matthias. I’ve bookmarked the curl page for future reference. That solves about 1/2 the problem. Too bad it is difficult to find any information on error code -9805. I’ll follow up with dropbox to see if they are issuing it and what it means. I checked the things you mentioned and none of them seemed to apply (I’m using http not ftp so that rules out #1, time settings have not changed on my end since forever, unlikely dropbox would change them either so that probably rules out #2, and I can’t speak to their firewall settings). Very helpful, so many thanks! > > PS I’ve noticed this error only since upgrading to LC10. I wonder if anything changed in LC that might be contributing? I’d go back to using 9.6.8 (I still have it installed) but since upgrading Xcode to be compatible I don’t have the old SDK available to test with. BTW, this is a question I’ve long wondered but never answered: is it possible to just have (or keep) the SDK files and not all of Xcode? That would sure make life easier space wise. > > Mark > >> On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode wrote: >> >> The error numbers in the brackets returned by tsNet are curl error numbers. >> And according to >> https://curl.se/libcurl/c/libcurl-errors.html >> >> it means there was a problem sending data to the peer. >> >> Searching further for Curl error 55 i found some causes >> >> 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server >> 2. Your or the remote compute could have incorrect time settings >> 3. wrong firewall settings on the remote system >> >> >>> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >>> >>> I received the following error: >>> >>> tsenterr (55) SSLWrite() returned error -9805 >>> >>> Anyone know what this means or where to lookup what it means? >>> >>> Thanks >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jul 18 11:12:16 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 10:12:16 -0500 Subject: permanency of an unsigned Android app on the phone? In-Reply-To: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> References: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> Message-ID: <189698f2480.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> No, they'll work indefinitely. Depending on the Android version the user may need to bypass a scary warning, accept some permissions, and turn on the ability to download from unknown sources in system settings. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 18, 2023 7:34:28 AM Klaus major-k via use-livecode wrote: > Hi all, > > if I "Do not sign" my Android app and let someone install > the app via Google Drive, will the app cease to work at > some point like iOS apps do after 90 days (I think)? > > Thanks for any hint! > > > 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 Jul 18 11:22:01 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 17:22:01 +0200 Subject: permanency of an unsigned Android app on the phone? In-Reply-To: <189698f2480.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> <189698f2480.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <3F25D43F-A243-40E6-AE09-519B79F90980@major-k.de> Hi Jacques, > Am 18.07.2023 um 17:12 schrieb J. Landman Gay via use-livecode : > > No, they'll work indefinitely. ah, thank you, that's good news! :-) > Depending on the Android version the user may need to bypass a scary warning, > accept some permissions, and turn on the ability to download from unknown sources in system settings. Yes, sure. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com 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 Tue Jul 18 11:27:22 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 10:27:22 -0500 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> Message-ID: <189699cf790.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Google said it searches the description as well as the title and author, so if you put their modified string into the description their bot should find it. You could even do something like this: Search Ref: Sehen - Hren - Merken That is the modified string Google uses for search. It adds spaces around the hyphens. If you don't want to do that, you could just edit the title to include the spaces. I'm not sure if you can change the title without resubmitting the app but you could try. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 18, 2023 6:04:53 AM Klaus major-k via use-livecode wrote: > Hi Jacque, > >> Am 17.07.2023 um 22:05 schrieb J. Landman Gay via use-livecode >> : >> >> On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: >>> Maybe I do not understand it correctly? >>> ------------------------------------------------------------ >>> Hi Klaus, >>> Thanks for contacting Google Play Developer Support. >>> Google Play app search works across title, developer name, and app >>> descriptions. >>> Your title should be unique and accessible, avoid common terms, and reinforce >>> what your app is about. >>> Using common or generic words like "Puzzle" or "Sports" can often increase the >>> total number of potential search results, thus making your app more >>> difficult to find. >>> Using the search phrase Sehen-Hren-Merken forces our search engine to >>> autocorrect >>> the search term and return results as if the search term were "Sehen - >>> Hren - Merken" (in quotes). >> Interesting. The app that couldn't be found for me had an "@" sign in the >> name. So I agree that symbols or punctuation like hyphens may be the problem. > > yes, looks like... > >> Since their algorithm converts the search term, you could try putting the >> Google version in the description somewhere. You could put it way at the >> bottom of the description, just for reference. > > Do you mean in the description on the page in the Google Play Store? > If yes, that will not make sense, since the problem is to find that page first! > Chicken and egg problem... :-) > > If not, please explain. > >> I very occasionally see titles like this: >> Sehen-Hren-Merken (Sehen - Hren - Merken) >> >> I wondered why but now I think I know. >> >> -- >> Jacqueline Landman Gay > > 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 marksmithhfx at gmail.com Tue Jul 18 11:50:09 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 16:50:09 +0100 Subject: tsneterr In-Reply-To: <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> Message-ID: <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> Hi Matthias, First let me thank you for your previous response. In response to my question about error -9805 dropbox replied: The error you posted shows some platform specific error. Dropbox doesn't respond with any similar error. You have to read your environment documentation for more info. It seems, according to the method name, the trouble is related to SSL tunneling work. Does your environment support TLSv1.2? The method name is SSLWrite(). Apple says the method has been deprecated since iOS13, I am running 15.6. Note, this is a relatively new occurrence in the app… I think I’ve seen it maybe 4 times since June 21 (dated screen shots) but a lot changed around then. I upgraded to LC10, swapped Xcode, changed the SDK, god knows what else possibly iOS (I can’t remember). So it’s very difficult to point a finger at what has changed to cause this. The only other error to pop up was (56) broken pipe which, come to think of it, might be related? Oh, other bit of trivia… I usually just send again (after a few steps to re-enable uploading) and it works fine. So it’s very sporadic. I use the app maybe 10-15 times a day and have seen this error maybe 4 times in the last month. Thanks, Mark > On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode wrote: > > The error numbers in the brackets returned by tsNet are curl error numbers. > And according to > https://curl.se/libcurl/c/libcurl-errors.html > > it means there was a problem sending data to the peer. > > Searching further for Curl error 55 i found some causes > > 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server > 2. Your or the remote compute could have incorrect time settings > 3. wrong firewall settings on the remote system > > >> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >> >> I received the following error: >> >> tsenterr (55) SSLWrite() returned error -9805 >> >> Anyone know what this means or where to lookup what it means? >> >> Thanks >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Jul 18 14:44:25 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 18 Jul 2023 20:44:25 +0200 Subject: tsneterr In-Reply-To: <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> Message-ID: <03CF6807-0D4C-4EED-8EB9-9A2637B440DD@m-r-d.de> Hi Mark, it seems error -9805 is an error which is returned by iOS. I just searched for error 9805 and found this page here with some open source code from Apple. https://opensource.apple.com/source/libsecurity_ssl/libsecurity_ssl-36800/lib/SecureTransport.h There is the following line errSSLClosedGraceful = -9805, /* connection closed gracefully */ Anyway, maybe someone from LC or maybe even Charles Warwick, the author of the tsNet external, could chime in. Regards, Matthias > Am 18.07.2023 um 17:50 schrieb Mark Smith : > > Hi Matthias, > > First let me thank you for your previous response. In response to my question about error -9805 dropbox replied: > > The error you posted shows some platform specific error. Dropbox doesn't respond with any similar error. You have to read your environment documentation for more info. It seems, according to the method name, the trouble is related to SSL tunneling work. Does your environment support TLSv1.2? > > The method name is SSLWrite(). Apple says the method has been deprecated since iOS13, I am running 15.6. Note, this is a relatively new occurrence in the app… I think I’ve seen it maybe 4 times since June 21 (dated screen shots) but a lot changed around then. I upgraded to LC10, swapped Xcode, changed the SDK, god knows what else possibly iOS (I can’t remember). So it’s very difficult to point a finger at what has changed to cause this. The only other error to pop up was (56) broken pipe which, come to think of it, might be related? Oh, other bit of trivia… I usually just send again (after a few steps to re-enable uploading) and it works fine. So it’s very sporadic. I use the app maybe 10-15 times a day and have seen this error maybe 4 times in the last month. > > Thanks, > Mark > >> On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode > wrote: >> >> The error numbers in the brackets returned by tsNet are curl error numbers. >> And according to >> https://curl.se/libcurl/c/libcurl-errors.html >> >> it means there was a problem sending data to the peer. >> >> Searching further for Curl error 55 i found some causes >> >> 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server >> 2. Your or the remote compute could have incorrect time settings >> 3. wrong firewall settings on the remote system >> >> >>> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >>> >>> I received the following error: >>> >>> tsenterr (55) SSLWrite() returned error -9805 >>> >>> Anyone know what this means or where to lookup what it means? >>> >>> Thanks >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jul 18 14:57:19 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 13:57:19 -0500 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: On 7/17/23 5:02 AM, Klaus major-k via use-livecode wrote: > Since PDFs are not accessible via "mobilepickmedia" are there ANY other ways to add > some PDFs later without having to download them from some URL? I tried several things but I couldn't get any of them to work. You can write to and read from the mobile documents folder, but if you put a file in there manually it isn't seen by the app. I use a very good file manager on Android called Solid Explorer and it does see a file I copy to documents, but my mobile app doesn't list it or confirm anything is there. If you want to try, download a good file manager; Google or Samsung's default Files app won't work. Then go to the app's document folder, which is located here: /Android/data/com.your.appID/ You may have to give the file manager permissions to open those folders, they're locked down in recent versions of Android. Solid Explorer will ask you to allow it. We really need LC to give us access to the public documents folder. I think that's the only way to do what you (and I) want. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From marksmithhfx at gmail.com Tue Jul 18 15:16:07 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 20:16:07 +0100 Subject: tsneterr In-Reply-To: <03CF6807-0D4C-4EED-8EB9-9A2637B440DD@m-r-d.de> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> <03CF6807-0D4C-4EED-8EB9-9A2637B440DD@m-r-d.de> Message-ID: Thanks Matthias. I find it strange that they would report “connection closed gracefully” as an error. But as I noted previously, this just started happening about a month ago so I am going on the assumption that it’s not a good thing and will keep looking for an explanation. If I can think of way to phrase it, I may even try the mothership. At the moment, however, I have no way to make this happen reliably so that’s not much for them to go on. Mark > On 18 Jul 2023, at 7:44 pm, matthias rebbe via use-livecode wrote: > > Hi Mark, > it seems error -9805 is an error which is returned by iOS. > > I just searched for error 9805 and found this page here with some open source code from Apple. > https://opensource.apple.com/source/libsecurity_ssl/libsecurity_ssl-36800/lib/SecureTransport.h > > There is the following line > errSSLClosedGraceful = -9805, /* connection closed gracefully */ > > Anyway, maybe someone from LC or maybe even Charles Warwick, the author of the tsNet external, could chime in. > > Regards, > Matthias > > >> Am 18.07.2023 um 17:50 schrieb Mark Smith >: >> >> Hi Matthias, >> >> First let me thank you for your previous response. In response to my question about error -9805 dropbox replied: >> >> The error you posted shows some platform specific error. Dropbox doesn't respond with any similar error. You have to read your environment documentation for more info. It seems, according to the method name, the trouble is related to SSL tunneling work. Does your environment support TLSv1.2? >> >> The method name is SSLWrite(). Apple says the method has been deprecated since iOS13, I am running 15.6. Note, this is a relatively new occurrence in the app… I think I’ve seen it maybe 4 times since June 21 (dated screen shots) but a lot changed around then. I upgraded to LC10, swapped Xcode, changed the SDK, god knows what else possibly iOS (I can’t remember). So it’s very difficult to point a finger at what has changed to cause this. The only other error to pop up was (56) broken pipe which, come to think of it, might be related? Oh, other bit of trivia… I usually just send again (after a few steps to re-enable uploading) and it works fine. So it’s very sporadic. I use the app maybe 10-15 times a day and have seen this error maybe 4 times in the last month. >> >> Thanks, >> Mark >> >>> On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode >> wrote: >>> >>> The error numbers in the brackets returned by tsNet are curl error numbers. >>> And according to >>> https://curl.se/libcurl/c/libcurl-errors.html >>> >>> it means there was a problem sending data to the peer. >>> >>> Searching further for Curl error 55 i found some causes >>> >>> 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server >>> 2. Your or the remote compute could have incorrect time settings >>> 3. wrong firewall settings on the remote system >>> >>> >>>> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >>>> >>>> I received the following error: >>>> >>>> tsenterr (55) SSLWrite() returned error -9805 >>>> >>>> Anyone know what this means or where to lookup what it means? >>>> >>>> Thanks >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Jul 18 15:30:59 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 21:30:59 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi Jacque, > Am 18.07.2023 um 20:57 schrieb J. Landman Gay via use-livecode : > > On 7/17/23 5:02 AM, Klaus major-k via use-livecode wrote: >> Since PDFs are not accessible via "mobilepickmedia" are there ANY other ways to add >> some PDFs later without having to download them from some URL? > > I tried several things but I couldn't get any of them to work. You can write to and read from the mobile documents folder, but if you put a file in there manually it isn't seen by the app. I use a very good file manager on Android called Solid Explorer and it does see a file I copy to documents, but my mobile app doesn't list it or confirm anything is there. > If you want to try, download a good file manager; Google or Samsung's default Files app won't work. Then go to the app's document folder, which is located here: > /Android/data/com.your.appID/ > You may have to give the file manager permissions to open those folders, they're locked down in recent versions of Android. Solid Explorer will ask you to allow it. thank you, will install and try Solid Explorer! > We really need LC to give us access to the public documents folder. I think that's the only way to do what you (and I) want. Yes, definitively! The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps where the user needs to add more files. Since this is an app for my personal pleasure, I will create a way to "sync" local files with files on my server. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Tue Jul 18 15:47:38 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 21:47:38 +0200 Subject: missing folders in resource folder Message-ID: <83E7E2DB-6EBF-4250-B5ED-1591481CEB07@major-k.de> Hi friends, I added a folder "daten" in the "Copy files" tab in the "Standalone Application settings". Inside of this folder are five more folders and two of them are EMPTY. The two empty folders do NOT appear in the Android runtime if I do: ... put specialfolderpath("resources") & "/daten" into tFolder put folders(tFolder) into fld xyz ## I only get the NOT empty folders in the field!? ... Is this a feature or a bug? 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 Tue Jul 18 17:49:03 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 16:49:03 -0500 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: <03ecff9f-02b6-cf90-c7a0-127221bfe7f8@hyperactivesw.com> On 7/18/23 2:30 PM, Klaus major-k via use-livecode wrote: > thank you, will install and try Solid Explorer! I'm very impressed with it, it can do so many things. You can link to any cloud storage and access files as though they were local on the device. It can unzip files, create collections of favorite folders, play audio files, and display text and images. Like Finder, you can drag files from one place to another to either copy or move them. It can access your computer or another device on the network via FTP. It gets frequent updates. There's too much to list here, but it's been my file manager for years and the first app I install on a new device. Disclaimer: I'm not involved with it at all, I just like it a lot. This kind of file management is what I miss most about iOS. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jul 19 16:53:38 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 19 Jul 2023 15:53:38 -0500 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> Message-ID: <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> @Matthias: does the upgraded WinSignHelper work with the new hardware eTokens? Those are required now. If so, do the instructions change on how to use your tool? On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: > i've upgraded my free tool WinSignHelper. > > For those who do not know what WinSignHelper is... > It's a GUI for osslsigncode. Osslsigncode is command line tool that can do the Authenticode signing and timestamping. With it you can code sign Windows applications using an appropriate code signing certificate. > > You just drag a folder with your Windows application into WinSignHelper and it signs all components of your standalone (.exe and .dll). > WinSignHelper Help section gives enough information about how to install osslsigncode. > > So if anyone is interested in testing.... > > The version is notarized and is an universal build for X86 and Arm > > Zip > https://dl.qck.nu/?dl=WinSignHelper_universal.zip > > DMG > https://dl.qck.nu/?dl=WinSignHelper_universal.dmg > > > Hope this is of help for one or the other. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Wed Jul 19 17:18:15 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 19 Jul 2023 23:18:15 +0200 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> Message-ID: <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> To be honest, i do not know. I am currently using a cloud code signing certificate which i can only use on Windows. I've chosen the cloud version because of the price, but later i noticed that it seems that those cloud certificates cannot be used on macOS. Or maybe they can, but i do not know how, especially with ossl signcode WinSignHelper uses ossl signcode and currently that tool needs a path to a certificate Do you know where the certificate is stored with the eToken solution? Is it stored also on the eToken or anywhere else on the Mac? If you have the certificate as a physical file it maybe could be possible to select that file in the WinSignHelper prefs. But as i alread wrote, i really don't know exactly. I am currently thinking of purchasing a 2nd certificate as eToken solution, but there is not yet a decision made, if i should spent money for this, as i have a working cloud certificate which expires in 3 years. Regards, Matthias > Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode : > > @Matthias: does the upgraded WinSignHelper work with the new hardware eTokens? Those are required now. > > If so, do the instructions change on how to use your tool? > > > On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >> i've upgraded my free tool WinSignHelper. >> For those who do not know what WinSignHelper is... >> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do the Authenticode signing and timestamping. With it you can code sign Windows applications using an appropriate code signing certificate. >> You just drag a folder with your Windows application into WinSignHelper and it signs all components of your standalone (.exe and .dll). >> WinSignHelper Help section gives enough information about how to install osslsigncode. >> So if anyone is interested in testing.... >> The version is notarized and is an universal build for X86 and Arm >> Zip >> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >> DMG >> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >> Hope this is of help for one or the other. > > > -- > 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 klaus at major-k.de Thu Jul 20 07:00:17 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 13:00:17 +0200 Subject: missing folders in resource folder In-Reply-To: <83E7E2DB-6EBF-4250-B5ED-1591481CEB07@major-k.de> References: <83E7E2DB-6EBF-4250-B5ED-1591481CEB07@major-k.de> Message-ID: <1083FE71-A95E-4CCC-8BBA-C42F29A5C8B9@major-k.de> FYI I added a bug report for this: > Am 18.07.2023 um 21:47 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I added a folder "daten" in the "Copy files" tab in the "Standalone Application settings". > Inside of this folder are five more folders and two of them are EMPTY. > > The two empty folders do NOT appear in the Android runtime if I do: > ... > put specialfolderpath("resources") & "/daten" into tFolder > put folders(tFolder) into fld xyz > ## I only get the NOT empty folders in the field!? > ... > Is this a feature or a bug? -- 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 Jul 20 09:58:31 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 15:58:31 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi all, > Am 18.07.2023 um 21:30 schrieb Klaus major-k via use-livecode : > ... >> We really need LC to give us access to the public documents folder. > The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps > where the user needs to add more files. FYI: there is a feature request for this, please add a comment if you like to have this in the next version: I see that other apps offer something like this, so it IS in fact possible somehow... 8-) 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 Jul 20 11:21:21 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 Jul 2023 10:21:21 -0500 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> Message-ID: <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Thanks Matthias. I've been reading about it and I think the cert is stored on the machine but it is tied to that computer and not exportable. If you get a new computer you need to buy a new certificate. So I don't think I'll experiment, and we'll just do the whole thing on the Windows box. The sad part is that if we'd renewed just a couple of weeks earlier we'd have been within the cutoff date and could have purchased the old type of certificate. If anyone else has used the new token hardware I'd be grateful for any tips or suggestions. This is all new to me. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 19, 2023 4:20:23 PM matthias rebbe via use-livecode wrote: > To be honest, i do not know. > I am currently using a cloud code signing certificate which i can only use > on Windows. > I've chosen the cloud version because of the price, but later i noticed > that it seems that those cloud certificates cannot be used on macOS. > Or maybe they can, but i do not know how, especially with ossl signcode > WinSignHelper uses ossl signcode and currently that tool needs a path to a > certificate > > Do you know where the certificate is stored with the eToken solution? Is it > stored also on the eToken or anywhere else on the Mac? > If you have the certificate as a physical file it maybe could be possible > to select that file in the WinSignHelper prefs. > > But as i alread wrote, i really don't know exactly. > > I am currently thinking of purchasing a 2nd certificate as eToken solution, > but there is not yet a decision made, if i should spent money for this, as > i have a working cloud certificate which expires in 3 years. > > Regards, > Matthias > >> Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode >> : >> >> @Matthias: does the upgraded WinSignHelper work with the new hardware >> eTokens? Those are required now. >> >> If so, do the instructions change on how to use your tool? >> >> >> On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >>> i've upgraded my free tool WinSignHelper. >>> For those who do not know what WinSignHelper is... >>> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do >>> the Authenticode signing and timestamping. With it you can code sign >>> Windows applications using an appropriate code signing certificate. >>> You just drag a folder with your Windows application into WinSignHelper and >>> it signs all components of your standalone (.exe and .dll). >>> WinSignHelper Help section gives enough information about how to install >>> osslsigncode. >>> So if anyone is interested in testing.... >>> The version is notarized and is an universal build for X86 and Arm >>> Zip >>> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >>> DMG >>> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >>> Hope this is of help for one or the other. >> >> >> -- >> 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 klaus at major-k.de Thu Jul 20 12:14:21 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 18:14:21 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi all, > Am 20.07.2023 um 15:58 schrieb Klaus major-k via use-livecode : > Hi all, > >> Am 18.07.2023 um 21:30 schrieb Klaus major-k via use-livecode : >> ... >>> We really need LC to give us access to the public documents folder. >> The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps >> where the user needs to add more files. > FYI: there is a feature request for this, please add a comment if you like to have this in the next version: > > I see that other apps offer something like this, so it IS in fact possible somehow... 8-) someone from a german bass player forum sent me an screenshot of the app "MobileSheets": This appears after clicking the PLUS sign (or "Import" button?) in that app, which looks like a "regular" "Open..." dialog: So I dare to naively ask: Why can't LC offer something like this? 8-) 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 Jul 20 12:17:17 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 18:17:17 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Am 20.07.2023 um 18:14 schrieb Klaus major-k via use-livecode : > > Hi all, > >> Am 20.07.2023 um 15:58 schrieb Klaus major-k via use-livecode : >> Hi all, >> >>> Am 18.07.2023 um 21:30 schrieb Klaus major-k via use-livecode : >>> ... >>>> We really need LC to give us access to the public documents folder. >>> The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps >>> where the user needs to add more files. >> FYI: there is a feature request for this, please add a comment if you like to have this in the next version: >> >> I see that other apps offer something like this, so it IS in fact possible somehow... 8-) > > someone from a german bass player forum sent me an screenshot of the app "MobileSheets": > > > This appears after clicking the PLUS sign (or "Import" button?) in that app, which looks like a "regular" "Open..." dialog: > Received another screenshot, this is from the app "Songbook Pro": -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From gcanyon at gmail.com Thu Jul 20 15:33:31 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 20 Jul 2023 12:33:31 -0700 Subject: Has anyone experimented with using Python within LC? Message-ID: I've now figured out that calling a Python file from within LC is as easy as: put shell(quote & "" & quote && quote & "" & quote) Then whatever gets print()'ed in Python gets returned to LC. Has anyone done work this way and has ideas on best practices for some sort of 1. generate python code 2. write python code to a file 3. write data to a (separate?) file 4. call the code 5. process the results ...loop? gc From matthias_livecode_150811 at m-r-d.de Thu Jul 20 17:18:52 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 20 Jul 2023 23:18:52 +0200 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: > Am 20.07.2023 um 17:21 schrieb J. Landman Gay via use-livecode : > > Thanks Matthias. I've been reading about it and I think the cert is stored on the machine but it is tied to that computer and not exportable. > If you get a new computer you need to buy a new certificate. I don't think that is true. The new type of certificate has to be stored on a secure device. That's what the eToken is for. The private key is also stored on the eToken and the certificate and the private key cannot be exported. You should be able to use that token on multiple computers. You just have to install the eToken driver to an other computer and attach the eToken to it. This is what Trustzone is saying about it: "The token-based type of Standard Code Signing certificates can also be used on multiple computers. The same goes for token-based EV certificates. But no token-based certificate can ever be used simultaneously on two computers since the SafeNet token can only be plugged into one computer at a time." As i never had such eToken, i do not know, if the certificate and the private key can be accessed as files through Finder. And what extension do they have. I've read the osslsigncode can use also certificates and key files with .cem extension. So if the eToken contains such files, WinSignHelper could be slightly adjusted to work with the eToken. But that's just an assumption. Matthias > So I don't think I'll experiment, and we'll just do the whole thing on the Windows box. > > The sad part is that if we'd renewed just a couple of weeks earlier we'd have been within the cutoff date and could have purchased the old type of certificate. > Same here. I was about 5 days to late otherwise i could have ordered the olde type. > If anyone else has used the new token hardware I'd be grateful for any tips or suggestions. This is all new to me. I am using a cloud based OV certificate from Certum. I just need to install the Software SimplySign Desktop. The software "integrates" the certificate into Windows' certificate storage (or what ever this is called) after i logged in using that SimplySign Desktop software. Microsoft's signtool can then directly access the certificate. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 19, 2023 4:20:23 PM matthias rebbe via use-livecode wrote: > >> To be honest, i do not know. >> I am currently using a cloud code signing certificate which i can only use on Windows. >> I've chosen the cloud version because of the price, but later i noticed that it seems that those cloud certificates cannot be used on macOS. >> Or maybe they can, but i do not know how, especially with ossl signcode >> WinSignHelper uses ossl signcode and currently that tool needs a path to a certificate >> >> Do you know where the certificate is stored with the eToken solution? Is it stored also on the eToken or anywhere else on the Mac? >> If you have the certificate as a physical file it maybe could be possible to select that file in the WinSignHelper prefs. >> >> But as i alread wrote, i really don't know exactly. >> >> I am currently thinking of purchasing a 2nd certificate as eToken solution, but there is not yet a decision made, if i should spent money for this, as i have a working cloud certificate which expires in 3 years. >> >> Regards, >> Matthias >> >>> Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode : >>> >>> @Matthias: does the upgraded WinSignHelper work with the new hardware eTokens? Those are required now. >>> >>> If so, do the instructions change on how to use your tool? >>> >>> >>> On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >>>> i've upgraded my free tool WinSignHelper. >>>> For those who do not know what WinSignHelper is... >>>> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do the Authenticode signing and timestamping. With it you can code sign Windows applications using an appropriate code signing certificate. >>>> You just drag a folder with your Windows application into WinSignHelper and it signs all components of your standalone (.exe and .dll). >>>> WinSignHelper Help section gives enough information about how to install osslsigncode. >>>> So if anyone is interested in testing.... >>>> The version is notarized and is an universal build for X86 and Arm >>>> Zip >>>> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >>>> DMG >>>> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >>>> Hope this is of help for one or the other. >>> >>> >>> -- >>> 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 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 20 17:46:14 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 20 Jul 2023 17:46:14 -0400 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <000301d9bb53$9e35dcb0$daa19610$@net> Late to the game... I use the same method for PHP. I needed to batch minify html/js/css files. There is a great PHP script to do it. Batch it up with LC and one button did it all. There is a ton of open source useful PHP that can be integrated with ease to LC. I'll remember this if I need some Python in the future. Thanks Geoff. 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 Geoff Canyon via use-livecode Sent: Thursday, July 20, 2023 3:34 PM To: How to use LiveCode Cc: Geoff Canyon Subject: Has anyone experimented with using Python within LC? I've now figured out that calling a Python file from within LC is as easy as: put shell(quote & "" & quote && quote & "" & quote) Then whatever gets print()'ed in Python gets returned to LC. Has anyone done work this way and has ideas on best practices for some sort of 1. generate python code 2. write python code to a file 3. write data to a (separate?) file 4. call the code 5. process the results ...loop? gc _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 20 19:06:33 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 20 Jul 2023 23:06:33 +0000 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> Interesting. Ostensibly you could use low level file commands to create they python file? Or does the Python script need to be processed by Python first? Bob S > On Jul 20, 2023, at 12:33 PM, Geoff Canyon via use-livecode wrote: > > I've now figured out that calling a Python file from within LC is as easy > as: > > put shell(quote & "" & quote && quote & > "" & quote) > > Then whatever gets print()'ed in Python gets returned to LC. Has anyone > done work this way and has ideas on best practices for some sort of > > 1. generate python code > 2. write python code to a file > 3. write data to a (separate?) file > 4. call the code > 5. process the results > > ...loop? > > gc From ambassador at fourthworld.com Thu Jul 20 20:46:01 2023 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 21 Jul 2023 00:46:01 +0000 Subject: permanency of an unsigned Android app on the phone? Message-ID: <20230721004601.Horde.aP-Ql3HW-fSr7CTgL4AVx_6@hub.4wsys.com> J. Landman Gay jacque wrote: > Depending on the Android version the user may need to bypass > a scary warning, accept some permissions, and turn on the ability > to download from unknown sources in system settings   ...and after the app is installed then immediatel turn sideloading back off.   It's powerful.  And the bad guys know it.  Don't run with it turned on.   -- Richard Gaskin Fourth World System   From ambassador at fourthworld.com Thu Jul 20 20:52:58 2023 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 21 Jul 2023 00:52:58 +0000 Subject: What is your best practice for setting a script in a script? Message-ID: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> Paul Dupuis wrote: > So in the instances where you have a script that creates an object > and then sets the script of that object (example below), what is you > best practice for having the script in a script and still be readable?   Why?   Among other concerns (robustness, debugging, maintenance), setting the script of an object requires turning off script encryption.   Dick Kriesel wrote: > Hi, Paul. The best way to set the script may be not to; that is, instead > set the new objects behavior to a button that contains the readable script.   ^ this.   Simple, clean, with-the-grain.   Know the engine. Trust the engine. Use the engine.   --   Richard Gaskin Fourth World System   From gcanyon at gmail.com Thu Jul 20 21:20:35 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 20 Jul 2023 18:20:35 -0700 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> References: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> Message-ID: I just checked, and this in a stack script works perfectly: function pythonFile p put the filename of this stack into fp set the itemdel to "/" put the long seconds into fn replace "." with "_" in fn put "_temp.py" after fn put fn into item -1 of fp put p into url ("file:" & fp) return shell(quote & "" & quote && quote & fp & quote) end pythonFile In the real world you'd probably want to set up a single external file (or set of files? if performance is important and the files need to be used repeatedly?) and check to make sure you're not accidentally overwriting something. On Thu, Jul 20, 2023 at 4:07 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Interesting. Ostensibly you could use low level file commands to create > they python file? Or does the Python script need to be processed by Python > first? > > Bob S > > > > On Jul 20, 2023, at 12:33 PM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I've now figured out that calling a Python file from within LC is as easy > > as: > > > > put shell(quote & "" & quote && quote & > > "" & quote) > > > > Then whatever gets print()'ed in Python gets returned to LC. Has anyone > > done work this way and has ideas on best practices for some sort of > > > > 1. generate python code > > 2. write python code to a file > > 3. write data to a (separate?) file > > 4. call the code > > 5. process the results > > > > ...loop? > > > > gc > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 20 23:47:57 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 Jul 2023 22:47:57 -0500 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <189768fb5c8.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Very useful info, thank you. Especially the part about using the token on different machines. I was duped into believing everything I read on the internet. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 20, 2023 4:20:59 PM matthias rebbe via use-livecode wrote: >> Am 20.07.2023 um 17:21 schrieb J. Landman Gay via use-livecode >> : >> >> Thanks Matthias. I've been reading about it and I think the cert is stored >> on the machine but it is tied to that computer and not exportable. > > >> If you get a new computer you need to buy a new certificate. > I don't think that is true. The new type of certificate has to be stored on > a secure device. That's what the eToken is for. The private key is also > stored on the eToken and the certificate and the private key cannot be > exported. You should be able to use that token on multiple computers. You > just have to install the eToken driver to an other computer and attach the > eToken to it. > > This is what Trustzone is saying about it: > "The token-based type of Standard Code Signing certificates can also be > used on multiple computers. The same goes for token-based EV certificates. > But no token-based certificate can ever be used simultaneously on two > computers since the SafeNet token can only be plugged into one computer at > a time." > > As i never had such eToken, i do not know, if the certificate and the > private key can be accessed as files through Finder. And what extension do > they have. I've read the osslsigncode can use also certificates and key > files with .cem extension. > So if the eToken contains such files, WinSignHelper could be slightly > adjusted to work with the eToken. But that's just an assumption. > > Matthias > > >> So I don't think I'll experiment, and we'll just do the whole thing on the >> Windows box. >> >> The sad part is that if we'd renewed just a couple of weeks earlier we'd >> have been within the cutoff date and could have purchased the old type of >> certificate. >> > Same here. I was about 5 days to late otherwise i could have ordered the > olde type. > > >> If anyone else has used the new token hardware I'd be grateful for any tips >> or suggestions. This is all new to me. > > I am using a cloud based OV certificate from Certum. I just need to install > the Software SimplySign Desktop. The software "integrates" the certificate > into Windows' certificate storage (or what ever this is called) after i > logged in using that SimplySign Desktop software. > Microsoft's signtool can then directly access the certificate. > > >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On July 19, 2023 4:20:23 PM matthias rebbe via use-livecode >> wrote: >> >>> To be honest, i do not know. >>> I am currently using a cloud code signing certificate which i can only use >>> on Windows. >>> I've chosen the cloud version because of the price, but later i noticed >>> that it seems that those cloud certificates cannot be used on macOS. >>> Or maybe they can, but i do not know how, especially with ossl signcode >>> WinSignHelper uses ossl signcode and currently that tool needs a path to a >>> certificate >>> >>> Do you know where the certificate is stored with the eToken solution? Is it >>> stored also on the eToken or anywhere else on the Mac? >>> If you have the certificate as a physical file it maybe could be possible >>> to select that file in the WinSignHelper prefs. >>> >>> But as i alread wrote, i really don't know exactly. >>> >>> I am currently thinking of purchasing a 2nd certificate as eToken solution, >>> but there is not yet a decision made, if i should spent money for this, as >>> i have a working cloud certificate which expires in 3 years. >>> >>> Regards, >>> Matthias >>> >>>> Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode >>>> : >>>> >>>> @Matthias: does the upgraded WinSignHelper work with the new hardware >>>> eTokens? Those are required now. >>>> >>>> If so, do the instructions change on how to use your tool? >>>> >>>> >>>> On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >>>>> i've upgraded my free tool WinSignHelper. >>>>> For those who do not know what WinSignHelper is... >>>>> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do >>>>> the Authenticode signing and timestamping. With it you can code sign >>>>> Windows applications using an appropriate code signing certificate. >>>>> You just drag a folder with your Windows application into WinSignHelper and >>>>> it signs all components of your standalone (.exe and .dll). >>>>> WinSignHelper Help section gives enough information about how to install >>>>> osslsigncode. >>>>> So if anyone is interested in testing.... >>>>> The version is notarized and is an universal build for X86 and Arm >>>>> Zip >>>>> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >>>>> DMG >>>>> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >>>>> Hope this is of help for one or the other. >>>> >>>> >>>> -- >>>> 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 >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 20 23:59:59 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 Jul 2023 22:59:59 -0500 Subject: permanency of an unsigned Android app on the phone? In-Reply-To: <20230721004601.Horde.aP-Ql3HW-fSr7CTgL4AVx_6@hub.4wsys.com> References: <20230721004601.Horde.aP-Ql3HW-fSr7CTgL4AVx_6@hub.4wsys.com> Message-ID: <189769aba18.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On July 20, 2023 7:48:13 PM Richard Gaskin via use-livecode wrote: > J. Landman Gay jacque wrote: >> Depending on the Android version the user > may need to bypass >> a scary warning, accept some permissions, and turn on > the ability >> to download from unknown sources in system settings > > ...and after the app is installed then immediatel turn sideloading back off. > > It's powerful. And the bad guys know it. Don't run with it turned on. One nice thing about Android 13 (and I think 12?) is that it allows you to permit downloads by app, rather than toggling a global property. That way you don't need to turn on unknown sources in system settings. Of course, you can still get yourself in trouble if you give permissions to your browser and then binge download everything you see. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at gmail.com Fri Jul 21 03:48:56 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 21 Jul 2023 00:48:56 -0700 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> Message-ID: This stack script hacks in support for arbitrary parameters to be passed in easily. You can, of course, do the same by including functions in the python script, and then calling them in the shell statement. That's how I started this journey, but it requires escaping things to make them shell-compatible. This might be especially weird to do because of python's flexible handling of double and single quotes. This way the data can be passed in as you intend to use it, the only limitation being that it all starts as text. Still, it works a treat. Note: this doesn't check for file existence before writing them, although it seems unlikely that anyone would have files named e.g. 89914707287616_data.txt. Also, this doesn't re-use any files, so repeated calls quickly pile up. This is far from a usable function. The round-trip cost of doing things this way is maybe something like a tenth of a second(?) so this is likely only for when you have a lot of backend processing to do. local fnb function pythonFile p put the filename of this stack into fp set the itemdel to "/" if fnb is empty then put the long seconds into fnb replace "." with empty in fnb delete char 1 to 2 of fnb end if if paramCount() > 1 then put "exData = {}" & cr into fileHeader repeat with i = 2 to paramCount() add 1 to fnb put fnb & "_data.txt" into fn put fn into item -1 of fp put param(i) into url ("file:" & fp) put merge("with open('[[fp]]', 'r') as f:[[cr]]") after fileHeader put merge(" exData[ [[i - 2]] ] = f.read()[[cr]]") after fileHeader end repeat put fileHeader & cr before p end if add 1 to fnb put fnb & "_temp.py" into fn put fn into item -1 of fp put p into url ("file:" & fp) return shell(quote & "/Users/gcanyon/opt/anaconda3/bin/python" & quote && quote & fp & quote) end pythonFile On Thu, Jul 20, 2023 at 6:20 PM Geoff Canyon wrote: > I just checked, and this in a stack script works perfectly: > > function pythonFile p > put the filename of this stack into fp > set the itemdel to "/" > put the long seconds into fn > replace "." with "_" in fn > put "_temp.py" after fn > put fn into item -1 of fp > put p into url ("file:" & fp) > return shell(quote & "" & quote && quote & fp & quote) > end pythonFile > > In the real world you'd probably want to set up a single external file (or > set of files? if performance is important and the files need to be used > repeatedly?) and check to make sure you're not accidentally overwriting > something. > > On Thu, Jul 20, 2023 at 4:07 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Interesting. Ostensibly you could use low level file commands to create >> they python file? Or does the Python script need to be processed by Python >> first? >> >> Bob S >> >> >> > On Jul 20, 2023, at 12:33 PM, Geoff Canyon via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > I've now figured out that calling a Python file from within LC is as >> easy >> > as: >> > >> > put shell(quote & "" & quote && quote & >> > "" & quote) >> > >> > Then whatever gets print()'ed in Python gets returned to LC. Has anyone >> > done work this way and has ideas on best practices for some sort of >> > >> > 1. generate python code >> > 2. write python code to a file >> > 3. write data to a (separate?) file >> > 4. call the code >> > 5. process the results >> > >> > ...loop? >> > >> > gc >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Jul 21 11:20:27 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Jul 2023 15:20:27 +0000 Subject: What is your best practice for setting a script in a script? In-Reply-To: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> Message-ID: <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> I wanted to ask why as well. You can put all the scripts necessary in a card, and if you need to know the actual object the user interacted with use the target command. Eg. Local lTargetID On mouseUp Put the long id of the target into lTargetID /* Your script here */ End mouseUp Bob S > On Jul 20, 2023, at 5:52 PM, Richard Gaskin via use-livecode wrote: > > Paul Dupuis wrote: >> So in the instances where you have a script that creates an object >> and then sets the script of that object (example below), what is you >> best practice for having the script in a script and still be readable? > > Why? > > Among other concerns (robustness, debugging, maintenance), setting the script of an object requires turning off script encryption. > > Dick Kriesel wrote: >> > > Hi, Paul. The best way to set the script may be not to; that is, instead >> set the new object’s behavior to a button that contains the readable script. > > ^ this. > > Simple, clean, with-the-grain. > > Know the engine. > Trust the engine. > Use the engine. > > -- > Richard Gaskin > Fourth World System From paul at researchware.com Fri Jul 21 12:10:53 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 21 Jul 2023 12:10:53 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> Message-ID: <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> As some people on this list and the forums have explored in the past, I have a interest in creating a Livecode application (stack) entirely from a (text only) single script. So there are initially no Livecode objects to place a behavior script in. There are initially no buttons, fields, cards, stacks, or anything else. Yes, one of the values of Livecode is an interactive IDE for UI design (and refinement), but for this specific interest, it is all about creating the UI - in fact the whole app - from a single script. From craig at starfirelighting.com Fri Jul 21 13:16:08 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 21 Jul 2023 13:16:08 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> Message-ID: Paul. I assume you have a blueprint of what will become a stack with at least one card? And that stack will possibly contain other cards, controls, scripts and behaviors? But since all objects have properties, including scripts, and since LC has the “create” command, whatever you want to do seems straightforward, if not simple. You must have the IDE open to even start, of course, so you are already “in” LC. Why not just do it the old fashioned way? The end result will be a stack, correct? What is the advantage of not starting with a stack? Craig > On Jul 21, 2023, at 12:10 PM, Paul Dupuis via use-livecode wrote: > > As some people on this list and the forums have explored in the past, I have a interest in creating a Livecode application (stack) entirely from a (text only) single script. So there are initially no Livecode objects to place a behavior script in. There are initially no buttons, fields, cards, stacks, or anything else. > > Yes, one of the values of Livecode is an interactive IDE for UI design (and refinement), but for this specific interest, it is all about creating the UI - in fact the whole app - from a single script. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Jul 21 13:51:52 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 21 Jul 2023 10:51:52 -0700 Subject: What is your best practice for setting a script in a script? In-Reply-To: <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> Message-ID: Way back when (in the metacard era) I wrote code to create an XML representation of a stack, and build a copy of the stack from that XML file. Oh, I just checked and I still have a copy of the file. It almost certainly does not address all the nuances that have been added since then -- behaviors, widgets, and more -- but if you want a copy you're welcome to it. gc On Fri, Jul 21, 2023 at 9:12 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > As some people on this list and the forums have explored in the past, I > have a interest in creating a Livecode application (stack) entirely from > a (text only) single script. So there are initially no Livecode objects > to place a behavior script in. There are initially no buttons, fields, > cards, stacks, or anything else. > > Yes, one of the values of Livecode is an interactive IDE for UI design > (and refinement), but for this specific interest, it is all about > creating the UI - in fact the whole app - from a single script. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Fri Jul 21 17:01:15 2023 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 21 Jul 2023 21:01:15 +0000 Subject: Query Android Version Code In-Reply-To: References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> Message-ID: Does anyone know if there is a way to query the “Version Code” that you enter in the Application Settings screen? -Dan From bobsneidar at iotecdigital.com Fri Jul 21 19:40:58 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Jul 2023 23:40:58 +0000 Subject: Speed Improvements Message-ID: Hi all. I put a compiled version of Forms Generator 8 on a PC recently, and I would like to say that the speed improvements are very substantial from what I was experiencing in the past. SQL queries as well as file operation seem to be almost as fast as on my MacOS laptop. I would not hesitate to distribute a Windows app now, whereas before I would have been hard pressed. I will say that I streamlined my code to ensure I was not inadvertently re-querying for the same data, and the VM I am running it on has been migrated to another server, but even still I had tested on new PCs with SSD drives in the past and was getting disappointing results, whereas now I can hardly blink and a full query dataset is loaded and displayed. Kudos to the dev team! Bob S From prothero at earthlearningsolutions.org Fri Jul 21 20:02:24 2023 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Fri, 21 Jul 2023 17:02:24 -0700 Subject: Question re download timeout setting Message-ID: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Folks: Sorry for the trivial question, but.. I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. Could you direct me to a simple explanation about how to set a reasonable internet not connected message? Thanks, Bill put "https://"&theURL&"/test.html" into theURL put URL theURL into tOutput —if the request times out, the output is not received. if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful return true else return false end if From alex at tweedly.net Fri Jul 21 20:49:17 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 22 Jul 2023 01:49:17 +0100 Subject: Question re download timeout setting In-Reply-To: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: On 22/07/2023 01:02, prothero--- via use-livecode wrote: > Folks: > Sorry for the trivial question, but.. > I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. > > I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL command seems to hang forever. Ive looked for a way to set the timeout for an internet command, but. cant,. > > Could you direct me to a simple explanation about how to set a reasonable internet not connected message? > .... not thoroughly tested .... You should, I think, be able to do this using tsNetSetTimeouts. But I wouldn't :-) I'd do something like the following - I've tested some, but not all, failure cases, but haven't tested a successful url. > local sEventID > > -- neverhappens.com is a website - returns "Forbidden" > -- nevehapens.com isn't, so almost immediately returns "can't be reached" > -- I didn't test a properly working case :-) > > constant KURL = "http://neverhappens.com" > > on mouseup >    load url kURL with message "gotareply" >    send "timetocheck failed" to me in 10 seconds     -- or whatever > timeout you want >    put the result into sEventID > end mouseup > > on gotareply pURL, pURLStatus >    cancel sEventID >    timetocheck pURLStatus > end gotareply > > on timetocheck pWhat >    local tAnswer >    put "time to check" && pWhat &CR after msg >    if pWhat = "loaded" then >       put URL kURL into tAnswer >       if tAnswer contains "mycode" then >          -- Internet is good >          put "Internet is good" &CR after msg >       end if >    end if >    -- Internet problematic >    put "problem" &CR after msg >    if pWhat = "error" then put libUrlErrorData(kURL) &CR after msg > >    unload URL KURL > end timetocheck Alex. From alanstenhouse at hotmail.com Fri Jul 21 21:36:01 2023 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sat, 22 Jul 2023 11:06:01 +0930 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: Hi Geoff Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: on runPythonScript pScript put the tempname &".py" into tFile put pScript into URL ("binfile:" & tFile) put shell("" && tFile) into fld "output" end runPythonScript Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused... cheers Alan From bobsneidar at iotecdigital.com Fri Jul 21 22:09:04 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 22 Jul 2023 02:09:04 +0000 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Out of curiosity, what can be done in in Python that cannot be done in LC Script? Sent from my iPhone > On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode wrote: > > Hi Geoff > > Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: > > > on runPythonScript pScript > put the tempname &".py" into tFile > put pScript into URL ("binfile:" & tFile) > put shell("" && tFile) into fld "output" > end runPythonScript > > Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused... > > cheers > Alan > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 21 23:29:38 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 22 Jul 2023 03:29:38 +0000 Subject: Question re download timeout setting In-Reply-To: References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: Use sockets to test the connection. Open socket to If the result is not empty then… Close socket Sent from my iPhone > On Jul 21, 2023, at 17:49, Alex Tweedly via use-livecode wrote: > >  >> On 22/07/2023 01:02, prothero--- via use-livecode wrote: >> Folks: >> Sorry for the trivial question, but.. >> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >> >> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. >> >> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >> > .... not thoroughly tested .... > > You should, I think, be able to do this using tsNetSetTimeouts. But I wouldn't :-) > > I'd do something like the following - I've tested some, but not all, failure cases, but haven't tested a successful url. > > >> local sEventID >> >> -- neverhappens.com is a website - returns "Forbidden" >> -- nevehapens.com isn't, so almost immediately returns "can't be reached" >> -- I didn't test a properly working case :-) >> >> constant KURL = "http://neverhappens.com" >> >> on mouseup >> load url kURL with message "gotareply" >> send "timetocheck failed" to me in 10 seconds -- or whatever timeout you want >> put the result into sEventID >> end mouseup >> >> on gotareply pURL, pURLStatus >> cancel sEventID >> timetocheck pURLStatus >> end gotareply >> >> on timetocheck pWhat >> local tAnswer >> put "time to check" && pWhat &CR after msg >> if pWhat = "loaded" then >> put URL kURL into tAnswer >> if tAnswer contains "mycode" then >> -- Internet is good >> put "Internet is good" &CR after msg >> end if >> end if >> -- Internet problematic >> put "problem" &CR after msg >> if pWhat = "error" then put libUrlErrorData(kURL) &CR after msg >> >> unload URL KURL >> end timetocheck > > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sat Jul 22 07:30:38 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sat, 22 Jul 2023 13:30:38 +0200 Subject: Question re download timeout setting In-Reply-To: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> Hello Bill, since V8 or so tsNET external is included in any commercial/business license. Even put URL "ftp: or http: will be executed with tsNET by liburl. So in case you did not manually disabletsNET for your app, you could use tsNetSetTimeouts to set timeout values. By default tsNET does not limit the time a request could take and that might be the reason why the put URL takes forever. The Syntax looks like this tsNetSetTimeouts pDnsCacheTimeout, pRequestTimeoutMS, pConnectTimeoutMS, pAcceptTimeoutMS, pLowSpeedTime, pLowSpeedLimit The second parameter is responsible for the request timeout and has to be set in milliseconds. So for example tsNetSetTimeouts 30, 33000, 300000, 60000, 30, 1000 would set the request timeout to 33 seconds. The other values in my example are the default values. After the timeout the script continues and you could check if the put command returned the expected value. Regards, Matthias > Am 22.07.2023 um 02:02 schrieb prothero--- via use-livecode : > > Folks: > Sorry for the trivial question, but.. > I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. > > I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. > > Could you direct me to a simple explanation about how to set a reasonable internet not connected message? > > Thanks, > Bill > put "https://"&theURL&"/test.html" into theURL > > put URL theURL into tOutput —if the request times out, the output is not received. > > if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful > > return true > > else > > return false > > end if > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Sat Jul 22 07:45:00 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 22 Jul 2023 12:45:00 +0100 Subject: Question re download timeout setting In-Reply-To: References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: On 22/07/2023 04:29, Bob Sneidar via use-livecode wrote: > Use sockets to test the connection. > > Open socket to > If the result is not empty then > Close socket Hmmm - I have tried it but not got reliable results. According to the dictionary that won't work reliably. Dictionary says: > (4.5) The open socket command no longer blocks on DNS resolution. > > Instead, if resolution is required the command will return immediately > > and the DNS lookup will happen in the background. If resolution fails, > > then a socketError message is sent in the same was as if connection > > fails. > So if you need a DNS resolution, you'll get an empty result - and a later socketError message. Your suggested code takes the empty result as a sign things are working - when they may not be. (When I try to connect to a non existent host:port, I do get the empty result, but I don't seem to be getting the socketError messages. So there may be a bug in there - I'll try to track it down more closely, and if I can get anything reliable, submit a bug report). btw - livekode.com was my first attempt at a  "non-existent host" - and it does exist !! Alex. >> On Jul 21, 2023, at 17:49, Alex Tweedly via use-livecode wrote: >> >> >>> On 22/07/2023 01:02, prothero--- via use-livecode wrote: >>> Folks: >>> Sorry for the trivial question, but.. >>> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >>> >>> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL command seems to hang forever. Ive looked for a way to set the timeout for an internet command, but. cant,. >>> >>> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >>> >> .... not thoroughly tested .... >> >> You should, I think, be able to do this using tsNetSetTimeouts. But I wouldn't :-) >> >> I'd do something like the following - I've tested some, but not all, failure cases, but haven't tested a successful url. >> >> >>> local sEventID >>> >>> -- neverhappens.com is a website - returns "Forbidden" >>> -- nevehapens.com isn't, so almost immediately returns "can't be reached" >>> -- I didn't test a properly working case :-) >>> >>> constant KURL = "http://neverhappens.com" >>> >>> on mouseup >>> load url kURL with message "gotareply" >>> send "timetocheck failed" to me in 10 seconds -- or whatever timeout you want >>> put the result into sEventID >>> end mouseup >>> >>> on gotareply pURL, pURLStatus >>> cancel sEventID >>> timetocheck pURLStatus >>> end gotareply >>> >>> on timetocheck pWhat >>> local tAnswer >>> put "time to check" && pWhat &CR after msg >>> if pWhat = "loaded" then >>> put URL kURL into tAnswer >>> if tAnswer contains "mycode" then >>> -- Internet is good >>> put "Internet is good" &CR after msg >>> end if >>> end if >>> -- Internet problematic >>> put "problem" &CR after msg >>> if pWhat = "error" then put libUrlErrorData(kURL) &CR after msg >>> >>> unload URL KURL >>> end timetocheck >> >> Alex. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 22 10:50:33 2023 From: hakan at exformedia.se (Hakan@exformedia.se) Date: Sat, 22 Jul 2023 16:50:33 +0200 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> References: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Message-ID: <3281613D-8C64-49C3-B998-37ABA614E425@exformedia.se> Probably not much, but there are a lot of libraries that exist for python that you might want to use to save time. > 22 juli 2023 kl. 04:11 skrev Bob Sneidar via use-livecode : > > Out of curiosity, what can be done in in Python that cannot be done in LC Script? > > Sent from my iPhone > >> On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode wrote: >> >> Hi Geoff >> >> Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: >> >> >> on runPythonScript pScript >> put the tempname &".py" into tFile >> put pScript into URL ("binfile:" & tFile) >> put shell("" && tFile) into fld "output" >> end runPythonScript >> >> Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused... >> >> cheers >> Alan >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Sat Jul 22 10:55:43 2023 From: prothero at earthlearningsolutions.org (William Prothero) Date: Sat, 22 Jul 2023 07:55:43 -0700 Subject: Question re download timeout setting In-Reply-To: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> References: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> Message-ID: Matthias, I'll try it. Thanks so much for your help. Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Jul 22, 2023, at 4:32 AM, matthias rebbe via use-livecode wrote: > > Hello Bill, > > since V8 or so tsNET external is included in any commercial/business license. > Even put URL "ftp: or http: will be executed with tsNET by liburl. > > So in case you did not manually disabletsNET for your app, you could use tsNetSetTimeouts to set timeout values. > By default tsNET does not limit the time a request could take and that might be the reason why the put URL takes forever. > > The Syntax looks like this > tsNetSetTimeouts pDnsCacheTimeout, pRequestTimeoutMS, pConnectTimeoutMS, pAcceptTimeoutMS, pLowSpeedTime, pLowSpeedLimit > > The second parameter is responsible for the request timeout and has to be set in milliseconds. > > So for example > > tsNetSetTimeouts 30, 33000, 300000, 60000, 30, 1000 > > would set the request timeout to 33 seconds. The other values in my example are the default values. > > After the timeout the script continues and you could check if the put command returned the expected value. > > > > Regards, > Matthias > > > >> Am 22.07.2023 um 02:02 schrieb prothero--- via use-livecode : >> >> Folks: >> Sorry for the trivial question, but.. >> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >> >> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. >> >> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >> >> Thanks, >> Bill >> put "https://"&theURL&"/test.html" into theURL >> >> put URL theURL into tOutput —if the request times out, the output is not received. >> >> if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful >> >> return true >> >> else >> >> return false >> >> end if >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sat Jul 22 13:11:52 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 22 Jul 2023 10:11:52 -0700 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> References: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Message-ID: Both are turing complete, so there's technically nothing one can do that the other can't, but some examples: Suppose you want to generate prime numbers. In LiveCode you might write this algorithm: https://github.com/gcanyon/primelist Generating the primes up to 1,000,000 takes over 1.3 seconds on my M1 MacBook. In Python, using a less efficient algorithm, the same takes 0.3 seconds. Import the numpy library and use a more efficient algorithm like so: def prime6(upto=1000000): primes=arange(3,upto+1,2) isprime=ones((upto-1)//2,dtype=bool) for factor in primes[:int(sqrt(upto))//2]: if isprime[(factor-2)//2]: isprime[(factor*3-2)//2::factor]=0 return insert(primes[isprime],0,2) And you can get the same result in 0.002 seconds -- over 500 times faster. In LiveCode, if you want to handle large integer math, you write your own library, which takes a ton of time and work to optimize. I did this five years ago: https://github.com/gcanyon/bignum which enables this: on mouseUp repeat 1000 times put "1234567890" after x end repeat put the long seconds into T get bigTimes(x,x) put the long seconds - T into T put T && length(it) end mouseUp I worked hard to optimize that library, and I'm happy to say that runs in about 1.3 seconds. This runs in 0.0004 seconds: from time import perf_counter_ns from math import log10 n = 1234567890 for _ in range(999): n = n * 10**10 + 1234567890 start = perf_counter_ns() n2 = n*n end = perf_counter_ns() print((end - start)/10**9,log10(n2),n2%10**10) Python has numerous syntactic niceties. For example, if you want a function to return a fibonacci list, multiple assignments are nice: def fib(n): i = j = 1 R = [] for _ in range(n): R.append(i) i,j = j,i+j return(R) print(fib(5)) [1, 1, 2, 3, 5] And list comprehensions are wonderful. If you want a dictionary containing perfect squares for odd numbers: L = {i:i**2 for i in range(1,20) if i % 2 == 1} print(L) {1: 1, 3: 9, 5: 25, 7: 49, 9: 81, 11: 121, 13: 169, 15: 225, 17: 289, 19: 361} Obviously you could do that with a "step", but the if can be more complex than that. So reasons you might use Python include: 1. Efficient and convenient syntax 2. Speed 3. Access to vast libraries of code. gc On Fri, Jul 21, 2023 at 7:10 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Out of curiosity, what can be done in in Python that cannot be done in LC > Script? > > Sent from my iPhone > > > On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Geoff > > > > Sorry for not replying earlier but looks like you've got it sorted. I > did a bit on this years ago and am contemplating it again. Just looked for > my old stack and see this script for running a python script and putting > the output into the "output" fld: > > > > > > on runPythonScript pScript > > put the tempname &".py" into tFile > > put pScript into URL ("binfile:" & tFile) > > put shell("" && tFile) into fld "output" > > end runPythonScript > > > > Was starting to provide an interface for experiment parameters for the > scripts I was running (for some Turi ML classifications) but the project > paused... > > > > cheers > > Alan > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alanstenhouse at hotmail.com Sat Jul 22 20:02:11 2023 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 23 Jul 2023 09:32:11 +0930 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: :-) For example, interfacing to machine learning (& associated) libraries for creating + running ML models (in my test case). > On 23 Jul 2023, at 1:30 am, use-livecode-request at lists.runrev.com wrote: > > Probably not much, but there are a lot of libraries that exist for python that you might want to use to save time. > >> 22 juli 2023 kl. 04:11 skrev Bob Sneidar via use-livecode : >> >> ?Out of curiosity, what can be done in in Python that cannot be done in LC Script? From alex at tweedly.net Sat Jul 22 20:18:30 2023 From: alex at tweedly.net (Tweedly) Date: Sun, 23 Jul 2023 01:18:30 +0100 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <38FA655A-8DBC-45CF-B787-F80BBA515600@tweedly.net> > On 22 Jul 2023, at 18:13, Geoff Canyon via use-livecode wrote: > > Both are turing complete, so there's technically nothing one can do that > the other can't, but some examples: > Technically, that’s not correct. Simply being Turing complete doesn’t mean it can do everything you might want to do. Things Python can do that LCS can’t would include: - calling foreign language functions - threads - raw sockets - multicast - ipv6 - and many many more …. Alex. From tom at makeshyft.com Sun Jul 23 02:21:37 2023 From: tom at makeshyft.com (Tom Glod) Date: Sun, 23 Jul 2023 02:21:37 -0400 Subject: Crazy question: is it possible/reasonable to use Python in LC? In-Reply-To: References: Message-ID: One way to do it would be running python "service" executable, and you send it the code via socket to execute. In python the "do" equivalent is "exec()" ... although obviously the service will need access to the data that is involved with the code. Then you return the result to lc in whatever way works best. In theory. On Mon, Jul 17, 2023 at 12:57 PM Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > "do ... as python" ?? > > On 13/07/2023 21:03, Geoff Canyon via use-livecode wrote: > > I've been playing with Python, and it has a lot of nice qualities, but a > > built-in GUI isn't one of them (no apologies to tkinter). > > > > So it would be interesting/nice to be able to open LC, add a button to a > > stack, and put some python into the script of that button and have it > just > > work, with access to the rest of the LC stack/controls as usual. > > > > Obviously that's not possible, but how close can we come? I assume it > would > > be possible to write a shell command to trigger a python script, but that > > seems complex and sub-optimal, especially when thinking about having to > > bundle together all the bits and bobs from the LC UI to pass as arguments > > to the Python script instead of having it able to just reference what it > > needs on the fly. > > > > Anyway, wondering if anyone else has thought about this. > > > > gc > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 24 10:03:25 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 24 Jul 2023 15:03:25 +0100 Subject: Question re download timeout setting In-Reply-To: References: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> Message-ID: <06159767-1A33-4BD3-9420-5E83C20FCD3B@gmail.com> Hi William, This is a long shot, but in case it inspires a solution, I do something like the following to upload and download files to dropbox (which I think is similar to what Matthias is suggesting as well). put "/todoitems.sqlite" into pPath -- the path to the file on server, in this case dropbox (equivalent to your put “https…”?) tsNetSetTimeouts 20,0,20000,60000,20,1000 -- establish a 20 second timeout (and also a slow response timeout) dropBoxDownload pAccessToken, pPath — if successful, the file is copied into the "it” variable (equiv to your put URL theURL into tOutput?) except output goes to “it” instead of tOutput put the result into tResult — if unsuccessful, tResult holds the error code from tsNet (I think this is dropBoxDownloads doing, but maybe something equiv is possible?) see below... if tResult is not empty then -- the dload did not work, do whatever you need to respond to a connection failure else put it into URL ("binfile:"&tTargetFile) -- write the data to disk end if *Important: If writing to a url container fails, an error is returned in the result. For example: local tResult put the result into tResult > On 22 Jul 2023, at 3:55 pm, William Prothero via use-livecode wrote: > > Matthias, > I'll try it. > Thanks so much for your help. > Bill > > William A. Prothero, PhD > Prof Emeritus, Dept of Earth Science > University of California, Santa Barbara > >> On Jul 22, 2023, at 4:32 AM, matthias rebbe via use-livecode wrote: >> >> Hello Bill, >> >> since V8 or so tsNET external is included in any commercial/business license. >> Even put URL "ftp: or http: will be executed with tsNET by liburl. >> >> So in case you did not manually disabletsNET for your app, you could use tsNetSetTimeouts to set timeout values. >> By default tsNET does not limit the time a request could take and that might be the reason why the put URL takes forever. >> >> The Syntax looks like this >> tsNetSetTimeouts pDnsCacheTimeout, pRequestTimeoutMS, pConnectTimeoutMS, pAcceptTimeoutMS, pLowSpeedTime, pLowSpeedLimit >> >> The second parameter is responsible for the request timeout and has to be set in milliseconds. >> >> So for example >> >> tsNetSetTimeouts 30, 33000, 300000, 60000, 30, 1000 >> >> would set the request timeout to 33 seconds. The other values in my example are the default values. >> >> After the timeout the script continues and you could check if the put command returned the expected value. >> >> >> >> Regards, >> Matthias >> >> >> >>> Am 22.07.2023 um 02:02 schrieb prothero--- via use-livecode : >>> >>> Folks: >>> Sorry for the trivial question, but.. >>> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >>> >>> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. >>> >>> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >>> >>> Thanks, >>> Bill >>> put "https://"&theURL&"/test.html" into theURL >>> >>> put URL theURL into tOutput —if the request times out, the output is not received. >>> >>> if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful >>> >>> return true >>> >>> else >>> >>> return false >>> >>> end if >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Mon Jul 24 11:04:46 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 24 Jul 2023 17:04:46 +0200 Subject: No progress updates on LC 10. Am i the only one who is concerned? Message-ID: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Hi, I know Xavvi will be the next big step and I even helped with the funding. But I'm wondering why there hasn't been any news about LC 10 for a some months now. Am I the only one worried that the full focus is now on Xavvi and LC10 is left behind? Matthias From jacques.clavel at gmail.com Mon Jul 24 11:29:05 2023 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Mon, 24 Jul 2023 17:29:05 +0200 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: +1 Jacques CLAVEL Le lun. 24 juil. 2023 à 17:05, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> a écrit : > Hi, > > I know Xavvi will be the next big step and I even helped with the funding. > But I'm wondering why there hasn't been any news about LC 10 for a some > months now. > Am I the only one worried that the full focus is now on Xavvi and LC10 is > left behind? > > 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 > -- Jacques Clavel From MikeKerner at roadrunner.com Mon Jul 24 11:56:21 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Jul 2023 11:56:21 -0400 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: the things that bug me are: * at renewal, i added the html5 license, but that project isn't anywhere * script compiler was supposed to be out six months ago for tinkering (technically seven, but we'll give them a pass on end-of-the-year because it was probably intended as end-of-the-yearish * script widgets are not going anywhere without docs, but the docs aren't going anywhere * i'm very concerned that x-whatever is going to be a resource and distraction-drain, and another dead end. to date, the LLM's have been severely overrated. obviously i hope that is something that gets fixed, quickly. On Mon, Jul 24, 2023 at 11:30 AM Jacques Clavel via use-livecode wrote: > > +1 > Jacques CLAVEL > > Le lun. 24 juil. 2023 à 17:05, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> a écrit : > > > Hi, > > > > I know Xavvi will be the next big step and I even helped with the funding. > > But I'm wondering why there hasn't been any news about LC 10 for a some > > months now. > > Am I the only one worried that the full focus is now on Xavvi and LC10 is > > left behind? > > > > 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 > > > > > -- > Jacques Clavel > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- 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 klaus at major-k.de Mon Jul 24 15:04:23 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 24 Jul 2023 21:04:23 +0200 Subject: Android app black screen? Message-ID: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Hi all, today I used my Android app at home, no problems. Then I went to our band rehearsal, started the app and only got a black screen!? Everything else on the device worked without problems. De- and re-installing the app fixed it. Has someone also experienced something like this? Samsung tablet TAB A, Android 5.1, LC 9.6.9. 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 Mon Jul 24 15:11:55 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 24 Jul 2023 14:11:55 -0500 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: <98fa6848-d158-251c-51df-3d6b46ae589d@hyperactivesw.com> On 7/24/23 10:56 AM, Mike Kerner via use-livecode wrote: > the things that bug me are: > * at renewal, i added the html5 license, but that project isn't anywhere Did you select the correct license on renewal? I had the same problem but it turns out there's a tiny little arrow when the installer appears, and you can page through your licenses. I felt stupid when Heather noted it. Choose "Relicense" from the Help menu and see if you have that arrow. If not, contact support. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MikeKerner at roadrunner.com Mon Jul 24 20:24:16 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Jul 2023 20:24:16 -0400 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <98fa6848-d158-251c-51df-3d6b46ae589d@hyperactivesw.com> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <98fa6848-d158-251c-51df-3d6b46ae589d@hyperactivesw.com> Message-ID: it's not that it isn't there, it's that it isn't in a state that is ready-for-prime-time On Mon, Jul 24, 2023 at 3:12 PM J. Landman Gay via use-livecode wrote: > > On 7/24/23 10:56 AM, Mike Kerner via use-livecode wrote: > > the things that bug me are: > > * at renewal, i added the html5 license, but that project isn't anywhere > > Did you select the correct license on renewal? I had the same problem but it turns out there's > a tiny little arrow when the installer appears, and you can page through your licenses. I felt > stupid when Heather noted it. > > Choose "Relicense" from the Help menu and see if you have that arrow. If not, contact support. > > -- > 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 -- 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 Tue Jul 25 05:14:17 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 25 Jul 2023 10:14:17 +0100 Subject: Android app black screen? In-Reply-To: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hi Klaus, I’ve had similar things happen on iOS, perhaps more recently in the past year than previously. Sometimes when I open the app (I’m not sure at these times if the app is just suspended or is actually reopening) I’ll get a black screen. If I tap on it 90% of the time it goes away and reveals the appropriate screen image. Very rarely the single or multiple taps solution does not work I’ve had to shut the app down (remove from memory) and then restart it again. This always fixes the problem (if the tapping doesn’t). It’s had me wondering where in the process it “hangs” since tapping the screen suggests it is still “alive" but just stuck somewhere and not displaying the appropriate screen image. On iOS I believe when you suspend an app (put it into the background) it just “maintains” the current screen image and re-presents that when you reopen. Up to now I’ve not spend any time trying to debug this. It would be nice to be able to trace the problem back to its origins and institute a remedy. Please let me know if you come up with any suggestions. Best, Mark > On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode wrote: > > Hi all, > > today I used my Android app at home, no problems. > Then I went to our band rehearsal, started the app and > only got a black screen!? > > Everything else on the device worked without problems. > De- and re-installing the app fixed it. > > Has someone also experienced something like this? > > Samsung tablet TAB A, Android 5.1, LC 9.6.9. > > > 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 benr_mc at cogapp.com Tue Jul 25 05:54:06 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 10:54:06 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> It's particularly frustrating because there are some good things in LC 10 that I'd like to be looking at/exploiting; but there's a vicious bug in the current DP script editor that can cause loss of work*, which prevents me doing anything with it. Just a new DP that includes a fix for this bug would be a huge step forward in my view/situation. Ben * https://quality.livecode.com/show_bug.cgi?id=24268 On 24/07/2023 16:04, matthias rebbe via use-livecode wrote: > Hi, > > I know Xavvi will be the next big step and I even helped with the funding. > But I'm wondering why there hasn't been any news about LC 10 for a some months now. > Am I the only one worried that the full focus is now on Xavvi and LC10 is left behind? > > 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 benr_mc at cogapp.com Tue Jul 25 06:06:10 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 11:06:10 +0100 Subject: Which Livecode/Xcode/macOS/iOS version Message-ID: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Somewhere on the livecode.com there used to be a very useful table which showed which versions of Livecode could run on which versions of macOS with which versions of Xcode in order to build to which versions of iOS. I can't find it now... can anyone point me at it? Many thanks, Ben From heather at livecode.com Tue Jul 25 06:55:35 2023 From: heather at livecode.com (Heather Laine) Date: Tue, 25 Jul 2023 11:55:35 +0100 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: https://livecode.com/resources/support/ask-a-question/ Top FAQ. Best Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 25 Jul 2023, at 11:06, Ben Rubinstein via use-livecode wrote: > > Somewhere on the livecode.com there used to be a very useful table which showed which versions of Livecode could run on which versions of macOS with which versions of Xcode in order to build to which versions of iOS. > > I can't find it now... can anyone point me at it? > > Many thanks, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 25 06:55:30 2023 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 25 Jul 2023 11:55:30 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: Message-ID: <6EB0413C-736E-472D-A820-FCE273A16140@pidigital.co.uk> > On 25 Jul 2023, at 01:24, Mike Kerner via use-livecode wrote: > > it's not that it isn't there, it's that it isn't in a state that is > ready-for-prime-time I’ve had to abandon a project and hence a client and hence LiveCode all together because of this single solitary issue. My company went bankrupt and is now dissolved because of this. LC have told me not to speak out against them as a company on this platform for fear of being removed from this chat area. Sure, some of the decisions made by me have led to the dissolving of Pi Digital Productions Ltd, but a lot WAS based on the PROMISE made pre-pandemic by LC that HTML5 would be ready for live, non-beta use ‘soon’. 4 years on and having paid for a HTML5 licence I STILL have not been able to use, clients become frustrated and annoyed that we STILL have been unable to deliver and the bitten bullet eventually explodes in our faces. This is the primary reason I have not been heard from on this area for a while now. I am now working as a shop assistant in a local shop having moved to a remote area on the Isle of Skye. There’s not many employers who will take LiveCode experience as experience of coding. And there’s little hope of finding clients who will want or have their apps coded in LC. Theoretically I should ask for a refund on the HTML license as they have simply not delivered on their promise. But I can’t be bothered with the hassle of arguing with a company who just don’t seem to listen. I know a lot of you here will disagree- but I can only speak from my own experience over the last 17 years. Besides, a refund would not come close to the amount my company haemorrhaged as a direct result of LC failing to deliver. There, I’m guessing this will get me banned from this platform but, seeing as I can no longer use LC for anything practical, I suppose it no longer matters and most of you hear will be thinking ‘good riddance’ anyway. Like me, LC will fail if they continue to be incapable of delivering on promises. Adding new features and/or applications without sorting out current ones and actually getting them into the wild will just add new problems and forget old ones. Our clients cannot work on a 5 year turnaround so how can LC continue to think we can accept it? It’s impossible working conditions. If a boss offered you better working conditions in a place of work but took 5 years to deliver on that promise, what would you think of them as a manager? This is effectively what was suffered. It amounts to unfair treatment in the workplace and caused me a great deal of anguish over the years, as many of you are well aware. My hope is that LC read this for your benefits and learn from it. It’s too late for me - I’ve moved on. But hopefully they can get v10 and HTML out sooner rather than later so that you can actually begin to make use of your investments. All the best and peace to you all. Sean Cole Ex Director of Pi Digital Over and out. From benr_mc at cogapp.com Tue Jul 25 07:28:31 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 12:28:31 +0100 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: <9077c98b-88c5-a5a6-79f0-a3fc64b74114@cogapp.com> Thanks Heather! On 25/07/2023 11:55, Heather Laine via use-livecode wrote: > https://livecode.com/resources/support/ask-a-question/ > > Top FAQ. > > Best > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 25 Jul 2023, at 11:06, Ben Rubinstein via use-livecode wrote: >> >> Somewhere on the livecode.com there used to be a very useful table which showed which versions of Livecode could run on which versions of macOS with which versions of Xcode in order to build to which versions of iOS. >> >> I can't find it now... can anyone point me at it? >> >> Many thanks, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Tue Jul 25 08:06:43 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 15:06:43 +0300 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hello Klaus, Are you setting the acceleratedRendering to true on startup? Kind regards, Panos On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi Klaus, > > I’ve had similar things happen on iOS, perhaps more recently in the past > year than previously. Sometimes when I open the app (I’m not sure at these > times if the app is just suspended or is actually reopening) I’ll get a > black screen. If I tap on it 90% of the time it goes away and reveals the > appropriate screen image. Very rarely the single or multiple taps solution > does not work I’ve had to shut the app down (remove from memory) and then > restart it again. This always fixes the problem (if the tapping doesn’t). > It’s had me wondering where in the process it “hangs” since tapping the > screen suggests it is still “alive" but just stuck somewhere and not > displaying the appropriate screen image. On iOS I believe when you suspend > an app (put it into the background) it just “maintains” the current screen > image and re-presents that when you reopen. Up to now I’ve not spend any > time trying to debug this. It would be nice to be able to trace the problem > back to its origins and institute a remedy. Please let me know if you come > up with any suggestions. > > Best, > Mark > > > > On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > > > today I used my Android app at home, no problems. > > Then I went to our band rehearsal, started the app and > > only got a black screen!? > > > > Everything else on the device worked without problems. > > De- and re-installing the app fixed it. > > > > Has someone also experienced something like this? > > > > Samsung tablet TAB A, Android 5.1, LC 9.6.9. > > > > > > 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 klaus at major-k.de Tue Jul 25 08:11:37 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 Jul 2023 14:11:37 +0200 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hi Panos, > Am 25.07.2023 um 14:06 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > Are you setting the acceleratedRendering to true on startup? no, should I? 8-) However this came out of a sudden after using my (same) app many times before... > Kind regards, > Panos > > On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> Hi Klaus, >> >> I’ve had similar things happen on iOS, perhaps more recently in the past >> year than previously. Sometimes when I open the app (I’m not sure at these >> times if the app is just suspended or is actually reopening) I’ll get a >> black screen. If I tap on it 90% of the time it goes away and reveals the >> appropriate screen image. Very rarely the single or multiple taps solution >> does not work I’ve had to shut the app down (remove from memory) and then >> restart it again. This always fixes the problem (if the tapping doesn’t). >> It’s had me wondering where in the process it “hangs” since tapping the >> screen suggests it is still “alive" but just stuck somewhere and not >> displaying the appropriate screen image. On iOS I believe when you suspend >> an app (put it into the background) it just “maintains” the current screen >> image and re-presents that when you reopen. Up to now I’ve not spend any >> time trying to debug this. It would be nice to be able to trace the problem >> back to its origins and institute a remedy. Please let me know if you come >> up with any suggestions. >> >> Best, >> Mark >> >> >>> On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi all, >>> >>> today I used my Android app at home, no problems. >>> Then I went to our band rehearsal, started the app and >>> only got a black screen!? >>> >>> Everything else on the device worked without problems. >>> De- and re-installing the app fixed it. >>> >>> Has someone also experienced something like this? >>> >>> Samsung tablet TAB A, Android 5.1, LC 9.6.9. 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 Jul 25 08:16:26 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 15:16:26 +0300 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hello Klaus, Nope, I just asked because I had seen some similar issues when setting this property on preopenstack. Well, if the same app worked as expected before, then it may be just a random glitch, which would have been fixed with a restart of the device (i.e no need to delete and reinstall the app). Cheers, Panos On Tue, 25 Jul 2023, 15:11 Klaus major-k via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 25.07.2023 um 14:06 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Klaus, > > > > Are you setting the acceleratedRendering to true on startup? > > no, should I? 8-) > However this came out of a sudden after using my (same) app many times > before... > > > Kind regards, > > Panos > > > > On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi Klaus, > >> > >> I’ve had similar things happen on iOS, perhaps more recently in the past > >> year than previously. Sometimes when I open the app (I’m not sure at > these > >> times if the app is just suspended or is actually reopening) I’ll get a > >> black screen. If I tap on it 90% of the time it goes away and reveals > the > >> appropriate screen image. Very rarely the single or multiple taps > solution > >> does not work I’ve had to shut the app down (remove from memory) and > then > >> restart it again. This always fixes the problem (if the tapping > doesn’t). > >> It’s had me wondering where in the process it “hangs” since tapping the > >> screen suggests it is still “alive" but just stuck somewhere and not > >> displaying the appropriate screen image. On iOS I believe when you > suspend > >> an app (put it into the background) it just “maintains” the current > screen > >> image and re-presents that when you reopen. Up to now I’ve not spend any > >> time trying to debug this. It would be nice to be able to trace the > problem > >> back to its origins and institute a remedy. Please let me know if you > come > >> up with any suggestions. > >> > >> Best, > >> Mark > >> > >> > >>> On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Hi all, > >>> > >>> today I used my Android app at home, no problems. > >>> Then I went to our band rehearsal, started the app and > >>> only got a black screen!? > >>> > >>> Everything else on the device worked without problems. > >>> De- and re-installing the app fixed it. > >>> > >>> Has someone also experienced something like this? > >>> > >>> Samsung tablet TAB A, Android 5.1, LC 9.6.9. > > 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 marksmithhfx at gmail.com Tue Jul 25 08:41:13 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 25 Jul 2023 13:41:13 +0100 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hi Panos, I do set accelerated rendering to true in a preopencard handler on the “main”, “first”, “home” card (whatever you want to call it). It’s in the section of code that defines the properties of the data grid. Do you think this possibly could cause a problem? > On 25 Jul 2023, at 1:16 pm, panagiotis m via use-livecode wrote: > > Hello Klaus, > > Nope, I just asked because I had seen some similar issues when setting this > property on preopenstack. > > Well, if the same app worked as expected before, then it may be just a > random glitch, which would have been fixed with a restart of the device > (i.e no need to delete and reinstall the app). > > Cheers, > Panos > > On Tue, 25 Jul 2023, 15:11 Klaus major-k via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> Hi Panos, >> >>> Am 25.07.2023 um 14:06 schrieb panagiotis m via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> Hello Klaus, >>> >>> Are you setting the acceleratedRendering to true on startup? >> >> no, should I? 8-) >> However this came out of a sudden after using my (same) app many times >> before... >> >>> Kind regards, >>> Panos >>> >>> On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Klaus, >>>> >>>> I’ve had similar things happen on iOS, perhaps more recently in the past >>>> year than previously. Sometimes when I open the app (I’m not sure at >> these >>>> times if the app is just suspended or is actually reopening) I’ll get a >>>> black screen. If I tap on it 90% of the time it goes away and reveals >> the >>>> appropriate screen image. Very rarely the single or multiple taps >> solution >>>> does not work I’ve had to shut the app down (remove from memory) and >> then >>>> restart it again. This always fixes the problem (if the tapping >> doesn’t). >>>> It’s had me wondering where in the process it “hangs” since tapping the >>>> screen suggests it is still “alive" but just stuck somewhere and not >>>> displaying the appropriate screen image. On iOS I believe when you >> suspend >>>> an app (put it into the background) it just “maintains” the current >> screen >>>> image and re-presents that when you reopen. Up to now I’ve not spend any >>>> time trying to debug this. It would be nice to be able to trace the >> problem >>>> back to its origins and institute a remedy. Please let me know if you >> come >>>> up with any suggestions. >>>> >>>> Best, >>>> Mark >>>> >>>> >>>>> On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi all, >>>>> >>>>> today I used my Android app at home, no problems. >>>>> Then I went to our band rehearsal, started the app and >>>>> only got a black screen!? >>>>> >>>>> Everything else on the device worked without problems. >>>>> De- and re-installing the app fixed it. >>>>> >>>>> Has someone also experienced something like this? >>>>> >>>>> Samsung tablet TAB A, Android 5.1, LC 9.6.9. >> >> 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 klaus at major-k.de Tue Jul 25 08:48:47 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 Jul 2023 14:48:47 +0200 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Hi Panos, > Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > Nope, I just asked because I had seen some similar issues when setting this > property on preopenstack. > > Well, if the same app worked as expected before, then it may be just a > random glitch, which would have been fixed with a restart of the device > (i.e no need to delete and reinstall the app). OK, I only switched the device off and on again, which is probably NOT a restart. Will keep this in mind for the next time, which hopefully will never happen. 8-) Thank you! > Cheers, > Panos 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 Jul 25 09:01:56 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 16:01:56 +0300 Subject: Android app black screen? In-Reply-To: <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: Hello Mark, I had seen this issue on Android, not on iOS. And the workaround was to use a "send in time" command to set the acceleratedRendering to true, for example: on preOpenStack send initAE to me in 300 millisec end preOpenStack command initAE set the acceleratedRendering of this stack to true end initAE Kind regards, Panos -- On Tue, 25 Jul 2023 at 15:49, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Klaus, > > > > Nope, I just asked because I had seen some similar issues when setting > this > > property on preopenstack. > > > > Well, if the same app worked as expected before, then it may be just a > > random glitch, which would have been fixed with a restart of the device > > (i.e no need to delete and reinstall the app). > > OK, I only switched the device off and on again, which is probably NOT a > restart. > Will keep this in mind for the next time, which hopefully will never > happen. 8-) > > Thank you! > > > Cheers, > > Panos > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Tue Jul 25 09:02:59 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 16:02:59 +0300 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: heh the name of the command should have been "initAR" Cheers, Panos -- On Tue, 25 Jul 2023 at 16:01, panagiotis m wrote: > Hello Mark, > > I had seen this issue on Android, not on iOS. And the workaround was to > use a "send in time" command to set the acceleratedRendering to true, for > example: > > on preOpenStack > send initAE to me in 300 millisec > end preOpenStack > > command initAE > set the acceleratedRendering of this stack to true > end initAE > > Kind regards, > Panos > -- > > On Tue, 25 Jul 2023 at 15:49, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Panos, >> >> > Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode < >> use-livecode at lists.runrev.com>: >> > >> > Hello Klaus, >> > >> > Nope, I just asked because I had seen some similar issues when setting >> this >> > property on preopenstack. >> > >> > Well, if the same app worked as expected before, then it may be just a >> > random glitch, which would have been fixed with a restart of the device >> > (i.e no need to delete and reinstall the app). >> >> OK, I only switched the device off and on again, which is probably NOT a >> restart. >> Will keep this in mind for the next time, which hopefully will never >> happen. 8-) >> >> Thank you! >> >> > Cheers, >> > Panos >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From klaus at major-k.de Tue Jul 25 09:17:08 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 Jul 2023 15:17:08 +0200 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: <29003DB1-B445-4EC9-AA42-6A31A1A5B64B@major-k.de> Hi Panos, > Am 25.07.2023 um 15:02 schrieb panagiotis m via use-livecode : > > heh the name of the command should have been "initAR" we got the picture anyway! :-D > Cheers, > Panos > -- > > On Tue, 25 Jul 2023 at 16:01, panagiotis m wrote: > >> Hello Mark, >> >> I had seen this issue on Android, not on iOS. And the workaround was to >> use a "send in time" command to set the acceleratedRendering to true, for >> example: >> >> on preOpenStack >> send initAE to me in 300 millisec >> end preOpenStack >> >> command initAE >> set the acceleratedRendering of this stack to true >> end initAE >> >> Kind regards, >> Panos -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From marksmithhfx at gmail.com Tue Jul 25 09:17:03 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 25 Jul 2023 14:17:03 +0100 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: <5E53A935-F190-4A78-AB16-7AC2F370DF81@gmail.com> No worries, I understood 😊 Thanks > On 25 Jul 2023, at 2:02 pm, panagiotis m via use-livecode wrote: > > heh the name of the command should have been "initAR" > > Cheers, > Panos > -- > > On Tue, 25 Jul 2023 at 16:01, panagiotis m wrote: > >> Hello Mark, >> >> I had seen this issue on Android, not on iOS. And the workaround was to >> use a "send in time" command to set the acceleratedRendering to true, for >> example: >> >> on preOpenStack >> send initAE to me in 300 millisec >> end preOpenStack >> >> command initAE >> set the acceleratedRendering of this stack to true >> end initAE >> >> Kind regards, >> Panos >> -- >> >> On Tue, 25 Jul 2023 at 15:49, Klaus major-k via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Panos, >>> >>>> Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode < >>> use-livecode at lists.runrev.com>: >>>> >>>> Hello Klaus, >>>> >>>> Nope, I just asked because I had seen some similar issues when setting >>> this >>>> property on preopenstack. >>>> >>>> Well, if the same app worked as expected before, then it may be just a >>>> random glitch, which would have been fixed with a restart of the device >>>> (i.e no need to delete and reinstall the app). >>> >>> OK, I only switched the device off and on again, which is probably NOT a >>> restart. >>> Will keep this in mind for the next time, which hopefully will never >>> happen. 8-) >>> >>> Thank you! >>> >>>> Cheers, >>>> Panos >>> >>> Best >>> >>> Klaus >>> >>> -- >>> Klaus Major >>> https://www.major-k.de >>> https://www.major-k.de/bass >>> klaus at major-k.de >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 25 10:57:26 2023 From: heather at livecode.com (Heather Laine) Date: Tue, 25 Jul 2023 15:57:26 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: <851DF337-CCC2-43FE-A9D8-E9AE4A4DACF3@livecode.com> Hi Matthias and list folks, We are working on LiveCode 10 dp6. We expect it to ship in August, with support for Web Fonts plus a number of bug fixes. Web Fonts turned out to be rather trickier than expected but it looks like we've got it more or less sorted out now. If there are specific bugs in 10 dp-5 that are really problematic for you, its worth flagging them to me in support (not on the list) so I can at least find out for you if they will be fixed in dp-6. Please send me the bug report number from the Quality Center for checking. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 24 Jul 2023, at 16:04, matthias rebbe via use-livecode wrote: > > Hi, > > I know Xavvi will be the next big step and I even helped with the funding. > But I'm wondering why there hasn't been any news about LC 10 for a some months now. > Am I the only one worried that the full focus is now on Xavvi and LC10 is left behind? > > 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 ahsoftware at sonic.net Tue Jul 25 12:14:16 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 25 Jul 2023 09:14:16 -0700 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: On 7/25/23 03:55, Heather Laine via use-livecode wrote: > https://livecode.com/resources/support/ask-a-question/ > > Top FAQ. There's a FAQ? Why isn't there a link to it on the main web page? This really should be easier to get to for prospective users (aka customers. subscribers). Apparently the only way to get there from the main page is Scroll to the bottom Find the Resources link Click on Support (!) Scroll down to the Support section Find FAQ Click the button It's down there just above the link to the April 2022 Live Conference. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Tue Jul 25 12:51:50 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Jul 2023 18:51:50 +0200 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: +1 > Am 25.07.2023 um 18:14 schrieb Mark Wieder via use-livecode : > > On 7/25/23 03:55, Heather Laine via use-livecode wrote: >> https://livecode.com/resources/support/ask-a-question/ >> Top FAQ. > > There's a FAQ? > Why isn't there a link to it on the main web page? > This really should be easier to get to for prospective users > (aka customers. subscribers). > > Apparently the only way to get there from the main page is > > Scroll to the bottom > Find the Resources link > Click on Support (!) > Scroll down to the Support section > Find FAQ > Click the button > > It's down there just above the link to the April 2022 Live Conference. > > -- > 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 benr_mc at cogapp.com Tue Jul 25 14:10:13 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 19:10:13 +0100 Subject: How to persuade LC to accept Xcode for mobile support? Message-ID: <91a4e60c-c3b5-f271-f1ac-4f7bb2fd7b30@cogapp.com> Apologies for what is surely a FAQ, but I can't find this in the archives. Using LC 9.6.8 on macOS 12.6.7 with Xcode 13.4.1, trying to get set up for building to iOS for the first time in a long while; and failing at the first hurdle. In Preferences, Mobile Support, under iOS SDKs, I click "Add Entry" and select Xcode; and get the dreaded message The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS SDK among: 12.1 13.2 14.4 15.2 Per https://livecode.com/resources/support/ask-a-question/ one of the supported combinations is: LiveCode 9.6.8 Xcode 13.2.x Mac OS 11.3+ iOS 15.2 This is Xcode 13.4.1 rather than Xcode 13.2.x - is that really the problem? Or am I missing something else? TIA, Ben From gcanyon at gmail.com Tue Jul 25 14:37:21 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Jul 2023 08:37:21 -1000 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> Message-ID: Maybe a silly question, but that issue lists "turn on bracket completion" as a step to reproduce. If bracket completion is off, is it safe? On Mon, Jul 24, 2023 at 11:55 PM Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > It's particularly frustrating because there are some good things in LC 10 > that > I'd like to be looking at/exploiting; but there's a vicious bug in the > current > DP script editor that can cause loss of work*, which prevents me doing > anything with it. Just a new DP that includes a fix for this bug would be > a > huge step forward in my view/situation. > > Ben > > * https://quality.livecode.com/show_bug.cgi?id=24268 > > On 24/07/2023 16:04, matthias rebbe via use-livecode wrote: > > Hi, > > > > I know Xavvi will be the next big step and I even helped with the > funding. > > But I'm wondering why there hasn't been any news about LC 10 for a some > months now. > > Am I the only one worried that the full focus is now on Xavvi and LC10 > is left behind? > > > > 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 gcanyon at gmail.com Tue Jul 25 14:48:20 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Jul 2023 08:48:20 -1000 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> References: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Message-ID: On Fri, Jul 21, 2023 at 4:10 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Out of curiosity, what can be done in in Python that cannot be done in LC > Script? > I'm learning more as I study python. This is pretty nice: import re x = re.split('[a|t]','this is a test and this is another') print(x) ['', 'his is ', ' ', 'es', ' ', 'nd ', 'his is ', 'no', 'her'] Or if you want the dividers as well: import re x = re.split('([a|t])','this is a test and this is another') print(x) ['', 't', 'his is ', 'a', ' ', 't', 'es', 't', ' ', 'a', 'nd ', 't', 'his is ', 'a', 'no', 't', 'her'] From MikeKerner at roadrunner.com Tue Jul 25 15:22:44 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 25 Jul 2023 15:22:44 -0400 Subject: How to persuade LC to accept Xcode for mobile support? In-Reply-To: <91a4e60c-c3b5-f271-f1ac-4f7bb2fd7b30@cogapp.com> References: <91a4e60c-c3b5-f271-f1ac-4f7bb2fd7b30@cogapp.com> Message-ID: yep. you can't exceed versions. the restrictions are pretty strict. On Tue, Jul 25, 2023 at 2:11 PM Ben Rubinstein via use-livecode wrote: > > Apologies for what is surely a FAQ, but I can't find this in the archives. > > Using LC 9.6.8 on macOS 12.6.7 with Xcode 13.4.1, trying to get set up for > building to iOS for the first time in a long while; and failing at the first > hurdle. > > In Preferences, Mobile Support, under iOS SDKs, I click "Add Entry" and select > Xcode; and get the dreaded message > The chosen folder is not a valid iOS SDK. > Selected Xcode must have an iOS SDK among: > 12.1 > 13.2 > 14.4 > 15.2 > > > Per https://livecode.com/resources/support/ask-a-question/ one of the > supported combinations is: > LiveCode 9.6.8 Xcode 13.2.x Mac OS 11.3+ iOS 15.2 > > This is Xcode 13.4.1 rather than Xcode 13.2.x - is that really the problem? > Or am I missing something else? > > TIA, > > Ben > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dick.kriesel at mail.com Tue Jul 25 16:35:03 2023 From: dick.kriesel at mail.com (Dick Kriesel) Date: Tue, 25 Jul 2023 13:35:03 -0700 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> Message-ID: <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> > On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode wrote: > > Maybe a silly question, but that issue lists "turn on bracket completion" > as a step to reproduce. If bracket completion is off, is it safe? Hi, Geoff. I filed the report. With bracket completion off, I saw no such problem. — Dick From paul at livecode.org Tue Jul 25 18:15:16 2023 From: paul at livecode.org (Paul Hibbert) Date: Tue, 25 Jul 2023 15:15:16 -0700 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: Or, click on” Resources" in the main Nav menu then scroll down to “Support" and there’s your FAQ button! Simples! :-) Paul > On Jul 25, 2023, at 9:14 AM, Mark Wieder via use-livecode wrote: > > On 7/25/23 03:55, Heather Laine via use-livecode wrote: >> https://livecode.com/resources/support/ask-a-question/ >> Top FAQ. > > There's a FAQ? > Why isn't there a link to it on the main web page? > This really should be easier to get to for prospective users > (aka customers. subscribers). > > Apparently the only way to get there from the main page is > > Scroll to the bottom > Find the Resources link > Click on Support (!) > Scroll down to the Support section > Find FAQ > Click the button > > It's down there just above the link to the April 2022 Live Conference. > > -- > 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 ahsoftware at sonic.net Tue Jul 25 19:53:01 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 25 Jul 2023 16:53:01 -0700 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: <60e82d50-ac0e-ebe5-e684-d75d077d3e91@sonic.net> On 7/25/23 15:15, Paul Hibbert via use-livecode wrote: > Or, click on Resources" in the main Nav menu then scroll down to Support" and theres your FAQ button! > > Simples! :-) Missing the point though. You need to know it exists somewhere in order to go looking for it. I think a FAQ should be front and center instead of buried a few layers down. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Tue Jul 25 22:49:10 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Jul 2023 16:49:10 -1000 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> Message-ID: So, not to be too much of an apologist, but the issue doesn't seem like a showstopper to me. On Tue, Jul 25, 2023 at 10:36 AM Dick Kriesel via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Maybe a silly question, but that issue lists "turn on bracket completion" > > as a step to reproduce. If bracket completion is off, is it safe? > > Hi, Geoff. I filed the report. With bracket completion off, I saw no such > problem. > — Dick > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dick.kriesel at mail.com Tue Jul 25 23:23:58 2023 From: dick.kriesel at mail.com (Dick Kriesel) Date: Tue, 25 Jul 2023 20:23:58 -0700 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> Message-ID: <0B1C9F9E-3CE7-4DF5-A7A2-7BDB0DA8D5C5@mail.com> > On Jul 25, 2023, at 7:49 PM, Geoff Canyon via use-livecode wrote: > > So, not to be too much of an apologist, but the issue doesn't seem like a > showstopper to me. This is just a crashing bug to fix before RC1. Let the show go on! — Dick From jaguayo at telur.es Wed Jul 26 02:55:23 2023 From: jaguayo at telur.es (JosebaTELUR) Date: Wed, 26 Jul 2023 08:55:23 +0200 Subject: No progress updates on LC 10 In-Reply-To: References: Message-ID: <89B8D6F7-E024-4499-92B9-79A964B869A7@telur.es> Hello Sean: You are not the only one. I also have the impression that we will never see version 10 of Livecode. Un saludo. Joseba Aguayo Fernández (jaguayo at telur.es) From benr_mc at cogapp.com Wed Jul 26 04:58:46 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 26 Jul 2023 09:58:46 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> Message-ID: <53887cdf-9bf4-4534-0741-ab08156b180b@cogapp.com> Oooh - I hadn't spotted that. (With only a little bit of fear) I'll venture back into 10dp5 and turn that off. Thanks Geoff! On 26/07/2023 03:49, Geoff Canyon via use-livecode wrote: > So, not to be too much of an apologist, but the issue doesn't seem like a > showstopper to me. > > On Tue, Jul 25, 2023 at 10:36AM Dick Kriesel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> >>> On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Maybe a silly question, but that issue lists "turn on bracket completion" >>> as a step to reproduce. If bracket completion is off, is it safe? >> >> Hi, Geoff. I filed the report. With bracket completion off, I saw no such >> problem. >> Dick >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 26 11:10:46 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 15:10:46 +0000 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: <60e82d50-ac0e-ebe5-e684-d75d077d3e91@sonic.net> References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> <60e82d50-ac0e-ebe5-e684-d75d077d3e91@sonic.net> Message-ID: <9AB8B04D-7AAC-41B9-858F-31602DCE7A01@iotecdigital.com> +1 A lot of support sites are like that. You cannot find anything unless you know where to look, and if you know that, you probably don’t need to find it. :-) One of my pet peeves is searching for something on a support site and getting 1000 entries, none of which have anything to do with what I was looking for. Bob S On Jul 25, 2023, at 4:53 PM, Mark Wieder via use-livecode wrote: Or, click on” Resources" in the main Nav menu then scroll down to “Support" and there’s your FAQ button! Simples! :-) Missing the point though. You need to know it exists somewhere in order to go looking for it. I think a FAQ should be front and center instead of buried a few layers down. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Wed Jul 26 13:02:43 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 17:02:43 +0000 Subject: closeStackRequest resolved Message-ID: <2C482CE6-40E7-4AF7-A901-530F98F28CBC@iotecdigital.com> Hi all. FYI I've struggled a long time to try and figure out why I get the Save Stack dialog when I clicked the close window button and before my own closeStackRequest got a chance to auto-save the stack. The reason I want to do auto-save is that all my standalones use a splash stack that then kicks off the main stack. Before quitting the standalone I want to clear all the forms and reset the environment, then save the state of affairs without the user being annoyed and confused with a dialog asking if they want to save! As it turns out (and as some may have informed me I can’t remember) there is a closeStackRequest handler in LC’s own front script which is generating the Save Stack dialog. To intercept the message before LC does, you need to have your own closeStackRequest in YOUR OWN front script, then pass the message when you are done with it. Bob S From paul at researchware.com Wed Jul 26 13:02:50 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 13:02:50 -0400 Subject: charIndex property Message-ID: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. For example, if the field contains: The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz". The lazy dog was a great dog. Then there are 3 instances of  "lazy dog" trueWord 8 to 9 of the field,  11 to 12, and 17 to 18 You can also determine that first instance "lazy dog" is in sentence 1 to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in sentence 3 And you can determine that the first 2 instances are in paragraph 1 and the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, and paragraph chunk types) charIndex lets me determine the start of a sentence or paragraph, such as: the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75 the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 of fld X --> 75 My question is, charIndex appear to ONLY work on an actual field object (visible or invisible). You get execution errors if you try say: put the charIndex of word 8 of the text of the templateField put the charIndex of word 8 of the templateField put the charIndex of word 8 of tVar Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? From bobsneidar at iotecdigital.com Wed Jul 26 13:06:49 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 17:06:49 +0000 Subject: charIndex property In-Reply-To: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> Message-ID: <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> Offset? Bob S > On Jul 26, 2023, at 10:02 AM, Paul Dupuis via use-livecode wrote: > > If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. > > For example, if the field contains: > > The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz". > > The lazy dog was a great dog. > > Then there are 3 instances of "lazy dog" > > trueWord 8 to 9 of the field, 11 to 12, and 17 to 18 > > You can also determine that first instance "lazy dog" is in sentence 1 to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in sentence 3 > > And you can determine that the first 2 instances are in paragraph 1 and the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, and paragraph chunk types) > > charIndex lets me determine the start of a sentence or paragraph, such as: > > the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75 > > the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 of fld X --> 75 > > My question is, charIndex appear to ONLY work on an actual field object (visible or invisible). You get execution errors if you try say: > > put the charIndex of word 8 of the text of the templateField > > put the charIndex of word 8 of the templateField > > put the charIndex of word 8 of tVar > > Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 26 13:13:57 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 17:13:57 +0000 Subject: charIndex property In-Reply-To: <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> Message-ID: <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> OIC what that does. I suggest having a hidden field, setting the text of that field to your variable, then operating on that field. Bob S > On Jul 26, 2023, at 10:06 AM, Bob Sneidar via use-livecode wrote: > > Offset? > > Bob S > > >> On Jul 26, 2023, at 10:02 AM, Paul Dupuis via use-livecode wrote: >> >> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >> >> For example, if the field contains: >> >> The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz". >> >> The lazy dog was a great dog. >> >> Then there are 3 instances of "lazy dog" >> >> trueWord 8 to 9 of the field, 11 to 12, and 17 to 18 >> >> You can also determine that first instance "lazy dog" is in sentence 1 to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in sentence 3 >> >> And you can determine that the first 2 instances are in paragraph 1 and the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, and paragraph chunk types) >> >> charIndex lets me determine the start of a sentence or paragraph, such as: >> >> the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75 >> >> the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 of fld X --> 75 >> >> My question is, charIndex appear to ONLY work on an actual field object (visible or invisible). You get execution errors if you try say: >> >> put the charIndex of word 8 of the text of the templateField >> >> put the charIndex of word 8 of the templateField >> >> put the charIndex of word 8 of tVar >> >> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 26 14:23:19 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 18:23:19 +0000 Subject: Determine the screen DPI Message-ID: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> Hi all. I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? Bob S From bobsneidar at iotecdigital.com Wed Jul 26 14:40:35 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 18:40:35 +0000 Subject: Determine the screen DPI In-Reply-To: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> References: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> Message-ID: NVM. Apparently it depends on several things, including manufacturer, OS, scaling etc. Bob S > On Jul 26, 2023, at 11:23 AM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? > > Bob S From craig at starfirelighting.com Wed Jul 26 14:44:23 2023 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 26 Jul 2023 14:44:23 -0400 Subject: Determine the screen DPI In-Reply-To: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> References: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> Message-ID: <6BCFCF46-5F3E-407A-924D-7DEABD37ABC5@starfirelighting.com> Hi. The “screenrect” gives you the factor required directly. If you measure the actual width, say, of the screen and divide that into the difference between item 3 and item 1 of the screenRect, you will get the number of pixels per inch. Craig > On Jul 26, 2023, at 2:23 PM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? > > 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 paul at researchware.com Wed Jul 26 15:47:40 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 15:47:40 -0400 Subject: charIndex property In-Reply-To: <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> Message-ID: <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> On 7/26/2023 1:13 PM, Bob Sneidar via use-livecode wrote: > OIC what that does. I suggest having a hidden field, setting the text of that field to your variable, then operating on that field. > > Bob S That is what I am currently doing. And I have a hidden field, hidden image, hidden player - all for purposes of various operations that you can do on real objects that the templateField, templateImage, and templatePlayer don't do (although there are some things done very nicely with the templates, such as set the rtfText of the templateField to ; get the text of the templateField -- for conversion from RTF to text (or text to htmlText or htmlText to text or ...) For reasons past that are not worth bring up in this email list, I have a slight aversion to hidden objects and prefer to work with the templateObjects or variables when i can. So, that is the very specific question of this post: Does anyone have a clever trick to do the equivalent of charIndex on a variable of text? I guess the allowed answers are "No" (no post is necessary), Yes (but I won't share it) (also no post necessary), Yes, and here it is (thank you), or perhaps a 4th, I don't understand the question, please clarify (which I would be happy to do if someone thinks they have a clever solution and just needs a bit more info) Paul From bobsneidar at iotecdigital.com Wed Jul 26 16:05:26 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 20:05:26 +0000 Subject: Determine the screen DPI In-Reply-To: <6BCFCF46-5F3E-407A-924D-7DEABD37ABC5@starfirelighting.com> References: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> <6BCFCF46-5F3E-407A-924D-7DEABD37ABC5@starfirelighting.com> Message-ID: <1A60965C-0773-458C-B187-0CD3174251F5@iotecdigital.com> Yes, and that is what I did eventually. What I decided to do at any rate is assume 110 PPI for MacOS and 96 PPI for Windows. Not sure what Linux is or if there is anything such as a standard. My goal is to create a popup menu for selecting stack/card size when creating a new stack. Bob S > On Jul 26, 2023, at 11:44 AM, Craig Newman via use-livecode wrote: > > Hi. > > The “screenrect” gives you the factor required directly. If you measure the actual width, say, of the screen and divide that into the difference between item 3 and item 1 of the screenRect, you will get the number of pixels per inch. > > Craig > >> On Jul 26, 2023, at 2:23 PM, Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? >> >> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Wed Jul 26 16:20:43 2023 From: martyknappster at gmail.com (Marty Knapp) Date: Wed, 26 Jul 2023 13:20:43 -0700 Subject: LC on Sonoma beta Message-ID: Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. Also, anyone using the Levure framework to build Universal apps with LC 9.6.9? Thanks for any input --- Marty Knapp From paul at researchware.com Wed Jul 26 17:46:01 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 17:46:01 -0400 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: <9b80618e-a262-321d-e68d-2fdf7d2c0230@researchware.com> On 7/26/2023 4:20 PM, Marty Knapp via use-livecode wrote: > Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. > > Also, anyone using the Levure framework to build Universal apps with LC 9.6.9? > > Thanks for any input > There was an earlier series of posts on this list about an LC standalone or LC itself not running on Sonoma beta - whether that is a beta OS bug for Apple to fix or a breaking change that Livecode LTD will need to address in a 9.6.10 release I have no idea. From MikeKerner at roadrunner.com Wed Jul 26 20:00:06 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 26 Jul 2023 20:00:06 -0400 Subject: charIndex property In-Reply-To: <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> Message-ID: actually, i have a couple of questions, which are maybe suggestions, but are actually questions, because maybe someone else will be curious enough to try to solve them * did you check the oss source to see if the function is available? * have you messed with using regex to get around the issue? On Wed, Jul 26, 2023 at 3:48 PM Paul Dupuis via use-livecode wrote: > > On 7/26/2023 1:13 PM, Bob Sneidar via use-livecode wrote: > > OIC what that does. I suggest having a hidden field, setting the text of that field to your variable, then operating on that field. > > > > Bob S > > That is what I am currently doing. And I have a hidden field, hidden > image, hidden player - all for purposes of various operations that you > can do on real objects that the templateField, templateImage, and > templatePlayer don't do (although there are some things done very nicely > with the templates, such as set the rtfText of the templateField to > ; get the text of the templateField -- for conversion from RTF > to text (or text to htmlText or htmlText to text or ...) > > For reasons past that are not worth bring up in this email list, I have > a slight aversion to hidden objects and prefer to work with the > templateObjects or variables when i can. > > So, that is the very specific question of this post: Does anyone have a > clever trick to do the equivalent of charIndex on a variable of text? > > I guess the allowed answers are "No" (no post is necessary), Yes (but I > won't share it) (also no post necessary), Yes, and here it is (thank > you), or perhaps a 4th, I don't understand the question, please clarify > (which I would be happy to do if someone thinks they have a clever > solution and just needs a bit more info) > > Paul > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 paul at researchware.com Wed Jul 26 21:15:25 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 21:15:25 -0400 Subject: charIndex property In-Reply-To: References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> Message-ID: On 7/26/2023 8:00 PM, Mike Kerner via use-livecode wrote: > actually, i have a couple of questions, which are maybe suggestions, > but are actually questions, because maybe someone else will be curious > enough to try to solve them > * did you check the oss source to see if the function is available? No. I have little detailed understanding of the open source Livecode code repository. My minimal understanding is that the engine source is mostly C++ and my knowledge of C is 30 years out of date. It would be a bit challenging for me to try to tease out the algorithm charIndex actually uses. An excellent question and idea though! Kudos! > * have you messed with using regex to get around the issue? My regex is a bit better, although I would not consider myself a regex expert. I had not though of exploring regex for this. I might give that a try, but if there is a regex expert who sees this that is willing to weigh on on how you might do this - even just a pointer in the right direction - that would be helpful. Another great question/idea. Thanks! charIndex is actually really powerful, if tied to a field object. You can do thing like "the charIndex of the last character of word 11 to 18 of field X" and it return the character position of the last character of the last word in the chunk. Of course, if that is what you want, "the charIndex of char -1 of word 18 of field X" is shorter and does the same thing. Complex expressions like: the charIndex of word 8 of sentence 3 of paragraph 5 of field X work as expected. Gosh, I really *love* Livecode Script's chunk expressions! They make complex text manipulation task so easy! -- Paul From mark at livecode.com Thu Jul 27 04:31:28 2023 From: mark at livecode.com (Mark Waddingham) Date: Thu, 27 Jul 2023 09:31:28 +0100 Subject: charIndex property In-Reply-To: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> Message-ID: On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: > If I have some text in a field, I can use the "charIndex" property (see > Dictionary) to obtain teh character position of the first character of > a chunk. > > Does anyone know of a clever way to do the equivalent of the charIndex > for an arbitrary chunk expression for a container/variable (i.e. not an > actual field object)? This should work I think: function charIndexOfWord pWordIndex, pTarget delete word pWordIndex to -1 of pTarget return the number of characters in pTarget + 1 end charIndexOfWord Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). Hope this helps! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From mark at livecode.com Thu Jul 27 04:39:16 2023 From: mark at livecode.com (Mark Waddingham) Date: Thu, 27 Jul 2023 09:39:16 +0100 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: > Anyone have any input regarding LC apps running on the Apple Sonoma > beta? I have not installed it but have some customers who have and > saying my app crashes. Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 We've investigated and have a fix. As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From marksmithhfx at gmail.com Thu Jul 27 06:39:57 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Thu, 27 Jul 2023 11:39:57 +0100 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: Thanks Mark. Wonderful to see LC is working on it. > On 27 Jul 2023, at 9:39 am, Mark Waddingham via use-livecode wrote: > > On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: >> Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. > > Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 > > We've investigated and have a fix. > > As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). > > I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Build Amazing Things > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Thu Jul 27 09:37:29 2023 From: martyknappster at gmail.com (Marty Knapp) Date: Thu, 27 Jul 2023 06:37:29 -0700 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: Thanks for that update! --- Marty Knapp > On Jul 27, 2023, at 1:39 AM, Mark Waddingham via use-livecode wrote: > > On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: >> Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. > > Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 > > We've investigated and have a fix. > > As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). > > I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Build Amazing Things From matthias_livecode_150811 at m-r-d.de Thu Jul 27 10:48:39 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 27 Jul 2023 16:48:39 +0200 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? Message-ID: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> Hi, is there anyone in the list who has already one of those new code signing certificates on an eToken or in the cloud and would like to test my new wrapper for signtool.exe? Especially those who are not very familiar with Windows might find this wrapper helpful. I've tested it with my cloud base certificate, but had no chance to get it tested from one with an eToken certificate. So if there is interest, then please let me know. Regards, Matthias From matthias_livecode_150811 at m-r-d.de Thu Jul 27 14:23:09 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 27 Jul 2023 20:23:09 +0200 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: The fixed version of LC 9.6.9 for Sonoma is now as download available. > Am 27.07.2023 um 15:37 schrieb Marty Knapp via use-livecode : > > Thanks for that update! > --- > Marty Knapp > >> On Jul 27, 2023, at 1:39 AM, Mark Waddingham via use-livecode wrote: >> >> On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: >>> Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. >> >> Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 >> >> We've investigated and have a fix. >> >> As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). >> >> I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! >> >> Warmest Regards, >> >> Mark. >> >> -- >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >> LiveCode: Build Amazing Things > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 27 16:22:21 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 27 Jul 2023 16:22:21 -0400 Subject: charIndex property In-Reply-To: References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> Message-ID: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: > On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >> If I have some text in a field, I can use the "charIndex" property >> (see Dictionary) to obtain teh character position of the first >> character of a chunk. >> >> Does anyone know of a clever way to do the equivalent of the >> charIndex for an arbitrary chunk expression for a container/variable >> (i.e. not an actual field object)? > > This should work I think: > >    function charIndexOfWord pWordIndex, pTarget >       delete word pWordIndex to -1 of pTarget >       return the number of characters in pTarget + 1 >    end charIndexOfWord > > Deletion of chunks works from the first char that makes up the > computed range, so you are left with all the characters which sit > before it. > > The index of the character immediately before the start of the > specified word is the just the number of characters which sit before > it; and so the index of the first char of the specified word (which is > what charIndex gives you in a field) is that +1. > > The above should work for both +ve and -ve indices, and the obvious > changes will make it work for other string chunks (i.e. change 'Word' > for ). > Mark, Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) Using [] to quote strings. delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. This leaves pTarget as [The quick brown fox jumps over the .] The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. There are some similar issues, being off by  or more, with sentences and paragraphs in longer text. Thank you very much for chiming in with a good direction to try. Paul Dupuis Researchware From mark at livecode.com Thu Jul 27 17:06:17 2023 From: mark at livecode.com (Mark Waddingham) Date: Thu, 27 Jul 2023 22:06:17 +0100 Subject: charIndex property In-Reply-To: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. Alternative attempt: Put null into word N to -1 of S Delete codeunit (codeunitoffset(null, S) to -1 of S Return the number of chars in S + 1 The problem before was the chars which do not form part of the last chunk and remain after deletion. The above puts in a sentinel char which can be searched for to find where the requested chunk started. Second time lucky? ;) Mark. Sent from my iPhone > On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode wrote: > > On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >>> >>> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >> >> This should work I think: >> >> function charIndexOfWord pWordIndex, pTarget >> delete word pWordIndex to -1 of pTarget >> return the number of characters in pTarget + 1 >> end charIndexOfWord >> >> Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. >> >> The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. >> >> The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). >> > > Mark, > > Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: > > pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] > pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) > > Using [] to quote strings. > delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. > This leaves pTarget as [The quick brown fox jumps over the .] > The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. > > There are some similar issues, being off by or more, with sentences and paragraphs in longer text. > > Thank you very much for chiming in with a good direction to try. > > Paul Dupuis > Researchware > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Thu Jul 27 22:19:30 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 28 Jul 2023 12:19:30 +1000 Subject: revDeleteFolder Message-ID: I just got hit (again - I had forgotten my previous encounter) with the fact that revDeleteFolder is not available in LC server. I have no problem using the workaround from the Common library noted in the bug report that dates from 2014, but it would be nice if the documentation could be updated —after 9 years it *still* says it is included in the server edition. From marksmithhfx at gmail.com Fri Jul 28 06:19:16 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 11:19:16 +0100 Subject: Reorder fields Message-ID: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? Thanks From paul at researchware.com Fri Jul 28 07:54:31 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 28 Jul 2023 07:54:31 -0400 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: <1896a657-8168-53b0-d256-8bf0c19a0e2b@researchware.com> On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote: > Oh those pesky chunks which dont cover the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting. > > Alternative attempt: > > Put null into word N to -1 of S > Delete codeunit (codeunitoffset(null, S) to -1 of S > Return the number of chars in S + 1 > > The problem before was the chars which do not form part of the last chunk and remain after deletion. > > The above puts in a sentinel char which can be searched for to find where the requested chunk started. > > Second time lucky? ;) > > Second time's the charm. That works for all chunk types tested (trueWord, sentence, paragraph)! Thank you! From craig at starfirelighting.com Fri Jul 28 09:36:28 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 09:36:28 -0400 Subject: Reorder fields In-Reply-To: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> Message-ID: <0CA76417-57FB-4224-8FAD-D7FB86B95C4A@starfirelighting.com> Hi. Not sure why the tabbing order seems to be out of whack, but you can always force the issue by trapping the tabKey message in each field, and directing it to the next one of you own choice. Craig > On Jul 28, 2023, at 6:19 AM, Mark Smith via use-livecode wrote: > > How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? > > 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 craig at starfirelighting.com Fri Jul 28 09:50:57 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 09:50:57 -0400 Subject: Reorder fields In-Reply-To: <0CA76417-57FB-4224-8FAD-D7FB86B95C4A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <0CA76417-57FB-4224-8FAD-D7FB86B95C4A@starfirelighting.com> Message-ID: <8A8B6C9B-D642-4B08-B73D-7A181CE288E4@starfirelighting.com> I was sloppy, as usual. Trap the message in the card, and use the target to know where you are and where to go next. Craig > On Jul 28, 2023, at 9:36 AM, Craig Newman via use-livecode wrote: > > Hi. > > Not sure why the tabbing order seems to be out of whack, but you can always force the issue by trapping the tabKey message in each field, and directing it to the next one of you own choice. > > Craig > >> On Jul 28, 2023, at 6:19 AM, Mark Smith via use-livecode wrote: >> >> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >> >> Thanks >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Fri Jul 28 10:00:55 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 28 Jul 2023 10:00:55 -0400 Subject: Reorder fields In-Reply-To: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> Message-ID: <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: > How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? > > 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 marksmithhfx at gmail.com Fri Jul 28 10:19:57 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 15:19:57 +0100 Subject: Reorder fields In-Reply-To: <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> Message-ID: Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. Mark > On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: > > You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. > > > On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >> >> Thanks >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Fri Jul 28 11:17:42 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 11:17:42 -0400 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> Message-ID: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? Craig > On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: > > Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. > > Mark > > >> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >> >> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >> >> >> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>> >>> Thanks >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Fri Jul 28 11:17:42 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 11:17:42 -0400 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> Message-ID: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? Craig > On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: > > Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. > > Mark > > >> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >> >> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >> >> >> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>> >>> Thanks >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Fri Jul 28 11:50:59 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 16:50:59 +0100 Subject: Reorder fields In-Reply-To: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you select the label or the field on the form it does not select a group, so I never realised the grouping existed). Using the project browser to select each group the order was 8, 14, 11. I used Pauls trick to move grp 11 above 14 and that satisfied the reorder. But, I also tried and successfully used the Layer field in the Inspector to change the group ordering (in this case to 8, 14, 15) and achieved the same effect. It was a bit more complicated because I had to use the PB to select the grp and then open the inspector for that group to change the layer. Très compliqué, non! > On 28 Jul 2023, at 4:17 pm, Craig Newman via use-livecode wrote: > > Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? > > Craig > >> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: >> >> Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. >> >> Mark >> >> >>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >>> >>> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >>> >>> >>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 12:14:32 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 28 Jul 2023 11:14:32 -0500 Subject: Reorder fields In-Reply-To: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: <1899d47be40.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Layering works in the property inspector for me. The clue is that any layer you set moves everything above that layer one position higher. So if I want field b to layer lower than field c, I would set b's layer to what is currently c's layer. That would push c to one layer higher than b. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 28, 2023 10:20:23 AM Craig Newman via use-livecode wrote: > Why does, as Paul suggests, changing the layer order in the Project Browser > work, whereas changing the layer order explicitly does not? We know that > layers cannot be assigned to a particular object class (like fields) but > include all controls at once. Is it possible that the layer order of the > fields only was not properly grokked? > > Craig > >> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode >> wrote: >> >> Thanks Paul. That is one of those super helpful tips that is hard to >> discover on your own. 1 day we need an easily searchable wiki for all this >> acquired wisdom (but for now I have tucked it away for future reference). >> Thanks for replying. >> >> Mark >> >> >>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode >>> wrote: >>> >>> You can change the layer (order) in the Project Browser in the IDE by just >>> dragging the objects up or down the list of objects on the card. >>> >>> >>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) >>>> in positions 9, 15, 12 (as indicated by the Layer field in the Position >>>> tab). Tabbing cause these fields to be visited in the order a, c, b whereas >>>> I would prefer a, b, c. I have tried all manner of editing the Layer field >>>> to make them be in that order with no success, Ive variously tried new >>>> orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect >>>> their order. It always returns to 9, 15, 12. Lock size and position is not >>>> checked. Ive even tried doing this with the Number field in the Advanced >>>> tab, also without success. Ok, I did find a solution but while it was easy >>>> for me, it might not be as easy on a more complicated form. I deleted all 3 >>>> fields. Recreated field A (which was given the starting position of 11) >>>> then copy pasted two more times creating fields 12 and 13. So this >>>> satisfies my reorder interest, but seems to me a rather cumbersome and >>>> unnecessary procedure (if for no other reason than deleting fields also >>>> deletes all of the custom settings on the fields which doubles or triples >>>> the amount of effort involved). Maybe I am missing something more obvious? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 12:27:03 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 28 Jul 2023 11:27:03 -0500 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> You can toggle what gets selected with the "Select Grouped" icon in the top toolbar. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 28, 2023 10:53:08 AM Mark Smith via use-livecode wrote: > Well, this might explain it. The original designer had grouped the labels > and the fields into groups (so label A and field A into grp A, etc). I was > trying to change the order of the fields, (oddly, when you select the label > or the field on the form it does not select a group, so I never realised > the grouping existed). Using the project browser to select each group the > order was 8, 14, 11. I used Pauls trick to move grp 11 above 14 and that > satisfied the reorder. But, I also tried and successfully used the Layer > field in the Inspector to change the group ordering (in this case to 8, 14, > 15) and achieved the same effect. It was a bit more complicated because I > had to use the PB to select the grp and then open the inspector for that > group to change the layer. > > Trs compliqu, non! > > > >> On 28 Jul 2023, at 4:17 pm, Craig Newman via use-livecode >> wrote: >> >> Why does, as Paul suggests, changing the layer order in the Project Browser >> work, whereas changing the layer order explicitly does not? We know that >> layers cannot be assigned to a particular object class (like fields) but >> include all controls at once. Is it possible that the layer order of the >> fields only was not properly grokked? >> >> Craig >> >>> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode >>> wrote: >>> >>> Thanks Paul. That is one of those super helpful tips that is hard to >>> discover on your own. 1 day we need an easily searchable wiki for all this >>> acquired wisdom (but for now I have tucked it away for future reference). >>> Thanks for replying. >>> >>> Mark >>> >>> >>>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode >>>> wrote: >>>> >>>> You can change the layer (order) in the Project Browser in the IDE by just >>>> dragging the objects up or down the list of objects on the card. >>>> >>>> >>>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) >>>>> in positions 9, 15, 12 (as indicated by the Layer field in the Position >>>>> tab). Tabbing cause these fields to be visited in the order a, c, b whereas >>>>> I would prefer a, b, c. I have tried all manner of editing the Layer field >>>>> to make them be in that order with no success, Ive variously tried new >>>>> orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect >>>>> their order. It always returns to 9, 15, 12. Lock size and position is not >>>>> checked. Ive even tried doing this with the Number field in the Advanced >>>>> tab, also without success. Ok, I did find a solution but while it was easy >>>>> for me, it might not be as easy on a more complicated form. I deleted all 3 >>>>> fields. Recreated field A (which was given the starting position of 11) >>>>> then copy pasted two more times creating fields 12 and 13. So this >>>>> satisfies my reorder interest, but seems to me a rather cumbersome and >>>>> unnecessary procedure (if for no other reason than deleting fields also >>>>> deletes all of the custom settings on the fields which doubles or triples >>>>> the amount of effort involved). Maybe I am missing something more obvious? >>>>> >>>>> Thanks >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 28 13:05:13 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 18:05:13 +0100 Subject: Reorder fields In-Reply-To: <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> You hit the nail on the head. Select grouped was not selected so each field / label looked independent (and could be independently selected). But in fact they were grouped. With select grouped off the fields could not be rearranged. Turning it on enabled layering the groups (containing the fields) in the correct order. Because its not obvious the fields are grouped I never think to check that option (this is not my stack but someone else’s. Probably at some point there was a point to grouping them together… maybe during the design phase). It’s all working now. And Pauls suggestion of checking the PB was useful in “seeing” that each fields label and field was grouped (even without the select grouped icon being toggled on). Thanks to all. Mark > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode wrote: > > You can toggle what gets selected with the "Select Grouped" icon in the top toolbar. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode wrote: > >> Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 17:12:41 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 28 Jul 2023 17:12:41 -0400 Subject: ICYMI: 2024 app store API tightening Message-ID: Saw this in ZDNet: Certain iOS (and presumably macos) apis will require specific justification to be used, starting 2024: https://www.zdnet.com/article/developers-have-new-apple-app-store-rules-to-follow From bobsneidar at iotecdigital.com Fri Jul 28 17:35:14 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 28 Jul 2023 21:35:14 +0000 Subject: charIndex property In-Reply-To: <1896a657-8168-53b0-d256-8bf0c19a0e2b@researchware.com> References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> <1896a657-8168-53b0-d256-8bf0c19a0e2b@researchware.com> Message-ID: This is the essence on Livecode! This is why we love it! Shouldn’t we rebrand it? How about Lovecode?? ….. Never mind. 😂 Sent from my iPhone > On Jul 28, 2023, at 04:55, Paul Dupuis via use-livecode wrote: > > On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote: >> Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. >> >> Alternative attempt: >> >> Put null into word N to -1 of S >> Delete codeunit (codeunitoffset(null, S) to -1 of S >> Return the number of chars in S + 1 >> >> The problem before was the chars which do not form part of the last chunk and remain after deletion. >> >> The above puts in a sentinel char which can be searched for to find where the requested chunk started. >> >> Second time lucky? ;) >> >> > > Second time's the charm. That works for all chunk types tested (trueWord, sentence, paragraph)! Thank you! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Jul 28 18:20:56 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 28 Jul 2023 12:20:56 -1000 Subject: Reorder fields In-Reply-To: <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> Message-ID: Also check out the relayerGroupedControls property. It probably would have led to even greater confusion in this instance, but it's good to know about it and what it does. From the dictionary: "Specifies whether you can change the layer of controls in a group even if not in group-editing mode." I don't know how it works in the Project Browser, but in Navigator I set it to true before attempting any relayering, so in Navigator by default it's possible to relayer controls in groups, and into and out of groups, by dragging them. On Fri, Jul 28, 2023 at 7:06 AM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > You hit the nail on the head. Select grouped was not selected so each > field / label looked independent (and could be independently selected). But > in fact they were grouped. With select grouped off the fields could not be > rearranged. Turning it on enabled layering the groups (containing the > fields) in the correct order. Because its not obvious the fields are > grouped I never think to check that option (this is not my stack but > someone else’s. Probably at some point there was a point to grouping them > together… maybe during the design phase). It’s all working now. And Pauls > suggestion of checking the PB was useful in “seeing” that each fields label > and field was grouped (even without the select grouped icon being toggled > on). > > Thanks to all. > Mark > > > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > You can toggle what gets selected with the "Select Grouped" icon in the > top toolbar. > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> Well, this might explain it. The original designer had grouped the > labels and the fields into groups (so label A and field A into grp A, etc). > I was trying to change the order of the fields, (oddly, when you Please > visit this url to subscribe, unsubscribe and manage your subscription > preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 29 03:49:13 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 29 Jul 2023 08:49:13 +0100 Subject: charIndex property In-Reply-To: References: Message-ID: Love it 😂 Sent from my iPhone > On Jul 28, 2023, at 10:36 PM, Bob Sneidar via use-livecode wrote: > > This is the essence on Livecode! This is why we love it! Shouldn’t we rebrand it? How about Lovecode?? ….. > > Never mind. 😂 > > Sent from my iPhone > >>> On Jul 28, 2023, at 04:55, Paul Dupuis via use-livecode wrote: >>> >>> On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote: >>> Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. >>> >>> Alternative attempt: >>> >>> Put null into word N to -1 of S >>> Delete codeunit (codeunitoffset(null, S) to -1 of S >>> Return the number of chars in S + 1 >>> >>> The problem before was the chars which do not form part of the last chunk and remain after deletion. >>> >>> The above puts in a sentinel char which can be searched for to find where the requested chunk started. >>> >>> Second time lucky? ;) >>> >>> >> >> Second time's the charm. That works for all chunk types tested (trueWord, sentence, paragraph)! Thank you! >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 29 09:19:23 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 29 Jul 2023 14:19:23 +0100 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> Message-ID: <9D4AB25B-CBB8-4FD8-A6C7-10AE8718CBC9@gmail.com> Thanks Geoff. Very interesting. That was, of course, my problem. The items were grouped and the relayerGroupedControls property was false. Changing it to true immediately made it possible to relayer the controls. I feel like I’ve just been introduced to huge component of livecode that I never knew existed (and thought was only available in one place in the IDE). There are rules here, and not just a few. First, items won’t relayer if they are grouped and relayingGroupedControls is set to false. If set to true then you can relayer them, but keep in mind a side effect (as I experienced) is it might change the grouping. However, if you toggle "select grouped" in the IDE you’ll visually see what is grouped, and you can relayer those groups if that achieves your purpose. In the case of just changing the tab order you have several options: you can change the relayerGroupedControls to true, you can ungroup the items and change the layer on the positions tab in the properties inspector or you can use the project browser to drag items around to relayer them (as this has the advantage of showing (more clearly) what items are grouped). Terrific information to know. Thank you everyone. Geoff, I’ve never played with Navigator but from the sounds of it you’ve kept it updated. Is it still available? Mark > On 28 Jul 2023, at 11:20 pm, Geoff Canyon wrote: > > Also check out the relayerGroupedControls property. It probably would have led to even greater confusion in this instance, but it's good to know about it and what it does. From the dictionary: "Specifies whether you can change the layer of controls in a group even if not in group-editing mode." > > I don't know how it works in the Project Browser, but in Navigator I set it to true before attempting any relayering, so in Navigator by default it's possible to relayer controls in groups, and into and out of groups, by dragging them. > > On Fri, Jul 28, 2023 at 7:06 AM Mark Smith via use-livecode > wrote: > You hit the nail on the head. Select grouped was not selected so each field / label looked independent (and could be independently selected). But in fact they were grouped. With select grouped off the fields could not be rearranged. Turning it on enabled layering the groups (containing the fields) in the correct order. Because its not obvious the fields are grouped I never think to check that option (this is not my stack but someone else’s. Probably at some point there was a point to grouping them together… maybe during the design phase). It’s all working now. And Pauls suggestion of checking the PB was useful in “seeing” that each fields label and field was grouped (even without the select grouped icon being toggled on). > > Thanks to all. > Mark > > > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode > wrote: > > > > You can toggle what gets selected with the "Select Grouped" icon in the top toolbar. > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode > wrote: > > > >> Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mkoob at rogers.com Sat Jul 29 10:27:44 2023 From: mkoob at rogers.com (Martin Koob) Date: Sat, 29 Jul 2023 10:27:44 -0400 Subject: Reorder fields In-Reply-To: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Hi The tab order will follow the field’s layer from lowest to highest. (Or from highest to lowest if you hold down the SHIFT key while tabbing just like other apps.) So as you said with your original fields they will tab in this order. field “a" - Layer 9 field ”c" - Layer 12 field “b" - Layer 15 Craig you said... > whereas changing the layer order explicitly does not (work) How were you trying to change the layer? I didn’t know that dragging in the project browser works to order the objects. I will have to check that out. The two ways I have used are either with the property inspector or by script. Property Inspector - click the ‘Position’ tab of the property inspector - Change the number in the ‘Layer’ field either directly or by using the arrow keys. In your case I would first select field ‘b’ and then bump up its layer to 10. field “a" - Layer 9 field “b" - Layer 10 field ”c" - Layer 12 Then I would first select field c’ and then bump up its layer to 11. This is to prevent the focus going to object with layer 11 before going to object with later 12. The user will think the tab key did not work and have to tab again. field “a" - Layer 9 field “b" - Layer 10 field ”c" - Layer 11 That of course will reorder tabbing behaviour or overlapping of other objects between layer 9 and 15 which may or may not lead to unwanted results. Sometimes it can get crazy trying to figure out the order that is correct. Here is a script you can use to quickly show the fields’ layers as their values and put the fields names in their tooltips. command showFieldsLayers repeat with tfieldNumber = 1 to the number of fields of this card put "Layer: " & the layer of field tfieldNumber into field tfieldNumber set the tooltip of field tfieldNumber to the name of field tfieldNumber end repeat end showFieldsLayers Set Layer by Script The other way to set the layer of an object is to do it by script in the message box. set the layer of field "A" to 3 Have a good weekend all. Martin Koob > On Jul 28, 2023, at 11:17 AM, Craig Newman via use-livecode wrote: > > Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? > > Craig > >> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: >> >> Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. >> >> Mark >> >> >>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >>> >>> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >>> >>> >>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 29 11:00:35 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 29 Jul 2023 16:00:35 +0100 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode wrote: > > The two ways I have used are either with the property inspector or by script. > > Property Inspector > - click the ‘Position’ tab of the property inspector > - Change the number in the ‘Layer’ field either directly or by using the arrow keys. Thanks Martin, but as noted, "items won’t relayer if they are grouped and “relayingGroupedControls" is set to false. That was exactly the situation I was in. In my case, field A was grouped with label A, etc so attempting to relayer them failed. I didn’t notice they were grouped because Select Grouped was not chosen in the menu bar. With Select Grouped chosen it’s easy to see the label-field grouping, and then to relayer the groups (not the fields inside the groups) if need be. Or, you can use the PB to do this by just dragging the groups around to relayer them. Finally, there’s a property called relayerGroupedControls which will allow you to relayer objects inside a group. If that had of been “true” instead of the default “false” I would have been able to relayer them in the first instance. But you have to be careful with this option as it can also revise the grouping. BTW, I just tried it (grouped the labels and fields, set the relayerGroupedControls option to true, turned off Select Grouped) and I was able to select the individual fields and relayer them using the Layer field in the Property Inspector. Kinda cool but my goodness you really have to know your stuff to make that manoeuvre happen. But also thank you for the opportunity to discuss this further. It helps with the encoding of this new information into my ageing brain 😊 And also, if I got any of it wrong, please correct me. Mark From mkoob at rogers.com Sat Jul 29 16:45:22 2023 From: mkoob at rogers.com (Martin Koob) Date: Sat, 29 Jul 2023 16:45:22 -0400 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Hi MarkwI did not see your later post that the fields were grouped. My scenario was just the most basic case of fields on a card. I guess it would work if all the fields were in 1 group but having fields in different groups certainly complicates things. Cool solution though. I wasn’t aware of the relayerGroupedControls option. Reading the entry in the Dictionary I learned some interesting things about groups and layers. e.g. you can move an object out of a group by setting its layer above the layer of the topmost object in the group or conversely setting it below the bottommost object in the group. Hmmm…. What could you do with that? True the old brain needs a bit of a work out once in a while to keep the neurons running. Thanks for posting your question. Martin > On Jul 29, 2023, at 11:00 AM, Mark Smith wrote: > > On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode > wrote: >> >> The two ways I have used are either with the property inspector or by script. >> >> Property Inspector >> - click the ‘Position’ tab of the property inspector >> - Change the number in the ‘Layer’ field either directly or by using the arrow keys. > > Thanks Martin, but as noted, "items won’t relayer if they are grouped and “relayingGroupedControls" is set to false. That was exactly the situation I was in. In my case, field A was grouped with label A, etc so attempting to relayer them failed. I didn’t notice they were grouped because Select Grouped was not chosen in the menu bar. With Select Grouped chosen it’s easy to see the label-field grouping, and then to relayer the groups (not the fields inside the groups) if need be. Or, you can use the PB to do this by just dragging the groups around to relayer them. Finally, there’s a property called relayerGroupedControls which will allow you to relayer objects inside a group. If that had of been “true” instead of the default “false” I would have been able to relayer them in the first instance. But you have to be careful with this option as it can also revise the grouping. BTW, I just tried it (grouped the labels and fields, set the relayerGroupedControls option to true, turned off Select Grouped) and I was able to select the individual fields and relayer them using the Layer field in the Property Inspector. Kinda cool but my goodness you really have to know your stuff to make that manoeuvre happen. > > But also thank you for the opportunity to discuss this further. It helps with the encoding of this new information into my ageing brain 😊 And also, if I got any of it wrong, please correct me. > > Mark > From gcanyon at gmail.com Sat Jul 29 18:20:48 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 29 Jul 2023 12:20:48 -1000 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: One trick to this is that objects are included into a group if relayerGroupedControls is set to true and the layer of the control is set to the layer above the group. Meaning that if you have this arrangement: stack "Untitled 1" card id 1002 | group id 1005 (1005) | | button "Button" (1006) | | button "Button" (1004) | button "Button" (1003) | button "test" (1007) put the layer of button "test" -- puts 5 set relayergroupedcontrols to false;set the layer of button "test" to 4 This is now the arrangement: stack "Untitled 1" card id 1002 | group id 1005 (1005) | | button "Button" (1006) | | button "Button" (1004) | button "test" (1007) | button "Button" (1003) put the layer of button "test" -- puts 4 Button "test" is immediately above the group, but not in the group set relayergroupedcontrols to true;set the layer of button "test" to 4 Now the arrangement is: stack "Untitled 1" card id 1002 | group id 1005 (1005) | | button "Button" (1006) | | button "Button" (1004) | | button "test" (1007) | button "Button" (1003) put the layer of button "test" -- puts 4 The layer of button "test" didn't change, but now it is in the group -- and the topmost object in the group. I learned this the hard way through much experimentation building Navigator. Getting drag-and-drop relayering right with selection of multiple objects, and discontiguous selections, in and out of groups, is *painful*, and I've done it several times now... On Sat, Jul 29, 2023 at 10:46 AM Martin Koob via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi MarkwI did not see your later post that the fields were grouped. My > scenario was just the most basic case of fields on a card. I guess it > would work if all the fields were in 1 group but having fields in different > groups certainly complicates things. Cool solution though. I wasn’t aware > of the relayerGroupedControls option. Reading the entry in the Dictionary > I learned some interesting things about groups and layers. > e.g. you can move an object out of a group by setting its layer above the > layer of the topmost object in the group or conversely setting it below > the bottommost object in the group. Hmmm…. What could you do with that? > > True the old brain needs a bit of a work out once in a while to keep the > neurons running. Thanks for posting your question. > > Martin > > > On Jul 29, 2023, at 11:00 AM, Mark Smith wrote: > > > > On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode < > use-livecode at lists.runrev.com > > wrote: > >> > >> The two ways I have used are either with the property inspector or by > script. > >> > >> Property Inspector > >> - click the ‘Position’ tab of the property inspector > >> - Change the number in the ‘Layer’ field either directly or by using > the arrow keys. > > > > Thanks Martin, but as noted, "items won’t relayer if they are grouped > and “relayingGroupedControls" is set to false. That was exactly the > situation I was in. In my case, field A was grouped with label A, etc so > attempting to relayer them failed. I didn’t notice they were grouped > because Select Grouped was not chosen in the menu bar. With Select Grouped > chosen it’s easy to see the label-field grouping, and then to relayer the > groups (not the fields inside the groups) if need be. Or, you can use the > PB to do this by just dragging the groups around to relayer them. Finally, > there’s a property called relayerGroupedControls which will allow you to > relayer objects inside a group. If that had of been “true” instead of the > default “false” I would have been able to relayer them in the first > instance. But you have to be careful with this option as it can also revise > the grouping. BTW, I just tried it (grouped the labels and fields, set the > relayerGroupedControls option to true, turned off Select Grouped) and I was > able to select the individual fields and relayer them using the Layer field > in the Property Inspector. Kinda cool but my goodness you really have to > know your stuff to make that manoeuvre happen. > > > > But also thank you for the opportunity to discuss this further. It helps > with the encoding of this new information into my ageing brain 😊 And also, > if I got any of it wrong, please correct me. > > > > 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 tom at makeshyft.com Sun Jul 30 02:42:41 2023 From: tom at makeshyft.com (Tom Glod) Date: Sun, 30 Jul 2023 02:42:41 -0400 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? In-Reply-To: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> References: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> Message-ID: Hmm, I'm going to look into this Matthias, I had not heard of etoken Certs. I wonder if this is the reason for the recent doubling of the price of signing certificates. On Thu, Jul 27, 2023 at 10:49 AM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > is there anyone in the list who has already one of those new code signing > certificates on an eToken or in the cloud and would like to test my new > wrapper for signtool.exe? > > Especially those who are not very familiar with Windows might find this > wrapper helpful. > > I've tested it with my cloud base certificate, but had no chance to get it > tested from one with an eToken certificate. > > So if there is interest, then please let me know. > > 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 jacque at hyperactivesw.com Sun Jul 30 14:08:18 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 30 Jul 2023 13:08:18 -0500 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? In-Reply-To: References: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> Message-ID: <189a7fc9e50.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Yes, prices have gone way up. You now need a physical USB stick with an encrypted certificate for Windows. I understand there is a cloud option too but we weren't offered that. If you go for the USB solution, give yourself some time. We ordered from Sectigo and while they claim you will get the device in 2 or 3 days, they didn't send it for 5 weeks, which required numerous support interactions to determine why the order was lost in the bureaucracy. If that happens to you, get on phone, the chat bot people are evasive and will tell you it's processing and you will receive it in "2 or 3 days." Demand to talk to a supervisor. My client can be very persuasive when she's pissed off. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 30, 2023 1:45:06 AM Tom Glod via use-livecode wrote: > Hmm, I'm going to look into this Matthias, I had not heard of etoken Certs. > I wonder if this is the reason for the recent doubling of the price of > signing certificates. > > On Thu, Jul 27, 2023 at 10:49AM matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi, >> is there anyone in the list who has already one of those new code signing >> certificates on an eToken or in the cloud and would like to test my new >> wrapper for signtool.exe? >> >> Especially those who are not very familiar with Windows might find this >> wrapper helpful. >> >> I've tested it with my cloud base certificate, but had no chance to get it >> tested from one with an eToken certificate. >> >> So if there is interest, then please let me know. >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Sun Jul 30 15:23:01 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sun, 30 Jul 2023 19:23:01 +0000 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Also good time to mention revNavigator where the grouping would be immediately obvious and you can drag to reorder. Sent from my iPhone > On Jul 29, 2023, at 15:22, Geoff Canyon via use-livecode wrote: > > One trick to this is that objects are included into a group if > relayerGroupedControls is set to true and the layer of the control is set > to the layer above the group. Meaning that if you have this arrangement: > > stack "Untitled 1" > card id 1002 > | group id 1005 (1005) > | | button "Button" (1006) > | | button "Button" (1004) > | button "Button" (1003) > | button "test" (1007) > > put the layer of button "test" > -- puts 5 > > set relayergroupedcontrols to false;set the layer of button "test" to 4 > > This is now the arrangement: > > stack "Untitled 1" > card id 1002 > | group id 1005 (1005) > | | button "Button" (1006) > | | button "Button" (1004) > | button "test" (1007) > | button "Button" (1003) > > put the layer of button "test" > -- puts 4 > > Button "test" is immediately above the group, but not in the group > > set relayergroupedcontrols to true;set the layer of button "test" to 4 > > Now the arrangement is: > > stack "Untitled 1" > card id 1002 > | group id 1005 (1005) > | | button "Button" (1006) > | | button "Button" (1004) > | | button "test" (1007) > | button "Button" (1003) > > put the layer of button "test" > -- puts 4 > > The layer of button "test" didn't change, but now it is in the group -- and > the topmost object in the group. > > I learned this the hard way through much experimentation building > Navigator. Getting drag-and-drop relayering right with selection of > multiple objects, and discontiguous selections, in and out of groups, is > *painful*, and I've done it several times now... > >> On Sat, Jul 29, 2023 at 10:46 AM Martin Koob via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Hi MarkwI did not see your later post that the fields were grouped. My >> scenario was just the most basic case of fields on a card. I guess it >> would work if all the fields were in 1 group but having fields in different >> groups certainly complicates things. Cool solution though. I wasn’t aware >> of the relayerGroupedControls option. Reading the entry in the Dictionary >> I learned some interesting things about groups and layers. >> e.g. you can move an object out of a group by setting its layer above the >> layer of the topmost object in the group or conversely setting it below >> the bottommost object in the group. Hmmm…. What could you do with that? >> >> True the old brain needs a bit of a work out once in a while to keep the >> neurons running. Thanks for posting your question. >> >> Martin >> >>>> On Jul 29, 2023, at 11:00 AM, Mark Smith wrote: >>> >>> On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode < >> use-livecode at lists.runrev.com > >> wrote: >>>> >>>> The two ways I have used are either with the property inspector or by >> script. >>>> >>>> Property Inspector >>>> - click the ‘Position’ tab of the property inspector >>>> - Change the number in the ‘Layer’ field either directly or by using >> the arrow keys. >>> >>> Thanks Martin, but as noted, "items won’t relayer if they are grouped >> and “relayingGroupedControls" is set to false. That was exactly the >> situation I was in. In my case, field A was grouped with label A, etc so >> attempting to relayer them failed. I didn’t notice they were grouped >> because Select Grouped was not chosen in the menu bar. With Select Grouped >> chosen it’s easy to see the label-field grouping, and then to relayer the >> groups (not the fields inside the groups) if need be. Or, you can use the >> PB to do this by just dragging the groups around to relayer them. Finally, >> there’s a property called relayerGroupedControls which will allow you to >> relayer objects inside a group. If that had of been “true” instead of the >> default “false” I would have been able to relayer them in the first >> instance. But you have to be careful with this option as it can also revise >> the grouping. BTW, I just tried it (grouped the labels and fields, set the >> relayerGroupedControls option to true, turned off Select Grouped) and I was >> able to select the individual fields and relayer them using the Layer field >> in the Property Inspector. Kinda cool but my goodness you really have to >> know your stuff to make that manoeuvre happen. >>> >>> But also thank you for the opportunity to discuss this further. It helps >> with the encoding of this new information into my ageing brain 😊 And also, >> if I got any of it wrong, please correct me. >>> >>> 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 matthias_livecode_150811 at m-r-d.de Sun Jul 30 16:56:37 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 30 Jul 2023 22:56:37 +0200 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? In-Reply-To: <189a7fc9e50.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> <189a7fc9e50.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <9BA65F49-1577-4C48-83EA-4FB2D5181534@m-r-d.de> > Am 30.07.2023 um 20:08 schrieb J. Landman Gay via use-livecode : > > Yes, prices have gone way up. You now need a physical USB stick with an encrypted certificate for Windows. > I understand there is a cloud option too but we weren't offered that. Not every certificate issuer offers the 'certificate in cloud' (software token) solution. I for example have a Certum certificate. Certum offers for the OV and the EV certificates both the certificate in cloud and the eToken solution. So one can choose. For my OV certificate in the cloud I paid not more than i paid for my old 3-year certificate. I purchased not directly from Certum, but from SSLPoint and paid 329 Eur for a 3-year OV certificate in the cloud. For those who are interested in a Cloud certificate.... Leaderssl.com is currently selling the 3-years Certum OV cloud certificate even for only 300 Euros and the EV for 600 Euros. The cloud based solutions works this way: You have to install a mobile app on your Android or iOS smart phone and also a desktop app on your Windows pc. The mobile app creates a one time password which you need to login with your desktop app into the Certum "Cloud" or however this could be called. As soon and as long you are logged in to the cloud service the certificate is "included" in your certificate store. Signtool.exe and any also other signing tool, e.g. Jarsigner, which is able to sign using a token, can access the certificate then. The eToken solution works similar. You have to install a driver for the eToken on your Windows PC. As soon as signtool tries to access the certificate from the eToken, the driver software asks for the password to access the eToken. Unfortunately osslsigncode for macOS currently does not support tokens, therefore it is not possible to sign Windows executabls on macOS anymore when using those new certificates. Osslsignode for Linux shall support the new tokens, but i haven't tested it yet. Matthias > If you go for the USB solution, give yourself some time. We ordered from Sectigo and while they claim you will get the device in 2 or 3 days, they didn't send it for 5 weeks, which required numerous support interactions to determine why the order was lost in the bureaucracy. If that happens to you, get on phone, the chat bot people are evasive and will tell you it's processing and you will receive it in "2 or 3 days." Demand to talk to a supervisor. > > My client can be very persuasive when she's pissed off. :) > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 30, 2023 1:45:06 AM Tom Glod via use-livecode wrote: > >> Hmm, I'm going to look into this Matthias, I had not heard of etoken Certs. >> I wonder if this is the reason for the recent doubling of the price of >> signing certificates. >> >> On Thu, Jul 27, 2023 at 10:49 AM matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi, >>> is there anyone in the list who has already one of those new code signing >>> certificates on an eToken or in the cloud and would like to test my new >>> wrapper for signtool.exe? >>> >>> Especially those who are not very familiar with Windows might find this >>> wrapper helpful. >>> >>> I've tested it with my cloud base certificate, but had no chance to get it >>> tested from one with an eToken certificate. >>> >>> So if there is interest, then please let me know. >>> >>> Regards, >>> Matthias >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Mon Jul 31 01:00:09 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 30 Jul 2023 22:00:09 -0700 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Yeah, the three driving forces behind Navigator originally were: 1. Speed, because the alternatives didn't run so quickly for larger projects on hardware available circa 20 years ago. 2. Compactness, because the alternatives were pretty overwhelming on the monitors people were using back then. 3. And to your point: showing multiple layers clearly, because there were a number of former HyperCard users finding it hard to adapt to an environment with more than one "background". :-) On Sun, Jul 30, 2023 at 12:24 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Also good time to mention revNavigator where the grouping would be > immediately obvious and you can drag to reorder. > > Sent from my iPhone > > > On Jul 29, 2023, at 15:22, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > One trick to this is that objects are included into a group if > > relayerGroupedControls is set to true and the layer of the control is set > > to the layer above the group. Meaning that if you have this arrangement: > > > > stack "Untitled 1" > > card id 1002 > > | group id 1005 (1005) > > | | button "Button" (1006) > > | | button "Button" (1004) > > | button "Button" (1003) > > | button "test" (1007) > > > > put the layer of button "test" > > -- puts 5 > > > > set relayergroupedcontrols to false;set the layer of button "test" to 4 > > > > This is now the arrangement: > > > > stack "Untitled 1" > > card id 1002 > > | group id 1005 (1005) > > | | button "Button" (1006) > > | | button "Button" (1004) > > | button "test" (1007) > > | button "Button" (1003) > > > > put the layer of button "test" > > -- puts 4 > > > > Button "test" is immediately above the group, but not in the group > > > > set relayergroupedcontrols to true;set the layer of button "test" to 4 > > > > Now the arrangement is: > > > > stack "Untitled 1" > > card id 1002 > > | group id 1005 (1005) > > | | button "Button" (1006) > > | | button "Button" (1004) > > | | button "test" (1007) > > | button "Button" (1003) > > > > put the layer of button "test" > > -- puts 4 > > > > The layer of button "test" didn't change, but now it is in the group -- > and > > the topmost object in the group. > > > > I learned this the hard way through much experimentation building > > Navigator. Getting drag-and-drop relayering right with selection of > > multiple objects, and discontiguous selections, in and out of groups, is > > *painful*, and I've done it several times now... > > > >> On Sat, Jul 29, 2023 at 10:46 AM Martin Koob via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Hi MarkwI did not see your later post that the fields were grouped. My > >> scenario was just the most basic case of fields on a card. I guess it > >> would work if all the fields were in 1 group but having fields in > different > >> groups certainly complicates things. Cool solution though. I wasn’t > aware > >> of the relayerGroupedControls option. Reading the entry in the > Dictionary > >> I learned some interesting things about groups and layers. > >> e.g. you can move an object out of a group by setting its layer above > the > >> layer of the topmost object in the group or conversely setting it below > >> the bottommost object in the group. Hmmm…. What could you do with that? > >> > >> True the old brain needs a bit of a work out once in a while to keep the > >> neurons running. Thanks for posting your question. > >> > >> Martin > >> > >>>> On Jul 29, 2023, at 11:00 AM, Mark Smith > wrote: > >>> > >>> On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode < > >> use-livecode at lists.runrev.com > > >> wrote: > >>>> > >>>> The two ways I have used are either with the property inspector or by > >> script. > >>>> > >>>> Property Inspector > >>>> - click the ‘Position’ tab of the property inspector > >>>> - Change the number in the ‘Layer’ field either directly or by using > >> the arrow keys. > >>> > >>> Thanks Martin, but as noted, "items won’t relayer if they are grouped > >> and “relayingGroupedControls" is set to false. That was exactly the > >> situation I was in. In my case, field A was grouped with label A, etc so > >> attempting to relayer them failed. I didn’t notice they were grouped > >> because Select Grouped was not chosen in the menu bar. With Select > Grouped > >> chosen it’s easy to see the label-field grouping, and then to relayer > the > >> groups (not the fields inside the groups) if need be. Or, you can use > the > >> PB to do this by just dragging the groups around to relayer them. > Finally, > >> there’s a property called relayerGroupedControls which will allow you to > >> relayer objects inside a group. If that had of been “true” instead of > the > >> default “false” I would have been able to relayer them in the first > >> instance. But you have to be careful with this option as it can also > revise > >> the grouping. BTW, I just tried it (grouped the labels and fields, set > the > >> relayerGroupedControls option to true, turned off Select Grouped) and I > was > >> able to select the individual fields and relayer them using the Layer > field > >> in the Property Inspector. Kinda cool but my goodness you really have to > >> know your stuff to make that manoeuvre happen. > >>> > >>> But also thank you for the opportunity to discuss this further. It > helps > >> with the encoding of this new information into my ageing brain 😊 And > also, > >> if I got any of it wrong, please correct me. > >>> > >>> 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 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 31 11:44:24 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Jul 2023 15:44:24 +0000 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: I replaced the code in the original function with this code and it won’t compile. Do you mind posting the full working function again? Bob S > On Jul 27, 2023, at 2:06 PM, Mark Waddingham via use-livecode wrote: > > Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. > > Alternative attempt: > > Put null into word N to -1 of S > Delete codeunit (codeunitoffset(null, S) to -1 of S > Return the number of chars in S + 1 > > The problem before was the chars which do not form part of the last chunk and remain after deletion. > > The above puts in a sentinel char which can be searched for to find where the requested chunk started. > > Second time lucky? ;) > > Mark. > > Sent from my iPhone > >> On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode wrote: >> >> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>>> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >>>> >>>> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >>> >>> This should work I think: >>> >>> function charIndexOfWord pWordIndex, pTarget >>> delete word pWordIndex to -1 of pTarget >>> return the number of characters in pTarget + 1 >>> end charIndexOfWord >>> >>> Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. >>> >>> The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. >>> >>> The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). >>> >> >> Mark, >> >> Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: >> >> pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] >> pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) >> >> Using [] to quote strings. >> delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. >> This leaves pTarget as [The quick brown fox jumps over the .] >> The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. >> >> There are some similar issues, being off by or more, with sentences and paragraphs in longer text. >> >> Thank you very much for chiming in with a good direction to try. >> >> Paul Dupuis >> Researchware >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Jul 31 11:54:04 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 31 Jul 2023 11:54:04 -0400 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: Bob, Here is a version of Mark's method, for trueWords, sentences, and paragraphs, with the added parameter of pDirection to get the char index of the start of the chunk or the end of the chunk containing the character position pChunkIndex. *private**function* rwCharIndex pText, pChunkType, pChunkIndex, pDirection *-- pText is the full text* *-- pChunkType is once of: words|sentences|paragraphs* *-- pChunkIndex is the integer index in the indicated units. ie. "word",7 is the 7th word* *-- pDirection is one of: first|last meaning either the 1st character of the chunk or the last character* *-- error checking, emty is returned if an error occurs with the parameters* *if* pText isempty*then* *return*empty *if* pChunkType isnotamongtheitemsof"words,sentences,paragraphs"*then* *return*empty *if* pChunkIndex isnotaninteger*then* *return*empty *if* pDirection isnotamongtheitemsof"first,last"*then* *return*empty *local*tL *switch* pChunkType *case* "words" *switch* pDirection *case* "first" *put*nullintotrueWordpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharsinpText + 1) *break* *case* "last" *put*length(trueWordpChunkIndex ofpText) intotL *put*nullintotrueWordpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharactersinpText + tL) *break* *end* *switch* *break* *case* "sentences" *switch* pDirection *case* "first" *put*nullintosentencepChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharsinpText + 1) *break* *case* "last" *put*length(sentencepChunkIndex ofpText) intotL *put*nullintosentencepChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharactersinpText + tL) *break* *end* *switch* *break* *case* "paragraphs" *switch* pDirection *case* "first" *put*nullintoparagraphpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharsinpText + 1) *break* *case* "last" *put*length(paragraphpChunkIndex ofpText) intotL *put*nullintoparagraphpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharactersinpText + tL) *break* *end* *switch* *break* *end* *switch* *end*rwCharIndex On 7/31/2023 11:44 AM, Bob Sneidar via use-livecode wrote: > I replaced the code in the original function with this code and it wont compile. > > Do you mind posting the full working function again? > > Bob S > > >> On Jul 27, 2023, at 2:06 PM, Mark Waddingham via use-livecode wrote: >> >> Oh those pesky chunks which dont cover the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting. >> >> Alternative attempt: >> >> Put null into word N to -1 of S >> Delete codeunit (codeunitoffset(null, S) to -1 of S >> Return the number of chars in S + 1 >> >> The problem before was the chars which do not form part of the last chunk and remain after deletion. >> >> The above puts in a sentinel char which can be searched for to find where the requested chunk started. >> >> Second time lucky? ;) >> >> Mark. >> >> Sent from my iPhone >> >>> On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode wrote: >>> >>> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>>>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>>>> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >>>>> >>>>> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >>>> This should work I think: >>>> >>>> function charIndexOfWord pWordIndex, pTarget >>>> delete word pWordIndex to -1 of pTarget >>>> return the number of characters in pTarget + 1 >>>> end charIndexOfWord >>>> >>>> Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. >>>> >>>> The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. >>>> >>>> The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). >>>> >>> Mark, >>> >>> Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: >>> >>> pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] >>> pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) >>> >>> Using [] to quote strings. >>> delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. >>> This leaves pTarget as [The quick brown fox jumps over the .] >>> The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. >>> >>> There are some similar issues, being off by or more, with sentences and paragraphs in longer text. >>> >>> Thank you very much for chiming in with a good direction to try. >>> >>> Paul Dupuis >>> Researchware >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Jul 31 11:56:01 2023 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 31 Jul 2023 15:56:01 +0000 Subject: LC domains for sale Message-ID: <20230731155601.Horde.-K_qhsPryOcwm8pdStpuAxt@hub.4wsys.com> I had taken out these domains some time ago for possible projects, but now I'm planning on having those proposed services become part of the existing livecodejournal.com domain instead.   If anyone here is interested in these domains they're listed at AfterNIC.com, and I'd be happy to negotiate favorable pricing if you have a community-oriented use in mind:   livecodeworld.com learnlivecode.com   --   Richard Gaskin Fourth World System   From paul at researchware.com Mon Jul 31 12:08:08 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 31 Jul 2023 12:08:08 -0400 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: I have no idea why pasting placed *'s all over the place! On 7/31/2023 11:54 AM, Paul Dupuis via use-livecode wrote: > Bob, > > Here is a version of Mark's method, for trueWords, sentences, and > paragraphs, with the added parameter of pDirection to get the char > index of the start of the chunk or the end of the chunk containing the > character position pChunkIndex. > > *private**function* rwCharIndex pText, pChunkType, pChunkIndex, > pDirection > > *-- pText is the full text* > > *-- pChunkType is once of: words|sentences|paragraphs* > > *-- pChunkIndex is the integer index in the indicated units. ie. > "word",7 is the 7th word* > > *-- pDirection is one of: first|last meaning either the 1st character > of the chunk or the last character* > > *-- error checking, emty is returned if an error occurs with the > parameters* > > *if* pText isempty*then* *return*empty > > *if* pChunkType isnotamongtheitemsof"words,sentences,paragraphs"*then* > *return*empty > > *if* pChunkIndex isnotaninteger*then* *return*empty > > *if* pDirection isnotamongtheitemsof"first,last"*then* *return*empty > > *local*tL > > *switch* pChunkType > > *case* "words" > > *switch* pDirection > > *case* "first" > > *put*nullintotrueWordpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharsinpText + 1) > > *break* > > *case* "last" > > *put*length(trueWordpChunkIndex ofpText) intotL > > *put*nullintotrueWordpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharactersinpText + tL) > > *break* > > *end* *switch* > > *break* > > *case* "sentences" > > *switch* pDirection > > *case* "first" > > *put*nullintosentencepChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharsinpText + 1) > > *break* > > *case* "last" > > *put*length(sentencepChunkIndex ofpText) intotL > > *put*nullintosentencepChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharactersinpText + tL) > > *break* > > *end* *switch* > > *break* > > *case* "paragraphs" > > *switch* pDirection > > *case* "first" > > *put*nullintoparagraphpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharsinpText + 1) > > *break* > > *case* "last" > > *put*length(paragraphpChunkIndex ofpText) intotL > > *put*nullintoparagraphpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharactersinpText + tL) > > *break* > > *end* *switch* > > *break* > > *end* *switch* > > *end*rwCharIndex > > > > > On 7/31/2023 11:44 AM, Bob Sneidar via use-livecode wrote: >> I replaced the code in the original function with this code and it >> wont compile. >> >> Do you mind posting the full working function again? >> >> Bob S >> >> >>> On Jul 27, 2023, at 2:06 PM, Mark Waddingham via use-livecode >>> wrote: >>> >>> Oh those pesky chunks which dont cover the target string (which >>> is actually all of them except codeunit/point/char come to think of >>> it). I should have run through a few more examples in my head before >>> posting. >>> >>> Alternative attempt: >>> >>> Put null into word N to -1 of S >>> Delete codeunit (codeunitoffset(null, S) to -1 of S >>> Return the number of chars in S + 1 >>> >>> The problem before was the chars which do not form part of the last >>> chunk and remain after deletion. >>> >>> The above puts in a sentinel char which can be searched for to find >>> where the requested chunk started. >>> >>> Second time lucky? ;) >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>>> On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode >>>> wrote: >>>> >>>> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>>>>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>>>>> If I have some text in a field, I can use the "charIndex" >>>>>> property (see Dictionary) to obtain teh character position of the >>>>>> first character of a chunk. >>>>>> >>>>>> Does anyone know of a clever way to do the equivalent of the >>>>>> charIndex for an arbitrary chunk expression for a >>>>>> container/variable (i.e. not an actual field object)? >>>>> This should work I think: >>>>> >>>>>    function charIndexOfWord pWordIndex, pTarget >>>>>       delete word pWordIndex to -1 of pTarget >>>>>       return the number of characters in pTarget + 1 >>>>>    end charIndexOfWord >>>>> >>>>> Deletion of chunks works from the first char that makes up the >>>>> computed range, so you are left with all the characters which sit >>>>> before it. >>>>> >>>>> The index of the character immediately before the start of the >>>>> specified word is the just the number of characters which sit >>>>> before it; and so the index of the first char of the specified >>>>> word (which is what charIndex gives you in a field) is that +1. >>>>> >>>>> The above should work for both +ve and -ve indices, and the >>>>> obvious changes will make it work for other string chunks (i.e. >>>>> change 'Word' for ). >>>>> >>>> Mark, >>>> >>>> Thank you very much. This was a brilliant approach and I should >>>> have thought of it myself. However, it is not quite an accurate >>>> substitute for the charIndex property of a field. The following >>>> example illustrates the issue: >>>> >>>> pTarget is [The quick brown fox jumps over the lazy dog. The lazy >>>> dog was named "Oz".] >>>> pWordIndex is 8 (having been derived from searching for 'lazy', the >>>> 8th word) >>>> >>>> Using [] to quote strings. >>>> delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not >>>> the period (.) at the end since it is not considered part of word -1. >>>> This leaves pTarget as [The quick brown fox jumps over the .] >>>> The number of characters in pTarget + 1 is actually not the >>>> position of the [l] in [lazy], which is character 36, but the [a] >>>> in [azy], character 37, due to the period being left. >>>> >>>> There are some similar issues, being off by  or more, with >>>> sentences and paragraphs in longer text. >>>> >>>> Thank you very much for chiming in with a good direction to try. >>>> >>>> Paul Dupuis >>>> Researchware >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 31 12:11:51 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Jul 2023 16:11:51 +0000 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: On Jul 31, 2023, at 8:54 AM, Paul Dupuis via use-livecode wrote: Bob, Here is a version of Mark's method, for trueWords, sentences, and paragraphs, with the added parameter of pDirection to get the char index of the start of the chunk or the end of the chunk containing the character position pChunkIndex. Thanks, but whatever email app you sent from borked the code, putting asterisks before and after every keyword and running other words together. I always paste/copy my code in a generic text editor before sending to the list. At any rate, I cleaned it up and here is the code. Not sure why you made it a private function but I removed the keyword PRIVATE so it could be used anywhere. Thanks Mark for this effort. I think it should become part of the Master Library. Bob S function rwCharIndex pText, pChunkType, pChunkIndex, pDirection -- pText is the full text -- pChunkType is once of: words|sentences|paragraphs -- pChunkIndex is the integer index in the indicated units. ie. "word",7 is the 7th word -- pDirection is one of: first|last meaning either the 1st character of the chunk or the last character -- error checking, empty is returned if an error occurs with the parameters if pText is empty then return empty if pChunkType is not among the items of "words,sentences,paragraphs" then return empty if pChunkIndex is not an integer then return empty if pDirection is not among the items of "first,last" then return empty local tL switch pChunkType case "words" switch pDirection case "first" put null into trueWord pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of chars in pText + 1) break case "last" put length(trueWord pChunkIndex of pText) into tL put null into trueWord pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of characters in pText + tL) break end switch break case "sentences" switch pDirection case "first" put null into sentence pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of chars in pText + 1) break case "last" put length(sentence pChunkIndex of pText) into tL put null into sentence pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of characters in pText + tL) break end switch break case "paragraphs" switch pDirection case "first" put null into paragraph pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of chars in pText + 1) break case "last" put length(paragraph pChunkIndex of pText) into tL put null into paragraph pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of characters in pText + tL) break end switch break end switch end rwCharIndex From bobsneidar at iotecdigital.com Mon Jul 31 12:31:13 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Jul 2023 16:31:13 +0000 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: <0E3C0707-3417-4DD7-B617-6A2234F3B933@iotecdigital.com> Are you using Thunderbird for an email client? Or are you copying from the forum? This was talked about years ago. For some reason different apps format clipboard text differently, and this is an artifact of one of those apps. That is why I paste, then re-copy code in a text editor like TextEdit or Sublime Text. If I don’t, then the lines are double spaced and it looks like crap and is hard to read. :-) Bob S On Jul 31, 2023, at 9:08 AM, Paul Dupuis via use-livecode wrote: I have no idea why pasting placed *'s all over the place! From dsc at swcp.com Mon Jul 31 20:48:27 2023 From: dsc at swcp.com (Dar Scott) Date: Mon, 31 Jul 2023 18:48:27 -0600 Subject: Managing windows in the IDE on Mac Message-ID: <9B368B43-B56B-43AE-A1D7-AF825538B07F@swcp.com> It has been a while. Hi, all. I’m getting back into LiveCode. I’m using 9.6.9 on Mac Ventura. I’m having a lot of trouble with the windows in the IDE. The backdrop doesn’t always work. The stack I’m working on keeps disappearing. I can check Float above everything, but that is not what I need and it can become a problem when I want to look at something else. The Project Browser stays behind everything and then disappears when I click on it. Dar Dar Scott  +1.505.433.1024 | darzLAB.com | DarScott at darzLAB.com From jacque at hyperactivesw.com Mon Jul 31 23:56:27 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 31 Jul 2023 22:56:27 -0500 Subject: Managing windows in the IDE on Mac In-Reply-To: <9B368B43-B56B-43AE-A1D7-AF825538B07F@swcp.com> References: <9B368B43-B56B-43AE-A1D7-AF825538B07F@swcp.com> Message-ID: <189af3d71f8.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Hey Dar! So nice to see you here again. The backdrop problem is a known bug on Ventura. Sometimes you can click where the window ought to be and it comes to the front, but basically windowing is broken. The only fix I know of for now is to not use a backdrop. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 31, 2023 7:50:52 PM Dar Scott via use-livecode wrote: > It has been a while. Hi, all. Im getting back into LiveCode. > > Im using 9.6.9 on Mac Ventura. > > Im having a lot of trouble with the windows in the IDE. The backdrop > doesnt always work. The stack Im working on keeps disappearing. I can > check Float above everything, but that is not what I need and it can become > a problem when I want to look at something else. The Project Browser stays > behind everything and then disappears when I click on it. > > Dar > > > > > Dar Scott > > > > +1.505.433.1024 | darzLAB.com | > DarScott at darzLAB.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 General.2018 at outlook.com Sat Jul 1 12:54:03 2023 From: General.2018 at outlook.com (General 2018) Date: Sat, 1 Jul 2023 16:54:03 +0000 Subject: Answer dialog text missing in standalone 9.6.9 In-Reply-To: References: <27C6F429-B111-49A1-B924-FF36CC6C58E6@starfirelighting.com> <48FB70CF-1528-40D2-9206-5FD495C0C3B1@m-r-d.de> Message-ID: Hi , Is this a bug ? Win 10 LC 9.6.8 Standalone Black Text. Background as stack colour but needs to set to white as text cannot be seen. Buttons black text on grey - a bit naff. LC 9.6.9 Standalone White Text. Background as stack colour - okay except for white as text is white. Buttons white text on grey - no good. LC 9.6.8 / 9.6.9 Always black text on white/grey regardless of stack colours? Is there a fundamental problem with ask/answer dialog on Windows ? Would expect this to work and why changing across versions ? Regards Camm > On 30 Jun 2023, at 19:23, Mike Kerner via use-livecode wrote: > > i think there are other ide stacks that switched from binary to > script-only stacks in 9.6.9. that broke some other behaviors, too. if > i was betting, i would bet that the SOS is not explicitly setting the > font color, but i haven't read the script to confirm, either. > >> On Fri, Jun 30, 2023 at 1:49 PM General 2018 via use-livecode >> wrote: >> >> Hi , >> >> Made new stack and works okay. >> >> Then found that I had set the background colour of ask and answer to white, this has worked for many years and showed black text. The stack background is blue. Do I assume something has changed in 9.6.9 ? >> >> I removed the set background to white and the answer background is now blue as expected with white text. The answer banner is white with black text but the yes/no buttons are grey with white text which is unreadable. >> >> Regards >> Camm >> >>>> On 30 Jun 2023, at 13:36, matthias rebbe via use-livecode wrote: >>> >>> Did you already try it with a new stack just with a button which includes only a mouseup script with only the answer.... command? >>> >>>> Am 30.06.2023 um 14:29 schrieb General 2018 via use-livecode : >>>> >>>> Windows 10 >>>> LC 9.6.9 >>>> >>>> Regards >>>> Camm >>>> >>>>>> On 30 Jun 2023, at 12:13, panagiotis m via use-livecode wrote: >>>>> >>>>> Hello Camm, >>>>> >>>>> In which platform? Seems to work as expected here (MacOS). >>>>> >>>>> Cheers, >>>>> Panos >>>>> -- >>>>> >>>>>> On Fri, 30 Jun 2023 at 09:54, General 2018 via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> Just the “Yes” , “No” >>>>>> >>>>>> “Some Text” missing. >>>>>> >>>>>> Works fine in IDE and previous standalones. >>>>>> >>>>>> Regards >>>>>> Camm >>>>>> >>>>>>> On 29 Jun 2023, at 23:13, Craig Newman via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> Hi. >>>>>>> >>>>>>> I assume you mean the standard “Answer” command. There is no “Answer >>>>>> Text”. >>>>>>> >>>>>>> So if you: >>>>>>> >>>>>>> answer “Some Text" with “Yes" or “No" >>>>>>> what exactly pops up? >>>>>>> >>>>>>> >>>>>>> >>>>>>> Craig >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> On Jun 29, 2023, at 4:21 PM, General 2018 via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Answer Text missing in standalone , the icon and buttons (with text) >>>>>> appear but no dialog text. >>>>>>>> All okay in IDE. >>>>>>>> >>>>>>>> Checked inclusions - all seems okay. >>>>>>>> >>>>>>>> Regards >>>>>>>> Camm >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 dfe4 at cornell.edu Sun Jul 2 14:24:26 2023 From: dfe4 at cornell.edu (David Epstein) Date: Sun, 2 Jul 2023 14:24:26 -0400 Subject: Remote debugger error message Message-ID: panagiotis m asked: @david How do you trigger this error? Could you provide a recipe? With the stacks that trigger the error it is hard to troubleshoot them without triggering the error. So I’m starting with an entirely new stack, and will report if I encounter the problem. I suspect the problem has something to do with a message that calls a handler in a stack-in-use. Best wishes, David > > > On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode > > wrote: >> >> I?ve just started using LiveCode 9.6.9 and 10.0.0 DP 5 on two Intel > Macs, and can do very little without getting this error message: >> >> ?There was an error executing a script in stack > com.livecode.library.remotedebugger. No more information is available > because the stack is password protected.? From jacque at hyperactivesw.com Sun Jul 2 15:08:35 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 2 Jul 2023 14:08:35 -0500 Subject: Remote debugger error message In-Reply-To: References: Message-ID: <192ac13f-7c64-9c46-0f1b-bf230294f08f@hyperactivesw.com> I've seen the same error more than once but it's a bit random and I don't know what triggers it. It's only in the IDE so far, even though I've included the remote debugger in the standalone. Funny that it should occur in the IDE when the remote debugger isn't active. The remote debugger in the standalone did trigger some errors a few times. Maybe something is left in memory? The IDE was still running while testing the standalone. On 7/2/23 1:24 PM, David Epstein via use-livecode wrote: > panagiotis m asked: > @david > How do you trigger this error? Could you provide a recipe? > > With the stacks that trigger the error it is hard to troubleshoot them without triggering the error. So I’m starting with an entirely new stack, and will report if I encounter the problem. > > I suspect the problem has something to do with a message that calls a handler in a stack-in-use. > > Best wishes, > David > >> >> >> On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode >> > wrote: >>> >>> I?ve just started using LiveCode 9.6.9 and 10.0.0 DP 5 on two Intel >> Macs, and can do very little without getting this error message: >>> >>> ?There was an error executing a script in stack >> com.livecode.library.remotedebugger. No more information is available >> because the stack is password protected.? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sun Jul 2 15:19:05 2023 From: paul at researchware.com (Paul Dupuis) Date: Sun, 2 Jul 2023 15:19:05 -0400 Subject: Remote debugger error message In-Reply-To: <192ac13f-7c64-9c46-0f1b-bf230294f08f@hyperactivesw.com> References: <192ac13f-7c64-9c46-0f1b-bf230294f08f@hyperactivesw.com> Message-ID: I got this error in a new install of LC969 on a brand new Windows 11 HP laptop. After I quit LC and started it again, I have not seen the error. I think there may have been some Windows notification that appeared but went away before I could do anything in the standard Win10/11 Notifications (lower right corner) and when I, later, popped open the notification panel, there was nothing there. I have now launched LC many times since without seeing the error again. On 7/2/2023 3:08 PM, J. Landman Gay via use-livecode wrote: > I've seen the same error more than once but it's a bit random and I > don't know what triggers it. It's only in the IDE so far, even though > I've included the remote debugger in the standalone. Funny that it > should occur in the IDE when the remote debugger isn't active. > > The remote debugger in the standalone did trigger some errors a few > times. Maybe something is left in memory? The IDE was still running > while testing the standalone. > > On 7/2/23 1:24 PM, David Epstein via use-livecode wrote: >> panagiotis m asked: >> @david >> How do you trigger this error? Could you provide a recipe? >> >> With the stacks that trigger the error it is hard to troubleshoot >> them without triggering the error.  So Im starting with an entirely >> new stack, and will report if I encounter the problem. >> >> I suspect the problem has something to do with a message that calls a >> handler in a stack-in-use. >> >> Best wishes, >> David >> >>> >>> >>> On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode >>> >> > wrote: >>>> >>>> I?ve just started using LiveCode 9.6.9 and 10.0.0 DP 5 on two Intel >>> Macs, and can do very little without getting this error message: >>>> >>>> ?There was an error executing a script in stack >>> com.livecode.library.remotedebugger.  No more information is available >>> because the stack is password protected.? >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From andrew at midwestcoastmedia.com Mon Jul 3 13:30:52 2023 From: andrew at midwestcoastmedia.com (Andrew at MWCM) Date: Mon, 3 Jul 2023 13:30:52 -0400 Subject: Installing mySQL on Windows In-Reply-To: References: Message-ID: <204E50D5-575C-4EB7-A63A-DAD7752FBFF6@midwestcoastmedia.com> The installer itself is 32bit but it will give you 64bit binaries. I had to upgrade my 5.7.x to the latest version first, but then I could add the x64 version of 8.0. —Andrew Bell > > Yes, and as you will note, those are 32 bit installers. I was hoping there was a 64 bit installer. There ARE 64 bit binaries, but no MSI. > > Bob S > > > On Jun 23, 2023, at 11:55 AM, Andrew at MWCM via use-livecode wrote: > > Just installed it last week on a Windows Server 2019 VM using the installer from https://dev.mysql.com/downloads/installer/ > > -Andrew Bell From jacque at hyperactivesw.com Mon Jul 3 15:44:33 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 3 Jul 2023 14:44:33 -0500 Subject: Writing to Mac Support folder In-Reply-To: <5BC05A6D-404D-4EF0-8D8A-38B95C0D31C0@m-r-d.de> References: <5BC05A6D-404D-4EF0-8D8A-38B95C0D31C0@m-r-d.de> Message-ID: <8b602e8b-f51f-828c-701b-94c2fbb23da5@hyperactivesw.com> On 6/30/23 1:32 AM, matthias rebbe via use-livecode wrote: > This is what Apple says: > > "If you distribute your macOS app through the App Store, you must enable App Sandbox. If you notarize your macOS app to distribute it outside of the App Store, you must enable hardened runtime and, optionally, can also enable App Sandbox." > https://help.apple.com/xcode/mac/current/#/devf87a2ac8f If I have notarized the app, is hardened runtime enabled? I don't even know what that means. I use mrSignNotarizeHelper. I tried to enable entitlements, but I don't need any of the listed ones and if none are selected then the Entitlements checkbox reverts to off. I assume that means my app is not sandboxed? How do I sandbox the app, and would that allow it to write to the App Support folder? Does LC automatically enable hardened runtime? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Jul 5 18:25:16 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Jul 2023 22:25:16 +0000 Subject: Installing mySQL on Windows In-Reply-To: <204E50D5-575C-4EB7-A63A-DAD7752FBFF6@midwestcoastmedia.com> References: <204E50D5-575C-4EB7-A63A-DAD7752FBFF6@midwestcoastmedia.com> Message-ID: Ah, thanks you. That is helpful. Bob S > On Jul 3, 2023, at 10:30 AM, Andrew at MWCM via use-livecode wrote: > > The installer itself is 32bit but it will give you 64bit binaries. I had to upgrade my 5.7.x to the latest version first, but then I could add the x64 version of 8.0. > > —Andrew Bell > >> >> Yes, and as you will note, those are 32 bit installers. I was hoping there was a 64 bit installer. There ARE 64 bit binaries, but no MSI. >> >> Bob S >> >> >> On Jun 23, 2023, at 11:55 AM, Andrew at MWCM via use-livecode wrote: >> >> Just installed it last week on a Windows Server 2019 VM using the installer from https://dev.mysql.com/downloads/installer/ >> >> -Andrew Bell > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 6 10:26:18 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 Jul 2023 10:26:18 -0400 Subject: A stack "revCursors" is already in memory. Message-ID: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> I have a new Livecode 9.6.9  install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. From jacque at hyperactivesw.com Thu Jul 6 17:12:49 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 6 Jul 2023 16:12:49 -0500 Subject: A stack "revCursors" is already in memory. In-Reply-To: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> Message-ID: <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: > I have a new Livecode 9.6.9  install on a new Windows 11 laptop. It was working normally for a > while, and, now, whenever I launch it, I get a warning message: > > A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. > > Can someone advise what I need to do to address this? I seem to recall this problem has been > seen before. I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. Check the substacks of your mainstack. If revCursors is in there, delete it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Thu Jul 6 17:28:59 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 Jul 2023 17:28:59 -0400 Subject: A stack "revCursors" is already in memory. In-Reply-To: <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> Message-ID: <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: > On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >> I have a new Livecode 9.6.9  install on a new Windows 11 laptop. It >> was working normally for a while, and, now, whenever I launch it, I >> get a warning message: >> >> A stack "revCursors" is already in memory. The Livecode UI does not >> ... etc.. >> >> Can someone advise what I need to do to address this? I seem to >> recall this problem has been seen before. > > I think it happens when you include cursors in a standalone build. > Sometimes LC adds it to your stack as well as to the executable. When > LC launches it see both the one in the stack and the one in the IDE. > > Check the substacks of your mainstack. If revCursors is in there, > delete it. > Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. From bobsneidar at iotecdigital.com Thu Jul 6 18:39:30 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 6 Jul 2023 22:39:30 +0000 Subject: A stack "revCursors" is already in memory. In-Reply-To: <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> Message-ID: Well….. What happens is that when you build an app, every stack it uses will be opened in the IDE, ostensibly to determine what inclusions are necessary. I have seen where the version of the stack that is open AFTER building the standalone is the one in the STANDALONE! So if you continue to use the IDE or try to build another app, you will get that conflict. That *may* be what you are experiencing, although that may have been addressed in 9.6.9 or some subsequent release. To avoid this altogether, I quit the IDE every time I build an app per platform so I do not encounter that. The first time it happened, I saved my stack and it replaced all the references to the stack files with the version from the standalone! I had a hell of a time cleaning it up! There is code you can put at the beginning of certain handlers like preOpenCard where you can check the value of the global variable reSaveAsStandalone (or something like that) and then exit accordingly, I forget the list of handlers you need to use this on. I think preOpenCard, preOpenstack, openCard and openStack. But if you do this, then you cannot use the Auto Inclusions feature. Really a bummer. I suppose you could trap for revSaveAsStandalone in your openCard handler of your main stack, then run a routine that registers all the stacksInUse, then when the standalone finishes, run a routine that closes those stacks by name, then reopens the correct versions, but that is a LOT to have to do for a feature so fundamental as building a standalone. Another thing building standalone does is it adds every stack the IDE opens to the recents list! BOOOO!!! BIG BAD BELLOWING BLUSTERY BOOOOOOO!!!!!!! The handler that does that should ITSELF be checking the status of revSaveAsStandalone! Bob S > On Jul 6, 2023, at 2:28 PM, Paul Dupuis via use-livecode wrote: > > On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: >> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >>> I have a new Livecode 9.6.9 install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: >>> >>> A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. >>> >>> Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. >> >> I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. >> >> Check the substacks of your mainstack. If revCursors is in there, delete it. >> > > Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 6 22:46:32 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 7 Jul 2023 12:46:32 +1000 Subject: A stack "revCursors" is already in memory. In-Reply-To: References: Message-ID: <9BB2DC6B-9524-4193-AF2D-35F418BDDE57@optusnet.com.au> Paul Are you launching a stack that has previously been made into a standalone? Some time ago very often when I created a standalone it added copies of the built-in revCursors stack(s) as substacks of my stack. Before I noticed this subsequent standalone builds could add multiple copies all with the same name. And then I would get that message when the stack was launched, since the copies conflicted with the original versions that the IDE needs. I never quite pinned down what caused the insertion, so couldn’t report it as a bug, and I haven’t seen it in recent versions of LiveCode. The solution was to use the project browser to list all the substacks of the stack and simply delete the nugatory copies of revCursors. As I recall there was some extra step such as renaming the substack before deleting, perhaps only necessary in the case there were multiple copies, so as to not to confuse the delete command. Neville > On 7 Jul 2023, at 2:00 am, use-livecode-request at lists.runrev.com wrote: > > A stack "revCursors" is already in memory. From bobsneidar at iotecdigital.com Fri Jul 7 11:43:20 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 7 Jul 2023 15:43:20 +0000 Subject: A stack "revCursors" is already in memory. In-Reply-To: References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> Message-ID: Correction: revSaveAsStandalone. Not even sure that is it though. For some reason I removed the bits of code where I was using this. Putting revSaveAsStandalone in the dialog box produces nothing, so it may be a global that gets created when a standalone is being built, and gets deleted when done. Bob S > On Jul 6, 2023, at 3:39 PM, Bob Sneidar via use-livecode wrote: > > Well….. > > What happens is that when you build an app, every stack it uses will be opened in the IDE, ostensibly to determine what inclusions are necessary. I have seen where the version of the stack that is open AFTER building the standalone is the one in the STANDALONE! So if you continue to use the IDE or try to build another app, you will get that conflict. That *may* be what you are experiencing, although that may have been addressed in 9.6.9 or some subsequent release. > > To avoid this altogether, I quit the IDE every time I build an app per platform so I do not encounter that. The first time it happened, I saved my stack and it replaced all the references to the stack files with the version from the standalone! I had a hell of a time cleaning it up! > > There is code you can put at the beginning of certain handlers like preOpenCard where you can check the value of the global variable reSaveAsStandalone (or something like that) and then exit accordingly, I forget the list of handlers you need to use this on. I think preOpenCard, preOpenstack, openCard and openStack. But if you do this, then you cannot use the Auto Inclusions feature. Really a bummer. > > I suppose you could trap for revSaveAsStandalone in your openCard handler of your main stack, then run a routine that registers all the stacksInUse, then when the standalone finishes, run a routine that closes those stacks by name, then reopens the correct versions, but that is a LOT to have to do for a feature so fundamental as building a standalone. > > Another thing building standalone does is it adds every stack the IDE opens to the recents list! BOOOO!!! BIG BAD BELLOWING BLUSTERY BOOOOOOO!!!!!!! The handler that does that should ITSELF be checking the status of revSaveAsStandalone! > > Bob S > > >> On Jul 6, 2023, at 2:28 PM, Paul Dupuis via use-livecode wrote: >> >> On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: >>> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >>>> I have a new Livecode 9.6.9 install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: >>>> >>>> A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. >>>> >>>> Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. >>> >>> I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. >>> >>> Check the substacks of your mainstack. If revCursors is in there, delete it. >>> >> >> Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 7 11:46:19 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 7 Jul 2023 15:46:19 +0000 Subject: A stack "revCursors" is already in memory. In-Reply-To: References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> Message-ID: Hmmm… the global variable revSaveAsStandalone does not seem to be available anymore, or is it a global created at build time, then deleted when done? Bob S > On Jul 6, 2023, at 3:39 PM, Bob Sneidar wrote: > > Well….. > > What happens is that when you build an app, every stack it uses will be opened in the IDE, ostensibly to determine what inclusions are necessary. I have seen where the version of the stack that is open AFTER building the standalone is the one in the STANDALONE! So if you continue to use the IDE or try to build another app, you will get that conflict. That *may* be what you are experiencing, although that may have been addressed in 9.6.9 or some subsequent release. > > To avoid this altogether, I quit the IDE every time I build an app per platform so I do not encounter that. The first time it happened, I saved my stack and it replaced all the references to the stack files with the version from the standalone! I had a hell of a time cleaning it up! > > There is code you can put at the beginning of certain handlers like preOpenCard where you can check the value of the global variable reSaveAsStandalone (or something like that) and then exit accordingly, I forget the list of handlers you need to use this on. I think preOpenCard, preOpenstack, openCard and openStack. But if you do this, then you cannot use the Auto Inclusions feature. Really a bummer. > > I suppose you could trap for revSaveAsStandalone in your openCard handler of your main stack, then run a routine that registers all the stacksInUse, then when the standalone finishes, run a routine that closes those stacks by name, then reopens the correct versions, but that is a LOT to have to do for a feature so fundamental as building a standalone. > > Another thing building standalone does is it adds every stack the IDE opens to the recents list! BOOOO!!! BIG BAD BELLOWING BLUSTERY BOOOOOOO!!!!!!! The handler that does that should ITSELF be checking the status of revSaveAsStandalone! > > Bob S > > >> On Jul 6, 2023, at 2:28 PM, Paul Dupuis via use-livecode wrote: >> >> On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: >>> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >>>> I have a new Livecode 9.6.9 install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: >>>> >>>> A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. >>>> >>>> Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. >>> >>> I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. >>> >>> Check the substacks of your mainstack. If revCursors is in there, delete it. >>> >> >> Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From bobcole at mac.com Fri Jul 7 12:14:24 2023 From: bobcole at mac.com (Robert Cole) Date: Fri, 7 Jul 2023 11:14:24 -0500 Subject: use-livecode Digest, Vol 237, Issue 17 Message-ID: Mike: I have created a SVG from a signature widget. Please see a sample start on the forum at https://forums.livecode.com/viewtopic.php?f=8&t=37299#p217928 Hope this helps. Bob > On Jun 22, 2023, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > Message: 2 > Date: Wed, 21 Jun 2023 16:52:23 -0400 > From: Mike Kerner > > To: How to use LiveCode > > Subject: signature widget > Message-ID: > > > Content-Type: text/plain; charset="UTF-8" > > i finally have a use-case for the signature widget. > * has anyone used it? > * does anyone have experiencing transporting the signature data, then > recreating it, say, by adding it to a document, or generating an svg > file? From MikeKerner at roadrunner.com Mon Jul 10 11:29:04 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 10 Jul 2023 11:29:04 -0400 Subject: bored LC nerd looking for projects Message-ID: ok, i'm bored. not unemployed, just bored. i'm actually considering working on my novel again. does anyone know of any lc projects in need of help-for-hire, saving the world from awful, contrived prose? -- 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 rdimola at evergreeninfo.net Mon Jul 10 12:25:52 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 10 Jul 2023 12:25:52 -0400 Subject: [OT ish] Visual Code Editor and Line Endings Message-ID: <002601d9b34b$3586dc10$a0949430$@net> Beware! I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. Code does not support CR line endings. I received a text file that was output from InDesign(latest version). I made a minor change in the text file. I processed it with a program that had been around for years. I sent the processed file to the customer and results were disastrous. Unknown to me all the LFs in the file were changed without warning to line endings. Apparently VC only has 2 line ending options LF and CRLF but not CR. Apparently I'm not the first to get bitten by this. An enhancement request to support CR line endings has been around for 5 years and not addressed. Seem like a simple fix, but what do I know about VC's internals. Hope this prevents one of you from getting bitten.. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Mon Jul 10 16:09:02 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 10 Jul 2023 20:09:02 +0000 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <002601d9b34b$3586dc10$a0949430$@net> References: <002601d9b34b$3586dc10$a0949430$@net> Message-ID: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. One of a hundred things that upset me about Microsoft. Bob S > On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode wrote: > > Beware! > > > > I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. > > Code does not support CR line endings. I received a text file that was > output from InDesign(latest version). I made a minor change in the text > file. I processed it with a program that had been around for years. I sent > the processed file to the customer and results were disastrous. Unknown to > me all the LFs in the file were changed without warning to line endings. > Apparently VC only has 2 line ending options LF and CRLF but not CR. > Apparently I'm not the first to get bitten by this. An enhancement request > to support CR line endings has been around for 5 years and not addressed. > Seem like a simple fix, but what do I know about VC's internals. > > > > Hope this prevents one of you from getting bitten.. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 10 16:11:56 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 10 Jul 2023 15:11:56 -0500 Subject: Solved: Writing to Mac Application Support folder Message-ID: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. 3. The path to the container is in ~/Library/Containers// We don't have a specialFolderPath for that, so here's how I did it: put specialFolderPath("support") into tContainer set the itemdel to slash put "Containers/your.bundle.id/" into last item of tContainer if there is no folder tContainer then create folder tContainer if the result <> empty then log "Create container:" && the result end if put tContainer & "yourFileName.ext" into tPath This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Tue Jul 11 07:28:13 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 07:28:13 -0400 Subject: Livecode 10.0.0dp5 new reserved words Message-ID: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> Does anyone, including folks at the mothership, have a list of new reserved words in Livecode 10? I have used a variable called "tExt" (t for temp, Ext for extension)  to pull of the file extension from file paths. i.e. if tFile contains "C:/users/paul/desktop/image.png" set itemDel to "." put last item of tFile into tExt -- tExt contains "png" However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears to be a reserved work and you can not use it as a variable. This is not true in LC 9.6.9.  This has me asking: Are there any other new reserved words I should refactor out of my code before I get mysterious errors? From mark at livecode.com Tue Jul 11 08:01:40 2023 From: mark at livecode.com (Mark Waddingham) Date: Tue, 11 Jul 2023 13:01:40 +0100 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> Message-ID: <8d4af0290da8c9afdc283119b52d5434@livecode.com> On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote: > Does anyone, including folks at the mothership, have a list of new > reserved words in Livecode 10? > > I have used a variable called "tExt" (t for temp, Ext for extension)  > to pull of the file extension from file paths. i.e. if tFile contains > "C:/users/paul/desktop/image.png" > > set itemDel to "." > put last item of tFile into tExt -- tExt contains "png" > > However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears > to be a reserved work and you can not use it as a variable. This is not > true in LC 9.6.9.  This has me asking: Are there any other new reserved > words I should refactor out of my code before I get mysterious errors? I don't think we knowingly made 'text' not be allowed as a variable in non-explicitVariables mode... You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I think) ever - but it obviously worked in 9.6.x and before if you don't use explicitVariables. I'm not sure what change we've made which has caused that - file a bug and we'll look into it - its probably a regression, but could be a (necessary, but unrealized) side-effect of another change we've made internally. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From mkoob at rogers.com Tue Jul 11 08:04:22 2023 From: mkoob at rogers.com (Martin Koob) Date: Tue, 11 Jul 2023 08:04:22 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> Message-ID: <9F011A00-9E10-4ED5-B540-14DFD6474218@rogers.com> Hi Paul, I remember that at a workshop or meeting, a few years PCE* it was says by someone from LiveCode (although possibly RunRev at the time) by Mark W (I think but I could be wrong but definitely from the mothership) that ‘All words in the English Dictionary should be considered reserved words.’ Or something to that effect. The rationale was that even though LiveCode does not use the words in its vocabulary currently It may in the future. (Can someone else corroborate my vague memory of this?) So with that in mind even though tExt is camelCase and visually does not appear to be a word livecode does not consider case so it sees it as ’text’ which is a word in the English dictionary and also one that would more likely be a part of LiveCode’s future lexicon ( more so than perhaps Oxford’s word of the year. https://languages.oup.com/word-of-the-year/2022/ Although I think it would be cool to have ‘goblin mode’ as a LiveCode word. e.g. command relaxHygieneStandards set goblin mode to “severe” end relaxHygieneStandards command restoreHygieneStandards set goblin mode to “false” end restoreHygieneStandards In any case the advice as to best practice was to never use an English dictionary word as the name of a variable in order to future proof your application should the MotherShip decide to add a new term from the English dictionary to the LiveCode lexicon. So in your case it would be better to use something like tExtn or even tExtension. Martin *PCE (Pre COVID Era) > On Jul 11, 2023, at 7:28 AM, Paul Dupuis via use-livecode wrote: > > Does anyone, including folks at the mothership, have a list of new reserved words in Livecode 10? > > I have used a variable called "tExt" (t for temp, Ext for extension) to pull of the file extension from file paths. i.e. if tFile contains "C:/users/paul/desktop/image.png" > > set itemDel to "." > put last item of tFile into tExt -- tExt contains "png" > > However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears to be a reserved work and you can not use it as a variable. This is not true in LC 9.6.9. This has me asking: Are there any other new reserved words I should refactor out of my code before I get mysterious errors? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Jul 11 08:20:12 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 08:20:12 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <8d4af0290da8c9afdc283119b52d5434@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> Message-ID: On 7/11/2023 8:01 AM, Mark Waddingham via use-livecode wrote: > On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote: >> Does anyone, including folks at the mothership, have a list of new >> reserved words in Livecode 10? >> >> I have used a variable called "tExt" (t for temp, Ext for extension)  >> to pull of the file extension from file paths. i.e. if tFile contains >> "C:/users/paul/desktop/image.png" >> >> set itemDel to "." >> put last item of tFile into tExt -- tExt contains "png" >> >> However, in LC 10.0.0dp5, the word "tExt" (which is "text") now >> appears to be a reserved work and you can not use it as a variable. >> This is not true in LC 9.6.9.  This has me asking: Are there any >> other new reserved words I should refactor out of my code before I >> get mysterious errors? > > I don't think we knowingly made 'text' not be allowed as a variable in > non-explicitVariables mode... > > You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I > think) ever - but it obviously worked in 9.6.x and before if you don't > use explicitVariables. > > I'm not sure what change we've made which has caused that - file a bug > and we'll look into it - its probably a regression, but could be a > (necessary, but unrealized) side-effect of another change we've made > internally. > > Warmest Regards, > > Mark. > Thank you! Bug filed: https://quality.livecode.com/show_bug.cgi?id=24266 I am fine changing 'tExt'. As Martin just posted, All words in the English Dictionary should be considered reserved words. is not a bad rule. Just to illustrate how the eyes and mind can play tricks, I have been using the variable 'tExt' for parsing file extensions for DECADES and ONLY TODAY realized that it was the word 'text'! I never saw it as a dictionary word until today! From mark at livecode.com Tue Jul 11 08:26:31 2023 From: mark at livecode.com (Mark Waddingham) Date: Tue, 11 Jul 2023 13:26:31 +0100 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> Message-ID: <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> On 2023-07-11 13:20, Paul Dupuis via use-livecode wrote: > Thank you! Bug filed: > https://quality.livecode.com/show_bug.cgi?id=24266 > > I am fine changing 'tExt'. As Martin just posted, All words in the > English Dictionary should be considered reserved words. is not a bad > rule. Just to illustrate how the eyes and mind can play tricks, I have > been using the variable 'tExt' for parsing file extensions for DECADES > and ONLY TODAY realized that it was the word 'text'! I never saw it as > a dictionary word until today! Yeah - Martin is correct that the rule about words in the English dictionary should all be considered reserved is still very much in force, and has been around longer than I've worked here! Cases of using 'tExt' is not uncommon - as it is really difficult to see that it is 'text'... Another one (which bit Ali recently) is `pLayer'. I'm sure there are a fair few other examples. Anyway, we'll try and figure out what has changed to cause the change in behavior - at the very least we can go back and add a 'breaking change' warning to the release note for the change which caused the issue. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From klaus at major-k.de Tue Jul 11 09:04:44 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 15:04:44 +0200 Subject: Search for an app in Google Play Store Message-ID: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> Hi friends, strange results whjen searching a german app in the Google Playstore. We have an app namde -> Sehen - Hören - Merken in the Apple and Google store. iOS Android However it is not easy to find the app in Google be it on the PC/Mac (via browser URL: https://play.google.com/store) or on an Android Device with the Googgle app: 1. If I enter -> Sehen - Hören App is found 2. If I enter its full name: Sehen - Hören - Merken NO results 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app App is found. Any hintst that may shed some light on this phenomenon very appreciated. Thank a lot in advance! Best Klaus -- 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 Tue Jul 11 09:34:21 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 11 Jul 2023 15:34:21 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> Message-ID: <5405C039-911D-4309-8474-40DFD1F3B3C5@m-r-d.de> Much better.... if i enter Sehen Hören Merkn or sehen-hören-merkn or sehen - hören - merkn the app is found and listed at first if i enter Sehen Hören Merken or sehen-hören-merk or sehen hören merk or sehen - hören - merken the app is also not found. > Am 11.07.2023 um 15:04 schrieb Klaus major-k via use-livecode : > > Hi friends, > > strange results whjen searching a german app in the Google Playstore. > We have an app namde -> Sehen - Hören - Merken > in the Apple and Google store. > iOS > > Android > > > However it is not easy to find the app in Google be it on the PC/Mac > (via browser URL: https://play.google.com/store) or on an Android Device > with the Googgle app: > 1. If I enter -> Sehen - Hören > App is found > > 2. If I enter its full name: Sehen - Hören - Merken > NO results > > 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app > App is found. > > Any hintst that may shed some light on this phenomenon very appreciated. > Thank a lot 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 klaus at major-k.de Tue Jul 11 09:42:19 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 15:42:19 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <5405C039-911D-4309-8474-40DFD1F3B3C5@m-r-d.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <5405C039-911D-4309-8474-40DFD1F3B3C5@m-r-d.de> Message-ID: <3FE9EF08-3C2F-47C9-B9BB-00EC7DCE5992@major-k.de> Hi Matthias, > Am 11.07.2023 um 15:34 schrieb matthias rebbe via use-livecode : > > Much better.... > if i enter > Sehen Hören Merkn > or > sehen-hören-merkn > or > sehen - hören - merkn > the app is found and listed at first YO!? merkn, oh my, oh my... :-D Thanks for testing! > if i enter > Sehen Hören Merken > or > sehen-hören-merk > or > sehen hören merk > or > sehen - hören - merken > the app is also not found. Molto mysterioso... So I guess there are no search-regularities of any kind here? >> Am 11.07.2023 um 15:04 schrieb Klaus major-k via use-livecode : >> >> Hi friends, >> >> strange results whjen searching a german app in the Google Playstore. >> We have an app namde -> Sehen - Hören - Merken >> in the Apple and Google store. >> iOS >> >> Android >> >> >> However it is not easy to find the app in Google be it on the PC/Mac >> (via browser URL: https://play.google.com/store) or on an Android Device >> with the Googgle app: >> 1. If I enter -> Sehen - Hören >> App is found >> >> 2. If I enter its full name: Sehen - Hören - Merken >> NO results >> >> 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app >> App is found. >> >> Any hintst that may shed some light on this phenomenon very appreciated. >> Thank a lot in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Tue Jul 11 10:56:32 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 10:56:32 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> Message-ID: <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> On 7/11/2023 8:26 AM, Mark Waddingham via use-livecode wrote: > Cases of using 'tExt' is not uncommon - as it is really difficult to > see that it is 'text'... Another one (which bit Ali recently) is > `pLayer'. I'm sure there are a fair few other examples. > Ouch! 'pLayer' is another I'd better check for. I may have used that as well! From bobsneidar at iotecdigital.com Tue Jul 11 11:20:26 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 15:20:26 +0000 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <8d4af0290da8c9afdc283119b52d5434@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> Message-ID: <9CD045C4-C74C-41B2-A2D8-23A52163503F@iotecdigital.com> Or… he could just go through his code using the find utility and replace every instance of tExt with tExtension. :-) Bob S On Jul 11, 2023, at 5:01 AM, Mark Waddingham via use-livecode wrote: On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote: Does anyone, including folks at the mothership, have a list of new reserved words in Livecode 10? I have used a variable called "tExt" (t for temp, Ext for extension) to pull of the file extension from file paths. i.e. if tFile contains "C:/users/paul/desktop/image.png" set itemDel to "." put last item of tFile into tExt -- tExt contains "png" However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears to be a reserved work and you can not use it as a variable. This is not true in LC 9.6.9. This has me asking: Are there any other new reserved words I should refactor out of my code before I get mysterious errors? I don't think we knowingly made 'text' not be allowed as a variable in non-explicitVariables mode... You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I think) ever - but it obviously worked in 9.6.x and before if you don't use explicitVariables. I'm not sure what change we've made which has caused that - file a bug and we'll look into it - its probably a regression, but could be a (necessary, but unrealized) side-effect of another change we've made internally. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From bobsneidar at iotecdigital.com Tue Jul 11 11:26:07 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 15:26:07 +0000 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> Message-ID: <1FBAA64A-E124-4289-B8DB-5539C4CE4922@iotecdigital.com> Interesting. The reason I’ve never been bit by this I think, is that I like to use more descriptive variables. For instance, I might have use tFileExt. I think I got that from one of the articles (or lessons or books) from one of the Livecode contributors, that variable names should be as descriptive as possible of their purpose. I am still tempted to try and shorten my variable names though. Bob S > On Jul 11, 2023, at 7:56 AM, Paul Dupuis via use-livecode wrote: > > On 7/11/2023 8:26 AM, Mark Waddingham via use-livecode wrote: >> Cases of using 'tExt' is not uncommon - as it is really difficult to see that it is 'text'... Another one (which bit Ali recently) is `pLayer'. I'm sure there are a fair few other examples. >> > > Ouch! 'pLayer' is another I'd better check for. I may have used 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 jacque at hyperactivesw.com Tue Jul 11 11:31:56 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Jul 2023 10:31:56 -0500 Subject: Search for an app in Google Play Store In-Reply-To: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> Message-ID: <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> My client had similar results where the name of the app was not found. It could be found by searching for the company name though. We couldn't explain it. Some weeks later it suddenly could be found normally by its name. I don't know how the search algorithm works, maybe it takes some time to populate. --- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 11, 2023 8:06:18 AM Klaus major-k via use-livecode wrote: > Hi friends, > > strange results whjen searching a german app in the Google Playstore. > We have an app namde -> Sehen - Hren - Merken > in the Apple and Google store. > iOS > > Android > > > However it is not easy to find the app in Google be it on the PC/Mac > (via browser URL: https://play.google.com/store) or on an Android Device > with the Googgle app: > 1. If I enter -> Sehen - Hren > App is found > > 2. If I enter its full name: Sehen - Hren - Merken > NO results > > 3. If I enter its full name and its file externsion: Sehen - Hren - Merke.app > App is found. > > Any hintst that may shed some light on this phenomenon very appreciated. > Thank a lot 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 rdimola at evergreeninfo.net Tue Jul 11 12:16:31 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 11 Jul 2023 12:16:31 -0400 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: <004901d9b413$11342a70$339c7f50$@net> Bob, Know what you mean. Another program that's been running for years failed last week because MS changed the behavior of Excel in 365. Customer received the very useful error "Run-time error '1004' Unable to update the FreezePanes property of the windows class". 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, July 10, 2023 4:09 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: [OT ish] Visual Code Editor and Line Endings Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. One of a hundred things that upset me about Microsoft. Bob S > On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode wrote: > > Beware! > > > > I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. > > Code does not support CR line endings. I received a text file that was > output from InDesign(latest version). I made a minor change in the > text file. I processed it with a program that had been around for > years. I sent the processed file to the customer and results were > disastrous. Unknown to me all the LFs in the file were changed without warning to line endings. > Apparently VC only has 2 line ending options LF and CRLF but not CR. > Apparently I'm not the first to get bitten by this. An enhancement > request to support CR line endings has been around for 5 years and not addressed. > Seem like a simple fix, but what do I know about VC's internals. > > > > Hope this prevents one of you from getting bitten.. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Jul 11 12:27:11 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 12:27:11 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <9CD045C4-C74C-41B2-A2D8-23A52163503F@iotecdigital.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <9CD045C4-C74C-41B2-A2D8-23A52163503F@iotecdigital.com> Message-ID: On 7/11/2023 11:20 AM, Bob Sneidar via use-livecode wrote: > Or he could just go through his code using the find utility and replace every instance of tExt with tExtension. :-) > > Yes, I plan to: tExt = t Ext = TEXT  > tFileExtension pLayer = p Layer = PLAYER > tObjectLayer etc. From ahsoftware at sonic.net Tue Jul 11 12:54:53 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 11 Jul 2023 09:54:53 -0700 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> Message-ID: <90888ad7-cd45-58c2-4e1e-9858607a5b8a@sonic.net> On 7/11/23 07:56, Paul Dupuis via use-livecode wrote: > On 7/11/2023 8:26 AM, Mark Waddingham via use-livecode wrote: >> Cases of using 'tExt' is not uncommon - as it is really difficult to >> see that it is 'text'... Another one (which bit Ali recently) is >> `pLayer'. I'm sure there are a fair few other examples. I'm not sure this is a bug that should be "fixed" other than with the breaking change warning as MW mentioned. > Ouch! 'pLayer' is another I'd better check for. I may have used that as > well! Of course neither tExt nor pLayer would be a problem if you enabled explicitVariables ("strict compilation mode" in LC preferences). If you tried to script that as a variable you'd get the compilation error not a valid variable or constant name -- Mark Wieder ahsoftware at gmail.com From mark at livecode.com Tue Jul 11 13:09:08 2023 From: mark at livecode.com (Mark Waddingham) Date: Tue, 11 Jul 2023 18:09:08 +0100 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> Message-ID: <6d94f65db7307fb8886ebeef55cabfa2@livecode.com> On 2023-07-11 13:26, Mark Waddingham via use-livecode wrote: > Anyway, we'll try and figure out what has changed to cause the change > in behavior - at the very least we can go back and add a 'breaking > change' warning to the release note for the change which caused the > issue. Okay so after a bit of digging I can confirm that this is down to an unintended consequence of implementation constant expressions. The behavior prior to that feature was: You are allowed to assign and evaluate variables whose name is the same as property keywords which can only appear as object properties (i.e. require an OF afterwards) and are not also constant keywords ('left' and 'right' I think are the only two which are object properties and constants). Further, if explicitVariables is true then you cannot declare such variables, but you can evaluate them. (In this case, they would act as unquoted literals - you can still assign indirectly using do with explicitVars turned off at the time of the do). The reason it was changed was to fix a problem with the constants 'left' and 'right' being used in constant initializer expressions - but at the expense of object only properties not being able to be variables. That problem needs to be resolved in a different way. So this is a bug/regression - not so much because of the use of 'tExt' (text) but because scripts which use any object property keyword as a variable name will break. As many object property keywords are not dictionary words - but compounds or contractions - this means that even scripts which conform to the long standing rule could fall foul. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From bobsneidar at iotecdigital.com Tue Jul 11 14:19:55 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 18:19:55 +0000 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: For what it’s worth, I use SublimeText which has linters for both Livecode Script and Livecode Builder that were so graciously provided by Trevor Devore. Not sure how many people know it, but we have a Datagrid and also sqlYoga because of Trevor. Bob S On Jul 10, 2023, at 1:08 PM, Bob Sneidar wrote: Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. One of a hundred things that upset me about Microsoft. Bob S From klaus at major-k.de Tue Jul 11 14:46:51 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 20:46:51 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> Hi Jacques, > Am 11.07.2023 um 17:31 schrieb J. Landman Gay via use-livecode : > > My client had similar results where the name of the app was not found. It could be found by searching for the company name though. > We couldn't explain it. Some weeks later it suddenly could be found normally by its name. the apps are in the stores since february... > I don't know how the search algorithm works, maybe it takes some time to populate. See above, well, that should be finished already. 8-) > --- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 11, 2023 8:06:18 AM Klaus major-k via use-livecode wrote: > >> Hi friends, >> >> strange results whjen searching a german app in the Google Playstore. >> We have an app namde -> Sehen - Hören - Merken >> in the Apple and Google store. >> iOS >> >> Android >> >> >> However it is not easy to find the app in Google be it on the PC/Mac >> (via browser URL: https://play.google.com/store) or on an Android Device >> with the Googgle app: >> 1. If I enter -> Sehen - Hören >> App is found >> >> 2. If I enter its full name: Sehen - Hören - Merken >> NO results >> >> 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app >> App is found. >> >> Any hintst that may shed some light on this phenomenon very appreciated. >> Thank a lot in advance! 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 Tue Jul 11 15:32:32 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Jul 2023 14:32:32 -0500 Subject: Search for an app in Google Play Store In-Reply-To: <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> Message-ID: On 7/11/23 1:46 PM, Klaus major-k via use-livecode wrote: >> I don't know how the search algorithm works, maybe it takes some time to populate. > See above, well, that should be finished already. 8-) > You could try writing to support and see if they can tell you what's wrong. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Tue Jul 11 15:44:45 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 21:44:45 +0200 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> Message-ID: <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Hi Jacques, > Am 11.07.2023 um 21:32 schrieb J. Landman Gay via use-livecode : > > On 7/11/23 1:46 PM, Klaus major-k via use-livecode wrote: >>> I don't know how the search algorithm works, maybe it takes some time to populate. >> See above, well, that should be finished already. 8-) > You could try writing to support and see if they can tell you what's wrong. yes, worth a try, do you have the supports email address? > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at livecode.org Tue Jul 11 15:54:47 2023 From: paul at livecode.org (Paul Hibbert) Date: Tue, 11 Jul 2023 12:54:47 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: Thank you for sharing. That’s a very useful snippet to save for the future. Paul > On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: > > After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. > > In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. > > 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. > > 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. > > 3. The path to the container is in ~/Library/Containers// > > We don't have a specialFolderPath for that, so here's how I did it: > > put specialFolderPath("support") into tContainer > set the itemdel to slash > put "Containers/your.bundle.id/" into last item of tContainer > if there is no folder tContainer then > create folder tContainer > if the result <> empty then log "Create container:" && the result > end if > put tContainer & "yourFileName.ext" into tPath > > This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. > > Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. > > -- > 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 Paul paul at livecode.org macOS Mojave 10.14 From marksmithhfx at gmail.com Tue Jul 11 16:21:57 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 11 Jul 2023 21:21:57 +0100 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: <82651319-13C7-4EBA-B15C-EA06B4EF33F3@gmail.com> Speaking of editors. Does anyone know if there is a list of all the colours used in the LC editor, and what they represent? (some are obvious, others less so) Thanks > On 11 Jul 2023, at 7:19 pm, Bob Sneidar via use-livecode wrote: > > For what it’s worth, I use SublimeText which has linters for both Livecode Script and Livecode Builder that were so graciously provided by Trevor Devore. Not sure how many people know it, but we have a Datagrid and also sqlYoga because of Trevor. > > Bob S > > > On Jul 10, 2023, at 1:08 PM, Bob Sneidar wrote: > > Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. > > It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? > > Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. > > One of a hundred things that upset me about Microsoft. > > 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 MikeKerner at roadrunner.com Tue Jul 11 16:27:48 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 11 Jul 2023 16:27:48 -0400 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: and levure quickbooks also provides amazingly useless errors, especially when you are trying to import data. On Tue, Jul 11, 2023 at 2:21 PM Bob Sneidar via use-livecode wrote: > > For what it’s worth, I use SublimeText which has linters for both Livecode Script and Livecode Builder that were so graciously provided by Trevor Devore. Not sure how many people know it, but we have a Datagrid and also sqlYoga because of Trevor. > > Bob S > > > On Jul 10, 2023, at 1:08 PM, Bob Sneidar wrote: > > Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. > > It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? > > Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. > > One of a hundred things that upset me about Microsoft. > > 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 -- 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 bobsneidar at iotecdigital.com Tue Jul 11 19:00:21 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 23:00:21 +0000 Subject: Get the nested behaviors of an object Message-ID: <5DE89A6F-E508-4F42-9E5C-04CE1E623634@iotecdigital.com> Hi all. I’ve got me doots, as Richmond would say, but is there a way to get (and even better SET) the nested behaviors of an object? Now that nested behaviors work for Datagrids, actually *setting* the nested behavior is problematic. There is no place to actually set it in the Datagrid properties, like there is in the properties of other objects. Bob S From bobsneidar at iotecdigital.com Tue Jul 11 19:15:47 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 23:15:47 +0000 Subject: Get the nested behaviors of an object In-Reply-To: <5DE89A6F-E508-4F42-9E5C-04CE1E623634@iotecdigital.com> References: <5DE89A6F-E508-4F42-9E5C-04CE1E623634@iotecdigital.com> Message-ID: <04012655-FCB9-4629-AEDE-2AF2F9852AE9@iotecdigital.com> Actually I can set the behavior of a Datagrid via the message box, so that’s okay, but it would be nice to have a property called the nestedBehaviors or something akin. I can probably write a function to iterate through the behaviors to get it and in the reverse to set it. I’ll give that a go. Bob S On Jul 11, 2023, at 4:00 PM, Bob Sneidar via use-livecode wrote: Hi all. I’ve got me doots, as Richmond would say, but is there a way to get (and even better SET) the nested behaviors of an object? Now that nested behaviors work for Datagrids, actually *setting* the nested behavior is problematic. There is no place to actually set it in the Datagrid properties, like there is in the properties of other objects. Bob S From benr_mc at cogapp.com Wed Jul 12 05:34:49 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 12 Jul 2023 10:34:49 +0100 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> I agree that the behaviour of the editors is very annoying. But LC is also needs to get with the program. On the positive side, it interprets any combination of LF, CR, CRLF as a line break when reading a file as text. But it persists in writing text files with a platform dependent encoding of line breaks, which on macOS (where the system default is LF) is still CR. As I wrote in https://quality.livecode.com/show_bug.cgi?id=17774: > As near as I can tell, Metacard introduced support for Mac around 1993 > (? -happy to be corrected). So MC/Rev/LC has already been writing the 'wrong' > files for twice as long as it was writing the 'right' ones (based on MacOS X > introduced in 2001). At what point can we change? If not now, when? But I was excited just now to see this: https://quality.livecode.com/show_bug.cgi?id=23943 Is it possible that the long reign of CR terror may soon be over? Ben On 10/07/2023 21:09, Bob Sneidar via use-livecode wrote: > Code is not the only editor to assume you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. > > It is in my opinion a serious violation of trust on Microsofts part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? > > Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will corrupt the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. > > One of a hundred things that upset me about Microsoft. > > Bob S > >> On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode wrote: >> >> Beware! >> >> >> >> I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. >> >> Code does not support CR line endings. I received a text file that was >> output from InDesign(latest version). I made a minor change in the text >> file. I processed it with a program that had been around for years. I sent >> the processed file to the customer and results were disastrous. Unknown to >> me all the LFs in the file were changed without warning to line endings. >> Apparently VC only has 2 line ending options LF and CRLF but not CR. >> Apparently I'm not the first to get bitten by this. An enhancement request >> to support CR line endings has been around for 5 years and not addressed. >> Seem like a simple fix, but what do I know about VC's internals. >> >> >> >> Hope this prevents one of you from getting bitten.. >> >> >> >> Ralph DiMola >> >> IT Director >> >> Evergreen Information Services >> >> rdimola at evergreeninfo.net >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Wed Jul 12 14:19:09 2023 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Jul 2023 18:19:09 +0000 Subject: Stylized Text on Mobile In-Reply-To: <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> Message-ID: Just want to make sure I’m not missing something… there is no method to enter, display or edit stylized text in a native mobile text control (or the widget). Is this true? If so, has anyone got a workaround? Kinda hard to believe that this is the case?! Then again, LC doesn’t have justified text. Sorry for the rant… LiveCode does SO MUCH that when you run into these seemingly core items that aren’t there, it’s a bit puzzling and frustrating. -Dan From jacque at hyperactivesw.com Wed Jul 12 18:15:27 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 12 Jul 2023 17:15:27 -0500 Subject: Stylized Text on Mobile In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> Message-ID: On 7/12/23 1:19 PM, Dan Friedman via use-livecode wrote: > Just want to make sure I’m not missing something… there is no method to enter, display or edit stylized text in a native mobile text control (or the widget). Is this true? If so, has anyone got a workaround? You can use a regular LC field for display and some editing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Wed Jul 12 18:21:57 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 12 Jul 2023 18:21:57 -0400 Subject: Field highlited Message-ID: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. OR There should be a feature enhancement: set the preserveHighlight of field X to true That keeps the highlighted selection unless or until you make a new one in that field From dan at clearvisiontech.com Wed Jul 12 18:49:48 2023 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Jul 2023 22:49:48 +0000 Subject: Stylized Text on Mobile In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> Message-ID: Jacque, Yes, I know that. But that’s kinda a hack… looking to use the native copy/paste and text editing features that we have all come to expect in even the most basic and simplistic apps. -Dan From: use-livecode on behalf of J. Landman Gay via use-livecode Date: Wednesday, July 12, 2023 at 3:17 PM To: How to use LiveCode Cc: J. Landman Gay Subject: Re: Stylized Text on Mobile On 7/12/23 1:19 PM, Dan Friedman via use-livecode wrote: > Just want to make sure I’m not missing something… there is no method to enter, display or edit stylized text in a native mobile text control (or the widget). Is this true? If so, has anyone got a workaround? You can use a regular LC field for display and some editing. -- 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 neville.smythe at optusnet.com.au Thu Jul 13 04:19:53 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Thu, 13 Jul 2023 18:19:53 +1000 Subject: Convert date Message-ID: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! Neville Smythe From bobsneidar at iotecdigital.com Thu Jul 13 11:22:50 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 15:22:50 +0000 Subject: Convert date In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: <11FBD08F-461A-4341-AE48-0D2CD9D32980@iotecdigital.com> I wrote a formatDate function years ago that called this "sql date". Maybe I should rename it “ISO Date” or just add a case for it. There is also an “sql time” format in the function formatTime. This way you can put format date(the date, “sql date”) && formative(the time, “sql time”) to get an sql datetime format for a database column. They should be in the Master Library. I suppose a lot of things could be done by the engine, but as was discussed years ago, what LC is NOT is a development environment that does almost anything. What it IS is a development environment that has the TOOLS to do almost anything. Bob S On Jul 13, 2023, at 1:19 AM, Neville Smythe via use-livecode wrote: I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! Neville Smythe From bobsneidar at iotecdigital.com Thu Jul 13 11:27:50 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 15:27:50 +0000 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: <67C38ED6-2EBA-4258-8CBE-10B7C852AC5D@iotecdigital.com> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. Bob S > On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: > > I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. > > Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. > > OR > > There should be a feature enhancement: set the preserveHighlight of field X to true > That keeps the highlighted selection unless or until you make a new one in that field From craig at starfirelighting.com Thu Jul 13 12:04:00 2023 From: craig at starfirelighting.com (Craig Newman) Date: Thu, 13 Jul 2023 12:04:00 -0400 Subject: Field highlited In-Reply-To: <67C38ED6-2EBA-4258-8CBE-10B7C852AC5D@iotecdigital.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <67C38ED6-2EBA-4258-8CBE-10B7C852AC5D@iotecdigital.com> Message-ID: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> Paul. I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. Craig > On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: > > I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. > > What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. > > Bob S > > >> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >> >> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >> >> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >> >> OR >> >> There should be a feature enhancement: set the preserveHighlight of field X to true >> That keeps the highlighted selection unless or until you make a new one in that field > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Thu Jul 13 12:50:57 2023 From: prothero at earthlearningsolutions.org (William Prothero) Date: Thu, 13 Jul 2023 09:50:57 -0700 Subject: Field highlited In-Reply-To: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> Message-ID: <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> Folks, A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. Just thinking. Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: > > Paul. > > I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. > > A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. > > I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. > > Craig > >> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >> >> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >> >> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >> >> Bob S >> >> >>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>> >>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>> >>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>> >>> OR >>> >>> There should be a feature enhancement: set the preserveHighlight of field X to true >>> That keeps the highlighted selection unless or until you make a new one in that field >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 13 13:07:04 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 13 Jul 2023 13:07:04 -0400 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: Thank your Bob, Craig, and William for the responses. It appears the way I have done it in the past is the "best" option. I was hoping there was some clever trick I don't know, but it is what it is. I'll do what I have done before. Thanks again. On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: > I've used the "selectionChanged" message to (1) set the background > color of the selection to a highlight color and store the start and > end characters as custom properties of the field. From bobsneidar at iotecdigital.com Thu Jul 13 13:12:17 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 17:12:17 +0000 Subject: Field highlited In-Reply-To: <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> Message-ID: <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> Untested This in a frontScript: on openField put long id of the target into pField set the selection to the savedChunk of pField — if you want to restore the last selection Set the savedChunk of pField to empty pass openField end openField on exitField put the long id of the target into pField set the savedChunk of pField to the selectedChunk pass exitField end exitField Bob S > On Jul 13, 2023, at 9:50 AM, William Prothero via use-livecode wrote: > > Folks, > A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. > > Just thinking. > Bill > > William A. Prothero, PhD > Prof Emeritus, Dept of Earth Science > University of California, Santa Barbara > >> On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: >> >> Paul. >> >> I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. >> >> A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. >> >> I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. >> >> Craig >> >>> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >>> >>> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >>> >>> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >>> >>> Bob S >>> >>> >>>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>>> >>>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>>> >>>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>>> >>>> OR >>>> >>>> There should be a feature enhancement: set the preserveHighlight of field X to true >>>> That keeps the highlighted selection unless or until you make a new one in that field >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 13 13:17:33 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Thu, 13 Jul 2023 18:17:33 +0100 Subject: Convert date In-Reply-To: <11FBD08F-461A-4341-AE48-0D2CD9D32980@iotecdigital.com> References: <11FBD08F-461A-4341-AE48-0D2CD9D32980@iotecdigital.com> Message-ID: Thanks Bob. Sounds very useful. How does one access (or locate) the master library? Cheers, Mark Sent from my iPhone > On Jul 13, 2023, at 4:24 PM, Bob Sneidar via use-livecode wrote: > > I wrote a formatDate function years ago that called this "sql date". Maybe I should rename it “ISO Date” or just add a case for it. There is also an “sql time” format in the function formatTime. This way you can put format date(the date, “sql date”) && formative(the time, “sql time”) to get an sql datetime format for a database column. They should be in the Master Library. > > I suppose a lot of things could be done by the engine, but as was discussed years ago, what LC is NOT is a development environment that does almost anything. What it IS is a development environment that has the TOOLS to do almost anything. > > Bob S > > > On Jul 13, 2023, at 1:19 AM, Neville Smythe via use-livecode wrote: > > I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. > > But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! > > Neville Smythe > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Jul 13 13:20:44 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 17:20:44 +0000 Subject: Field highlited In-Reply-To: <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> Message-ID: Correction: on openField put long id of the target into pField if the savedChunk of pField is not empty then put the savedChunk of pField into tSelection select tSelection Set the savedChunk of pField to empty end if pass openField end openField > On Jul 13, 2023, at 10:12 AM, Bob Sneidar wrote: > > > Untested > > This in a frontScript: > > on openField > put long id of the target into pField > set the selection to the savedChunk of pField — if you want to restore the last selection > Set the savedChunk of pField to empty > pass openField > end openField > > on exitField > put the long id of the target into pField > set the savedChunk of pField to the selectedChunk > pass exitField > end exitField > > Bob S > > >> On Jul 13, 2023, at 9:50 AM, William Prothero via use-livecode wrote: >> >> Folks, >> A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. >> >> Just thinking. >> Bill >> >> William A. Prothero, PhD >> Prof Emeritus, Dept of Earth Science >> University of California, Santa Barbara >> >>> On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: >>> >>> Paul. >>> >>> I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. >>> >>> A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. >>> >>> I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. >>> >>> Craig >>> >>>> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >>>> >>>> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >>>> >>>> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >>>> >>>> Bob S >>>> >>>> >>>>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>>>> >>>>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>>>> >>>>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>>>> >>>>> OR >>>>> >>>>> There should be a feature enhancement: set the preserveHighlight of field X to true >>>>> That keeps the highlighted selection unless or until you make a new one in that field >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Thu Jul 13 13:42:37 2023 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 13 Jul 2023 20:42:37 +0300 Subject: Field highlited In-Reply-To: References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> Message-ID: <223c4f49-b982-1ab6-0158-e983ad7a4c78@gmail.com> I just did this: on mouseLeave    put the selectedText of fld "f1" into fld "f2" end mouseLeave you can then do whatever you want with your button on the basis of the contents of fld "f2" Best, Richmond. On 13.07.23 20:20, Bob Sneidar via use-livecode wrote: > Correction: > > on openField > put long id of the target into pField > if the savedChunk of pField is not empty then > put the savedChunk of pField into tSelection > select tSelection > Set the savedChunk of pField to empty > end if > pass openField > end openField > > >> On Jul 13, 2023, at 10:12 AM, Bob Sneidar wrote: >> >> >> Untested >> >> This in a frontScript: >> >> on openField >> put long id of the target into pField >> set the selection to the savedChunk of pField if you want to restore the last selection >> Set the savedChunk of pField to empty >> pass openField >> end openField >> >> on exitField >> put the long id of the target into pField >> set the savedChunk of pField to the selectedChunk >> pass exitField >> end exitField >> >> Bob S >> >> >>> On Jul 13, 2023, at 9:50 AM, William Prothero via use-livecode wrote: >>> >>> Folks, >>> A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. >>> >>> Just thinking. >>> Bill >>> >>> William A. Prothero, PhD >>> Prof Emeritus, Dept of Earth Science >>> University of California, Santa Barbara >>> >>>> On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: >>>> >>>> Paul. >>>> >>>> I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot remember such a thing. >>>> >>>> A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. >>>> >>>> I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. >>>> >>>> Craig >>>> >>>>> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >>>>> >>>>> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >>>>> >>>>> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >>>>> >>>>> Bob S >>>>> >>>>> >>>>>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>>>>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>>>>> >>>>>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>>>>> >>>>>> OR >>>>>> >>>>>> There should be a feature enhancement: set the preserveHighlight of field X to true >>>>>> That keeps the highlighted selection unless or until you make a new one in that field >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 13 14:18:59 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Thu, 13 Jul 2023 19:18:59 +0100 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> Hi Paul, try “the selectedText". Create a scrolling text field, call it fld1, and put a large amount of text in it. Create 2 buttons: one with “on mouse down, answer “Hello World” and the other with “on mouse down, answer the selectedText of field “fld1” Now highlight an area of text in fld1. Click either button, the highlight in the text does not go away. The first button responds with “Hello World” and the second responds with the highlighted text in fld1. I am using LC 10 if that makes a difference, although just tested in 9.6.8 and it worked there as well. Mark > On 12 Jul 2023, at 11:21 pm, Paul Dupuis via use-livecode wrote: > > I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. > > Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. > > OR > > There should be a feature enhancement: set the preserveHighlight of field X to true > That keeps the highlighted selection unless or until you make a new one in that field > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 13 15:58:23 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 14:58:23 -0500 Subject: Field highlited In-Reply-To: <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> Message-ID: <5920d18b-c4a1-3e66-aa3a-6987e488b876@hyperactivesw.com> On 7/13/23 1:18 PM, Mark Smith via use-livecode wrote: > Hi Paul, try “the selectedText". Whaddya know...it works! Another way is to turn off traversalOn in the button. That prevents the focus from changing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at gmail.com Thu Jul 13 16:03:07 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 13 Jul 2023 13:03:07 -0700 Subject: Crazy question: is it possible/reasonable to use Python in LC? Message-ID: I've been playing with Python, and it has a lot of nice qualities, but a built-in GUI isn't one of them (no apologies to tkinter). So it would be interesting/nice to be able to open LC, add a button to a stack, and put some python into the script of that button and have it just work, with access to the rest of the LC stack/controls as usual. Obviously that's not possible, but how close can we come? I assume it would be possible to write a shell command to trigger a python script, but that seems complex and sub-optimal, especially when thinking about having to bundle together all the bits and bobs from the LC UI to pass as arguments to the Python script instead of having it able to just reference what it needs on the fly. Anyway, wondering if anyone else has thought about this. gc From MikeKerner at roadrunner.com Thu Jul 13 16:23:24 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 13 Jul 2023 16:23:24 -0400 Subject: Crazy question: is it possible/reasonable to use Python in LC? In-Reply-To: References: Message-ID: there are no crazy questions there is, however, bat-guano-crazy geoff canyon anyway, i think you will have to write the parser, linker, lexical analyzer, etc., and all the other pre-compiler stuff that you would have to write for any language. i'm not aware of something like a DLL for python. even better, while we're wondering, wouldn't it be great if we could implement any interpreted grammar? i'd love it, because our erp software is written in a a BASIC-COBOL-Fortran thing. I could dump all the 1970's-era tools for managing forms and databases and replace them with something nicer. On Thu, Jul 13, 2023 at 4:04 PM Geoff Canyon via use-livecode wrote: > > I've been playing with Python, and it has a lot of nice qualities, but a > built-in GUI isn't one of them (no apologies to tkinter). > > So it would be interesting/nice to be able to open LC, add a button to a > stack, and put some python into the script of that button and have it just > work, with access to the rest of the LC stack/controls as usual. > > Obviously that's not possible, but how close can we come? I assume it would > be possible to write a shell command to trigger a python script, but that > seems complex and sub-optimal, especially when thinking about having to > bundle together all the bits and bobs from the LC UI to pass as arguments > to the Python script instead of having it able to just reference what it > needs on the fly. > > Anyway, wondering if anyone else has thought about this. > > gc > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Thu Jul 13 16:43:39 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 15:43:39 -0500 Subject: Search for an app in Google Play Store In-Reply-To: <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote: >> You could try writing to support and see if they can tell you what's wrong. > > yes, worth a try, do you have the supports email address? Sorry for the late reply, you may have found it already but you can write to support here: Scroll to the middle of the page, there's a button. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jul 13 17:00:02 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 16:00:02 -0500 Subject: Field highlited In-Reply-To: <5920d18b-c4a1-3e66-aa3a-6987e488b876@hyperactivesw.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> <5920d18b-c4a1-3e66-aa3a-6987e488b876@hyperactivesw.com> Message-ID: <58d776a4-36fc-921b-cfe8-38456f7671a9@hyperactivesw.com> On 7/13/23 2:58 PM, J. Landman Gay via use-livecode wrote: > On 7/13/23 1:18 PM, Mark Smith via use-livecode wrote: >> Hi Paul, try “the selectedText". > > Whaddya know...it works! > > Another way is to turn off traversalOn in the button. That prevents the focus from changing. > Actually, I've been trying different button and field settings and no matter what I do, the selection doesn't go away It doesn't matter if I click a button or directly on the card. I'm not sure what changed because it didn't used to be that way. LC 9.6.9. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jul 13 17:05:44 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 16:05:44 -0500 Subject: Convert date In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: <1b81a696-4fcd-c11f-c1df-de61f01fc0ca@hyperactivesw.com> On 7/13/23 3:19 AM, Neville Smythe via use-livecode wrote: > I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. > > But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! I've been collecting handlers for this for some years. I have four now. I didn't note where the first two came from, but here's what I have: on formatTime put the long time into tTime convert tTime to dateItems split tTime by "," return format("%02d:%02d:%02d",tTime[4],tTime[5],tTime[6]) end formatTime function sqlDate pDate convert pDate to dateitems set the numberformat to "00" return merge("[[item 1 of pDate]]-[[item 2 of pDate + 0]]-[[item 3 of pDate + 0]]") end sqlDate -- Mark Waddingham, sql date and time: function convertDateTimeToISO pDateTime local tTimeZone convert pDateTime to internet date put the last word of pDateTime into tTimeZOne convert pDateTime to dateitems return format("%04d-%02d-%02d %02d:%02d:%02d%s", \ item 1 of pDateTime, item 2 of pDateTime, item 3 of pDateTime, \ item 4 of pDateTime, item 5 of pDateTime, item 6 of pDateTime, tTimeZone) end convertDateTimeToISO -- Klaus Major, using seconds: function smpt_lite tSecs return format("%02d:%02d:%02d", tSecs div 3600, (tSecs mod 3600) div 60, tSecs mod 60) end smpt_lite -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Thu Jul 13 18:01:23 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 13 Jul 2023 18:01:23 -0400 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: > I have a LC9 field object - just a scrolling field (not a list field) > with a lot of text. The user selects some text and then click a button > near the field. I want the selection to remain highlighted, but when > you click outside the field the highlight goes away. > Thanks to Richmond, Mark, and Jacque for your responses. So, I actually need to note the position of the selected (i.e. char x to y) rather than the selected text itself. Indeed, if you have text highlighted in a lock, scrolling text field (autohilite on) and click a button, the highlight does not go away. However, if you click on another field it does. I need a solution where the highlight appears to remain in the primary "Content" field no matter what else the user clicks on in terms of other UI actions. So, it still seems the "best" way to do this is using the on selectioChanged message and getting the selectedChunk and if not empty and word 2 is not > word 4 (insertion point), then save word 2 as the start and word 4 as the end and change the background color of the selected range to the highlight color, clearing another of background color This makes it appear that the selection remains, updates it when the use makes a new selection, but sacrifices any other use of background color for the text in the field (which I can live with) Thanks all, From ambassador at fourthworld.com Thu Jul 13 19:16:06 2023 From: ambassador at fourthworld.com (ambassador at fourthworld.com) Date: Thu, 13 Jul 2023 23:16:06 +0000 Subject: Field highlited Message-ID: <20230713231606.Horde.Awu7E-BDRXrJomyDxrKFfgZ@hub.4wsys.com> Paul Dupuis wrote:   > I have a LC9 field object - just a scrolling field (not a list field) with > a lot of text. The user selects some text and then click a button near > the field. I want the selection to remain highlighted, but when you  > click outside the field the highlight goes away. Any simple solutions > to this. Some property I am just blanking on? In another app, I've used > the "selectionChanged" message to (1) set the background color of > the selection to a highlight color and store the start and end characters > as custom properties of the field. I'm hoping there is an easier way I am > just missing. > OR > There should be a feature enhancement: set the  > preserveHighlight of field X to true That keeps the highlighted selection > unless or until you make a new one in that field   https://quality.livecode.com/show_bug.cgi?id=3327   --  Richard Gaskin  Fourth World Systems   From ambassador at fourthworld.com Thu Jul 13 19:19:53 2023 From: ambassador at fourthworld.com (ambassador at fourthworld.com) Date: Thu, 13 Jul 2023 23:19:53 +0000 Subject: Convert date Message-ID: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> Neville Smythe wrote: > I seem to have hallucinated that the built-in convert handler recognised > the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD  > hh:mm:ss+-http://hh.ss, etc) but I must have written my own conversion > routines in a former life. > But one would have to ask Why doesnt it? > After all, the original ISO 8601 standard was adopted 1988! https://quality.livecode.com/show_bug.cgi?id=4636   --  Richard Gaskin  Fourth World Systems   From neville.smythe at optusnet.com.au Thu Jul 13 22:59:59 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 14 Jul 2023 12:59:59 +1000 Subject: Convert date Message-ID: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. Neville Smythe From ludovic.thebault at laposte.net Fri Jul 14 02:26:17 2023 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 14 Jul 2023 08:26:17 +0200 Subject: Check connection and timeout Message-ID: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Hello, I use this code to check is there is an internet connection : tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders if tResult begins with "tsneterr:" then return false else return true end if But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. Is there an other settings ? Thanks. From ludovic.thebault at laposte.net Fri Jul 14 03:50:46 2023 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 14 Jul 2023 09:50:46 +0200 Subject: Check connection and timeout In-Reply-To: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Message-ID: <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> > Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. From klaus at major-k.de Fri Jul 14 04:23:25 2023 From: klaus at major-k.de (Klaus major-k) Date: Fri, 14 Jul 2023 10:23:25 +0200 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: <07405DCC-1AC4-4B93-BC23-53493AE02750@major-k.de> Hi Jacques, > Am 13.07.2023 um 22:43 schrieb J. Landman Gay via use-livecode : > > On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote: >>> You could try writing to support and see if they can tell you what's wrong. >> yes, worth a try, do you have the supports email address? > > Sorry for the late reply, you may have found it already but you can write to support here: > > Scroll to the middle of the page, there's a button. thank you very much! > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Fri Jul 14 07:08:12 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 14 Jul 2023 07:08:12 -0400 Subject: Convert date In-Reply-To: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Message-ID: Yes to this. I have, lot so many developer, a set of functions to translate to and from this date format. We can all write our own or use ones others have provided, but it would be nice if this was built into the language. On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote: > Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. Ill add the snippets to my own version. > > The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. > > Neville Smythe > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Fri Jul 14 08:09:46 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 14 Jul 2023 13:09:46 +0100 Subject: Convert date In-Reply-To: References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Message-ID: Which makes me think, it would be nice if we could have plug-in code modules. Essentially a faceless widget that could be called to perform some sort of action (with parameters). Completely encapsulated. Or is that “bat crazy” as Mike would say 😊 > On 14 Jul 2023, at 12:08 pm, Paul Dupuis via use-livecode wrote: > > Yes to this. I have, lot so many developer, a set of functions to translate to and from this date format. > > We can all write our own or use ones others have provided, but it would be nice if this was built into the language. > > > On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote: >> Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. >> >> The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. >> >> Neville Smythe >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 14 08:16:15 2023 From: klaus at major-k.de (Klaus major-k) Date: Fri, 14 Jul 2023 14:16:15 +0200 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: Hi Jacques, > Am 13.07.2023 um 22:43 schrieb J. Landman Gay via use-livecode : > > On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote: >>> You could try writing to support and see if they can tell you what's wrong. >> yes, worth a try, do you have the supports email address? > Sorry for the late reply, you may have found it already but you can write to support here: > oops, just noticed... I am looking for a support email at GOOGLE Dev. My problem is the search engine of Google Play Store. Just like the subject says. ;-) > Scroll to the middle of the page, there's a button. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From rdimola at evergreeninfo.net Fri Jul 14 11:14:01 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Jul 2023 11:14:01 -0400 Subject: Check connection and timeout In-Reply-To: <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> Message-ID: <002701d9b665$d5ca5720$815f0560$@net> Ludovic, Make sure that tsNet is active: command NetworkType if GetNetworkType() = "libURL" then answer"tsNet is disabled(LibURL)" else answer "tsNet in use"&cr&"Version==>"& tsNetVersion() end if end NetworkType Did you initialize tsNet? ==> tsNetInit Disable tsNet ==> dispatch "revunloadlibrary" to stack "tsnetliburl" To enable tsNet ==> dispatch "revloadlibrary" to stack "tsnetliburl" 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 Ludovic THEBAULT via use-livecode Sent: Friday, July 14, 2023 3:51 AM To: How to use LiveCode Cc: Ludovic THEBAULT Subject: Re: Check connection and timeout > Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 14 11:13:28 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:13:28 +0000 Subject: Convert date In-Reply-To: References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Message-ID: <0D1E1DEA-697A-4589-B017-8586BABAFF32@iotecdigital.com> I beg to differ. Again, Livecode is a way to build both the tools and the product made by those tools. Livecode is NOT a collection of every conceivable tool for everything everyone wants to do. No language is. I think the LC dev team is far more useful to everyone if they focus on completing the projects they already have, and squashing the long standing and pervasive bugs that exist. I think if there is a fairly easy way to create the tool you need with the codeset you now have, then you would need a compelling reason, like dramatic performance increases to justify building it into the engine. Bob S > On Jul 14, 2023, at 4:08 AM, Paul Dupuis via use-livecode wrote: > > Yes to this. I have, lot so many developer, a set of functions to translate to and from this date format. > > We can all write our own or use ones others have provided, but it would be nice if this was built into the language. > > > On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote: >> Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. >> >> The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. >> >> Neville Smythe From bobsneidar at iotecdigital.com Fri Jul 14 11:17:27 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:17:27 +0000 Subject: Check connection and timeout In-Reply-To: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Message-ID: I’m interested in this. But how do you GET the timeout? Bob S > On Jul 13, 2023, at 11:26 PM, Ludovic THEBAULT via use-livecode wrote: > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > > Thanks. From bobsneidar at iotecdigital.com Fri Jul 14 11:20:36 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:20:36 +0000 Subject: Check connection and timeout In-Reply-To: <002701d9b665$d5ca5720$815f0560$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> Message-ID: <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> getNetwotkType() is not a valid function. Bob S > On Jul 14, 2023, at 8:14 AM, Ralph DiMola via use-livecode wrote: > > Ludovic, > > Make sure that tsNet is active: > > command NetworkType > if GetNetworkType() = "libURL" then > answer"tsNet is disabled(LibURL)" > else > answer "tsNet in use"&cr&"Version==>"& tsNetVersion() > end if > end NetworkType > > Did you initialize tsNet? ==> tsNetInit > > Disable tsNet ==> dispatch "revunloadlibrary" to stack "tsnetliburl" > To enable tsNet ==> dispatch "revloadlibrary" to stack "tsnetliburl" > > 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 Ludovic THEBAULT via use-livecode > Sent: Friday, July 14, 2023 3:51 AM > To: How to use LiveCode > Cc: Ludovic THEBAULT > Subject: Re: Check connection and timeout > > > >> Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : >> >> Hello, >> >> I use this code to check is there is an internet connection : >> >> tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 >> >> put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders >> >> if tResult begins with "tsneterr:" then >> return false >> else >> return true >> end if >> >> >> But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. >> >> Is there an other settings ? >> > > > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 14 11:26:35 2023 From: brian at milby7.com (Brian Milby) Date: Fri, 14 Jul 2023 11:26:35 -0400 Subject: Convert date In-Reply-To: References: Message-ID: <74C72151-418C-4584-B7EB-9BDBB3FBCA83@milby7.com> We actually do with LCB libraries (Icon SVG Library is one example), but with the caveat that they are not as performant as LCS code in many cases (compare the LCS and LCB implementations of JSON for example). LCS libraries are doable too. Just make everything internal private/script local and only expose the calls you want to be public. We just don’t currently have a built in way to manage them like the LCB modules. Brian Milby brian at milby7.com > On Jul 14, 2023, at 8:11 AM, Mark Smith via use-livecode wrote: > > Which makes me think, it would be nice if we could have plug-in code modules. Essentially a faceless widget that could be called to perform some sort of action (with parameters). Completely encapsulated. Or is that “bat crazy” as Mike would say 😊 From bobsneidar at iotecdigital.com Fri Jul 14 11:34:24 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:34:24 +0000 Subject: Convert date In-Reply-To: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> Message-ID: <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> Hmmm… I read the enhancement request. I’m still in the dark though on how to get to "2023-07-14 08:30:00" from “7/14/23” using format strings. Here’s my solution for those who do not want to download the masterLibrary. Given these, what else do you need? FUNCTION formatDate theDate, theFormat /* Accepts any valid date for the first parameter. If not a valid date, it simply returns what was passed. Second parameter can be any of the following: sql date: date in the yyyy-mm-dd format short date, abbreviated date, internet date, long date: LC versions of the same julian date: Julian number based on (I believe) Jacques formula */ put theDate into tSavedDate put the itemdelimiter into theOldDelim set the itemdelimiter to "-" IF the length of item 1 of theDate = 4 AND \ the number of items of theDate = 3 AND \ item 1 of theDate is a number AND \ item 2 of theDate is a number AND \ item 3 of theDate is a number THEN put item 2 of theDate & "/" & \ item 3 of theDate & "/" & \ item 1 of theDate into theDate END IF -- replace "." with "/" in theDate convert theDate to dateitems set the itemdelimiter to theOldDelim if the number of items of theDate <> 7 then answer "'" & theDate & "' is not a valid date format!" return tSavedDate end if SWITCH theFormat CASE "sql date" put item 1 of theDate & "-" & \ format("%02d",item 2 of theDate) & "-" & \ format("%02d",item 3 of theDate) into theDate break CASE "short date" convert theDate from dateitems to short date break CASE "abbreviated date" convert theDate from dateitems to abbreviated date break CASE "abbr date" convert theDate from dateitems to abbreviated date break CASE "internet date" convert theDate from dateitems to internet date break CASE "long date" convert theDate from dateitems to long date break CASE "julian date" put the date into theDate convert theDate to dateItems IF ((item 2 of theDate = 1) OR (item 2 of theDate = 2)) THEN put 1 into theDay ELSE put 0 into theDay END IF put item 1 of theDate + 4800 - theDay into theYear put item 2 of theDate + (12 * theDay) - 3 into theMonth put item 3 of theDate + \ ((153 * theMonth + 2) div 5) + \ (365 * theYear) + \ (theYear div 4) - \ (theYear div 100) + \ (theYear div 400) - \ 32045 into theDate break END SWITCH return theDate END formatDate FUNCTION formatTime theTime, theFormat /* accepts any valid time and returns the form of the time specified in the second parameter. The valid formats are: sql time: hh:mm:ss (Note: combining sql date from the formatDate() function with the sql time will produce a valid SQL date time type). short time: LC short time format abbreviated time: LC abbr time format (same as short time) long time: LC long time format seconds: the number of seconds since the prior midnight military: the military time 00:00 - 23:59 */ IF theTime is empty THEN return empty set the numberformat to "00" SWITCH theFormat CASE "sql time" convert theTime to dateitems put (item 4 of theTime +0) & ":" & \ (item 5 of theTime +0) & ":" & \ (item 6 of theTime +0) into theTime break CASE "short time" convert theTime to short time break CASE "abbreviated time" convert theTime to abbreviated time break CASE "long time" convert theTime to long time break CASE "seconds" convert theTime to seconds break CASE "military" set the itemdelimiter to ":" IF theTime contains "PM" THEN add 12 to item 1 of theTime END IF put word 1 of item 2 of theTime into item 2 of theTime break END SWITCH return theTime END formatTime And as an added bonus, those who use Spiceworks know they format time for tickets as 0h0m0s. FUNCTION spiceTime pStartTime, pEndTime convert pStartTime to dateItems convert pEndTime to dateItems subtract item 4 of pStartTime from item 4 of pEndTime subtract item 5 of pStartTime from item 5 of pEndTime convert pEndTime from dateItems to short time put formatTime(pEndTime, "military") into pEndTime set the itemdelimiter to ":" IF item 1 of pEndTime > 11 THEN subtract 12 from item 1 of pEndTime put item 1 of pEndTime & "h" & item 2 of pEndTime & "m" into tTotalTime return tTotalTime END spiceTime Bob S > On Jul 13, 2023, at 4:19 PM, ambassador--- via use-livecode wrote: > > Neville Smythe wrote: >> I seem to have hallucinated that the built-in convert handler recognised >> the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD >> hh:mm:ss+-http://hh.ss, etc) but I must have written my own conversion >> routines in a former life. >> But one would have to ask… Why doesn’t it? >> After all, the original ISO 8601 standard was adopted 1988! > > https://quality.livecode.com/show_bug.cgi?id=4636 > > -- > Richard Gaskin > Fourth World Systems > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 14 11:36:22 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Jul 2023 11:36:22 -0400 Subject: Check connection and timeout In-Reply-To: <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> Message-ID: <002b01d9b668$f444e4b0$dcceae10$@net> Sorry, It was mine... function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "libURL" else return "tsNet" end if end GetNetworkType 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: Friday, July 14, 2023 11:21 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Check connection and timeout getNetwotkType() is not a valid function. Bob S > On Jul 14, 2023, at 8:14 AM, Ralph DiMola via use-livecode wrote: > > Ludovic, > > Make sure that tsNet is active: > > command NetworkType > if GetNetworkType() = "libURL" then > answer"tsNet is disabled(LibURL)" > else > answer "tsNet in use"&cr&"Version==>"& tsNetVersion() > end if > end NetworkType > > Did you initialize tsNet? ==> tsNetInit > > Disable tsNet ==> dispatch "revunloadlibrary" to stack "tsnetliburl" > To enable tsNet ==> dispatch "revloadlibrary" to stack "tsnetliburl" > > 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 Ludovic THEBAULT via use-livecode > Sent: Friday, July 14, 2023 3:51 AM > To: How to use LiveCode > Cc: Ludovic THEBAULT > Subject: Re: Check connection and timeout > > > >> Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : >> >> Hello, >> >> I use this code to check is there is an internet connection : >> >> tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 >> >> put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders >> >> if tResult begins with "tsneterr:" then >> return false >> else >> return true >> end if >> >> >> But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. >> >> Is there an other settings ? >> > > > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 14 11:47:10 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:47:10 +0000 Subject: Check connection and timeout In-Reply-To: <002b01d9b668$f444e4b0$dcceae10$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> <002b01d9b668$f444e4b0$dcceae10$@net> Message-ID: Thanks Ralph, very handy, but is there a way to get the timeout to see if the command to set the timeout worked? I change networks frequently, and if I do not disconnect and reconnect to my SQL database, I run the risk of using a stale connection, and then I face the dreaded 60 second stall before I can proceed. Bob S On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode wrote: Sorry, It was mine... function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "libURL" else return "tsNet" end if end GetNetworkType Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From rdimola at evergreeninfo.net Fri Jul 14 12:04:20 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Jul 2023 12:04:20 -0400 Subject: Check connection and timeout In-Reply-To: References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> <002b01d9b668$f444e4b0$dcceae10$@net> Message-ID: <002c01d9b66c$ddd50a30$997f1e90$@net> Bob, I use this function to return an array of the timeouts. function EIStsNetGetTimeouts local tTimeouts, tTsNetTimeoutArray put tsNetGetTimeouts() into tTimeouts put item 1 of tTimeouts into tTsNetTimeoutArray["DnsCacheTimeout"] put item 2 of tTimeouts into tTsNetTimeoutArray["RequestTimeoutMS"] put item 3 of tTimeouts into tTsNetTimeoutArray["ConnectTimeoutMS"] put item 4 of tTimeouts into tTsNetTimeoutArray["AcceptTimeoutMS"] put item 5 of tTimeouts into tTsNetTimeoutArray["LowSpeedTime"] put item 6 of tTimeouts into tTsNetTimeoutArray["LowSpeedLimit"] return tTsNetTimeoutArray end EIStsNetGetTimeouts 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: Friday, July 14, 2023 11:47 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Check connection and timeout Thanks Ralph, very handy, but is there a way to get the timeout to see if the command to set the timeout worked? I change networks frequently, and if I do not disconnect and reconnect to my SQL database, I run the risk of using a stale connection, and then I face the dreaded 60 second stall before I can proceed. Bob S On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode wrote: Sorry, It was mine... function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "libURL" else return "tsNet" end if end GetNetworkType Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 14 12:07:18 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 16:07:18 +0000 Subject: Check connection and timeout In-Reply-To: <002c01d9b66c$ddd50a30$997f1e90$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> <002b01d9b668$f444e4b0$dcceae10$@net> <002c01d9b66c$ddd50a30$997f1e90$@net> Message-ID: <574A85A7-F745-4D5C-803D-29D6A7A8511E@iotecdigital.com> Oooohhh… code candy! Thanks again Ralph! Bob S > On Jul 14, 2023, at 9:04 AM, Ralph DiMola via use-livecode wrote: > > Bob, > > I use this function to return an array of the timeouts. > > function EIStsNetGetTimeouts > local tTimeouts, tTsNetTimeoutArray > put tsNetGetTimeouts() into tTimeouts > put item 1 of tTimeouts into tTsNetTimeoutArray["DnsCacheTimeout"] > put item 2 of tTimeouts into tTsNetTimeoutArray["RequestTimeoutMS"] > put item 3 of tTimeouts into tTsNetTimeoutArray["ConnectTimeoutMS"] > put item 4 of tTimeouts into tTsNetTimeoutArray["AcceptTimeoutMS"] > put item 5 of tTimeouts into tTsNetTimeoutArray["LowSpeedTime"] > put item 6 of tTimeouts into tTsNetTimeoutArray["LowSpeedLimit"] > return tTsNetTimeoutArray > end EIStsNetGetTimeouts > > 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: Friday, July 14, 2023 11:47 AM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Re: Check connection and timeout > > Thanks Ralph, very handy, but is there a way to get the timeout to see if > the command to set the timeout worked? I change networks frequently, and if > I do not disconnect and reconnect to my SQL database, I run the risk of > using a stale connection, and then I face the dreaded 60 second stall before > I can proceed. > > Bob S > > > On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode > wrote: > > Sorry, > > It was mine... > > function GetNetworkType > local tLibUrlDriver > try > put the behavior of stack"revLibUrl" into tLibUrlDriver > end try > if tLibUrlDriver is empty then > return "libURL" > else > return "tsNet" > end if > end GetNetworkType > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 14 12:14:19 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 14 Jul 2023 17:14:19 +0100 Subject: Field highlited In-Reply-To: <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> Message-ID: BTW, is there a way of determining the default highlight colour? When I select some text in a field it highlights to a light blue color, but I can’t find where that color is set. Thanks Mark > On 13 Jul 2023, at 11:01 pm, Paul Dupuis via use-livecode wrote: > > On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: >> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >> > Thanks to Richmond, Mark, and Jacque for your responses. > > So, I actually need to note the position of the selected (i.e. char x to y) rather than the selected text itself. > > Indeed, if you have text highlighted in a lock, scrolling text field (autohilite on) and click a button, the highlight does not go away. However, if you click on another field it does. I need a solution where the highlight appears to remain in the primary "Content" field no matter what else the user clicks on in terms of other UI actions. > > So, it still seems the "best" way to do this is using the on selectioChanged message and getting the selectedChunk and if not empty and word 2 is not > word 4 (insertion point), then save word 2 as the start and word 4 as the end and change the background color of the selected range to the highlight color, clearing another of background color > > This makes it appear that the selection remains, updates it when the use makes a new selection, but sacrifices any other use of background color for the text in the field (which I can live with) > > Thanks all, > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 14 12:21:34 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 16:21:34 +0000 Subject: Check connection and timeout In-Reply-To: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Message-ID: Hi Ludovic. I use a simple method of sockets to determine if I have a connection to a host. I close the socket first: closeSocket 127.0.0.1:3306 Then I open the socket: Open socket to 127.0.0.1:3306 Put the result into tError If terror begins with “ERROR: “ then — your code here End if Then close the socket again. Close socket 127.0.0.1:3306 I find this to be the most reliable way to check a connection. I may not have internet, but the host may not be on the internet it may be local. Also, sockets will always work whereas ICMP can be blocked by a firewall. And simply trying to connect to a host will, as you have noticed bring timeouts into play. Bob S > On Jul 13, 2023, at 11:26 PM, Ludovic THEBAULT via use-livecode wrote: > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > > 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 paul at researchware.com Fri Jul 14 12:38:58 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 14 Jul 2023 12:38:58 -0400 Subject: Field highlited In-Reply-To: References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> Message-ID: <68ba3753-78e4-35fd-09b1-9f1a65dcafd0@researchware.com> Use the effective keyword as in: put the effective hiliteColor of field X into tHiliteColor It will figure out the color by inheritance. If you just put the hiliteColor of field X  (without it being set specifically for field X) your get empty On 7/14/2023 12:14 PM, Mark Smith wrote: > BTW, is there a way of determining the default highlight colour? When I select some text in a field it highlights to a light blue color, but I cant find where that color is set. > > Thanks > Mark > > >> On 13 Jul 2023, at 11:01 pm, Paul Dupuis via use-livecode wrote: >> >> On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: >>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>> >> Thanks to Richmond, Mark, and Jacque for your responses. >> >> So, I actually need to note the position of the selected (i.e. char x to y) rather than the selected text itself. >> >> Indeed, if you have text highlighted in a lock, scrolling text field (autohilite on) and click a button, the highlight does not go away. However, if you click on another field it does. I need a solution where the highlight appears to remain in the primary "Content" field no matter what else the user clicks on in terms of other UI actions. >> >> So, it still seems the "best" way to do this is using the on selectioChanged message and getting the selectedChunk and if not empty and word 2 is not > word 4 (insertion point), then save word 2 as the start and word 4 as the end and change the background color of the selected range to the highlight color, clearing another of background color >> >> This makes it appear that the selection remains, updates it when the use makes a new selection, but sacrifices any other use of background color for the text in the field (which I can live with) >> >> Thanks all, >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Jul 14 14:39:41 2023 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 14 Jul 2023 19:39:41 +0100 Subject: Convert date In-Reply-To: <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> Message-ID: <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> On 14/07/2023 16:34, Bob Sneidar via use-livecode wrote: > CASE "sql date" > put item 1 of theDate & "-" & \ > format("%02d",item 2 of theDate) & "-" & \ > format("%02d",item 3 of theDate) into theDate > break Why not just put format("%s-%02d-%02d", item 1 of theDate, item 2 of theDate), \ item 3 of theDate) into theDate Alex. btw - you forgot the if/switch check for "if in the USA" vs "if in the UK" :-) :-) From bobsneidar at iotecdigital.com Fri Jul 14 14:45:05 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 18:45:05 +0000 Subject: Convert date In-Reply-To: <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> Message-ID: <5D8C7A2C-43BD-41F2-A8EA-4CAA8D4D8892@iotecdigital.com> Because I’m not that good with regular expressions and the format function. :-) But you example has one too many close parens. Also, for SQL Date I do not thing UK or US matters. It’s YYYY-MM-DD everywhere, isn’t it? Also, I assumed that the localization of the LC engine would take into account the local date format for the built in date functions. Is that incorrect? Bob S > On Jul 14, 2023, at 11:39 AM, Alex Tweedly via use-livecode wrote: > > > On 14/07/2023 16:34, Bob Sneidar via use-livecode wrote: >> CASE "sql date" >> put item 1 of theDate & "-" & \ >> format("%02d",item 2 of theDate) & "-" & \ >> format("%02d",item 3 of theDate) into theDate >> break > > Why not just > > put format("%s-%02d-%02d", item 1 of theDate, item 2 of theDate), \ > item 3 of theDate) into theDate > > Alex. > > btw - you forgot the if/switch check for > "if in the USA" vs "if in the UK" :-) :-) > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 14 16:36:06 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 15:36:06 -0500 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: > I am looking for a support email at GOOGLE Dev. > My problem is the search engine of Google Play Store. > Just like the subject says. ;-) Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: They don't make it easy. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Jul 14 16:39:11 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 15:39:11 -0500 Subject: Field highlited In-Reply-To: References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> Message-ID: <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote: > BTW, is there a way of determining the default highlight colour? The dictionary says: "By default, the global hiliteColor property is set to the system highlight color." I'd guess yours is blue. That's pretty standard on Mac. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Fri Jul 14 17:09:21 2023 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 14 Jul 2023 14:09:21 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice about how to proceed. 2 questions: If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? Thanks for the heads-up and recipe on how to create the folder. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: > > After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. > > In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. > > 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. > > 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. > > 3. The path to the container is in ~/Library/Containers// > > We don't have a specialFolderPath for that, so here's how I did it: > > put specialFolderPath("support") into tContainer > set the itemdel to slash > put "Containers/your.bundle.id/" into last item of tContainer > if there is no folder tContainer then > create folder tContainer > if the result <> empty then log "Create container:" && the result > end if > put tContainer & "yourFileName.ext" into tPath > > This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. > > Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Fri Jul 14 17:10:37 2023 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 14 Jul 2023 14:10:37 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice about how to proceed. 2 questions: If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? Thanks for the heads-up and recipe on how to create the folder. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: > > After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. > > In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. > > 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. > > 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. > > 3. The path to the container is in ~/Library/Containers// > > We don't have a specialFolderPath for that, so here's how I did it: > > put specialFolderPath("support") into tContainer > set the itemdel to slash > put "Containers/your.bundle.id/" into last item of tContainer > if there is no folder tContainer then > create folder tContainer > if the result <> empty then log "Create container:" && the result > end if > put tContainer & "yourFileName.ext" into tPath > > This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. > > Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Jul 14 17:17:39 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 21:17:39 +0000 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: <53A8E4B5-4B70-4E5A-ADD1-4A3EC2057944@iotecdigital.com> Create file and write permissions are very seldom different. Sent from my iPhone > On Jul 14, 2023, at 14:11, scott--- via use-livecode wrote: > > Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice about how to proceed. 2 questions: > > If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? > > How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? > > Thanks for the heads-up and recipe on how to create the folder. > > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > >> On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: >> >> After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. >> >> In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. >> >> 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. >> >> 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. >> >> 3. The path to the container is in ~/Library/Containers// >> >> We don't have a specialFolderPath for that, so here's how I did it: >> >> put specialFolderPath("support") into tContainer >> set the itemdel to slash >> put "Containers/your.bundle.id/" into last item of tContainer >> if there is no folder tContainer then >> create folder tContainer >> if the result <> empty then log "Create container:" && the result >> end if >> put tContainer & "yourFileName.ext" into tPath >> >> This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. >> >> Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. >> >> -- >> 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 Jul 14 19:05:47 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 18:05:47 -0500 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> On 7/14/23 4:10 PM, scott--- via use-livecode wrote: > If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? > > How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? That's a very good question and I'm afraid I don't know the answer. It's worrying though, because a couple of my older products need to write to Preferences. Here's what I do know. The issue only came up recently. My tester with the problem is on Ventura but I suspect it's a little older than that. In the past I always wrote files to Preferences without issues. For my current project there was already a prefs file there and it worked. But it also worked if I put it directly in App Support, and also worked if I made a container. In fact, it worked anywhere because it's my machine. Not so for others. For the tester, I originally tried to create and write the file in Preferences as usual. It didn't work and no file was created. Another tester, also on Ventura, had the Mac ask for permissions, he gave it, and it worked. Everything else I subsequently tried also worked for him. Next, I changed the app to write directly to Application Support. Same problem, no file was created, the Mac didn't ask for permission. So I changed it again to create a folder in Application Support with the name of the app and put the prefs file in there. Same failure. Finally, I created the container folder in ~/Library/Conainers and bingo, success. The tester who gave permissions and had no trouble at any point, including reading and writing to the container. Since I can't test on my own machine, I'm waiting for someone who has my older products to tell me there's a problem. Or I'll lean on my husband to try it. Husbands are good for things like that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Jul 14 19:16:40 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 23:16:40 +0000 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> Message-ID: <4EAADF32-9551-42C8-907A-EB394841075C@iotecdigital.com> I don’t think there is any way past this. Ultimately the permissions to write to any path must be authorized by the current user agent. If they accept, well and good. If not, there cannot be any way around it. Sent from my iPhone > On Jul 14, 2023, at 16:07, J. Landman Gay via use-livecode wrote: > > On 7/14/23 4:10 PM, scott--- via use-livecode wrote: >> If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? >> How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? > > That's a very good question and I'm afraid I don't know the answer. It's worrying though, because a couple of my older products need to write to Preferences. Here's what I do know. > > The issue only came up recently. My tester with the problem is on Ventura but I suspect it's a little older than that. > > In the past I always wrote files to Preferences without issues. For my current project there was already a prefs file there and it worked. But it also worked if I put it directly in App Support, and also worked if I made a container. In fact, it worked anywhere because it's my machine. Not so for others. > > For the tester, I originally tried to create and write the file in Preferences as usual. It didn't work and no file was created. Another tester, also on Ventura, had the Mac ask for permissions, he gave it, and it worked. Everything else I subsequently tried also worked for him. > > Next, I changed the app to write directly to Application Support. Same problem, no file was created, the Mac didn't ask for permission. So I changed it again to create a folder in Application Support with the name of the app and put the prefs file in there. Same failure. Finally, I created the container folder in ~/Library/Conainers and bingo, success. > > The tester who gave permissions and had no trouble at any point, including reading and writing to the container. > > Since I can't test on my own machine, I'm waiting for someone who has my older products to tell me there's a problem. Or I'll lean on my husband to try it. Husbands are good for things like that. > > > -- > 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 Jul 14 19:27:17 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 18:27:17 -0500 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <4EAADF32-9551-42C8-907A-EB394841075C@iotecdigital.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> <4EAADF32-9551-42C8-907A-EB394841075C@iotecdigital.com> Message-ID: <18956bae808.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> What I found out is that the app container has permission automatically. That's the only place though. All other file access has to be initiated by the user. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 14, 2023 6:18:45 PM Bob Sneidar via use-livecode wrote: > I dont think there is any way past this. Ultimately the permissions to > write to any path must be authorized by the current user agent. If they > accept, well and good. If not, there cannot be any way around it. > > Sent from my iPhone > >> On Jul 14, 2023, at 16:07, J. Landman Gay via use-livecode >> wrote: >> >> On 7/14/23 4:10 PM, scott--- via use-livecode wrote: >>> If the file (say a preference.txt file) already exists in the Preferences >>> or App Support folder, are we able to continue writing to it? In other >>> words, is this an issue with the creation of the file or also of writing in >>> general? >>> How are you handling this? Are you attempting to write to the Preferences >>> or App Support folder first and are you moving existing files to the >>> Container folder? >> >> That's a very good question and I'm afraid I don't know the answer. It's >> worrying though, because a couple of my older products need to write to >> Preferences. Here's what I do know. >> >> The issue only came up recently. My tester with the problem is on Ventura >> but I suspect it's a little older than that. >> >> In the past I always wrote files to Preferences without issues. For my >> current project there was already a prefs file there and it worked. But it >> also worked if I put it directly in App Support, and also worked if I made >> a container. In fact, it worked anywhere because it's my machine. Not so >> for others. >> >> For the tester, I originally tried to create and write the file in >> Preferences as usual. It didn't work and no file was created. Another >> tester, also on Ventura, had the Mac ask for permissions, he gave it, and >> it worked. Everything else I subsequently tried also worked for him. >> >> Next, I changed the app to write directly to Application Support. Same >> problem, no file was created, the Mac didn't ask for permission. So I >> changed it again to create a folder in Application Support with the name of >> the app and put the prefs file in there. Same failure. Finally, I created >> the container folder in ~/Library/Conainers and bingo, success. >> >> The tester who gave permissions and had no trouble at any point, including >> reading and writing to the container. >> >> Since I can't test on my own machine, I'm waiting for someone who has my >> older products to tell me there's a problem. Or I'll lean on my husband to >> try it. Husbands are good for things like that. >> >> >> -- >> 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 scott at elementarysoftware.com Sat Jul 15 01:24:08 2023 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 14 Jul 2023 22:24:08 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> Message-ID: Thanks again, Jacque. My solution for migrating preference files from the Preferences folder to the Container turned out to be quite simple but for some reason I spent a bunch of time pondering other more complicated methods. In the end I changed an existing function which returns a path to the preferences file and had it first look to see if a Container exists. If it doesn’t then it creates the Container but still returns the path to the original Preferences folder. (This works in my use case because the app's first call to this function will always be to “read” the preference file) Now that the Container exists, all future calls to the function will return the Container path… and the original data, having been already loaded into the app, is ready to write to (and read from) the new Container location. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 14, 2023, at 4:05 PM, J. Landman Gay via use-livecode wrote: > > On 7/14/23 4:10 PM, scott--- via use-livecode wrote: >> If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? >> How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? > > That's a very good question and I'm afraid I don't know the answer. It's worrying though, because a couple of my older products need to write to Preferences. Here's what I do know. > > The issue only came up recently. My tester with the problem is on Ventura but I suspect it's a little older than that. > > In the past I always wrote files to Preferences without issues. For my current project there was already a prefs file there and it worked. But it also worked if I put it directly in App Support, and also worked if I made a container. In fact, it worked anywhere because it's my machine. Not so for others. > > For the tester, I originally tried to create and write the file in Preferences as usual. It didn't work and no file was created. Another tester, also on Ventura, had the Mac ask for permissions, he gave it, and it worked. Everything else I subsequently tried also worked for him. > > Next, I changed the app to write directly to Application Support. Same problem, no file was created, the Mac didn't ask for permission. So I changed it again to create a folder in Application Support with the name of the app and put the prefs file in there. Same failure. Finally, I created the container folder in ~/Library/Conainers and bingo, success. > > The tester who gave permissions and had no trouble at any point, including reading and writing to the container. > > Since I can't test on my own machine, I'm waiting for someone who has my older products to tell me there's a problem. Or I'll lean on my husband to try it. Husbands are good for things like that. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Sat Jul 15 03:06:23 2023 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 15 Jul 2023 10:06:23 +0300 Subject: Field highlited In-Reply-To: <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> Message-ID: It is really very easy to do this sort of thing: set the hilitecolor of fld "f1" to red Best, Richmond. On 14.07.23 23:39, J. Landman Gay via use-livecode wrote: > On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote: >> BTW, is there a way of determining the default highlight colour? > > The dictionary says: "By default, the global hiliteColor property is > set to the system highlight color." > > I'd guess yours is blue. That's pretty standard on Mac. > From klaus at major-k.de Sat Jul 15 03:52:28 2023 From: klaus at major-k.de (Klaus major-k) Date: Sat, 15 Jul 2023 09:52:28 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: <4D9B505A-B90B-4DEA-BD00-1E0D05E94D0B@major-k.de> Hi Jacques, > Am 14.07.2023 um 22:36 schrieb J. Landman Gay via use-livecode : > > On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: >> I am looking for a support email at GOOGLE Dev. >> My problem is the search engine of Google Play Store. >> Just like the subject says. ;-) > > Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: > ah, thank you, will try to get some help there. > They don't make it easy. So sad and so true... > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From alex at tweedly.net Sat Jul 15 08:12:13 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 15 Jul 2023 13:12:13 +0100 Subject: Convert date In-Reply-To: <0D1E1DEA-697A-4589-B017-8586BABAFF32@iotecdigital.com> References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> <0D1E1DEA-697A-4589-B017-8586BABAFF32@iotecdigital.com> Message-ID: <906c05ce-3b6e-9395-6ece-74e46e783817@tweedly.net> On 14/07/2023 16:13, Bob Sneidar via use-livecode wrote: > I beg to differ. Again, Livecode is a way to build both the tools and the product made by those tools. Livecode is NOT a collection of every conceivable tool for everything everyone wants to do. No language is. > > I think the LC dev team is far more useful to everyone if they focus on completing the projects they already have, and squashing the long standing and pervasive bugs that exist. > > I think if there is a fairly easy way to create the tool you need with the codeset you now have, then you would need a compelling reason, like dramatic performance increases to justify building it into the engine. I guess the primary argument is having it available "out of the box" for new users, or for those who are still unfamiliar / uncertain about LC scripting. What I'd *really* like to see the LC dev team work on is bringing LCS libraries up to the same level of support as LCB libraries. It's taken a few years to finally get LCS widgets - and that was clearly HARD work. I would have thought t would be much easier - and just about as useful - to get CS libraries. (and even to add some better support, such as "require library" that will properly deal with missing / duplicate attempts to load a library). Alex. From david.bovill at gmail.com Sat Jul 15 09:07:13 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 14:07:13 +0100 Subject: Workaround for regular Crash setting (audio) file of player? In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: I'm working a lot with media again - and the last two days I get a crash every 15 minutes when I set the filename of a player to various mp4 audio tracks. I'd love a workaround as its slowing things up quite a bit. I've seen this behavior quite a bit over the years with media and the player. it happens erratically - so works well then after 5 or 6 successful attempts setting the audio file in the script crashes livecode. Recipe: 1. *set* the filename of me to audioFile -- the offending line 2. audiioFile is one of several different m4a files (created using mergMicrophone) 3. The filename is a long path 4. No pattern regarding a particular audio file, or sequence I can detect If anyone has a thought of a way to set an audio file that will work without crashing... much appreciated. From david.bovill at gmail.com Sat Jul 15 09:09:54 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 14:09:54 +0100 Subject: Tree Widget - order of titles In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: Is there a way to display an indexed array in the tree widget without displaying the numeric inde items (ie first column)? I'm looking to display an ordered index of titles and would prefer not to use both a field and a tree widget to accomplish this? From alex at tweedly.net Sat Jul 15 09:41:07 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 15 Jul 2023 14:41:07 +0100 Subject: Convert date In-Reply-To: <5D8C7A2C-43BD-41F2-A8EA-4CAA8D4D8892@iotecdigital.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> <5D8C7A2C-43BD-41F2-A8EA-4CAA8D4D8892@iotecdigital.com> Message-ID: <7e723802-f4e7-78c8-42fa-49cdf31a031b@tweedly.net> On 14/07/2023 19:45, Bob Sneidar via use-livecode wrote: > Because Im not that good with regular expressions and the format function. :-) But you example has one too many close parens. Oops - I got caught out copying / pasting again :-( Yes, of course it should have been > put format("%s-%02d-%02d", item 1 of theDate, item 2 of theDate, \ > item 3 of theDate) into theDate > Also, for SQL Date I do not thing UK or US matters. Its YYYY-MM-DD everywhere, isnt it? Yes, sql (or ISO) is same everywhere. > > Also, I assumed that the localization of the LC engine would take into account the local date format for the built in date functions. Is that incorrect? That is correct, but there is kind of a problem (or at least limitation) with the function. If I have a user here (UK) type a date into a field, and then I try to format it to SQLdate (or anything else) using this function, it will fail. My user will type something  (15/07/2023), and that gets an "invalid date" error. I'm not sure there is anything you can do that is completely safe - you can't tell whether a /-separated date string is US or UK. But I'd argue that dates ready to pass in to the function are either internally-generated (so they'll be sql, or dateitems, or otherwise unambiguous), or they are user-generated (and hence local format).  And therefore I would suggest changing the code to > put item 2 of theDate & "/" & \ > item 3 of theDate & "/" & \ > item 1 of theDate into theDate > convert theDate to dateitems > ELSE > convert theDate from system date to dateitems > END IF > > -- replace "." with "/" in theDate > -- convert theDate to dateitems Alex. From paul at researchware.com Sat Jul 15 09:41:25 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 09:41:25 -0400 Subject: Workaround for regular Crash setting (audio) file of player? In-Reply-To: References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: <28ace82d-2b9a-5ac3-31b4-29129836e4a9@researchware.com> Are you on a single monitor or do you have more than 1 display? It is a known bug that the player object freezes or crashes when petting properties on any monitor but the primary display: https://quality.livecode.com/show_bug.cgi?id=20707 On 7/15/2023 9:07 AM, David Bovill via use-livecode wrote: > I'm working a lot with media again - and the last two days I get a crash > every 15 minutes when I set the filename of a player to various mp4 audio > tracks. I'd love a workaround as its slowing things up quite a bit. > > I've seen this behavior quite a bit over the years with media and the > player. it happens erratically - so works well then after 5 or 6 > successful attempts setting the audio file in the script crashes livecode. > > Recipe: > > 1. > > *set* the filename of me to audioFile -- the offending line > > 2. > > audiioFile is one of several different m4a files (created using > mergMicrophone) > 3. > > The filename is a long path > 4. > > No pattern regarding a particular audio file, or sequence I can detect > > If anyone has a thought of a way to set an audio file that will work > without crashing... much appreciated. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 10:27:32 2023 From: brian at milby7.com (Brian Milby) Date: Sat, 15 Jul 2023 10:27:32 -0400 Subject: Tree Widget - order of titles In-Reply-To: References: Message-ID: <3D217129-A6BB-4AD2-A647-A2A2C02B6D4A@milby7.com> While I don’t know if a way to hide the key, there is a way to get a manual sort by combining the key with a sortable leading value. See the charsToTrimFromKey property. Brian Milby brian at milby7.com > On Jul 15, 2023, at 9:11 AM, David Bovill via use-livecode wrote: > > Is there a way to display an indexed array in the tree widget without > displaying the numeric inde items (ie first column)? I'm looking to display > an ordered index of titles and would prefer not to use both a field and a > tree widget to accomplish this? > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 11:06:09 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 11:06:09 -0400 Subject: What is your best practice for setting a script in a script? Message-ID: So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? Example: BUTTON "Make" on mouseUp   local tScript   create button "Sample"   put "on mouseUp"&cr into tScript   put "  ask 'Please enter a number between 1 and 100'" &cr after tScript   put "  if it is not a number then exit mouseUp" &cr after tScript   put "  if it < 1 OR it > 100 then exit mouseUp" &cr after tScript   put "  put it into field 'Number'" &cr after tScript   put "end mouseUp" after tScript   replace "'" with quote in tScript   set the script of button "Sample" to tScript end mouseUp This create a button "Sample" with the script on mouseUp   ask "Please enter a number between 1 and 100"   if it is not a number then exit mouseUp   if it < 1 OR it > 100 then exit mouseUp   put it into field "Number" end mouseUp However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. I wish there was a command like "put begin block" where you could follow it any  number of lines and then "end block into tVar". i.e. put begin block on mouseUp   ask "Please enter a number between 1 and 100"   if it is not a number then exit mouseUp   if it < 1 OR it > 100 then exit mouseUp   put it into field "Number" end mouseUp end block into tScript Is there a better way to have a script written in a script? From gcanyon at gmail.com Sat Jul 15 13:05:27 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 15 Jul 2023 10:05:27 -0700 Subject: Shell + Python? Message-ID: In terminal, this works: python -c "print('hello world')" In LiveCode, this: *put* shell("python -c " & quote & "print('hello world')" & quote) puts this: /bin/sh: line 1: python: command not found while this: *put* shell("pwd") puts this: /Applications/LiveCode 9.6.9.app So any idea why terminal can find python but LC's shell function can't? From alex at tweedly.net Sat Jul 15 13:51:55 2023 From: alex at tweedly.net (Tweedly) Date: Sat, 15 Jul 2023 18:51:55 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: <683ACBBE-7C02-4D8B-A7FB-C4F68D736820@tweedly.net> Maybe keep the script in a custom property ? Or in a “prefs” file ? Or ….. any number of ways of avoiding the exact question you asked ;-) And yes, there’s been a request for “block” text constants for about as long as I’ve used RR/LC - say 20 years. Alex Sent from my iPad > On 15 Jul 2023, at 16:06, Paul Dupuis via use-livecode wrote: > > So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp > local tScript > create button "Sample" > put "on mouseUp"&cr into tScript > put " ask 'Please enter a number between 1 and 100'" &cr after tScript > put " if it is not a number then exit mouseUp" &cr after tScript > put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript > put " put it into field 'Number'" &cr after tScript > put "end mouseUp" after tScript > replace "'" with quote in tScript > set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could follow it any number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ludovic.thebault at laposte.net Sat Jul 15 13:59:12 2023 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Sat, 15 Jul 2023 19:59:12 +0200 Subject: Check connection and timeout In-Reply-To: <002701d9b665$d5ca5720$815f0560$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> Message-ID: > Le 14 juil. 2023 à 17:14, Ralph DiMola via use-livecode a écrit : > > Ludovic, > > Make sure that tsNet is active: > Hello Ralph Thanks. But yes tsnet was initialized. I’ve measured the timeouts in miliseconds and it was always 30003 milliseconds. But it’s only when there is a connection but there isn't enough network capacity for data transfer (so it’s difficult to test ! This can happen in the mountains, far from mobile antennas, or on the edge of wifi coverage. Ludovic From dick.kriesel at mail.com Sat Jul 15 15:46:18 2023 From: dick.kriesel at mail.com (Dick Kriesel) Date: Sat, 15 Jul 2023 12:46:18 -0700 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: > On Jul 15, 2023, at 8:06 AM, Paul Dupuis via use-livecode wrote: > > So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? Hi, Paul. The best way to set the script may be not to; that is, instead set the new object’s behavior to a button that contains the readable script. — Dick From david.bovill at gmail.com Sat Jul 15 15:56:22 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 20:56:22 +0100 Subject: Tree Widget - order of titles In-Reply-To: <3D217129-A6BB-4AD2-A647-A2A2C02B6D4A@milby7.com> References: <3D217129-A6BB-4AD2-A647-A2A2C02B6D4A@milby7.com> Message-ID: Thanks Brian - that works. I can remove the indent created by the now empty first column by using: set the separatorRatio of widget to 0 However there is still a separator line and if I: set the showSeparator to false Then the indent returns. But it mostly looks OK. On Sat, 15 Jul 2023 at 15:28, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > While I don’t know if a way to hide the key, there is a way to get a > manual sort by combining the key with a sortable leading value. See the > charsToTrimFromKey property. > > Brian Milby > brian at milby7.com > > > On Jul 15, 2023, at 9:11 AM, David Bovill via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Is there a way to display an indexed array in the tree widget without > > displaying the numeric inde items (ie first column)? I'm looking to > display > > an ordered index of titles and would prefer not to use both a field and a > > tree widget to accomplish this? > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david.bovill at gmail.com Sat Jul 15 16:00:54 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 21:00:54 +0100 Subject: Workaround for regular Crash setting (audio) file of player? In-Reply-To: <28ace82d-2b9a-5ac3-31b4-29129836e4a9@researchware.com> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> <28ace82d-2b9a-5ac3-31b4-29129836e4a9@researchware.com> Message-ID: Interesting - I do have two monitors - though the player is on the main default monitor - I will try with the monitor disconnected. On Sat, 15 Jul 2023 at 14:42, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Are you on a single monitor or do you have more than 1 display? > > It is a known bug that the player object freezes or crashes when petting > properties on any monitor but the primary display: > https://quality.livecode.com/show_bug.cgi?id=20707 > > > On 7/15/2023 9:07 AM, David Bovill via use-livecode wrote: > > I'm working a lot with media again - and the last two days I get a crash > > every 15 minutes when I set the filename of a player to various mp4 audio > > tracks. I'd love a workaround as its slowing things up quite a bit. > > > > I've seen this behavior quite a bit over the years with media and the > > player. it happens erratically - so works well then after 5 or 6 > > successful attempts setting the audio file in the script crashes > livecode. > > > > Recipe: > > > > 1. > > > > *set* the filename of me to audioFile -- the offending line > > > > 2. > > > > audiioFile is one of several different m4a files (created using > > mergMicrophone) > > 3. > > > > The filename is a long path > > 4. > > > > No pattern regarding a particular audio file, or sequence I can > detect > > > > If anyone has a thought of a way to set an audio file that will work > > without crashing... much appreciated. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 16:05:21 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 15 Jul 2023 15:05:21 -0500 Subject: What is your best practice for setting a script in a script? In-Reply-To: <683ACBBE-7C02-4D8B-A7FB-C4F68D736820@tweedly.net> References: <683ACBBE-7C02-4D8B-A7FB-C4F68D736820@tweedly.net> Message-ID: <7910ebed-de86-4765-e8e0-84507fe1bc42@hyperactivesw.com> On 7/15/23 12:51 PM, Tweedly via use-livecode wrote: > Maybe keep the script in a custom property ? That's what I usually do. If the variables or references may change, I use placeholders and the merge command to replace things before setting the script on the control. If it's a very short script I sometimes use this method: set the script of tObj to "on mouseUp;doSomething;end mouseUp" -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From david.bovill at gmail.com Sat Jul 15 16:06:12 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 21:06:12 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: This is the same type of problem as deleting an object from a user interaction with the object - but more common use case and I don;t know a good way of doing that either. I use: send "delete_Object" to somewhere in 2 ticks But it is messy and tends to be a bit unreliable in my experience. I don't know a way around it other than avoiding any events being trapped within the object itself - but that is not so easy. On Sat, 15 Jul 2023 at 20:47, Dick Kriesel via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On Jul 15, 2023, at 8:06 AM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > So in the instances where you have a script that creates an object and > then sets the script of that object (example below), what is you best > practice for having the script in a script and still be readable? > > Hi, Paul. The best way to set the script may be not to; that is, instead > set the new object’s behavior to a button that contains the readable script. > — Dick > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 16:16:37 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 15 Jul 2023 21:16:37 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: <288B8697-8BE6-433D-A8BF-92B8697C2711@gmail.com> Another possibility, which is sort of a combination of Alex and Dicks suggestions is to create a “scripts” card and store all of the scripts as readable custom properties. When I have done this in the past I typically just number the scripts (cScript1 … cScriptn) and put some metadata in the first line of each. Usually a comment of the form "—cScript1 — button Sample of cd X". If you do that, when you list the custom properties of the scripts in the property inspector you see the metadata along with each cp field name (so it would look like, cScript1 — cScript1 — button Sample of cd X) and you can see a whole list of them. In this situation, the code you provided would be replaced with: create button “Sample” set the script of btn “Sample” to the cScript1 of cd “Scripts" Mark > On 15 Jul 2023, at 4:06 pm, Paul Dupuis via use-livecode wrote: > > So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp > local tScript > create button "Sample" > put "on mouseUp"&cr into tScript > put " ask 'Please enter a number between 1 and 100'" &cr after tScript > put " if it is not a number then exit mouseUp" &cr after tScript > put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript > put " put it into field 'Number'" &cr after tScript > put "end mouseUp" after tScript > replace "'" with quote in tScript > set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could follow it any number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 16:22:01 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 15 Jul 2023 15:22:01 -0500 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> Message-ID: <003fd44c-f5c0-cdbf-8865-f4722e83bdcd@hyperactivesw.com> Good approach. I assume if there is no file in Preferences, you write defaults directly to the container. I got curious and looked at where LC stores its files. They do not have a container. It's mostly in Application Support, in a folder "RunRev" (there's also an older one there named "Runtime Revolution".) Some of the files were updated recently so it apparently still works. Now I wonder if there's another way to do this stuff. I'd like some definitive info about this. @Panos? @Mark? On 7/15/23 12:24 AM, scott--- via use-livecode wrote: > Thanks again, Jacque. > > My solution for migrating preference files from the Preferences folder to the Container turned out to be quite simple but for some reason I spent a bunch of time pondering other more complicated methods. In the end I changed an existing function which returns a path to the preferences file and had it first look to see if a Container exists. If it doesn’t then it creates the Container but still returns the path to the original Preferences folder. (This works in my use case because the app's first call to this function will always be to “read” the preference file) Now that the Container exists, all future calls to the function will return the Container path… and the original data, having been already loaded into the app, is ready to write to (and read from) the new Container location. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sat Jul 15 16:29:27 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 16:29:27 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> All good suggestions so far, but not what I was after, which was whether there is any better way to have the script you are setting the newly created object to, readable, in the script that setup of the new object. If a behavior script is used or properties or objects then I can not read (and potentially revise) the script right in the script that is making the object. I have to open something else if I want to revise the script. Of course I can have a comment that says "look here for the script" and it is generally obvious from "set the script of button "Sample" to . On 7/15/2023 11:06 AM, Paul Dupuis via use-livecode wrote: > So in the instances where you have a script that creates an object and > then sets the script of that object (example below), what is you best > practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp >   local tScript >   create button "Sample" >   put "on mouseUp"&cr into tScript >   put "  ask 'Please enter a number between 1 and 100'" &cr after tScript >   put "  if it is not a number then exit mouseUp" &cr after tScript >   put "  if it < 1 OR it > 100 then exit mouseUp" &cr after tScript >   put "  put it into field 'Number'" &cr after tScript >   put "end mouseUp" after tScript >   replace "'" with quote in tScript >   set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp >   ask "Please enter a number between 1 and 100" >   if it is not a number then exit mouseUp >   if it < 1 OR it > 100 then exit mouseUp >   put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with > the "pu" statements and quotes (double and single) and cr and so one > cumbersome to read. Yes there are behavior scripts, but this is about > the best practice of placing a script in a script (to set the script > of an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could > follow it any  number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp >   ask "Please enter a number between 1 and 100" >   if it is not a number then exit mouseUp >   if it < 1 OR it > 100 then exit mouseUp >   put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 16:47:29 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 15 Jul 2023 21:47:29 +0100 Subject: Field highlited In-Reply-To: <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> Message-ID: <5384A3D3-A3D5-43D1-BD80-3C6DAD4C371E@gmail.com> The effective attribute is what I was looking for. As Paul mentioned, if you just say “set the background of… to hiliteColor” you don’t get anything. But if you set it to the “effective hiliteColor” you get the system default (btw, I tried “system hiliteColor” but LC treats it as a syntax error. Pity, since “system” in this case makes more sense to me than effective. But that’s another story…) I was intrigued by Pauls example of trying to set some highlighting that “sticks” but that still gives the user the illusion that nothing unusual is going on ie. If you select another portion of text, the first selection unhighlights, of if you click in the field the highlighting goes away, but you can click in other fields and it doesn’t. I saw it as a challenge to try and get that working. He probably has more elegant code than I do but the following comes very close, I hope, to the solution he was describing. The biggest challenge I found is that when you have a selection in the field, and you go to change it to some other text the normal behaviour is to have the first selection immediately disappear. That doesn’t happen if you are depending on a selectionChanged message since you don’t actually get that until the end of the 2nd selection and you need the old one to disappear when you start the 2nd selection. I solved that by having an openField handler that just checks to see if there is a selection, and if there is, removes it. openField happens immediately and before selectionChanged is sent. I can’t remember at the moment why I left the removal in both handlers, but it seems it was necessary for some combination of clicks or selections. I’d have to go back and test that again. on openField -- a selection is potentially about to begin -- see if there is already a selection in the field and unhighlight it put the cpChunkExpression of field "fld1" into chunkExp if chunkExp is not empty then set the backgroundcolor of chunkExp to "" -- gets rid of our fake highlighting set the cpChunkExpression of field "fld1" to empty end if end openField on selectionChanged -- get the current highlight color put the effective hiliteColor of field "fld1" into tHiliteColor -- then initialize our new chunk expression put the selectedChunk of fld "fld1" into newChunkExp -- determine if there is an old chunk we need to unhighlight put the cpChunkExpression of field "fld1" into chunkExp if chunkExp is not empty then set the backgroundcolor of chunkExp to "" -- gets rid of our fake highlighting set the cpChunkExpression of field "fld1" to empty end if -- now, with regards to the new chunk expression there are 3 possibilities -- 1. its empty, in which case we do nothing -- 2. its just an insertion point, in which case we do nothing (ie. word 2 of newChunkExp > word 4) -- 3. But, if word 2 and word 4 of newChunkExp define a range of text, highlight it if word 2 of newChunkExp < word 4 of newChunkExp then set the backgroundcolor of newChunkExp to tHiliteColor -- and save it for future reference set the cpChunkExpression of field "fld1" to newChunkExp end if -- if we want to unhighlight everything we can just click anywhere in the field end selectionChanged > On 14 Jul 2023, at 9:39 pm, J. Landman Gay via use-livecode wrote: > > On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote: >> BTW, is there a way of determining the default highlight colour? > > The dictionary says: "By default, the global hiliteColor property is set to the system highlight color." > > I'd guess yours is blue. That's pretty standard on Mac. > > -- > 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 marksmithhfx at gmail.com Sat Jul 15 16:53:33 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 15 Jul 2023 21:53:33 +0100 Subject: Convert date In-Reply-To: <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> Message-ID: <08D97D2F-42E3-4DC1-9BBC-4FD22137FE8B@gmail.com> Thanks Bob. These examples are all very handy to have. Added to the wiki!! Just kidding, I do think we need a wiki somewhere for these kinds of code snippets but I’m not offering to build it (this year). We’ll have to see how bored I am next year, or, hopefully, someone else will beat me to it. 😊🙏 > On 14 Jul 2023, at 4:34 pm, Bob Sneidar via use-livecode wrote: > > Hmmm… I read the enhancement request. I’m still in the dark though on how to get to "2023-07-14 08:30:00" from “7/14/23” using format strings. Here’s my solution for those who do not want to download the masterLibrary. Given these, what else do you need? > > FUNCTION formatDate theDate, theFormat > /* > Accepts any valid date for the first parameter. If not a valid date, it simply returns > what was passed. Second parameter can be any of the following: > sql date: date in the yyyy-mm-dd format > short date, abbreviated date, internet date, long date: LC versions of the same > julian date: Julian number based on (I believe) Jacques formula > */ > > put theDate into tSavedDate > put the itemdelimiter into theOldDelim > set the itemdelimiter to "-" > > IF the length of item 1 of theDate = 4 AND \ > the number of items of theDate = 3 AND \ > item 1 of theDate is a number AND \ > item 2 of theDate is a number AND \ > item 3 of theDate is a number THEN > put item 2 of theDate & "/" & \ > item 3 of theDate & "/" & \ > item 1 of theDate into theDate > END IF > > -- replace "." with "/" in theDate > convert theDate to dateitems > set the itemdelimiter to theOldDelim > > if the number of items of theDate <> 7 then > answer "'" & theDate & "' is not a valid date format!" > return tSavedDate > end if > > SWITCH theFormat > CASE "sql date" > put item 1 of theDate & "-" & \ > format("%02d",item 2 of theDate) & "-" & \ > format("%02d",item 3 of theDate) into theDate > break > CASE "short date" > convert theDate from dateitems to short date > break > CASE "abbreviated date" > convert theDate from dateitems to abbreviated date > break > CASE "abbr date" > convert theDate from dateitems to abbreviated date > break > CASE "internet date" > convert theDate from dateitems to internet date > break > CASE "long date" > convert theDate from dateitems to long date > break > CASE "julian date" > put the date into theDate > convert theDate to dateItems > IF ((item 2 of theDate = 1) OR (item 2 of theDate = 2)) THEN > put 1 into theDay > ELSE > put 0 into theDay > END IF > put item 1 of theDate + 4800 - theDay into theYear > put item 2 of theDate + (12 * theDay) - 3 into theMonth > put item 3 of theDate + \ > ((153 * theMonth + 2) div 5) + \ > (365 * theYear) + \ > (theYear div 4) - \ > (theYear div 100) + \ > (theYear div 400) - \ > 32045 into theDate > break > END SWITCH > > return theDate > END formatDate > > FUNCTION formatTime theTime, theFormat > /* > accepts any valid time and returns the form of the time specified in the second parameter. > The valid formats are: > sql time: hh:mm:ss (Note: combining sql date from the formatDate() function with the > sql time will produce a valid SQL date time type). > short time: LC short time format > abbreviated time: LC abbr time format (same as short time) > long time: LC long time format > seconds: the number of seconds since the prior midnight > military: the military time 00:00 - 23:59 > */ > > IF theTime is empty THEN return empty > > set the numberformat to "00" > SWITCH theFormat > CASE "sql time" > convert theTime to dateitems > put (item 4 of theTime +0) & ":" & \ > (item 5 of theTime +0) & ":" & \ > (item 6 of theTime +0) into theTime > break > CASE "short time" > convert theTime to short time > break > CASE "abbreviated time" > convert theTime to abbreviated time > break > CASE "long time" > convert theTime to long time > break > CASE "seconds" > convert theTime to seconds > break > CASE "military" > set the itemdelimiter to ":" > > IF theTime contains "PM" THEN > add 12 to item 1 of theTime > END IF > > put word 1 of item 2 of theTime into item 2 of theTime > break > END SWITCH > > return theTime > END formatTime > > And as an added bonus, those who use Spiceworks know they format time for tickets as 0h0m0s. > > FUNCTION spiceTime pStartTime, pEndTime > convert pStartTime to dateItems > convert pEndTime to dateItems > subtract item 4 of pStartTime from item 4 of pEndTime > subtract item 5 of pStartTime from item 5 of pEndTime > convert pEndTime from dateItems to short time > put formatTime(pEndTime, "military") into pEndTime > set the itemdelimiter to ":" > IF item 1 of pEndTime > 11 THEN subtract 12 from item 1 of pEndTime > put item 1 of pEndTime & "h" & item 2 of pEndTime & "m" into tTotalTime > return tTotalTime > END spiceTime > > Bob S > > >> On Jul 13, 2023, at 4:19 PM, ambassador--- via use-livecode wrote: >> >> Neville Smythe wrote: >>> I seem to have hallucinated that the built-in convert handler recognised >>> the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD >>> hh:mm:ss+-http://hh.ss, etc) but I must have written my own conversion >>> routines in a former life. >>> But one would have to ask… Why doesn’t it? >>> After all, the original ISO 8601 standard was adopted 1988! >> >> https://quality.livecode.com/show_bug.cgi?id=4636 >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 18:57:25 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 15 Jul 2023 22:57:25 +0000 Subject: Shell + Python? In-Reply-To: References: Message-ID: <71CEE136-F97A-40C3-A813-958EAEBAD957@iotecdigital.com> I ran into a similar thing. Older versions of LC worked with anything you could type into the terminal but now basic things return an error. Sent from my iPhone > On Jul 15, 2023, at 10:07, Geoff Canyon via use-livecode wrote: > > In terminal, this works: > > python -c "print('hello world')" > > > In LiveCode, this: > > *put* shell("python -c " & quote & "print('hello world')" & quote) > > puts this: > > /bin/sh: line 1: python: command not found > > while this: > > *put* shell("pwd") > > puts this: > > /Applications/LiveCode 9.6.9.app > > So any idea why terminal can find python but LC's shell function can't? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sat Jul 15 19:14:48 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 15 Jul 2023 16:14:48 -0700 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: Custom properties would definitely be my go-to, similar to what others have said. That said, I think the merge command is your friend here. This script in a button does what you want: on mouseUp set the script of button "Sample" to \ merge("on mouseUp[[cr]]" &\ "ask [[quote]]Please enter a number between 1 and 100[[quote]][[cr]]" &\ "if it is not a number then exit mouseUp[[cr]]" &\ "if it < 1 OR it > 100 then exit mouseUp[[cr]]" &\ "put it into field [[quote]]Number[[quote]][[cr]]" &\ "end mouseUp") end mouseUp The use of \ to continue, and [[quote]] and [[cr]] results in a pretty readable script to my eye at least. gc On Sat, Jul 15, 2023 at 8:07 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > So in the instances where you have a script that creates an object and > then sets the script of that object (example below), what is you best > practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp > local tScript > create button "Sample" > put "on mouseUp"&cr into tScript > put " ask 'Please enter a number between 1 and 100'" &cr after tScript > put " if it is not a number then exit mouseUp" &cr after tScript > put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript > put " put it into field 'Number'" &cr after tScript > put "end mouseUp" after tScript > replace "'" with quote in tScript > set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with the > "pu" statements and quotes (double and single) and cr and so one > cumbersome to read. Yes there are behavior scripts, but this is about > the best practice of placing a script in a script (to set the script of > an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could follow > it any number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 19:35:03 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 15 Jul 2023 16:35:03 -0700 Subject: Shell + Python? In-Reply-To: References: Message-ID: <0c83d7ba-f81f-6bf6-a2df-3e9b1fc69f50@sonic.net> On 7/15/23 10:05, Geoff Canyon via use-livecode wrote: > So any idea why terminal can find python but LC's shell function can't? Your user context is different from LC's shell context. Try put shell("env | grep PATH") # in the message box and env | grep PATH # in terminal If you want to launch python from LC's shell you'll have to have it in LC's path somewhere, or at least an alias to it in the path. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Sat Jul 15 19:43:53 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 19:43:53 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: That's pretty good! On 7/15/2023 7:14 PM, Geoff Canyon via use-livecode wrote: > Custom properties would definitely be my go-to, similar to what others have > said. That said, I think the merge command is your friend here. > > This script in a button does what you want: > > on mouseUp > set the script of button "Sample" to \ > merge("on mouseUp[[cr]]" &\ > "ask [[quote]]Please enter a number between 1 and > 100[[quote]][[cr]]" &\ > "if it is not a number then exit mouseUp[[cr]]" &\ > "if it < 1 OR it > 100 then exit mouseUp[[cr]]" &\ > "put it into field [[quote]]Number[[quote]][[cr]]" &\ > "end mouseUp") > end mouseUp > > The use of \ to continue, and [[quote]] and [[cr]] results in a pretty > readable script to my eye at least. From alex at tweedly.net Sat Jul 15 20:23:18 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 16 Jul 2023 01:23:18 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> References: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> Message-ID: <33b83ecd-52d9-61df-8351-5c3f619a9fbd@tweedly.net> On 15/07/2023 21:29, Paul Dupuis via use-livecode wrote: > All good suggestions so far, but not what I was after, which was > whether there is any better way to have the script you are setting the > newly created object to, readable, in the script that setup of the new > object. If a behavior script is used or properties or objects then I > can not read (and potentially revise) the script right in the script > that is making the object. I have to open something else if I want to > revise the script. Of course I can have a comment that says "look here > for the script" and it is generally obvious from "set the script of > button "Sample" to . > OK, how about this ? > on mouseUp >    -- using special comments to set script of another object >    local tmp >    put the script of me into tmp >    filter tmp with "*--1 *" >    replace "--1 " with empty in tmp >    set the script of btn "B" to tmp >    --1 on mouseup >    --1   put "hello world" >    --1 end mouseup > end mouseUp of course, you could have multiple of them --1, --2, etc. and you could have metadata, say the first line of each "special comment" has the object name --1 -- script for button "abc" --1 on mouseup ... --1 end mouseup Alex. From paul at researchware.com Sat Jul 15 20:43:37 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 20:43:37 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: <33b83ecd-52d9-61df-8351-5c3f619a9fbd@tweedly.net> References: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> <33b83ecd-52d9-61df-8351-5c3f619a9fbd@tweedly.net> Message-ID: <7b573c23-489d-7cca-6eac-9b12cfd91367@researchware.com> Oh, another great solutions! On 7/15/2023 8:23 PM, Alex Tweedly via use-livecode wrote: > > On 15/07/2023 21:29, Paul Dupuis via use-livecode wrote: >> All good suggestions so far, but not what I was after, which was >> whether there is any better way to have the script you are setting >> the newly created object to, readable, in the script that setup of >> the new object. If a behavior script is used or properties or objects >> then I can not read (and potentially revise) the script right in the >> script that is making the object. I have to open something else if I >> want to revise the script. Of course I can have a comment that says >> "look here for the script" and it is generally obvious from "set the >> script of button "Sample" to . >> > OK, how about this ? > >> on mouseUp >>    -- using special comments to set script of another object >>    local tmp >>    put the script of me into tmp >>    filter tmp with "*--1 *" >>    replace "--1 " with empty in tmp >>    set the script of btn "B" to tmp >>    --1 on mouseup >>    --1   put "hello world" >>    --1 end mouseup >> end mouseUp > > of course, you could have multiple of them --1, --2, etc. > > and you could have metadata, say the first line of each "special > comment" has the object name > > --1 -- script for button "abc" > --1 on mouseup > ... > --1 end mouseup > > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alanstenhouse at hotmail.com Sat Jul 15 22:09:05 2023 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 16 Jul 2023 11:39:05 +0930 Subject: Workaround for regular Crash setting (audio) file of player? Message-ID: Hi David This rings a distant bell... not sure, but can you try set the filename of me to empty and then set the filename of me to audioFile to see if that makes a difference? HTH, cheers Alan From marksmithhfx at gmail.com Sun Jul 16 05:57:24 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 16 Jul 2023 10:57:24 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> References: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> Message-ID: Not a perfect solution but it does solve the problem of not having to use all the put statements and other grammar which as you note is cumbersome to read, let alone write. I agree though, a more elegant solution to this problem would be useful. > On 15 Jul 2023, at 9:29 pm, Paul Dupuis via use-livecode wrote: > > All good suggestions so far, but not what I was after, which was whether there is any better way to have the script you are setting the newly created object to, readable, in the script that setup of the new object. If a behavior script is used or properties or objects then I can not read (and potentially revise) the script right in the script that is making the object. I have to open something else if I want to revise the script. Of course I can have a comment that says "look here for the script" and it is generally obvious from "set the script of button "Sample" to . > > > > On 7/15/2023 11:06 AM, Paul Dupuis via use-livecode wrote: >> So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? >> >> Example: >> BUTTON "Make" >> on mouseUp >> local tScript >> create button "Sample" >> put "on mouseUp"&cr into tScript >> put " ask 'Please enter a number between 1 and 100'" &cr after tScript >> put " if it is not a number then exit mouseUp" &cr after tScript >> put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript >> put " put it into field 'Number'" &cr after tScript >> put "end mouseUp" after tScript >> replace "'" with quote in tScript >> set the script of button "Sample" to tScript >> end mouseUp >> >> This create a button "Sample" with the script >> on mouseUp >> ask "Please enter a number between 1 and 100" >> if it is not a number then exit mouseUp >> if it < 1 OR it > 100 then exit mouseUp >> put it into field "Number" >> end mouseUp >> >> However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. >> >> I wish there was a command like "put begin block" where you could follow it any number of lines and then "end block into tVar". i.e. >> >> put begin block >> on mouseUp >> ask "Please enter a number between 1 and 100" >> if it is not a number then exit mouseUp >> if it < 1 OR it > 100 then exit mouseUp >> put it into field "Number" >> end mouseUp >> end block into tScript >> >> Is there a better way to have a script written in a script? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Sun Jul 16 18:25:47 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Sun, 16 Jul 2023 23:25:47 +0100 Subject: Browser widget "Navigation request cancelled"/"NSURLErrorDomain error -999" Message-ID: <1ebb2680-c423-7b65-0012-a19dd072ed67@cogapp.com> I'm finding intermittent issues with the browser widget failing to load an internal site. In 9.6.8, the error (in browserDocumentLoadFailed) will usually be "NSURLErrorDomain error -999". In 10.0.0 (dp 5) it will be "Navigation request cancelled". Alternatively, sometimes (at least in 9.6.8) it will be "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." ... which is fair enough, because it's an "http:" URL rather than an "https:" (this is an application on our intranet); but the whacky part is that _sometimes_ I can load the site, and once loaded I can navigate it fine. In particular I have more success in loading it in 10.0.0 (dp 5) - although sometimes the site will load, _and_ the browserDocumentLoadFailed message will be sent! I also sometimes find I can load it if I set the URL in the property inspector for the browser widget, where setting it in script fails. Can anyone shed light? I'd prefer to get this working in 9.6.8, because due to https://quality.livecode.com/show_bug.cgi?id=24268 I tend to lose work in 10.0.0 (dp 5) - but if I could get it consistently working in either that would be a step forward! TIA, Ben From klaus at major-k.de Mon Jul 17 04:10:26 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Jul 2023 10:10:26 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: Hi all, > Am 14.07.2023 um 22:36 schrieb J. Landman Gay via use-livecode : > > On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: >> I am looking for a support email at GOOGLE Dev. >> My problem is the search engine of Google Play Store. >> Just like the subject says. ;-) > > Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: > > > They don't make it easy. just received a response from Google. It is completely generic, does not make any sense to me, but it looks like they do NOT search for the correct and complete title of an app in their database. :-/ Maybe I do not understand it correctly? ------------------------------------------------------------ Hi Klaus, Thanks for contacting Google Play Developer Support. Google Play app search works across title, developer name, and app descriptions. Your title should be unique and accessible, avoid common terms, and reinforce what your app is about. Using common or generic words like "Puzzle" or "Sports" can often increase the total number of potential search results, thus making your app more difficult to find. Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). For more information about Google Search Operators, please see this Google Search Help Center article. ... ------------------------------------------------------------ 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 Mon Jul 17 06:02:24 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Jul 2023 12:02:24 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi friends, FYI: I solved the problem! 1. For testing I ordered the cheapest USB footswitch fom Mr. Pesos -> 15.99 Euro 2. Also ordered an USB-A to Micro-USB adapter 3. Downloaded the software for setting up the footswitch, there is even a Mac version! 4. Configured the footswitch to act as a mouseclick 5. Tested with a quick LC app on my Android tablet and... ... IT WORKS, hooray! :-) The P.S. in my initial posting is still waiting for an answer. :-) > Am 25.05.2023 um 17:22 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I'm still an active musician (bass guitar) and am currently playing in four bands. > > Nowadays bulky music stands on stage are OUT and tablets are IN! > So I am considering to create a little app for myself to display PDF leadsheets > (= lyrics and chord symbols) on an Andorid tablet, which I still have to buy. :-) > > There are some USB footswitches, and I would like to use one of them to browse > through the (multipage) PDFs (next page, previous page). > > Anyone knows if these switches will act like an "external keyboard", means if they > will just send any RAWKEY that I could catch in LC? > Or will I need something created with LCB to do so? > > Thanks for any hint! P.S. Since PDFs are not accessible via "mobilepickmedia" are there ANY other ways to add some PDFs later without having to download them from some URL? 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 Mon Jul 17 11:20:17 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Jul 2023 15:20:17 +0000 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: <43849C96-3A38-427D-A7F3-653032BEA7B9@iotecdigital.com> I bet the dashes mean something in the search algorithm. Bob S > On Jul 17, 2023, at 1:10 AM, Klaus major-k via use-livecode wrote: > > Hi all, > >> Am 14.07.2023 um 22:36 schrieb J. Landman Gay via use-livecode : >> >> On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: >>> I am looking for a support email at GOOGLE Dev. >>> My problem is the search engine of Google Play Store. >>> Just like the subject says. ;-) >> >> Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: >> >> >> They don't make it easy. > > just received a response from Google. > > It is completely generic, does not make any sense to me, but it looks like they do NOT > search for the correct and complete title of an app in their database. :-/ > > Maybe I do not understand it correctly? > ------------------------------------------------------------ > Hi Klaus, > > Thanks for contacting Google Play Developer Support. > > Google Play app search works across title, developer name, and app descriptions. > Your title should be unique and accessible, avoid common terms, and reinforce > what your app is about. > > Using common or generic words like "Puzzle" or "Sports" can often increase the > total number of potential search results, thus making your app more difficult to find. > Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect > the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). > > For more information about Google Search Operators, please see this Google Search Help Center article. > ... > ------------------------------------------------------------ > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Mon Jul 17 11:26:19 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Jul 2023 17:26:19 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <43849C96-3A38-427D-A7F3-653032BEA7B9@iotecdigital.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <43849C96-3A38-427D-A7F3-653032BEA7B9@iotecdigital.com> Message-ID: <6EE26599-DD5D-4188-9CC6-3ED93A8BDBD3@major-k.de> Hi Bob, > Am 17.07.2023 um 17:20 schrieb Bob Sneidar via use-livecode : > > I bet the dashes mean something in the search algorithm. well, maybe. However that entering a misspelled app name will lead to a successfull find is really ridiculous! sehen - hören - merkn -> App found (missing E renders this to a NON german word!) instead of sehen - hören - merken -> no result 8-) > Bob S > >> On Jul 17, 2023, at 1:10 AM, Klaus major-k via use-livecode wrote: >> ... >> just received a response from Google. >> It is completely generic, does not make any sense to me, but it looks like they do NOT >> search for the correct and complete title of an app in their database. :-/ >> Maybe I do not understand it correctly? >> ------------------------------------------------------------ >> Hi Klaus, >> >> Thanks for contacting Google Play Developer Support. >> >> Google Play app search works across title, developer name, and app descriptions. >> Your title should be unique and accessible, avoid common terms, and reinforce >> what your app is about. >> >> Using common or generic words like "Puzzle" or "Sports" can often increase the >> total number of potential search results, thus making your app more difficult to find. >> Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect >> the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). >> >> For more information about Google Search Operators, please see this Google Search Help Center article. >> ... >> ------------------------------------------------------------ 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 Mon Jul 17 11:32:42 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Jul 2023 15:32:42 +0000 Subject: Shell + Python? In-Reply-To: <0c83d7ba-f81f-6bf6-a2df-3e9b1fc69f50@sonic.net> References: <0c83d7ba-f81f-6bf6-a2df-3e9b1fc69f50@sonic.net> Message-ID: <5A153757-647E-443F-9B18-BBD700B5CA2E@iotecdigital.com> OK mine are definitely different. So what changed? Virtually everything I used for shell in the past worked without a problem but at some point in the recent updates this changed. So then what is the solution? Obviously I am going to have to change the shell for LC, and not the one for Terminal. LC’s shellCommand is /bin/sh. The terminal is zsh so I set Livecode’s shellCommand to /bin/zsh. The path changed but is still different from what I grep in the terminal!! Shouldn’t there be a way to tell LC what the default shell is in the terminal?? Bob S > On Jul 15, 2023, at 4:35 PM, Mark Wieder via use-livecode wrote: > > On 7/15/23 10:05, Geoff Canyon via use-livecode wrote: > >> So any idea why terminal can find python but LC's shell function can't? > > Your user context is different from LC's shell context. Try > > put shell("env | grep PATH") # in the message box > > and > > env | grep PATH # in terminal > > If you want to launch python from LC's shell you'll have to have it in LC's path somewhere, or at least an alias to it in the path. > > -- > Mark Wieder > ahsoftware at gmail.com From paul at researchware.com Mon Jul 17 12:39:32 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Jul 2023 12:39:32 -0400 Subject: Apple Notarization changes... Message-ID: I got an email from Apple Developer date 13-Jun-2023 that: "Were reaching out because you recently used the altool command-line utility to notarize your macOS software with Apple. As announced last year at WWDC22, if youre still using altool with the Apple notary service, you should transition to the notarytool command-line utility as soon as possible. Notarizing software with altool was deprecated in Xcode 13, and the Apple notary service will no longer accept uploads from altool as of November 1, 2023. Existing notarized software will continue to function properly. " So, my questions for the Hivemind and/or the Mothership are: 1) I currently code sign and notarize using some version of Xcode under Mojave on a MacBook Pro. I do not really want to upgrade the OS from Mojave. The MacBook pro literal only function is macOS code signing and notarization. It sits off line and doesn't get any updates because I am terrified some update will break the code signing and notarization process. So, is there a version of Xcode that will run on Mojave and supports the new notarytool (vs attool as the terminal command - I have been using is "xcrun altool -type osx --notarize-app --primary-bundle-id ... etc.")? What is the minimum OS/Xcode combination that lets me use notarytool? 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! From matthias_livecode_150811 at m-r-d.de Mon Jul 17 12:48:52 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 17 Jul 2023 18:48:52 +0200 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: > > 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? > see here https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Mon Jul 17 12:56:10 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 17 Jul 2023 17:56:10 +0100 Subject: Crazy question: is it possible/reasonable to use Python in LC? In-Reply-To: References: Message-ID: "do ... as python" ?? On 13/07/2023 21:03, Geoff Canyon via use-livecode wrote: > I've been playing with Python, and it has a lot of nice qualities, but a > built-in GUI isn't one of them (no apologies to tkinter). > > So it would be interesting/nice to be able to open LC, add a button to a > stack, and put some python into the script of that button and have it just > work, with access to the rest of the LC stack/controls as usual. > > Obviously that's not possible, but how close can we come? I assume it would > be possible to write a shell command to trigger a python script, but that > seems complex and sub-optimal, especially when thinking about having to > bundle together all the bits and bobs from the LC UI to pass as arguments > to the Python script instead of having it able to just reference what it > needs on the fly. > > Anyway, wondering if anyone else has thought about this. > > gc > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 13:11:38 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Jul 2023 13:11:38 -0400 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: Well, I'm glad the lesson and tool exists and thanks for the link. On the negative side, I just found the Apple developer Xcode page that shows that Xcode 13minimum OS version is  macOS Big Sur 11.3 So, no more Mojave. Huge bummer for me. We have a macBook Air with Ventura (latest version), so I guess it is time to set up and get used to Xcode 15. Ugh, I have when OS vendors change things. We have enough changes we need to make in our own products we can't keep up with :-( On 7/17/2023 12:48 PM, matthias rebbe via use-livecode wrote: >> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? >> > see here > https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > > > >> November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 13:11:55 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 17 Jul 2023 12:11:55 -0500 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: <18964d65378.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> @Paul : Matthias' helper stack is a great gift to the community. I think the LC team even uses it. You'll never have to use Terminal or Xcode again. You can download the stack from the lesson he linked to, then scroll down to section 9 to see the setup. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 17, 2023 11:50:50 AM matthias rebbe via use-livecode wrote: >> >> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, >> etc, for using this new notarytool? If so, can anyone point me to it? > see here > https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > > > >> November 1 is still a ways off, but I find Apple Notarization so >> incomprehensible that once I get a set of steps to work, I document them >> and follow them verbatim and the thought of trying to figure out what this >> change means is daunting! From marksmithhfx at gmail.com Mon Jul 17 13:18:40 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 17 Jul 2023 18:18:40 +0100 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: Matthias, thanks for upgrading your lesson plan to work with the new signing tool. It’s an invaluable asset and assistance to the community of mobile app developers. Mark > On 17 Jul 2023, at 5:48 pm, matthias rebbe via use-livecode wrote: > >> >> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? >> > see here > https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > > > >> November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 13:25:30 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 17 Jul 2023 18:25:30 +0100 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: <4CACAABE-BC41-4E31-AA81-39C2E540AB32@gmail.com> Hi Paul, my sentiments exactly. I also shudder at having to change, modify or upgrade any aspect of the development environment because, like a set of dominoes, once you change one thing you are pretty much committed to having to upgrade and change everything else as well. Its an unfortunate aspect of developing in the modern computer age but tools like Matthias’s MrSignNotarizeHelperV4 makes it a LOT less bumpy. I probably would have given up ages ago without it!! Mark > On 17 Jul 2023, at 6:11 pm, Paul Dupuis via use-livecode wrote: > > Well, I'm glad the lesson and tool exists and thanks for the link. > > On the negative side, I just found the Apple developer Xcode page that shows that Xcode 13minimum OS version is macOS Big Sur 11.3 > > So, no more Mojave. Huge bummer for me. > > We have a macBook Air with Ventura (latest version), so I guess it is time to set up and get used to Xcode 15. Ugh, I have when OS vendors change things. We have enough changes we need to make in our own products we can't keep up with :-( > > > > On 7/17/2023 12:48 PM, matthias rebbe via use-livecode wrote: >>> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? >>> >> see here >> https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up >> >> >> >>> November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 16:05:04 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 17 Jul 2023 15:05:04 -0500 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: > Maybe I do not understand it correctly? > ------------------------------------------------------------ > Hi Klaus, > > Thanks for contacting Google Play Developer Support. > > Google Play app search works across title, developer name, and app descriptions. > Your title should be unique and accessible, avoid common terms, and reinforce > what your app is about. > > Using common or generic words like "Puzzle" or "Sports" can often increase the > total number of potential search results, thus making your app more difficult to find. > Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect > the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). Interesting. The app that couldn't be found for me had an "@" sign in the name. So I agree that symbols or punctuation like hyphens may be the problem. Since their algorithm converts the search term, you could try putting the Google version in the description somewhere. You could put it way at the bottom of the description, just for reference. I very occasionally see titles like this: Sehen-Hören-Merken (Sehen - Hören - Merken) I wondered why but now I think I know. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Jul 17 16:44:45 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Jul 2023 20:44:45 +0000 Subject: Search for an app in Google Play Store In-Reply-To: <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> Message-ID: <1179EAF4-180E-4AE7-8942-8D96161C58E1@iotecdigital.com> That IS weird. Bob S > On Jul 17, 2023, at 1:05 PM, J. Landman Gay via use-livecode wrote: > > On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: >> Maybe I do not understand it correctly? >> ------------------------------------------------------------ >> Hi Klaus, >> Thanks for contacting Google Play Developer Support. >> Google Play app search works across title, developer name, and app descriptions. >> Your title should be unique and accessible, avoid common terms, and reinforce >> what your app is about. >> Using common or generic words like "Puzzle" or "Sports" can often increase the >> total number of potential search results, thus making your app more difficult to find. >> Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect >> the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). > > Interesting. The app that couldn't be found for me had an "@" sign in the name. So I agree that symbols or punctuation like hyphens may be the problem. > > Since their algorithm converts the search term, you could try putting the Google version in the description somewhere. You could put it way at the bottom of the description, just for reference. > > I very occasionally see titles like this: > Sehen-Hören-Merken (Sehen - Hören - Merken) > > I wondered why but now I think I know. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Jul 17 20:00:11 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 18 Jul 2023 00:00:11 +0000 Subject: sqlYoga question Message-ID: <738BAEAA-02A7-4FA9-BE79-0F23E89178EB@iotecdigital.com> Hi ll. I have a curious problem. I am trying to select only records with the highest value in an SQL table. I know the SQL to do it, but how to get sqlYoga to do it is a mystery to me. The actual SQL looks something like this: select * from files t1 where custid = '289' and fileversion = (select max(fileversion) from files t2 where t2.filename = t1.filename) I know I can do this in the native API, but the question is, how to do this in sqlYoga?? Bob S From marksmithhfx at gmail.com Tue Jul 18 06:59:41 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 11:59:41 +0100 Subject: tsneterr Message-ID: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> I received the following error: tsenterr (55) SSLWrite() returned error -9805 Anyone know what this means or where to lookup what it means? Thanks From klaus at major-k.de Tue Jul 18 07:03:32 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 13:03:32 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> Message-ID: Hi Jacque, > Am 17.07.2023 um 22:05 schrieb J. Landman Gay via use-livecode : > > On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: >> Maybe I do not understand it correctly? >> ------------------------------------------------------------ >> Hi Klaus, >> Thanks for contacting Google Play Developer Support. >> Google Play app search works across title, developer name, and app descriptions. >> Your title should be unique and accessible, avoid common terms, and reinforce >> what your app is about. >> Using common or generic words like "Puzzle" or "Sports" can often increase the >> total number of potential search results, thus making your app more difficult to find. >> Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect >> the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). > Interesting. The app that couldn't be found for me had an "@" sign in the name. So I agree that symbols or punctuation like hyphens may be the problem. yes, looks like... > Since their algorithm converts the search term, you could try putting the Google version in the description somewhere. You could put it way at the bottom of the description, just for reference. Do you mean in the description on the page in the Google Play Store? If yes, that will not make sense, since the problem is to find that page first! Chicken and egg problem... :-) If not, please explain. > I very occasionally see titles like this: > Sehen-Hören-Merken (Sehen - Hören - Merken) > > I wondered why but now I think I know. > > -- > Jacqueline Landman Gay Best Klaus -- 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 Tue Jul 18 07:27:58 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 18 Jul 2023 13:27:58 +0200 Subject: tsneterr In-Reply-To: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> Message-ID: <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> The error numbers in the brackets returned by tsNet are curl error numbers. And according to https://curl.se/libcurl/c/libcurl-errors.html it means there was a problem sending data to the peer. Searching further for Curl error 55 i found some causes 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server 2. Your or the remote compute could have incorrect time settings 3. wrong firewall settings on the remote system > Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : > > I received the following error: > > tsenterr (55) SSLWrite() returned error -9805 > > Anyone know what this means or where to lookup what it means? > > 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 marksmithhfx at gmail.com Tue Jul 18 08:20:37 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 13:20:37 +0100 Subject: tsneterr In-Reply-To: <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> Message-ID: <3C6E86B1-0033-4759-87B5-339A58AF8258@gmail.com> Thanks Matthias. I’ve bookmarked the curl page for future reference. That solves about 1/2 the problem. Too bad it is difficult to find any information on error code -9805. I’ll follow up with dropbox to see if they are issuing it and what it means. I checked the things you mentioned and none of them seemed to apply (I’m using http not ftp so that rules out #1, time settings have not changed on my end since forever, unlikely dropbox would change them either so that probably rules out #2, and I can’t speak to their firewall settings). Very helpful, so many thanks! PS I’ve noticed this error only since upgrading to LC10. I wonder if anything changed in LC that might be contributing? I’d go back to using 9.6.8 (I still have it installed) but since upgrading Xcode to be compatible I don’t have the old SDK available to test with. BTW, this is a question I’ve long wondered but never answered: is it possible to just have (or keep) the SDK files and not all of Xcode? That would sure make life easier space wise. Mark > On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode wrote: > > The error numbers in the brackets returned by tsNet are curl error numbers. > And according to > https://curl.se/libcurl/c/libcurl-errors.html > > it means there was a problem sending data to the peer. > > Searching further for Curl error 55 i found some causes > > 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server > 2. Your or the remote compute could have incorrect time settings > 3. wrong firewall settings on the remote system > > >> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >> >> I received the following error: >> >> tsenterr (55) SSLWrite() returned error -9805 >> >> Anyone know what this means or where to lookup what it means? >> >> Thanks >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Jul 18 08:33:07 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 14:33:07 +0200 Subject: permanency of an unsigned Android app on the phone? Message-ID: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> Hi all, if I "Do not sign" my Android app and let someone install the app via Google Drive, will the app cease to work at some point like iOS apps do after 90 days (I think)? Thanks for any hint! 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 Jul 18 08:49:25 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 13:49:25 +0100 Subject: tsneterr In-Reply-To: <3C6E86B1-0033-4759-87B5-339A58AF8258@gmail.com> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> <3C6E86B1-0033-4759-87B5-339A58AF8258@gmail.com> Message-ID: <5A92DDC7-32BF-4827-B9AD-F8EFD7BF416E@gmail.com> Here is another timing issue I hadn’t thought of. My upload has recently passed the 1/2 mb size and this may cause a timeout of some sort on the receiving end if it has grown too big?? I don’t think 1/2 mb on DB would be a problem (I have 2 TB of storage, with 25% still free) but maybe when combined with a slow transfer rate? Anyway, I’ve sent a msg to DB so will see what they come back with. Mark > On 18 Jul 2023, at 1:20 pm, Mark Smith wrote: > > Thanks Matthias. I’ve bookmarked the curl page for future reference. That solves about 1/2 the problem. Too bad it is difficult to find any information on error code -9805. I’ll follow up with dropbox to see if they are issuing it and what it means. I checked the things you mentioned and none of them seemed to apply (I’m using http not ftp so that rules out #1, time settings have not changed on my end since forever, unlikely dropbox would change them either so that probably rules out #2, and I can’t speak to their firewall settings). Very helpful, so many thanks! > > PS I’ve noticed this error only since upgrading to LC10. I wonder if anything changed in LC that might be contributing? I’d go back to using 9.6.8 (I still have it installed) but since upgrading Xcode to be compatible I don’t have the old SDK available to test with. BTW, this is a question I’ve long wondered but never answered: is it possible to just have (or keep) the SDK files and not all of Xcode? That would sure make life easier space wise. > > Mark > >> On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode wrote: >> >> The error numbers in the brackets returned by tsNet are curl error numbers. >> And according to >> https://curl.se/libcurl/c/libcurl-errors.html >> >> it means there was a problem sending data to the peer. >> >> Searching further for Curl error 55 i found some causes >> >> 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server >> 2. Your or the remote compute could have incorrect time settings >> 3. wrong firewall settings on the remote system >> >> >>> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >>> >>> I received the following error: >>> >>> tsenterr (55) SSLWrite() returned error -9805 >>> >>> Anyone know what this means or where to lookup what it means? >>> >>> Thanks >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jul 18 11:12:16 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 10:12:16 -0500 Subject: permanency of an unsigned Android app on the phone? In-Reply-To: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> References: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> Message-ID: <189698f2480.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> No, they'll work indefinitely. Depending on the Android version the user may need to bypass a scary warning, accept some permissions, and turn on the ability to download from unknown sources in system settings. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 18, 2023 7:34:28 AM Klaus major-k via use-livecode wrote: > Hi all, > > if I "Do not sign" my Android app and let someone install > the app via Google Drive, will the app cease to work at > some point like iOS apps do after 90 days (I think)? > > Thanks for any hint! > > > 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 Jul 18 11:22:01 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 17:22:01 +0200 Subject: permanency of an unsigned Android app on the phone? In-Reply-To: <189698f2480.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> <189698f2480.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <3F25D43F-A243-40E6-AE09-519B79F90980@major-k.de> Hi Jacques, > Am 18.07.2023 um 17:12 schrieb J. Landman Gay via use-livecode : > > No, they'll work indefinitely. ah, thank you, that's good news! :-) > Depending on the Android version the user may need to bypass a scary warning, > accept some permissions, and turn on the ability to download from unknown sources in system settings. Yes, sure. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com 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 Tue Jul 18 11:27:22 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 10:27:22 -0500 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> Message-ID: <189699cf790.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Google said it searches the description as well as the title and author, so if you put their modified string into the description their bot should find it. You could even do something like this: Search Ref: Sehen - Hren - Merken That is the modified string Google uses for search. It adds spaces around the hyphens. If you don't want to do that, you could just edit the title to include the spaces. I'm not sure if you can change the title without resubmitting the app but you could try. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 18, 2023 6:04:53 AM Klaus major-k via use-livecode wrote: > Hi Jacque, > >> Am 17.07.2023 um 22:05 schrieb J. Landman Gay via use-livecode >> : >> >> On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: >>> Maybe I do not understand it correctly? >>> ------------------------------------------------------------ >>> Hi Klaus, >>> Thanks for contacting Google Play Developer Support. >>> Google Play app search works across title, developer name, and app >>> descriptions. >>> Your title should be unique and accessible, avoid common terms, and reinforce >>> what your app is about. >>> Using common or generic words like "Puzzle" or "Sports" can often increase the >>> total number of potential search results, thus making your app more >>> difficult to find. >>> Using the search phrase Sehen-Hren-Merken forces our search engine to >>> autocorrect >>> the search term and return results as if the search term were "Sehen - >>> Hren - Merken" (in quotes). >> Interesting. The app that couldn't be found for me had an "@" sign in the >> name. So I agree that symbols or punctuation like hyphens may be the problem. > > yes, looks like... > >> Since their algorithm converts the search term, you could try putting the >> Google version in the description somewhere. You could put it way at the >> bottom of the description, just for reference. > > Do you mean in the description on the page in the Google Play Store? > If yes, that will not make sense, since the problem is to find that page first! > Chicken and egg problem... :-) > > If not, please explain. > >> I very occasionally see titles like this: >> Sehen-Hren-Merken (Sehen - Hren - Merken) >> >> I wondered why but now I think I know. >> >> -- >> Jacqueline Landman Gay > > 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 marksmithhfx at gmail.com Tue Jul 18 11:50:09 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 16:50:09 +0100 Subject: tsneterr In-Reply-To: <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> Message-ID: <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> Hi Matthias, First let me thank you for your previous response. In response to my question about error -9805 dropbox replied: The error you posted shows some platform specific error. Dropbox doesn't respond with any similar error. You have to read your environment documentation for more info. It seems, according to the method name, the trouble is related to SSL tunneling work. Does your environment support TLSv1.2? The method name is SSLWrite(). Apple says the method has been deprecated since iOS13, I am running 15.6. Note, this is a relatively new occurrence in the app… I think I’ve seen it maybe 4 times since June 21 (dated screen shots) but a lot changed around then. I upgraded to LC10, swapped Xcode, changed the SDK, god knows what else possibly iOS (I can’t remember). So it’s very difficult to point a finger at what has changed to cause this. The only other error to pop up was (56) broken pipe which, come to think of it, might be related? Oh, other bit of trivia… I usually just send again (after a few steps to re-enable uploading) and it works fine. So it’s very sporadic. I use the app maybe 10-15 times a day and have seen this error maybe 4 times in the last month. Thanks, Mark > On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode wrote: > > The error numbers in the brackets returned by tsNet are curl error numbers. > And according to > https://curl.se/libcurl/c/libcurl-errors.html > > it means there was a problem sending data to the peer. > > Searching further for Curl error 55 i found some causes > > 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server > 2. Your or the remote compute could have incorrect time settings > 3. wrong firewall settings on the remote system > > >> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >> >> I received the following error: >> >> tsenterr (55) SSLWrite() returned error -9805 >> >> Anyone know what this means or where to lookup what it means? >> >> Thanks >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Jul 18 14:44:25 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 18 Jul 2023 20:44:25 +0200 Subject: tsneterr In-Reply-To: <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> Message-ID: <03CF6807-0D4C-4EED-8EB9-9A2637B440DD@m-r-d.de> Hi Mark, it seems error -9805 is an error which is returned by iOS. I just searched for error 9805 and found this page here with some open source code from Apple. https://opensource.apple.com/source/libsecurity_ssl/libsecurity_ssl-36800/lib/SecureTransport.h There is the following line errSSLClosedGraceful = -9805, /* connection closed gracefully */ Anyway, maybe someone from LC or maybe even Charles Warwick, the author of the tsNet external, could chime in. Regards, Matthias > Am 18.07.2023 um 17:50 schrieb Mark Smith : > > Hi Matthias, > > First let me thank you for your previous response. In response to my question about error -9805 dropbox replied: > > The error you posted shows some platform specific error. Dropbox doesn't respond with any similar error. You have to read your environment documentation for more info. It seems, according to the method name, the trouble is related to SSL tunneling work. Does your environment support TLSv1.2? > > The method name is SSLWrite(). Apple says the method has been deprecated since iOS13, I am running 15.6. Note, this is a relatively new occurrence in the app… I think I’ve seen it maybe 4 times since June 21 (dated screen shots) but a lot changed around then. I upgraded to LC10, swapped Xcode, changed the SDK, god knows what else possibly iOS (I can’t remember). So it’s very difficult to point a finger at what has changed to cause this. The only other error to pop up was (56) broken pipe which, come to think of it, might be related? Oh, other bit of trivia… I usually just send again (after a few steps to re-enable uploading) and it works fine. So it’s very sporadic. I use the app maybe 10-15 times a day and have seen this error maybe 4 times in the last month. > > Thanks, > Mark > >> On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode > wrote: >> >> The error numbers in the brackets returned by tsNet are curl error numbers. >> And according to >> https://curl.se/libcurl/c/libcurl-errors.html >> >> it means there was a problem sending data to the peer. >> >> Searching further for Curl error 55 i found some causes >> >> 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server >> 2. Your or the remote compute could have incorrect time settings >> 3. wrong firewall settings on the remote system >> >> >>> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >>> >>> I received the following error: >>> >>> tsenterr (55) SSLWrite() returned error -9805 >>> >>> Anyone know what this means or where to lookup what it means? >>> >>> Thanks >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jul 18 14:57:19 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 13:57:19 -0500 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: On 7/17/23 5:02 AM, Klaus major-k via use-livecode wrote: > Since PDFs are not accessible via "mobilepickmedia" are there ANY other ways to add > some PDFs later without having to download them from some URL? I tried several things but I couldn't get any of them to work. You can write to and read from the mobile documents folder, but if you put a file in there manually it isn't seen by the app. I use a very good file manager on Android called Solid Explorer and it does see a file I copy to documents, but my mobile app doesn't list it or confirm anything is there. If you want to try, download a good file manager; Google or Samsung's default Files app won't work. Then go to the app's document folder, which is located here: /Android/data/com.your.appID/ You may have to give the file manager permissions to open those folders, they're locked down in recent versions of Android. Solid Explorer will ask you to allow it. We really need LC to give us access to the public documents folder. I think that's the only way to do what you (and I) want. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From marksmithhfx at gmail.com Tue Jul 18 15:16:07 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 20:16:07 +0100 Subject: tsneterr In-Reply-To: <03CF6807-0D4C-4EED-8EB9-9A2637B440DD@m-r-d.de> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> <03CF6807-0D4C-4EED-8EB9-9A2637B440DD@m-r-d.de> Message-ID: Thanks Matthias. I find it strange that they would report “connection closed gracefully” as an error. But as I noted previously, this just started happening about a month ago so I am going on the assumption that it’s not a good thing and will keep looking for an explanation. If I can think of way to phrase it, I may even try the mothership. At the moment, however, I have no way to make this happen reliably so that’s not much for them to go on. Mark > On 18 Jul 2023, at 7:44 pm, matthias rebbe via use-livecode wrote: > > Hi Mark, > it seems error -9805 is an error which is returned by iOS. > > I just searched for error 9805 and found this page here with some open source code from Apple. > https://opensource.apple.com/source/libsecurity_ssl/libsecurity_ssl-36800/lib/SecureTransport.h > > There is the following line > errSSLClosedGraceful = -9805, /* connection closed gracefully */ > > Anyway, maybe someone from LC or maybe even Charles Warwick, the author of the tsNet external, could chime in. > > Regards, > Matthias > > >> Am 18.07.2023 um 17:50 schrieb Mark Smith >: >> >> Hi Matthias, >> >> First let me thank you for your previous response. In response to my question about error -9805 dropbox replied: >> >> The error you posted shows some platform specific error. Dropbox doesn't respond with any similar error. You have to read your environment documentation for more info. It seems, according to the method name, the trouble is related to SSL tunneling work. Does your environment support TLSv1.2? >> >> The method name is SSLWrite(). Apple says the method has been deprecated since iOS13, I am running 15.6. Note, this is a relatively new occurrence in the app… I think I’ve seen it maybe 4 times since June 21 (dated screen shots) but a lot changed around then. I upgraded to LC10, swapped Xcode, changed the SDK, god knows what else possibly iOS (I can’t remember). So it’s very difficult to point a finger at what has changed to cause this. The only other error to pop up was (56) broken pipe which, come to think of it, might be related? Oh, other bit of trivia… I usually just send again (after a few steps to re-enable uploading) and it works fine. So it’s very sporadic. I use the app maybe 10-15 times a day and have seen this error maybe 4 times in the last month. >> >> Thanks, >> Mark >> >>> On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode >> wrote: >>> >>> The error numbers in the brackets returned by tsNet are curl error numbers. >>> And according to >>> https://curl.se/libcurl/c/libcurl-errors.html >>> >>> it means there was a problem sending data to the peer. >>> >>> Searching further for Curl error 55 i found some causes >>> >>> 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server >>> 2. Your or the remote compute could have incorrect time settings >>> 3. wrong firewall settings on the remote system >>> >>> >>>> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >>>> >>>> I received the following error: >>>> >>>> tsenterr (55) SSLWrite() returned error -9805 >>>> >>>> Anyone know what this means or where to lookup what it means? >>>> >>>> Thanks >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Jul 18 15:30:59 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 21:30:59 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi Jacque, > Am 18.07.2023 um 20:57 schrieb J. Landman Gay via use-livecode : > > On 7/17/23 5:02 AM, Klaus major-k via use-livecode wrote: >> Since PDFs are not accessible via "mobilepickmedia" are there ANY other ways to add >> some PDFs later without having to download them from some URL? > > I tried several things but I couldn't get any of them to work. You can write to and read from the mobile documents folder, but if you put a file in there manually it isn't seen by the app. I use a very good file manager on Android called Solid Explorer and it does see a file I copy to documents, but my mobile app doesn't list it or confirm anything is there. > If you want to try, download a good file manager; Google or Samsung's default Files app won't work. Then go to the app's document folder, which is located here: > /Android/data/com.your.appID/ > You may have to give the file manager permissions to open those folders, they're locked down in recent versions of Android. Solid Explorer will ask you to allow it. thank you, will install and try Solid Explorer! > We really need LC to give us access to the public documents folder. I think that's the only way to do what you (and I) want. Yes, definitively! The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps where the user needs to add more files. Since this is an app for my personal pleasure, I will create a way to "sync" local files with files on my server. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Tue Jul 18 15:47:38 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 21:47:38 +0200 Subject: missing folders in resource folder Message-ID: <83E7E2DB-6EBF-4250-B5ED-1591481CEB07@major-k.de> Hi friends, I added a folder "daten" in the "Copy files" tab in the "Standalone Application settings". Inside of this folder are five more folders and two of them are EMPTY. The two empty folders do NOT appear in the Android runtime if I do: ... put specialfolderpath("resources") & "/daten" into tFolder put folders(tFolder) into fld xyz ## I only get the NOT empty folders in the field!? ... Is this a feature or a bug? 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 Tue Jul 18 17:49:03 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 16:49:03 -0500 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: <03ecff9f-02b6-cf90-c7a0-127221bfe7f8@hyperactivesw.com> On 7/18/23 2:30 PM, Klaus major-k via use-livecode wrote: > thank you, will install and try Solid Explorer! I'm very impressed with it, it can do so many things. You can link to any cloud storage and access files as though they were local on the device. It can unzip files, create collections of favorite folders, play audio files, and display text and images. Like Finder, you can drag files from one place to another to either copy or move them. It can access your computer or another device on the network via FTP. It gets frequent updates. There's too much to list here, but it's been my file manager for years and the first app I install on a new device. Disclaimer: I'm not involved with it at all, I just like it a lot. This kind of file management is what I miss most about iOS. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jul 19 16:53:38 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 19 Jul 2023 15:53:38 -0500 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> Message-ID: <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> @Matthias: does the upgraded WinSignHelper work with the new hardware eTokens? Those are required now. If so, do the instructions change on how to use your tool? On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: > i've upgraded my free tool WinSignHelper. > > For those who do not know what WinSignHelper is... > It's a GUI for osslsigncode. Osslsigncode is command line tool that can do the Authenticode signing and timestamping. With it you can code sign Windows applications using an appropriate code signing certificate. > > You just drag a folder with your Windows application into WinSignHelper and it signs all components of your standalone (.exe and .dll). > WinSignHelper Help section gives enough information about how to install osslsigncode. > > So if anyone is interested in testing.... > > The version is notarized and is an universal build for X86 and Arm > > Zip > https://dl.qck.nu/?dl=WinSignHelper_universal.zip > > DMG > https://dl.qck.nu/?dl=WinSignHelper_universal.dmg > > > Hope this is of help for one or the other. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Wed Jul 19 17:18:15 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 19 Jul 2023 23:18:15 +0200 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> Message-ID: <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> To be honest, i do not know. I am currently using a cloud code signing certificate which i can only use on Windows. I've chosen the cloud version because of the price, but later i noticed that it seems that those cloud certificates cannot be used on macOS. Or maybe they can, but i do not know how, especially with ossl signcode WinSignHelper uses ossl signcode and currently that tool needs a path to a certificate Do you know where the certificate is stored with the eToken solution? Is it stored also on the eToken or anywhere else on the Mac? If you have the certificate as a physical file it maybe could be possible to select that file in the WinSignHelper prefs. But as i alread wrote, i really don't know exactly. I am currently thinking of purchasing a 2nd certificate as eToken solution, but there is not yet a decision made, if i should spent money for this, as i have a working cloud certificate which expires in 3 years. Regards, Matthias > Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode : > > @Matthias: does the upgraded WinSignHelper work with the new hardware eTokens? Those are required now. > > If so, do the instructions change on how to use your tool? > > > On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >> i've upgraded my free tool WinSignHelper. >> For those who do not know what WinSignHelper is... >> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do the Authenticode signing and timestamping. With it you can code sign Windows applications using an appropriate code signing certificate. >> You just drag a folder with your Windows application into WinSignHelper and it signs all components of your standalone (.exe and .dll). >> WinSignHelper Help section gives enough information about how to install osslsigncode. >> So if anyone is interested in testing.... >> The version is notarized and is an universal build for X86 and Arm >> Zip >> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >> DMG >> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >> Hope this is of help for one or the other. > > > -- > 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 klaus at major-k.de Thu Jul 20 07:00:17 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 13:00:17 +0200 Subject: missing folders in resource folder In-Reply-To: <83E7E2DB-6EBF-4250-B5ED-1591481CEB07@major-k.de> References: <83E7E2DB-6EBF-4250-B5ED-1591481CEB07@major-k.de> Message-ID: <1083FE71-A95E-4CCC-8BBA-C42F29A5C8B9@major-k.de> FYI I added a bug report for this: > Am 18.07.2023 um 21:47 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I added a folder "daten" in the "Copy files" tab in the "Standalone Application settings". > Inside of this folder are five more folders and two of them are EMPTY. > > The two empty folders do NOT appear in the Android runtime if I do: > ... > put specialfolderpath("resources") & "/daten" into tFolder > put folders(tFolder) into fld xyz > ## I only get the NOT empty folders in the field!? > ... > Is this a feature or a bug? -- 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 Jul 20 09:58:31 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 15:58:31 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi all, > Am 18.07.2023 um 21:30 schrieb Klaus major-k via use-livecode : > ... >> We really need LC to give us access to the public documents folder. > The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps > where the user needs to add more files. FYI: there is a feature request for this, please add a comment if you like to have this in the next version: I see that other apps offer something like this, so it IS in fact possible somehow... 8-) 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 Jul 20 11:21:21 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 Jul 2023 10:21:21 -0500 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> Message-ID: <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Thanks Matthias. I've been reading about it and I think the cert is stored on the machine but it is tied to that computer and not exportable. If you get a new computer you need to buy a new certificate. So I don't think I'll experiment, and we'll just do the whole thing on the Windows box. The sad part is that if we'd renewed just a couple of weeks earlier we'd have been within the cutoff date and could have purchased the old type of certificate. If anyone else has used the new token hardware I'd be grateful for any tips or suggestions. This is all new to me. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 19, 2023 4:20:23 PM matthias rebbe via use-livecode wrote: > To be honest, i do not know. > I am currently using a cloud code signing certificate which i can only use > on Windows. > I've chosen the cloud version because of the price, but later i noticed > that it seems that those cloud certificates cannot be used on macOS. > Or maybe they can, but i do not know how, especially with ossl signcode > WinSignHelper uses ossl signcode and currently that tool needs a path to a > certificate > > Do you know where the certificate is stored with the eToken solution? Is it > stored also on the eToken or anywhere else on the Mac? > If you have the certificate as a physical file it maybe could be possible > to select that file in the WinSignHelper prefs. > > But as i alread wrote, i really don't know exactly. > > I am currently thinking of purchasing a 2nd certificate as eToken solution, > but there is not yet a decision made, if i should spent money for this, as > i have a working cloud certificate which expires in 3 years. > > Regards, > Matthias > >> Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode >> : >> >> @Matthias: does the upgraded WinSignHelper work with the new hardware >> eTokens? Those are required now. >> >> If so, do the instructions change on how to use your tool? >> >> >> On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >>> i've upgraded my free tool WinSignHelper. >>> For those who do not know what WinSignHelper is... >>> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do >>> the Authenticode signing and timestamping. With it you can code sign >>> Windows applications using an appropriate code signing certificate. >>> You just drag a folder with your Windows application into WinSignHelper and >>> it signs all components of your standalone (.exe and .dll). >>> WinSignHelper Help section gives enough information about how to install >>> osslsigncode. >>> So if anyone is interested in testing.... >>> The version is notarized and is an universal build for X86 and Arm >>> Zip >>> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >>> DMG >>> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >>> Hope this is of help for one or the other. >> >> >> -- >> 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 klaus at major-k.de Thu Jul 20 12:14:21 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 18:14:21 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi all, > Am 20.07.2023 um 15:58 schrieb Klaus major-k via use-livecode : > Hi all, > >> Am 18.07.2023 um 21:30 schrieb Klaus major-k via use-livecode : >> ... >>> We really need LC to give us access to the public documents folder. >> The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps >> where the user needs to add more files. > FYI: there is a feature request for this, please add a comment if you like to have this in the next version: > > I see that other apps offer something like this, so it IS in fact possible somehow... 8-) someone from a german bass player forum sent me an screenshot of the app "MobileSheets": This appears after clicking the PLUS sign (or "Import" button?) in that app, which looks like a "regular" "Open..." dialog: So I dare to naively ask: Why can't LC offer something like this? 8-) 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 Jul 20 12:17:17 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 18:17:17 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Am 20.07.2023 um 18:14 schrieb Klaus major-k via use-livecode : > > Hi all, > >> Am 20.07.2023 um 15:58 schrieb Klaus major-k via use-livecode : >> Hi all, >> >>> Am 18.07.2023 um 21:30 schrieb Klaus major-k via use-livecode : >>> ... >>>> We really need LC to give us access to the public documents folder. >>> The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps >>> where the user needs to add more files. >> FYI: there is a feature request for this, please add a comment if you like to have this in the next version: >> >> I see that other apps offer something like this, so it IS in fact possible somehow... 8-) > > someone from a german bass player forum sent me an screenshot of the app "MobileSheets": > > > This appears after clicking the PLUS sign (or "Import" button?) in that app, which looks like a "regular" "Open..." dialog: > Received another screenshot, this is from the app "Songbook Pro": -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From gcanyon at gmail.com Thu Jul 20 15:33:31 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 20 Jul 2023 12:33:31 -0700 Subject: Has anyone experimented with using Python within LC? Message-ID: I've now figured out that calling a Python file from within LC is as easy as: put shell(quote & "" & quote && quote & "" & quote) Then whatever gets print()'ed in Python gets returned to LC. Has anyone done work this way and has ideas on best practices for some sort of 1. generate python code 2. write python code to a file 3. write data to a (separate?) file 4. call the code 5. process the results ...loop? gc From matthias_livecode_150811 at m-r-d.de Thu Jul 20 17:18:52 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 20 Jul 2023 23:18:52 +0200 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: > Am 20.07.2023 um 17:21 schrieb J. Landman Gay via use-livecode : > > Thanks Matthias. I've been reading about it and I think the cert is stored on the machine but it is tied to that computer and not exportable. > If you get a new computer you need to buy a new certificate. I don't think that is true. The new type of certificate has to be stored on a secure device. That's what the eToken is for. The private key is also stored on the eToken and the certificate and the private key cannot be exported. You should be able to use that token on multiple computers. You just have to install the eToken driver to an other computer and attach the eToken to it. This is what Trustzone is saying about it: "The token-based type of Standard Code Signing certificates can also be used on multiple computers. The same goes for token-based EV certificates. But no token-based certificate can ever be used simultaneously on two computers since the SafeNet token can only be plugged into one computer at a time." As i never had such eToken, i do not know, if the certificate and the private key can be accessed as files through Finder. And what extension do they have. I've read the osslsigncode can use also certificates and key files with .cem extension. So if the eToken contains such files, WinSignHelper could be slightly adjusted to work with the eToken. But that's just an assumption. Matthias > So I don't think I'll experiment, and we'll just do the whole thing on the Windows box. > > The sad part is that if we'd renewed just a couple of weeks earlier we'd have been within the cutoff date and could have purchased the old type of certificate. > Same here. I was about 5 days to late otherwise i could have ordered the olde type. > If anyone else has used the new token hardware I'd be grateful for any tips or suggestions. This is all new to me. I am using a cloud based OV certificate from Certum. I just need to install the Software SimplySign Desktop. The software "integrates" the certificate into Windows' certificate storage (or what ever this is called) after i logged in using that SimplySign Desktop software. Microsoft's signtool can then directly access the certificate. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 19, 2023 4:20:23 PM matthias rebbe via use-livecode wrote: > >> To be honest, i do not know. >> I am currently using a cloud code signing certificate which i can only use on Windows. >> I've chosen the cloud version because of the price, but later i noticed that it seems that those cloud certificates cannot be used on macOS. >> Or maybe they can, but i do not know how, especially with ossl signcode >> WinSignHelper uses ossl signcode and currently that tool needs a path to a certificate >> >> Do you know where the certificate is stored with the eToken solution? Is it stored also on the eToken or anywhere else on the Mac? >> If you have the certificate as a physical file it maybe could be possible to select that file in the WinSignHelper prefs. >> >> But as i alread wrote, i really don't know exactly. >> >> I am currently thinking of purchasing a 2nd certificate as eToken solution, but there is not yet a decision made, if i should spent money for this, as i have a working cloud certificate which expires in 3 years. >> >> Regards, >> Matthias >> >>> Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode : >>> >>> @Matthias: does the upgraded WinSignHelper work with the new hardware eTokens? Those are required now. >>> >>> If so, do the instructions change on how to use your tool? >>> >>> >>> On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >>>> i've upgraded my free tool WinSignHelper. >>>> For those who do not know what WinSignHelper is... >>>> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do the Authenticode signing and timestamping. With it you can code sign Windows applications using an appropriate code signing certificate. >>>> You just drag a folder with your Windows application into WinSignHelper and it signs all components of your standalone (.exe and .dll). >>>> WinSignHelper Help section gives enough information about how to install osslsigncode. >>>> So if anyone is interested in testing.... >>>> The version is notarized and is an universal build for X86 and Arm >>>> Zip >>>> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >>>> DMG >>>> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >>>> Hope this is of help for one or the other. >>> >>> >>> -- >>> 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 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 20 17:46:14 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 20 Jul 2023 17:46:14 -0400 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <000301d9bb53$9e35dcb0$daa19610$@net> Late to the game... I use the same method for PHP. I needed to batch minify html/js/css files. There is a great PHP script to do it. Batch it up with LC and one button did it all. There is a ton of open source useful PHP that can be integrated with ease to LC. I'll remember this if I need some Python in the future. Thanks Geoff. 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 Geoff Canyon via use-livecode Sent: Thursday, July 20, 2023 3:34 PM To: How to use LiveCode Cc: Geoff Canyon Subject: Has anyone experimented with using Python within LC? I've now figured out that calling a Python file from within LC is as easy as: put shell(quote & "" & quote && quote & "" & quote) Then whatever gets print()'ed in Python gets returned to LC. Has anyone done work this way and has ideas on best practices for some sort of 1. generate python code 2. write python code to a file 3. write data to a (separate?) file 4. call the code 5. process the results ...loop? gc _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 20 19:06:33 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 20 Jul 2023 23:06:33 +0000 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> Interesting. Ostensibly you could use low level file commands to create they python file? Or does the Python script need to be processed by Python first? Bob S > On Jul 20, 2023, at 12:33 PM, Geoff Canyon via use-livecode wrote: > > I've now figured out that calling a Python file from within LC is as easy > as: > > put shell(quote & "" & quote && quote & > "" & quote) > > Then whatever gets print()'ed in Python gets returned to LC. Has anyone > done work this way and has ideas on best practices for some sort of > > 1. generate python code > 2. write python code to a file > 3. write data to a (separate?) file > 4. call the code > 5. process the results > > ...loop? > > gc From ambassador at fourthworld.com Thu Jul 20 20:46:01 2023 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 21 Jul 2023 00:46:01 +0000 Subject: permanency of an unsigned Android app on the phone? Message-ID: <20230721004601.Horde.aP-Ql3HW-fSr7CTgL4AVx_6@hub.4wsys.com> J. Landman Gay jacque wrote: > Depending on the Android version the user may need to bypass > a scary warning, accept some permissions, and turn on the ability > to download from unknown sources in system settings   ...and after the app is installed then immediatel turn sideloading back off.   It's powerful.  And the bad guys know it.  Don't run with it turned on.   -- Richard Gaskin Fourth World System   From ambassador at fourthworld.com Thu Jul 20 20:52:58 2023 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 21 Jul 2023 00:52:58 +0000 Subject: What is your best practice for setting a script in a script? Message-ID: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> Paul Dupuis wrote: > So in the instances where you have a script that creates an object > and then sets the script of that object (example below), what is you > best practice for having the script in a script and still be readable?   Why?   Among other concerns (robustness, debugging, maintenance), setting the script of an object requires turning off script encryption.   Dick Kriesel wrote: > Hi, Paul. The best way to set the script may be not to; that is, instead > set the new objects behavior to a button that contains the readable script.   ^ this.   Simple, clean, with-the-grain.   Know the engine. Trust the engine. Use the engine.   --   Richard Gaskin Fourth World System   From gcanyon at gmail.com Thu Jul 20 21:20:35 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 20 Jul 2023 18:20:35 -0700 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> References: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> Message-ID: I just checked, and this in a stack script works perfectly: function pythonFile p put the filename of this stack into fp set the itemdel to "/" put the long seconds into fn replace "." with "_" in fn put "_temp.py" after fn put fn into item -1 of fp put p into url ("file:" & fp) return shell(quote & "" & quote && quote & fp & quote) end pythonFile In the real world you'd probably want to set up a single external file (or set of files? if performance is important and the files need to be used repeatedly?) and check to make sure you're not accidentally overwriting something. On Thu, Jul 20, 2023 at 4:07 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Interesting. Ostensibly you could use low level file commands to create > they python file? Or does the Python script need to be processed by Python > first? > > Bob S > > > > On Jul 20, 2023, at 12:33 PM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I've now figured out that calling a Python file from within LC is as easy > > as: > > > > put shell(quote & "" & quote && quote & > > "" & quote) > > > > Then whatever gets print()'ed in Python gets returned to LC. Has anyone > > done work this way and has ideas on best practices for some sort of > > > > 1. generate python code > > 2. write python code to a file > > 3. write data to a (separate?) file > > 4. call the code > > 5. process the results > > > > ...loop? > > > > gc > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 20 23:47:57 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 Jul 2023 22:47:57 -0500 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <189768fb5c8.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Very useful info, thank you. Especially the part about using the token on different machines. I was duped into believing everything I read on the internet. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 20, 2023 4:20:59 PM matthias rebbe via use-livecode wrote: >> Am 20.07.2023 um 17:21 schrieb J. Landman Gay via use-livecode >> : >> >> Thanks Matthias. I've been reading about it and I think the cert is stored >> on the machine but it is tied to that computer and not exportable. > > >> If you get a new computer you need to buy a new certificate. > I don't think that is true. The new type of certificate has to be stored on > a secure device. That's what the eToken is for. The private key is also > stored on the eToken and the certificate and the private key cannot be > exported. You should be able to use that token on multiple computers. You > just have to install the eToken driver to an other computer and attach the > eToken to it. > > This is what Trustzone is saying about it: > "The token-based type of Standard Code Signing certificates can also be > used on multiple computers. The same goes for token-based EV certificates. > But no token-based certificate can ever be used simultaneously on two > computers since the SafeNet token can only be plugged into one computer at > a time." > > As i never had such eToken, i do not know, if the certificate and the > private key can be accessed as files through Finder. And what extension do > they have. I've read the osslsigncode can use also certificates and key > files with .cem extension. > So if the eToken contains such files, WinSignHelper could be slightly > adjusted to work with the eToken. But that's just an assumption. > > Matthias > > >> So I don't think I'll experiment, and we'll just do the whole thing on the >> Windows box. >> >> The sad part is that if we'd renewed just a couple of weeks earlier we'd >> have been within the cutoff date and could have purchased the old type of >> certificate. >> > Same here. I was about 5 days to late otherwise i could have ordered the > olde type. > > >> If anyone else has used the new token hardware I'd be grateful for any tips >> or suggestions. This is all new to me. > > I am using a cloud based OV certificate from Certum. I just need to install > the Software SimplySign Desktop. The software "integrates" the certificate > into Windows' certificate storage (or what ever this is called) after i > logged in using that SimplySign Desktop software. > Microsoft's signtool can then directly access the certificate. > > >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On July 19, 2023 4:20:23 PM matthias rebbe via use-livecode >> wrote: >> >>> To be honest, i do not know. >>> I am currently using a cloud code signing certificate which i can only use >>> on Windows. >>> I've chosen the cloud version because of the price, but later i noticed >>> that it seems that those cloud certificates cannot be used on macOS. >>> Or maybe they can, but i do not know how, especially with ossl signcode >>> WinSignHelper uses ossl signcode and currently that tool needs a path to a >>> certificate >>> >>> Do you know where the certificate is stored with the eToken solution? Is it >>> stored also on the eToken or anywhere else on the Mac? >>> If you have the certificate as a physical file it maybe could be possible >>> to select that file in the WinSignHelper prefs. >>> >>> But as i alread wrote, i really don't know exactly. >>> >>> I am currently thinking of purchasing a 2nd certificate as eToken solution, >>> but there is not yet a decision made, if i should spent money for this, as >>> i have a working cloud certificate which expires in 3 years. >>> >>> Regards, >>> Matthias >>> >>>> Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode >>>> : >>>> >>>> @Matthias: does the upgraded WinSignHelper work with the new hardware >>>> eTokens? Those are required now. >>>> >>>> If so, do the instructions change on how to use your tool? >>>> >>>> >>>> On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >>>>> i've upgraded my free tool WinSignHelper. >>>>> For those who do not know what WinSignHelper is... >>>>> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do >>>>> the Authenticode signing and timestamping. With it you can code sign >>>>> Windows applications using an appropriate code signing certificate. >>>>> You just drag a folder with your Windows application into WinSignHelper and >>>>> it signs all components of your standalone (.exe and .dll). >>>>> WinSignHelper Help section gives enough information about how to install >>>>> osslsigncode. >>>>> So if anyone is interested in testing.... >>>>> The version is notarized and is an universal build for X86 and Arm >>>>> Zip >>>>> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >>>>> DMG >>>>> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >>>>> Hope this is of help for one or the other. >>>> >>>> >>>> -- >>>> 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 >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 20 23:59:59 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 Jul 2023 22:59:59 -0500 Subject: permanency of an unsigned Android app on the phone? In-Reply-To: <20230721004601.Horde.aP-Ql3HW-fSr7CTgL4AVx_6@hub.4wsys.com> References: <20230721004601.Horde.aP-Ql3HW-fSr7CTgL4AVx_6@hub.4wsys.com> Message-ID: <189769aba18.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On July 20, 2023 7:48:13 PM Richard Gaskin via use-livecode wrote: > J. Landman Gay jacque wrote: >> Depending on the Android version the user > may need to bypass >> a scary warning, accept some permissions, and turn on > the ability >> to download from unknown sources in system settings > > ...and after the app is installed then immediatel turn sideloading back off. > > It's powerful. And the bad guys know it. Don't run with it turned on. One nice thing about Android 13 (and I think 12?) is that it allows you to permit downloads by app, rather than toggling a global property. That way you don't need to turn on unknown sources in system settings. Of course, you can still get yourself in trouble if you give permissions to your browser and then binge download everything you see. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at gmail.com Fri Jul 21 03:48:56 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 21 Jul 2023 00:48:56 -0700 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> Message-ID: This stack script hacks in support for arbitrary parameters to be passed in easily. You can, of course, do the same by including functions in the python script, and then calling them in the shell statement. That's how I started this journey, but it requires escaping things to make them shell-compatible. This might be especially weird to do because of python's flexible handling of double and single quotes. This way the data can be passed in as you intend to use it, the only limitation being that it all starts as text. Still, it works a treat. Note: this doesn't check for file existence before writing them, although it seems unlikely that anyone would have files named e.g. 89914707287616_data.txt. Also, this doesn't re-use any files, so repeated calls quickly pile up. This is far from a usable function. The round-trip cost of doing things this way is maybe something like a tenth of a second(?) so this is likely only for when you have a lot of backend processing to do. local fnb function pythonFile p put the filename of this stack into fp set the itemdel to "/" if fnb is empty then put the long seconds into fnb replace "." with empty in fnb delete char 1 to 2 of fnb end if if paramCount() > 1 then put "exData = {}" & cr into fileHeader repeat with i = 2 to paramCount() add 1 to fnb put fnb & "_data.txt" into fn put fn into item -1 of fp put param(i) into url ("file:" & fp) put merge("with open('[[fp]]', 'r') as f:[[cr]]") after fileHeader put merge(" exData[ [[i - 2]] ] = f.read()[[cr]]") after fileHeader end repeat put fileHeader & cr before p end if add 1 to fnb put fnb & "_temp.py" into fn put fn into item -1 of fp put p into url ("file:" & fp) return shell(quote & "/Users/gcanyon/opt/anaconda3/bin/python" & quote && quote & fp & quote) end pythonFile On Thu, Jul 20, 2023 at 6:20 PM Geoff Canyon wrote: > I just checked, and this in a stack script works perfectly: > > function pythonFile p > put the filename of this stack into fp > set the itemdel to "/" > put the long seconds into fn > replace "." with "_" in fn > put "_temp.py" after fn > put fn into item -1 of fp > put p into url ("file:" & fp) > return shell(quote & "" & quote && quote & fp & quote) > end pythonFile > > In the real world you'd probably want to set up a single external file (or > set of files? if performance is important and the files need to be used > repeatedly?) and check to make sure you're not accidentally overwriting > something. > > On Thu, Jul 20, 2023 at 4:07 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Interesting. Ostensibly you could use low level file commands to create >> they python file? Or does the Python script need to be processed by Python >> first? >> >> Bob S >> >> >> > On Jul 20, 2023, at 12:33 PM, Geoff Canyon via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > I've now figured out that calling a Python file from within LC is as >> easy >> > as: >> > >> > put shell(quote & "" & quote && quote & >> > "" & quote) >> > >> > Then whatever gets print()'ed in Python gets returned to LC. Has anyone >> > done work this way and has ideas on best practices for some sort of >> > >> > 1. generate python code >> > 2. write python code to a file >> > 3. write data to a (separate?) file >> > 4. call the code >> > 5. process the results >> > >> > ...loop? >> > >> > gc >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Jul 21 11:20:27 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Jul 2023 15:20:27 +0000 Subject: What is your best practice for setting a script in a script? In-Reply-To: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> Message-ID: <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> I wanted to ask why as well. You can put all the scripts necessary in a card, and if you need to know the actual object the user interacted with use the target command. Eg. Local lTargetID On mouseUp Put the long id of the target into lTargetID /* Your script here */ End mouseUp Bob S > On Jul 20, 2023, at 5:52 PM, Richard Gaskin via use-livecode wrote: > > Paul Dupuis wrote: >> So in the instances where you have a script that creates an object >> and then sets the script of that object (example below), what is you >> best practice for having the script in a script and still be readable? > > Why? > > Among other concerns (robustness, debugging, maintenance), setting the script of an object requires turning off script encryption. > > Dick Kriesel wrote: >> > > Hi, Paul. The best way to set the script may be not to; that is, instead >> set the new object’s behavior to a button that contains the readable script. > > ^ this. > > Simple, clean, with-the-grain. > > Know the engine. > Trust the engine. > Use the engine. > > -- > Richard Gaskin > Fourth World System From paul at researchware.com Fri Jul 21 12:10:53 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 21 Jul 2023 12:10:53 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> Message-ID: <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> As some people on this list and the forums have explored in the past, I have a interest in creating a Livecode application (stack) entirely from a (text only) single script. So there are initially no Livecode objects to place a behavior script in. There are initially no buttons, fields, cards, stacks, or anything else. Yes, one of the values of Livecode is an interactive IDE for UI design (and refinement), but for this specific interest, it is all about creating the UI - in fact the whole app - from a single script. From craig at starfirelighting.com Fri Jul 21 13:16:08 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 21 Jul 2023 13:16:08 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> Message-ID: Paul. I assume you have a blueprint of what will become a stack with at least one card? And that stack will possibly contain other cards, controls, scripts and behaviors? But since all objects have properties, including scripts, and since LC has the “create” command, whatever you want to do seems straightforward, if not simple. You must have the IDE open to even start, of course, so you are already “in” LC. Why not just do it the old fashioned way? The end result will be a stack, correct? What is the advantage of not starting with a stack? Craig > On Jul 21, 2023, at 12:10 PM, Paul Dupuis via use-livecode wrote: > > As some people on this list and the forums have explored in the past, I have a interest in creating a Livecode application (stack) entirely from a (text only) single script. So there are initially no Livecode objects to place a behavior script in. There are initially no buttons, fields, cards, stacks, or anything else. > > Yes, one of the values of Livecode is an interactive IDE for UI design (and refinement), but for this specific interest, it is all about creating the UI - in fact the whole app - from a single script. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Jul 21 13:51:52 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 21 Jul 2023 10:51:52 -0700 Subject: What is your best practice for setting a script in a script? In-Reply-To: <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> Message-ID: Way back when (in the metacard era) I wrote code to create an XML representation of a stack, and build a copy of the stack from that XML file. Oh, I just checked and I still have a copy of the file. It almost certainly does not address all the nuances that have been added since then -- behaviors, widgets, and more -- but if you want a copy you're welcome to it. gc On Fri, Jul 21, 2023 at 9:12 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > As some people on this list and the forums have explored in the past, I > have a interest in creating a Livecode application (stack) entirely from > a (text only) single script. So there are initially no Livecode objects > to place a behavior script in. There are initially no buttons, fields, > cards, stacks, or anything else. > > Yes, one of the values of Livecode is an interactive IDE for UI design > (and refinement), but for this specific interest, it is all about > creating the UI - in fact the whole app - from a single script. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Fri Jul 21 17:01:15 2023 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 21 Jul 2023 21:01:15 +0000 Subject: Query Android Version Code In-Reply-To: References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> Message-ID: Does anyone know if there is a way to query the “Version Code” that you enter in the Application Settings screen? -Dan From bobsneidar at iotecdigital.com Fri Jul 21 19:40:58 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Jul 2023 23:40:58 +0000 Subject: Speed Improvements Message-ID: Hi all. I put a compiled version of Forms Generator 8 on a PC recently, and I would like to say that the speed improvements are very substantial from what I was experiencing in the past. SQL queries as well as file operation seem to be almost as fast as on my MacOS laptop. I would not hesitate to distribute a Windows app now, whereas before I would have been hard pressed. I will say that I streamlined my code to ensure I was not inadvertently re-querying for the same data, and the VM I am running it on has been migrated to another server, but even still I had tested on new PCs with SSD drives in the past and was getting disappointing results, whereas now I can hardly blink and a full query dataset is loaded and displayed. Kudos to the dev team! Bob S From prothero at earthlearningsolutions.org Fri Jul 21 20:02:24 2023 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Fri, 21 Jul 2023 17:02:24 -0700 Subject: Question re download timeout setting Message-ID: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Folks: Sorry for the trivial question, but.. I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. Could you direct me to a simple explanation about how to set a reasonable internet not connected message? Thanks, Bill put "https://"&theURL&"/test.html" into theURL put URL theURL into tOutput —if the request times out, the output is not received. if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful return true else return false end if From alex at tweedly.net Fri Jul 21 20:49:17 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 22 Jul 2023 01:49:17 +0100 Subject: Question re download timeout setting In-Reply-To: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: On 22/07/2023 01:02, prothero--- via use-livecode wrote: > Folks: > Sorry for the trivial question, but.. > I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. > > I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL command seems to hang forever. Ive looked for a way to set the timeout for an internet command, but. cant,. > > Could you direct me to a simple explanation about how to set a reasonable internet not connected message? > .... not thoroughly tested .... You should, I think, be able to do this using tsNetSetTimeouts. But I wouldn't :-) I'd do something like the following - I've tested some, but not all, failure cases, but haven't tested a successful url. > local sEventID > > -- neverhappens.com is a website - returns "Forbidden" > -- nevehapens.com isn't, so almost immediately returns "can't be reached" > -- I didn't test a properly working case :-) > > constant KURL = "http://neverhappens.com" > > on mouseup >    load url kURL with message "gotareply" >    send "timetocheck failed" to me in 10 seconds     -- or whatever > timeout you want >    put the result into sEventID > end mouseup > > on gotareply pURL, pURLStatus >    cancel sEventID >    timetocheck pURLStatus > end gotareply > > on timetocheck pWhat >    local tAnswer >    put "time to check" && pWhat &CR after msg >    if pWhat = "loaded" then >       put URL kURL into tAnswer >       if tAnswer contains "mycode" then >          -- Internet is good >          put "Internet is good" &CR after msg >       end if >    end if >    -- Internet problematic >    put "problem" &CR after msg >    if pWhat = "error" then put libUrlErrorData(kURL) &CR after msg > >    unload URL KURL > end timetocheck Alex. From alanstenhouse at hotmail.com Fri Jul 21 21:36:01 2023 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sat, 22 Jul 2023 11:06:01 +0930 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: Hi Geoff Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: on runPythonScript pScript put the tempname &".py" into tFile put pScript into URL ("binfile:" & tFile) put shell("" && tFile) into fld "output" end runPythonScript Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused... cheers Alan From bobsneidar at iotecdigital.com Fri Jul 21 22:09:04 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 22 Jul 2023 02:09:04 +0000 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Out of curiosity, what can be done in in Python that cannot be done in LC Script? Sent from my iPhone > On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode wrote: > > Hi Geoff > > Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: > > > on runPythonScript pScript > put the tempname &".py" into tFile > put pScript into URL ("binfile:" & tFile) > put shell("" && tFile) into fld "output" > end runPythonScript > > Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused... > > cheers > Alan > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 21 23:29:38 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 22 Jul 2023 03:29:38 +0000 Subject: Question re download timeout setting In-Reply-To: References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: Use sockets to test the connection. Open socket to If the result is not empty then… Close socket Sent from my iPhone > On Jul 21, 2023, at 17:49, Alex Tweedly via use-livecode wrote: > >  >> On 22/07/2023 01:02, prothero--- via use-livecode wrote: >> Folks: >> Sorry for the trivial question, but.. >> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >> >> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. >> >> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >> > .... not thoroughly tested .... > > You should, I think, be able to do this using tsNetSetTimeouts. But I wouldn't :-) > > I'd do something like the following - I've tested some, but not all, failure cases, but haven't tested a successful url. > > >> local sEventID >> >> -- neverhappens.com is a website - returns "Forbidden" >> -- nevehapens.com isn't, so almost immediately returns "can't be reached" >> -- I didn't test a properly working case :-) >> >> constant KURL = "http://neverhappens.com" >> >> on mouseup >> load url kURL with message "gotareply" >> send "timetocheck failed" to me in 10 seconds -- or whatever timeout you want >> put the result into sEventID >> end mouseup >> >> on gotareply pURL, pURLStatus >> cancel sEventID >> timetocheck pURLStatus >> end gotareply >> >> on timetocheck pWhat >> local tAnswer >> put "time to check" && pWhat &CR after msg >> if pWhat = "loaded" then >> put URL kURL into tAnswer >> if tAnswer contains "mycode" then >> -- Internet is good >> put "Internet is good" &CR after msg >> end if >> end if >> -- Internet problematic >> put "problem" &CR after msg >> if pWhat = "error" then put libUrlErrorData(kURL) &CR after msg >> >> unload URL KURL >> end timetocheck > > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sat Jul 22 07:30:38 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sat, 22 Jul 2023 13:30:38 +0200 Subject: Question re download timeout setting In-Reply-To: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> Hello Bill, since V8 or so tsNET external is included in any commercial/business license. Even put URL "ftp: or http: will be executed with tsNET by liburl. So in case you did not manually disabletsNET for your app, you could use tsNetSetTimeouts to set timeout values. By default tsNET does not limit the time a request could take and that might be the reason why the put URL takes forever. The Syntax looks like this tsNetSetTimeouts pDnsCacheTimeout, pRequestTimeoutMS, pConnectTimeoutMS, pAcceptTimeoutMS, pLowSpeedTime, pLowSpeedLimit The second parameter is responsible for the request timeout and has to be set in milliseconds. So for example tsNetSetTimeouts 30, 33000, 300000, 60000, 30, 1000 would set the request timeout to 33 seconds. The other values in my example are the default values. After the timeout the script continues and you could check if the put command returned the expected value. Regards, Matthias > Am 22.07.2023 um 02:02 schrieb prothero--- via use-livecode : > > Folks: > Sorry for the trivial question, but.. > I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. > > I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. > > Could you direct me to a simple explanation about how to set a reasonable internet not connected message? > > Thanks, > Bill > put "https://"&theURL&"/test.html" into theURL > > put URL theURL into tOutput —if the request times out, the output is not received. > > if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful > > return true > > else > > return false > > end if > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Sat Jul 22 07:45:00 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 22 Jul 2023 12:45:00 +0100 Subject: Question re download timeout setting In-Reply-To: References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: On 22/07/2023 04:29, Bob Sneidar via use-livecode wrote: > Use sockets to test the connection. > > Open socket to > If the result is not empty then > Close socket Hmmm - I have tried it but not got reliable results. According to the dictionary that won't work reliably. Dictionary says: > (4.5) The open socket command no longer blocks on DNS resolution. > > Instead, if resolution is required the command will return immediately > > and the DNS lookup will happen in the background. If resolution fails, > > then a socketError message is sent in the same was as if connection > > fails. > So if you need a DNS resolution, you'll get an empty result - and a later socketError message. Your suggested code takes the empty result as a sign things are working - when they may not be. (When I try to connect to a non existent host:port, I do get the empty result, but I don't seem to be getting the socketError messages. So there may be a bug in there - I'll try to track it down more closely, and if I can get anything reliable, submit a bug report). btw - livekode.com was my first attempt at a  "non-existent host" - and it does exist !! Alex. >> On Jul 21, 2023, at 17:49, Alex Tweedly via use-livecode wrote: >> >> >>> On 22/07/2023 01:02, prothero--- via use-livecode wrote: >>> Folks: >>> Sorry for the trivial question, but.. >>> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >>> >>> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL command seems to hang forever. Ive looked for a way to set the timeout for an internet command, but. cant,. >>> >>> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >>> >> .... not thoroughly tested .... >> >> You should, I think, be able to do this using tsNetSetTimeouts. But I wouldn't :-) >> >> I'd do something like the following - I've tested some, but not all, failure cases, but haven't tested a successful url. >> >> >>> local sEventID >>> >>> -- neverhappens.com is a website - returns "Forbidden" >>> -- nevehapens.com isn't, so almost immediately returns "can't be reached" >>> -- I didn't test a properly working case :-) >>> >>> constant KURL = "http://neverhappens.com" >>> >>> on mouseup >>> load url kURL with message "gotareply" >>> send "timetocheck failed" to me in 10 seconds -- or whatever timeout you want >>> put the result into sEventID >>> end mouseup >>> >>> on gotareply pURL, pURLStatus >>> cancel sEventID >>> timetocheck pURLStatus >>> end gotareply >>> >>> on timetocheck pWhat >>> local tAnswer >>> put "time to check" && pWhat &CR after msg >>> if pWhat = "loaded" then >>> put URL kURL into tAnswer >>> if tAnswer contains "mycode" then >>> -- Internet is good >>> put "Internet is good" &CR after msg >>> end if >>> end if >>> -- Internet problematic >>> put "problem" &CR after msg >>> if pWhat = "error" then put libUrlErrorData(kURL) &CR after msg >>> >>> unload URL KURL >>> end timetocheck >> >> Alex. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 22 10:50:33 2023 From: hakan at exformedia.se (Hakan@exformedia.se) Date: Sat, 22 Jul 2023 16:50:33 +0200 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> References: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Message-ID: <3281613D-8C64-49C3-B998-37ABA614E425@exformedia.se> Probably not much, but there are a lot of libraries that exist for python that you might want to use to save time. > 22 juli 2023 kl. 04:11 skrev Bob Sneidar via use-livecode : > > Out of curiosity, what can be done in in Python that cannot be done in LC Script? > > Sent from my iPhone > >> On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode wrote: >> >> Hi Geoff >> >> Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: >> >> >> on runPythonScript pScript >> put the tempname &".py" into tFile >> put pScript into URL ("binfile:" & tFile) >> put shell("" && tFile) into fld "output" >> end runPythonScript >> >> Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused... >> >> cheers >> Alan >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Sat Jul 22 10:55:43 2023 From: prothero at earthlearningsolutions.org (William Prothero) Date: Sat, 22 Jul 2023 07:55:43 -0700 Subject: Question re download timeout setting In-Reply-To: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> References: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> Message-ID: Matthias, I'll try it. Thanks so much for your help. Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Jul 22, 2023, at 4:32 AM, matthias rebbe via use-livecode wrote: > > Hello Bill, > > since V8 or so tsNET external is included in any commercial/business license. > Even put URL "ftp: or http: will be executed with tsNET by liburl. > > So in case you did not manually disabletsNET for your app, you could use tsNetSetTimeouts to set timeout values. > By default tsNET does not limit the time a request could take and that might be the reason why the put URL takes forever. > > The Syntax looks like this > tsNetSetTimeouts pDnsCacheTimeout, pRequestTimeoutMS, pConnectTimeoutMS, pAcceptTimeoutMS, pLowSpeedTime, pLowSpeedLimit > > The second parameter is responsible for the request timeout and has to be set in milliseconds. > > So for example > > tsNetSetTimeouts 30, 33000, 300000, 60000, 30, 1000 > > would set the request timeout to 33 seconds. The other values in my example are the default values. > > After the timeout the script continues and you could check if the put command returned the expected value. > > > > Regards, > Matthias > > > >> Am 22.07.2023 um 02:02 schrieb prothero--- via use-livecode : >> >> Folks: >> Sorry for the trivial question, but.. >> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >> >> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. >> >> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >> >> Thanks, >> Bill >> put "https://"&theURL&"/test.html" into theURL >> >> put URL theURL into tOutput —if the request times out, the output is not received. >> >> if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful >> >> return true >> >> else >> >> return false >> >> end if >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sat Jul 22 13:11:52 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 22 Jul 2023 10:11:52 -0700 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> References: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Message-ID: Both are turing complete, so there's technically nothing one can do that the other can't, but some examples: Suppose you want to generate prime numbers. In LiveCode you might write this algorithm: https://github.com/gcanyon/primelist Generating the primes up to 1,000,000 takes over 1.3 seconds on my M1 MacBook. In Python, using a less efficient algorithm, the same takes 0.3 seconds. Import the numpy library and use a more efficient algorithm like so: def prime6(upto=1000000): primes=arange(3,upto+1,2) isprime=ones((upto-1)//2,dtype=bool) for factor in primes[:int(sqrt(upto))//2]: if isprime[(factor-2)//2]: isprime[(factor*3-2)//2::factor]=0 return insert(primes[isprime],0,2) And you can get the same result in 0.002 seconds -- over 500 times faster. In LiveCode, if you want to handle large integer math, you write your own library, which takes a ton of time and work to optimize. I did this five years ago: https://github.com/gcanyon/bignum which enables this: on mouseUp repeat 1000 times put "1234567890" after x end repeat put the long seconds into T get bigTimes(x,x) put the long seconds - T into T put T && length(it) end mouseUp I worked hard to optimize that library, and I'm happy to say that runs in about 1.3 seconds. This runs in 0.0004 seconds: from time import perf_counter_ns from math import log10 n = 1234567890 for _ in range(999): n = n * 10**10 + 1234567890 start = perf_counter_ns() n2 = n*n end = perf_counter_ns() print((end - start)/10**9,log10(n2),n2%10**10) Python has numerous syntactic niceties. For example, if you want a function to return a fibonacci list, multiple assignments are nice: def fib(n): i = j = 1 R = [] for _ in range(n): R.append(i) i,j = j,i+j return(R) print(fib(5)) [1, 1, 2, 3, 5] And list comprehensions are wonderful. If you want a dictionary containing perfect squares for odd numbers: L = {i:i**2 for i in range(1,20) if i % 2 == 1} print(L) {1: 1, 3: 9, 5: 25, 7: 49, 9: 81, 11: 121, 13: 169, 15: 225, 17: 289, 19: 361} Obviously you could do that with a "step", but the if can be more complex than that. So reasons you might use Python include: 1. Efficient and convenient syntax 2. Speed 3. Access to vast libraries of code. gc On Fri, Jul 21, 2023 at 7:10 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Out of curiosity, what can be done in in Python that cannot be done in LC > Script? > > Sent from my iPhone > > > On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Geoff > > > > Sorry for not replying earlier but looks like you've got it sorted. I > did a bit on this years ago and am contemplating it again. Just looked for > my old stack and see this script for running a python script and putting > the output into the "output" fld: > > > > > > on runPythonScript pScript > > put the tempname &".py" into tFile > > put pScript into URL ("binfile:" & tFile) > > put shell("" && tFile) into fld "output" > > end runPythonScript > > > > Was starting to provide an interface for experiment parameters for the > scripts I was running (for some Turi ML classifications) but the project > paused... > > > > cheers > > Alan > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alanstenhouse at hotmail.com Sat Jul 22 20:02:11 2023 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 23 Jul 2023 09:32:11 +0930 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: :-) For example, interfacing to machine learning (& associated) libraries for creating + running ML models (in my test case). > On 23 Jul 2023, at 1:30 am, use-livecode-request at lists.runrev.com wrote: > > Probably not much, but there are a lot of libraries that exist for python that you might want to use to save time. > >> 22 juli 2023 kl. 04:11 skrev Bob Sneidar via use-livecode : >> >> ?Out of curiosity, what can be done in in Python that cannot be done in LC Script? From alex at tweedly.net Sat Jul 22 20:18:30 2023 From: alex at tweedly.net (Tweedly) Date: Sun, 23 Jul 2023 01:18:30 +0100 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <38FA655A-8DBC-45CF-B787-F80BBA515600@tweedly.net> > On 22 Jul 2023, at 18:13, Geoff Canyon via use-livecode wrote: > > Both are turing complete, so there's technically nothing one can do that > the other can't, but some examples: > Technically, that’s not correct. Simply being Turing complete doesn’t mean it can do everything you might want to do. Things Python can do that LCS can’t would include: - calling foreign language functions - threads - raw sockets - multicast - ipv6 - and many many more …. Alex. From tom at makeshyft.com Sun Jul 23 02:21:37 2023 From: tom at makeshyft.com (Tom Glod) Date: Sun, 23 Jul 2023 02:21:37 -0400 Subject: Crazy question: is it possible/reasonable to use Python in LC? In-Reply-To: References: Message-ID: One way to do it would be running python "service" executable, and you send it the code via socket to execute. In python the "do" equivalent is "exec()" ... although obviously the service will need access to the data that is involved with the code. Then you return the result to lc in whatever way works best. In theory. On Mon, Jul 17, 2023 at 12:57 PM Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > "do ... as python" ?? > > On 13/07/2023 21:03, Geoff Canyon via use-livecode wrote: > > I've been playing with Python, and it has a lot of nice qualities, but a > > built-in GUI isn't one of them (no apologies to tkinter). > > > > So it would be interesting/nice to be able to open LC, add a button to a > > stack, and put some python into the script of that button and have it > just > > work, with access to the rest of the LC stack/controls as usual. > > > > Obviously that's not possible, but how close can we come? I assume it > would > > be possible to write a shell command to trigger a python script, but that > > seems complex and sub-optimal, especially when thinking about having to > > bundle together all the bits and bobs from the LC UI to pass as arguments > > to the Python script instead of having it able to just reference what it > > needs on the fly. > > > > Anyway, wondering if anyone else has thought about this. > > > > gc > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 24 10:03:25 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 24 Jul 2023 15:03:25 +0100 Subject: Question re download timeout setting In-Reply-To: References: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> Message-ID: <06159767-1A33-4BD3-9420-5E83C20FCD3B@gmail.com> Hi William, This is a long shot, but in case it inspires a solution, I do something like the following to upload and download files to dropbox (which I think is similar to what Matthias is suggesting as well). put "/todoitems.sqlite" into pPath -- the path to the file on server, in this case dropbox (equivalent to your put “https…”?) tsNetSetTimeouts 20,0,20000,60000,20,1000 -- establish a 20 second timeout (and also a slow response timeout) dropBoxDownload pAccessToken, pPath — if successful, the file is copied into the "it” variable (equiv to your put URL theURL into tOutput?) except output goes to “it” instead of tOutput put the result into tResult — if unsuccessful, tResult holds the error code from tsNet (I think this is dropBoxDownloads doing, but maybe something equiv is possible?) see below... if tResult is not empty then -- the dload did not work, do whatever you need to respond to a connection failure else put it into URL ("binfile:"&tTargetFile) -- write the data to disk end if *Important: If writing to a url container fails, an error is returned in the result. For example: local tResult put the result into tResult > On 22 Jul 2023, at 3:55 pm, William Prothero via use-livecode wrote: > > Matthias, > I'll try it. > Thanks so much for your help. > Bill > > William A. Prothero, PhD > Prof Emeritus, Dept of Earth Science > University of California, Santa Barbara > >> On Jul 22, 2023, at 4:32 AM, matthias rebbe via use-livecode wrote: >> >> Hello Bill, >> >> since V8 or so tsNET external is included in any commercial/business license. >> Even put URL "ftp: or http: will be executed with tsNET by liburl. >> >> So in case you did not manually disabletsNET for your app, you could use tsNetSetTimeouts to set timeout values. >> By default tsNET does not limit the time a request could take and that might be the reason why the put URL takes forever. >> >> The Syntax looks like this >> tsNetSetTimeouts pDnsCacheTimeout, pRequestTimeoutMS, pConnectTimeoutMS, pAcceptTimeoutMS, pLowSpeedTime, pLowSpeedLimit >> >> The second parameter is responsible for the request timeout and has to be set in milliseconds. >> >> So for example >> >> tsNetSetTimeouts 30, 33000, 300000, 60000, 30, 1000 >> >> would set the request timeout to 33 seconds. The other values in my example are the default values. >> >> After the timeout the script continues and you could check if the put command returned the expected value. >> >> >> >> Regards, >> Matthias >> >> >> >>> Am 22.07.2023 um 02:02 schrieb prothero--- via use-livecode : >>> >>> Folks: >>> Sorry for the trivial question, but.. >>> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >>> >>> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. >>> >>> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >>> >>> Thanks, >>> Bill >>> put "https://"&theURL&"/test.html" into theURL >>> >>> put URL theURL into tOutput —if the request times out, the output is not received. >>> >>> if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful >>> >>> return true >>> >>> else >>> >>> return false >>> >>> end if >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Mon Jul 24 11:04:46 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 24 Jul 2023 17:04:46 +0200 Subject: No progress updates on LC 10. Am i the only one who is concerned? Message-ID: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Hi, I know Xavvi will be the next big step and I even helped with the funding. But I'm wondering why there hasn't been any news about LC 10 for a some months now. Am I the only one worried that the full focus is now on Xavvi and LC10 is left behind? Matthias From jacques.clavel at gmail.com Mon Jul 24 11:29:05 2023 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Mon, 24 Jul 2023 17:29:05 +0200 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: +1 Jacques CLAVEL Le lun. 24 juil. 2023 à 17:05, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> a écrit : > Hi, > > I know Xavvi will be the next big step and I even helped with the funding. > But I'm wondering why there hasn't been any news about LC 10 for a some > months now. > Am I the only one worried that the full focus is now on Xavvi and LC10 is > left behind? > > 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 > -- Jacques Clavel From MikeKerner at roadrunner.com Mon Jul 24 11:56:21 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Jul 2023 11:56:21 -0400 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: the things that bug me are: * at renewal, i added the html5 license, but that project isn't anywhere * script compiler was supposed to be out six months ago for tinkering (technically seven, but we'll give them a pass on end-of-the-year because it was probably intended as end-of-the-yearish * script widgets are not going anywhere without docs, but the docs aren't going anywhere * i'm very concerned that x-whatever is going to be a resource and distraction-drain, and another dead end. to date, the LLM's have been severely overrated. obviously i hope that is something that gets fixed, quickly. On Mon, Jul 24, 2023 at 11:30 AM Jacques Clavel via use-livecode wrote: > > +1 > Jacques CLAVEL > > Le lun. 24 juil. 2023 à 17:05, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> a écrit : > > > Hi, > > > > I know Xavvi will be the next big step and I even helped with the funding. > > But I'm wondering why there hasn't been any news about LC 10 for a some > > months now. > > Am I the only one worried that the full focus is now on Xavvi and LC10 is > > left behind? > > > > 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 > > > > > -- > Jacques Clavel > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- 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 klaus at major-k.de Mon Jul 24 15:04:23 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 24 Jul 2023 21:04:23 +0200 Subject: Android app black screen? Message-ID: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Hi all, today I used my Android app at home, no problems. Then I went to our band rehearsal, started the app and only got a black screen!? Everything else on the device worked without problems. De- and re-installing the app fixed it. Has someone also experienced something like this? Samsung tablet TAB A, Android 5.1, LC 9.6.9. 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 Mon Jul 24 15:11:55 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 24 Jul 2023 14:11:55 -0500 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: <98fa6848-d158-251c-51df-3d6b46ae589d@hyperactivesw.com> On 7/24/23 10:56 AM, Mike Kerner via use-livecode wrote: > the things that bug me are: > * at renewal, i added the html5 license, but that project isn't anywhere Did you select the correct license on renewal? I had the same problem but it turns out there's a tiny little arrow when the installer appears, and you can page through your licenses. I felt stupid when Heather noted it. Choose "Relicense" from the Help menu and see if you have that arrow. If not, contact support. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MikeKerner at roadrunner.com Mon Jul 24 20:24:16 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Jul 2023 20:24:16 -0400 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <98fa6848-d158-251c-51df-3d6b46ae589d@hyperactivesw.com> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <98fa6848-d158-251c-51df-3d6b46ae589d@hyperactivesw.com> Message-ID: it's not that it isn't there, it's that it isn't in a state that is ready-for-prime-time On Mon, Jul 24, 2023 at 3:12 PM J. Landman Gay via use-livecode wrote: > > On 7/24/23 10:56 AM, Mike Kerner via use-livecode wrote: > > the things that bug me are: > > * at renewal, i added the html5 license, but that project isn't anywhere > > Did you select the correct license on renewal? I had the same problem but it turns out there's > a tiny little arrow when the installer appears, and you can page through your licenses. I felt > stupid when Heather noted it. > > Choose "Relicense" from the Help menu and see if you have that arrow. If not, contact support. > > -- > 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 -- 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 Tue Jul 25 05:14:17 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 25 Jul 2023 10:14:17 +0100 Subject: Android app black screen? In-Reply-To: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hi Klaus, I’ve had similar things happen on iOS, perhaps more recently in the past year than previously. Sometimes when I open the app (I’m not sure at these times if the app is just suspended or is actually reopening) I’ll get a black screen. If I tap on it 90% of the time it goes away and reveals the appropriate screen image. Very rarely the single or multiple taps solution does not work I’ve had to shut the app down (remove from memory) and then restart it again. This always fixes the problem (if the tapping doesn’t). It’s had me wondering where in the process it “hangs” since tapping the screen suggests it is still “alive" but just stuck somewhere and not displaying the appropriate screen image. On iOS I believe when you suspend an app (put it into the background) it just “maintains” the current screen image and re-presents that when you reopen. Up to now I’ve not spend any time trying to debug this. It would be nice to be able to trace the problem back to its origins and institute a remedy. Please let me know if you come up with any suggestions. Best, Mark > On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode wrote: > > Hi all, > > today I used my Android app at home, no problems. > Then I went to our band rehearsal, started the app and > only got a black screen!? > > Everything else on the device worked without problems. > De- and re-installing the app fixed it. > > Has someone also experienced something like this? > > Samsung tablet TAB A, Android 5.1, LC 9.6.9. > > > 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 benr_mc at cogapp.com Tue Jul 25 05:54:06 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 10:54:06 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> It's particularly frustrating because there are some good things in LC 10 that I'd like to be looking at/exploiting; but there's a vicious bug in the current DP script editor that can cause loss of work*, which prevents me doing anything with it. Just a new DP that includes a fix for this bug would be a huge step forward in my view/situation. Ben * https://quality.livecode.com/show_bug.cgi?id=24268 On 24/07/2023 16:04, matthias rebbe via use-livecode wrote: > Hi, > > I know Xavvi will be the next big step and I even helped with the funding. > But I'm wondering why there hasn't been any news about LC 10 for a some months now. > Am I the only one worried that the full focus is now on Xavvi and LC10 is left behind? > > 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 benr_mc at cogapp.com Tue Jul 25 06:06:10 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 11:06:10 +0100 Subject: Which Livecode/Xcode/macOS/iOS version Message-ID: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Somewhere on the livecode.com there used to be a very useful table which showed which versions of Livecode could run on which versions of macOS with which versions of Xcode in order to build to which versions of iOS. I can't find it now... can anyone point me at it? Many thanks, Ben From heather at livecode.com Tue Jul 25 06:55:35 2023 From: heather at livecode.com (Heather Laine) Date: Tue, 25 Jul 2023 11:55:35 +0100 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: https://livecode.com/resources/support/ask-a-question/ Top FAQ. Best Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 25 Jul 2023, at 11:06, Ben Rubinstein via use-livecode wrote: > > Somewhere on the livecode.com there used to be a very useful table which showed which versions of Livecode could run on which versions of macOS with which versions of Xcode in order to build to which versions of iOS. > > I can't find it now... can anyone point me at it? > > Many thanks, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 25 06:55:30 2023 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 25 Jul 2023 11:55:30 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: Message-ID: <6EB0413C-736E-472D-A820-FCE273A16140@pidigital.co.uk> > On 25 Jul 2023, at 01:24, Mike Kerner via use-livecode wrote: > > it's not that it isn't there, it's that it isn't in a state that is > ready-for-prime-time I’ve had to abandon a project and hence a client and hence LiveCode all together because of this single solitary issue. My company went bankrupt and is now dissolved because of this. LC have told me not to speak out against them as a company on this platform for fear of being removed from this chat area. Sure, some of the decisions made by me have led to the dissolving of Pi Digital Productions Ltd, but a lot WAS based on the PROMISE made pre-pandemic by LC that HTML5 would be ready for live, non-beta use ‘soon’. 4 years on and having paid for a HTML5 licence I STILL have not been able to use, clients become frustrated and annoyed that we STILL have been unable to deliver and the bitten bullet eventually explodes in our faces. This is the primary reason I have not been heard from on this area for a while now. I am now working as a shop assistant in a local shop having moved to a remote area on the Isle of Skye. There’s not many employers who will take LiveCode experience as experience of coding. And there’s little hope of finding clients who will want or have their apps coded in LC. Theoretically I should ask for a refund on the HTML license as they have simply not delivered on their promise. But I can’t be bothered with the hassle of arguing with a company who just don’t seem to listen. I know a lot of you here will disagree- but I can only speak from my own experience over the last 17 years. Besides, a refund would not come close to the amount my company haemorrhaged as a direct result of LC failing to deliver. There, I’m guessing this will get me banned from this platform but, seeing as I can no longer use LC for anything practical, I suppose it no longer matters and most of you hear will be thinking ‘good riddance’ anyway. Like me, LC will fail if they continue to be incapable of delivering on promises. Adding new features and/or applications without sorting out current ones and actually getting them into the wild will just add new problems and forget old ones. Our clients cannot work on a 5 year turnaround so how can LC continue to think we can accept it? It’s impossible working conditions. If a boss offered you better working conditions in a place of work but took 5 years to deliver on that promise, what would you think of them as a manager? This is effectively what was suffered. It amounts to unfair treatment in the workplace and caused me a great deal of anguish over the years, as many of you are well aware. My hope is that LC read this for your benefits and learn from it. It’s too late for me - I’ve moved on. But hopefully they can get v10 and HTML out sooner rather than later so that you can actually begin to make use of your investments. All the best and peace to you all. Sean Cole Ex Director of Pi Digital Over and out. From benr_mc at cogapp.com Tue Jul 25 07:28:31 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 12:28:31 +0100 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: <9077c98b-88c5-a5a6-79f0-a3fc64b74114@cogapp.com> Thanks Heather! On 25/07/2023 11:55, Heather Laine via use-livecode wrote: > https://livecode.com/resources/support/ask-a-question/ > > Top FAQ. > > Best > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 25 Jul 2023, at 11:06, Ben Rubinstein via use-livecode wrote: >> >> Somewhere on the livecode.com there used to be a very useful table which showed which versions of Livecode could run on which versions of macOS with which versions of Xcode in order to build to which versions of iOS. >> >> I can't find it now... can anyone point me at it? >> >> Many thanks, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Tue Jul 25 08:06:43 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 15:06:43 +0300 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hello Klaus, Are you setting the acceleratedRendering to true on startup? Kind regards, Panos On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi Klaus, > > I’ve had similar things happen on iOS, perhaps more recently in the past > year than previously. Sometimes when I open the app (I’m not sure at these > times if the app is just suspended or is actually reopening) I’ll get a > black screen. If I tap on it 90% of the time it goes away and reveals the > appropriate screen image. Very rarely the single or multiple taps solution > does not work I’ve had to shut the app down (remove from memory) and then > restart it again. This always fixes the problem (if the tapping doesn’t). > It’s had me wondering where in the process it “hangs” since tapping the > screen suggests it is still “alive" but just stuck somewhere and not > displaying the appropriate screen image. On iOS I believe when you suspend > an app (put it into the background) it just “maintains” the current screen > image and re-presents that when you reopen. Up to now I’ve not spend any > time trying to debug this. It would be nice to be able to trace the problem > back to its origins and institute a remedy. Please let me know if you come > up with any suggestions. > > Best, > Mark > > > > On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > > > today I used my Android app at home, no problems. > > Then I went to our band rehearsal, started the app and > > only got a black screen!? > > > > Everything else on the device worked without problems. > > De- and re-installing the app fixed it. > > > > Has someone also experienced something like this? > > > > Samsung tablet TAB A, Android 5.1, LC 9.6.9. > > > > > > 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 klaus at major-k.de Tue Jul 25 08:11:37 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 Jul 2023 14:11:37 +0200 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hi Panos, > Am 25.07.2023 um 14:06 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > Are you setting the acceleratedRendering to true on startup? no, should I? 8-) However this came out of a sudden after using my (same) app many times before... > Kind regards, > Panos > > On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> Hi Klaus, >> >> I’ve had similar things happen on iOS, perhaps more recently in the past >> year than previously. Sometimes when I open the app (I’m not sure at these >> times if the app is just suspended or is actually reopening) I’ll get a >> black screen. If I tap on it 90% of the time it goes away and reveals the >> appropriate screen image. Very rarely the single or multiple taps solution >> does not work I’ve had to shut the app down (remove from memory) and then >> restart it again. This always fixes the problem (if the tapping doesn’t). >> It’s had me wondering where in the process it “hangs” since tapping the >> screen suggests it is still “alive" but just stuck somewhere and not >> displaying the appropriate screen image. On iOS I believe when you suspend >> an app (put it into the background) it just “maintains” the current screen >> image and re-presents that when you reopen. Up to now I’ve not spend any >> time trying to debug this. It would be nice to be able to trace the problem >> back to its origins and institute a remedy. Please let me know if you come >> up with any suggestions. >> >> Best, >> Mark >> >> >>> On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi all, >>> >>> today I used my Android app at home, no problems. >>> Then I went to our band rehearsal, started the app and >>> only got a black screen!? >>> >>> Everything else on the device worked without problems. >>> De- and re-installing the app fixed it. >>> >>> Has someone also experienced something like this? >>> >>> Samsung tablet TAB A, Android 5.1, LC 9.6.9. 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 Jul 25 08:16:26 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 15:16:26 +0300 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hello Klaus, Nope, I just asked because I had seen some similar issues when setting this property on preopenstack. Well, if the same app worked as expected before, then it may be just a random glitch, which would have been fixed with a restart of the device (i.e no need to delete and reinstall the app). Cheers, Panos On Tue, 25 Jul 2023, 15:11 Klaus major-k via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 25.07.2023 um 14:06 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Klaus, > > > > Are you setting the acceleratedRendering to true on startup? > > no, should I? 8-) > However this came out of a sudden after using my (same) app many times > before... > > > Kind regards, > > Panos > > > > On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi Klaus, > >> > >> I’ve had similar things happen on iOS, perhaps more recently in the past > >> year than previously. Sometimes when I open the app (I’m not sure at > these > >> times if the app is just suspended or is actually reopening) I’ll get a > >> black screen. If I tap on it 90% of the time it goes away and reveals > the > >> appropriate screen image. Very rarely the single or multiple taps > solution > >> does not work I’ve had to shut the app down (remove from memory) and > then > >> restart it again. This always fixes the problem (if the tapping > doesn’t). > >> It’s had me wondering where in the process it “hangs” since tapping the > >> screen suggests it is still “alive" but just stuck somewhere and not > >> displaying the appropriate screen image. On iOS I believe when you > suspend > >> an app (put it into the background) it just “maintains” the current > screen > >> image and re-presents that when you reopen. Up to now I’ve not spend any > >> time trying to debug this. It would be nice to be able to trace the > problem > >> back to its origins and institute a remedy. Please let me know if you > come > >> up with any suggestions. > >> > >> Best, > >> Mark > >> > >> > >>> On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Hi all, > >>> > >>> today I used my Android app at home, no problems. > >>> Then I went to our band rehearsal, started the app and > >>> only got a black screen!? > >>> > >>> Everything else on the device worked without problems. > >>> De- and re-installing the app fixed it. > >>> > >>> Has someone also experienced something like this? > >>> > >>> Samsung tablet TAB A, Android 5.1, LC 9.6.9. > > 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 marksmithhfx at gmail.com Tue Jul 25 08:41:13 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 25 Jul 2023 13:41:13 +0100 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hi Panos, I do set accelerated rendering to true in a preopencard handler on the “main”, “first”, “home” card (whatever you want to call it). It’s in the section of code that defines the properties of the data grid. Do you think this possibly could cause a problem? > On 25 Jul 2023, at 1:16 pm, panagiotis m via use-livecode wrote: > > Hello Klaus, > > Nope, I just asked because I had seen some similar issues when setting this > property on preopenstack. > > Well, if the same app worked as expected before, then it may be just a > random glitch, which would have been fixed with a restart of the device > (i.e no need to delete and reinstall the app). > > Cheers, > Panos > > On Tue, 25 Jul 2023, 15:11 Klaus major-k via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> Hi Panos, >> >>> Am 25.07.2023 um 14:06 schrieb panagiotis m via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> Hello Klaus, >>> >>> Are you setting the acceleratedRendering to true on startup? >> >> no, should I? 8-) >> However this came out of a sudden after using my (same) app many times >> before... >> >>> Kind regards, >>> Panos >>> >>> On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Klaus, >>>> >>>> I’ve had similar things happen on iOS, perhaps more recently in the past >>>> year than previously. Sometimes when I open the app (I’m not sure at >> these >>>> times if the app is just suspended or is actually reopening) I’ll get a >>>> black screen. If I tap on it 90% of the time it goes away and reveals >> the >>>> appropriate screen image. Very rarely the single or multiple taps >> solution >>>> does not work I’ve had to shut the app down (remove from memory) and >> then >>>> restart it again. This always fixes the problem (if the tapping >> doesn’t). >>>> It’s had me wondering where in the process it “hangs” since tapping the >>>> screen suggests it is still “alive" but just stuck somewhere and not >>>> displaying the appropriate screen image. On iOS I believe when you >> suspend >>>> an app (put it into the background) it just “maintains” the current >> screen >>>> image and re-presents that when you reopen. Up to now I’ve not spend any >>>> time trying to debug this. It would be nice to be able to trace the >> problem >>>> back to its origins and institute a remedy. Please let me know if you >> come >>>> up with any suggestions. >>>> >>>> Best, >>>> Mark >>>> >>>> >>>>> On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi all, >>>>> >>>>> today I used my Android app at home, no problems. >>>>> Then I went to our band rehearsal, started the app and >>>>> only got a black screen!? >>>>> >>>>> Everything else on the device worked without problems. >>>>> De- and re-installing the app fixed it. >>>>> >>>>> Has someone also experienced something like this? >>>>> >>>>> Samsung tablet TAB A, Android 5.1, LC 9.6.9. >> >> 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 klaus at major-k.de Tue Jul 25 08:48:47 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 Jul 2023 14:48:47 +0200 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Hi Panos, > Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > Nope, I just asked because I had seen some similar issues when setting this > property on preopenstack. > > Well, if the same app worked as expected before, then it may be just a > random glitch, which would have been fixed with a restart of the device > (i.e no need to delete and reinstall the app). OK, I only switched the device off and on again, which is probably NOT a restart. Will keep this in mind for the next time, which hopefully will never happen. 8-) Thank you! > Cheers, > Panos 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 Jul 25 09:01:56 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 16:01:56 +0300 Subject: Android app black screen? In-Reply-To: <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: Hello Mark, I had seen this issue on Android, not on iOS. And the workaround was to use a "send in time" command to set the acceleratedRendering to true, for example: on preOpenStack send initAE to me in 300 millisec end preOpenStack command initAE set the acceleratedRendering of this stack to true end initAE Kind regards, Panos -- On Tue, 25 Jul 2023 at 15:49, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Klaus, > > > > Nope, I just asked because I had seen some similar issues when setting > this > > property on preopenstack. > > > > Well, if the same app worked as expected before, then it may be just a > > random glitch, which would have been fixed with a restart of the device > > (i.e no need to delete and reinstall the app). > > OK, I only switched the device off and on again, which is probably NOT a > restart. > Will keep this in mind for the next time, which hopefully will never > happen. 8-) > > Thank you! > > > Cheers, > > Panos > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Tue Jul 25 09:02:59 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 16:02:59 +0300 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: heh the name of the command should have been "initAR" Cheers, Panos -- On Tue, 25 Jul 2023 at 16:01, panagiotis m wrote: > Hello Mark, > > I had seen this issue on Android, not on iOS. And the workaround was to > use a "send in time" command to set the acceleratedRendering to true, for > example: > > on preOpenStack > send initAE to me in 300 millisec > end preOpenStack > > command initAE > set the acceleratedRendering of this stack to true > end initAE > > Kind regards, > Panos > -- > > On Tue, 25 Jul 2023 at 15:49, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Panos, >> >> > Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode < >> use-livecode at lists.runrev.com>: >> > >> > Hello Klaus, >> > >> > Nope, I just asked because I had seen some similar issues when setting >> this >> > property on preopenstack. >> > >> > Well, if the same app worked as expected before, then it may be just a >> > random glitch, which would have been fixed with a restart of the device >> > (i.e no need to delete and reinstall the app). >> >> OK, I only switched the device off and on again, which is probably NOT a >> restart. >> Will keep this in mind for the next time, which hopefully will never >> happen. 8-) >> >> Thank you! >> >> > Cheers, >> > Panos >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From klaus at major-k.de Tue Jul 25 09:17:08 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 Jul 2023 15:17:08 +0200 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: <29003DB1-B445-4EC9-AA42-6A31A1A5B64B@major-k.de> Hi Panos, > Am 25.07.2023 um 15:02 schrieb panagiotis m via use-livecode : > > heh the name of the command should have been "initAR" we got the picture anyway! :-D > Cheers, > Panos > -- > > On Tue, 25 Jul 2023 at 16:01, panagiotis m wrote: > >> Hello Mark, >> >> I had seen this issue on Android, not on iOS. And the workaround was to >> use a "send in time" command to set the acceleratedRendering to true, for >> example: >> >> on preOpenStack >> send initAE to me in 300 millisec >> end preOpenStack >> >> command initAE >> set the acceleratedRendering of this stack to true >> end initAE >> >> Kind regards, >> Panos -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From marksmithhfx at gmail.com Tue Jul 25 09:17:03 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 25 Jul 2023 14:17:03 +0100 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: <5E53A935-F190-4A78-AB16-7AC2F370DF81@gmail.com> No worries, I understood 😊 Thanks > On 25 Jul 2023, at 2:02 pm, panagiotis m via use-livecode wrote: > > heh the name of the command should have been "initAR" > > Cheers, > Panos > -- > > On Tue, 25 Jul 2023 at 16:01, panagiotis m wrote: > >> Hello Mark, >> >> I had seen this issue on Android, not on iOS. And the workaround was to >> use a "send in time" command to set the acceleratedRendering to true, for >> example: >> >> on preOpenStack >> send initAE to me in 300 millisec >> end preOpenStack >> >> command initAE >> set the acceleratedRendering of this stack to true >> end initAE >> >> Kind regards, >> Panos >> -- >> >> On Tue, 25 Jul 2023 at 15:49, Klaus major-k via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Panos, >>> >>>> Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode < >>> use-livecode at lists.runrev.com>: >>>> >>>> Hello Klaus, >>>> >>>> Nope, I just asked because I had seen some similar issues when setting >>> this >>>> property on preopenstack. >>>> >>>> Well, if the same app worked as expected before, then it may be just a >>>> random glitch, which would have been fixed with a restart of the device >>>> (i.e no need to delete and reinstall the app). >>> >>> OK, I only switched the device off and on again, which is probably NOT a >>> restart. >>> Will keep this in mind for the next time, which hopefully will never >>> happen. 8-) >>> >>> Thank you! >>> >>>> Cheers, >>>> Panos >>> >>> Best >>> >>> Klaus >>> >>> -- >>> Klaus Major >>> https://www.major-k.de >>> https://www.major-k.de/bass >>> klaus at major-k.de >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 25 10:57:26 2023 From: heather at livecode.com (Heather Laine) Date: Tue, 25 Jul 2023 15:57:26 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: <851DF337-CCC2-43FE-A9D8-E9AE4A4DACF3@livecode.com> Hi Matthias and list folks, We are working on LiveCode 10 dp6. We expect it to ship in August, with support for Web Fonts plus a number of bug fixes. Web Fonts turned out to be rather trickier than expected but it looks like we've got it more or less sorted out now. If there are specific bugs in 10 dp-5 that are really problematic for you, its worth flagging them to me in support (not on the list) so I can at least find out for you if they will be fixed in dp-6. Please send me the bug report number from the Quality Center for checking. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 24 Jul 2023, at 16:04, matthias rebbe via use-livecode wrote: > > Hi, > > I know Xavvi will be the next big step and I even helped with the funding. > But I'm wondering why there hasn't been any news about LC 10 for a some months now. > Am I the only one worried that the full focus is now on Xavvi and LC10 is left behind? > > 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 ahsoftware at sonic.net Tue Jul 25 12:14:16 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 25 Jul 2023 09:14:16 -0700 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: On 7/25/23 03:55, Heather Laine via use-livecode wrote: > https://livecode.com/resources/support/ask-a-question/ > > Top FAQ. There's a FAQ? Why isn't there a link to it on the main web page? This really should be easier to get to for prospective users (aka customers. subscribers). Apparently the only way to get there from the main page is Scroll to the bottom Find the Resources link Click on Support (!) Scroll down to the Support section Find FAQ Click the button It's down there just above the link to the April 2022 Live Conference. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Tue Jul 25 12:51:50 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Jul 2023 18:51:50 +0200 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: +1 > Am 25.07.2023 um 18:14 schrieb Mark Wieder via use-livecode : > > On 7/25/23 03:55, Heather Laine via use-livecode wrote: >> https://livecode.com/resources/support/ask-a-question/ >> Top FAQ. > > There's a FAQ? > Why isn't there a link to it on the main web page? > This really should be easier to get to for prospective users > (aka customers. subscribers). > > Apparently the only way to get there from the main page is > > Scroll to the bottom > Find the Resources link > Click on Support (!) > Scroll down to the Support section > Find FAQ > Click the button > > It's down there just above the link to the April 2022 Live Conference. > > -- > 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 benr_mc at cogapp.com Tue Jul 25 14:10:13 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 19:10:13 +0100 Subject: How to persuade LC to accept Xcode for mobile support? Message-ID: <91a4e60c-c3b5-f271-f1ac-4f7bb2fd7b30@cogapp.com> Apologies for what is surely a FAQ, but I can't find this in the archives. Using LC 9.6.8 on macOS 12.6.7 with Xcode 13.4.1, trying to get set up for building to iOS for the first time in a long while; and failing at the first hurdle. In Preferences, Mobile Support, under iOS SDKs, I click "Add Entry" and select Xcode; and get the dreaded message The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS SDK among: 12.1 13.2 14.4 15.2 Per https://livecode.com/resources/support/ask-a-question/ one of the supported combinations is: LiveCode 9.6.8 Xcode 13.2.x Mac OS 11.3+ iOS 15.2 This is Xcode 13.4.1 rather than Xcode 13.2.x - is that really the problem? Or am I missing something else? TIA, Ben From gcanyon at gmail.com Tue Jul 25 14:37:21 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Jul 2023 08:37:21 -1000 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> Message-ID: Maybe a silly question, but that issue lists "turn on bracket completion" as a step to reproduce. If bracket completion is off, is it safe? On Mon, Jul 24, 2023 at 11:55 PM Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > It's particularly frustrating because there are some good things in LC 10 > that > I'd like to be looking at/exploiting; but there's a vicious bug in the > current > DP script editor that can cause loss of work*, which prevents me doing > anything with it. Just a new DP that includes a fix for this bug would be > a > huge step forward in my view/situation. > > Ben > > * https://quality.livecode.com/show_bug.cgi?id=24268 > > On 24/07/2023 16:04, matthias rebbe via use-livecode wrote: > > Hi, > > > > I know Xavvi will be the next big step and I even helped with the > funding. > > But I'm wondering why there hasn't been any news about LC 10 for a some > months now. > > Am I the only one worried that the full focus is now on Xavvi and LC10 > is left behind? > > > > 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 gcanyon at gmail.com Tue Jul 25 14:48:20 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Jul 2023 08:48:20 -1000 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> References: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Message-ID: On Fri, Jul 21, 2023 at 4:10 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Out of curiosity, what can be done in in Python that cannot be done in LC > Script? > I'm learning more as I study python. This is pretty nice: import re x = re.split('[a|t]','this is a test and this is another') print(x) ['', 'his is ', ' ', 'es', ' ', 'nd ', 'his is ', 'no', 'her'] Or if you want the dividers as well: import re x = re.split('([a|t])','this is a test and this is another') print(x) ['', 't', 'his is ', 'a', ' ', 't', 'es', 't', ' ', 'a', 'nd ', 't', 'his is ', 'a', 'no', 't', 'her'] From MikeKerner at roadrunner.com Tue Jul 25 15:22:44 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 25 Jul 2023 15:22:44 -0400 Subject: How to persuade LC to accept Xcode for mobile support? In-Reply-To: <91a4e60c-c3b5-f271-f1ac-4f7bb2fd7b30@cogapp.com> References: <91a4e60c-c3b5-f271-f1ac-4f7bb2fd7b30@cogapp.com> Message-ID: yep. you can't exceed versions. the restrictions are pretty strict. On Tue, Jul 25, 2023 at 2:11 PM Ben Rubinstein via use-livecode wrote: > > Apologies for what is surely a FAQ, but I can't find this in the archives. > > Using LC 9.6.8 on macOS 12.6.7 with Xcode 13.4.1, trying to get set up for > building to iOS for the first time in a long while; and failing at the first > hurdle. > > In Preferences, Mobile Support, under iOS SDKs, I click "Add Entry" and select > Xcode; and get the dreaded message > The chosen folder is not a valid iOS SDK. > Selected Xcode must have an iOS SDK among: > 12.1 > 13.2 > 14.4 > 15.2 > > > Per https://livecode.com/resources/support/ask-a-question/ one of the > supported combinations is: > LiveCode 9.6.8 Xcode 13.2.x Mac OS 11.3+ iOS 15.2 > > This is Xcode 13.4.1 rather than Xcode 13.2.x - is that really the problem? > Or am I missing something else? > > TIA, > > Ben > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dick.kriesel at mail.com Tue Jul 25 16:35:03 2023 From: dick.kriesel at mail.com (Dick Kriesel) Date: Tue, 25 Jul 2023 13:35:03 -0700 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> Message-ID: <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> > On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode wrote: > > Maybe a silly question, but that issue lists "turn on bracket completion" > as a step to reproduce. If bracket completion is off, is it safe? Hi, Geoff. I filed the report. With bracket completion off, I saw no such problem. — Dick From paul at livecode.org Tue Jul 25 18:15:16 2023 From: paul at livecode.org (Paul Hibbert) Date: Tue, 25 Jul 2023 15:15:16 -0700 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: Or, click on” Resources" in the main Nav menu then scroll down to “Support" and there’s your FAQ button! Simples! :-) Paul > On Jul 25, 2023, at 9:14 AM, Mark Wieder via use-livecode wrote: > > On 7/25/23 03:55, Heather Laine via use-livecode wrote: >> https://livecode.com/resources/support/ask-a-question/ >> Top FAQ. > > There's a FAQ? > Why isn't there a link to it on the main web page? > This really should be easier to get to for prospective users > (aka customers. subscribers). > > Apparently the only way to get there from the main page is > > Scroll to the bottom > Find the Resources link > Click on Support (!) > Scroll down to the Support section > Find FAQ > Click the button > > It's down there just above the link to the April 2022 Live Conference. > > -- > 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 ahsoftware at sonic.net Tue Jul 25 19:53:01 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 25 Jul 2023 16:53:01 -0700 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: <60e82d50-ac0e-ebe5-e684-d75d077d3e91@sonic.net> On 7/25/23 15:15, Paul Hibbert via use-livecode wrote: > Or, click on Resources" in the main Nav menu then scroll down to Support" and theres your FAQ button! > > Simples! :-) Missing the point though. You need to know it exists somewhere in order to go looking for it. I think a FAQ should be front and center instead of buried a few layers down. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Tue Jul 25 22:49:10 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Jul 2023 16:49:10 -1000 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> Message-ID: So, not to be too much of an apologist, but the issue doesn't seem like a showstopper to me. On Tue, Jul 25, 2023 at 10:36 AM Dick Kriesel via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Maybe a silly question, but that issue lists "turn on bracket completion" > > as a step to reproduce. If bracket completion is off, is it safe? > > Hi, Geoff. I filed the report. With bracket completion off, I saw no such > problem. > — Dick > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dick.kriesel at mail.com Tue Jul 25 23:23:58 2023 From: dick.kriesel at mail.com (Dick Kriesel) Date: Tue, 25 Jul 2023 20:23:58 -0700 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> Message-ID: <0B1C9F9E-3CE7-4DF5-A7A2-7BDB0DA8D5C5@mail.com> > On Jul 25, 2023, at 7:49 PM, Geoff Canyon via use-livecode wrote: > > So, not to be too much of an apologist, but the issue doesn't seem like a > showstopper to me. This is just a crashing bug to fix before RC1. Let the show go on! — Dick From jaguayo at telur.es Wed Jul 26 02:55:23 2023 From: jaguayo at telur.es (JosebaTELUR) Date: Wed, 26 Jul 2023 08:55:23 +0200 Subject: No progress updates on LC 10 In-Reply-To: References: Message-ID: <89B8D6F7-E024-4499-92B9-79A964B869A7@telur.es> Hello Sean: You are not the only one. I also have the impression that we will never see version 10 of Livecode. Un saludo. Joseba Aguayo Fernández (jaguayo at telur.es) From benr_mc at cogapp.com Wed Jul 26 04:58:46 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 26 Jul 2023 09:58:46 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> Message-ID: <53887cdf-9bf4-4534-0741-ab08156b180b@cogapp.com> Oooh - I hadn't spotted that. (With only a little bit of fear) I'll venture back into 10dp5 and turn that off. Thanks Geoff! On 26/07/2023 03:49, Geoff Canyon via use-livecode wrote: > So, not to be too much of an apologist, but the issue doesn't seem like a > showstopper to me. > > On Tue, Jul 25, 2023 at 10:36AM Dick Kriesel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> >>> On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Maybe a silly question, but that issue lists "turn on bracket completion" >>> as a step to reproduce. If bracket completion is off, is it safe? >> >> Hi, Geoff. I filed the report. With bracket completion off, I saw no such >> problem. >> Dick >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 26 11:10:46 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 15:10:46 +0000 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: <60e82d50-ac0e-ebe5-e684-d75d077d3e91@sonic.net> References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> <60e82d50-ac0e-ebe5-e684-d75d077d3e91@sonic.net> Message-ID: <9AB8B04D-7AAC-41B9-858F-31602DCE7A01@iotecdigital.com> +1 A lot of support sites are like that. You cannot find anything unless you know where to look, and if you know that, you probably don’t need to find it. :-) One of my pet peeves is searching for something on a support site and getting 1000 entries, none of which have anything to do with what I was looking for. Bob S On Jul 25, 2023, at 4:53 PM, Mark Wieder via use-livecode wrote: Or, click on” Resources" in the main Nav menu then scroll down to “Support" and there’s your FAQ button! Simples! :-) Missing the point though. You need to know it exists somewhere in order to go looking for it. I think a FAQ should be front and center instead of buried a few layers down. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Wed Jul 26 13:02:43 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 17:02:43 +0000 Subject: closeStackRequest resolved Message-ID: <2C482CE6-40E7-4AF7-A901-530F98F28CBC@iotecdigital.com> Hi all. FYI I've struggled a long time to try and figure out why I get the Save Stack dialog when I clicked the close window button and before my own closeStackRequest got a chance to auto-save the stack. The reason I want to do auto-save is that all my standalones use a splash stack that then kicks off the main stack. Before quitting the standalone I want to clear all the forms and reset the environment, then save the state of affairs without the user being annoyed and confused with a dialog asking if they want to save! As it turns out (and as some may have informed me I can’t remember) there is a closeStackRequest handler in LC’s own front script which is generating the Save Stack dialog. To intercept the message before LC does, you need to have your own closeStackRequest in YOUR OWN front script, then pass the message when you are done with it. Bob S From paul at researchware.com Wed Jul 26 13:02:50 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 13:02:50 -0400 Subject: charIndex property Message-ID: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. For example, if the field contains: The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz". The lazy dog was a great dog. Then there are 3 instances of  "lazy dog" trueWord 8 to 9 of the field,  11 to 12, and 17 to 18 You can also determine that first instance "lazy dog" is in sentence 1 to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in sentence 3 And you can determine that the first 2 instances are in paragraph 1 and the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, and paragraph chunk types) charIndex lets me determine the start of a sentence or paragraph, such as: the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75 the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 of fld X --> 75 My question is, charIndex appear to ONLY work on an actual field object (visible or invisible). You get execution errors if you try say: put the charIndex of word 8 of the text of the templateField put the charIndex of word 8 of the templateField put the charIndex of word 8 of tVar Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? From bobsneidar at iotecdigital.com Wed Jul 26 13:06:49 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 17:06:49 +0000 Subject: charIndex property In-Reply-To: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> Message-ID: <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> Offset? Bob S > On Jul 26, 2023, at 10:02 AM, Paul Dupuis via use-livecode wrote: > > If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. > > For example, if the field contains: > > The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz". > > The lazy dog was a great dog. > > Then there are 3 instances of "lazy dog" > > trueWord 8 to 9 of the field, 11 to 12, and 17 to 18 > > You can also determine that first instance "lazy dog" is in sentence 1 to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in sentence 3 > > And you can determine that the first 2 instances are in paragraph 1 and the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, and paragraph chunk types) > > charIndex lets me determine the start of a sentence or paragraph, such as: > > the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75 > > the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 of fld X --> 75 > > My question is, charIndex appear to ONLY work on an actual field object (visible or invisible). You get execution errors if you try say: > > put the charIndex of word 8 of the text of the templateField > > put the charIndex of word 8 of the templateField > > put the charIndex of word 8 of tVar > > Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 26 13:13:57 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 17:13:57 +0000 Subject: charIndex property In-Reply-To: <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> Message-ID: <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> OIC what that does. I suggest having a hidden field, setting the text of that field to your variable, then operating on that field. Bob S > On Jul 26, 2023, at 10:06 AM, Bob Sneidar via use-livecode wrote: > > Offset? > > Bob S > > >> On Jul 26, 2023, at 10:02 AM, Paul Dupuis via use-livecode wrote: >> >> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >> >> For example, if the field contains: >> >> The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz". >> >> The lazy dog was a great dog. >> >> Then there are 3 instances of "lazy dog" >> >> trueWord 8 to 9 of the field, 11 to 12, and 17 to 18 >> >> You can also determine that first instance "lazy dog" is in sentence 1 to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in sentence 3 >> >> And you can determine that the first 2 instances are in paragraph 1 and the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, and paragraph chunk types) >> >> charIndex lets me determine the start of a sentence or paragraph, such as: >> >> the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75 >> >> the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 of fld X --> 75 >> >> My question is, charIndex appear to ONLY work on an actual field object (visible or invisible). You get execution errors if you try say: >> >> put the charIndex of word 8 of the text of the templateField >> >> put the charIndex of word 8 of the templateField >> >> put the charIndex of word 8 of tVar >> >> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 26 14:23:19 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 18:23:19 +0000 Subject: Determine the screen DPI Message-ID: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> Hi all. I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? Bob S From bobsneidar at iotecdigital.com Wed Jul 26 14:40:35 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 18:40:35 +0000 Subject: Determine the screen DPI In-Reply-To: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> References: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> Message-ID: NVM. Apparently it depends on several things, including manufacturer, OS, scaling etc. Bob S > On Jul 26, 2023, at 11:23 AM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? > > Bob S From craig at starfirelighting.com Wed Jul 26 14:44:23 2023 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 26 Jul 2023 14:44:23 -0400 Subject: Determine the screen DPI In-Reply-To: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> References: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> Message-ID: <6BCFCF46-5F3E-407A-924D-7DEABD37ABC5@starfirelighting.com> Hi. The “screenrect” gives you the factor required directly. If you measure the actual width, say, of the screen and divide that into the difference between item 3 and item 1 of the screenRect, you will get the number of pixels per inch. Craig > On Jul 26, 2023, at 2:23 PM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? > > 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 paul at researchware.com Wed Jul 26 15:47:40 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 15:47:40 -0400 Subject: charIndex property In-Reply-To: <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> Message-ID: <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> On 7/26/2023 1:13 PM, Bob Sneidar via use-livecode wrote: > OIC what that does. I suggest having a hidden field, setting the text of that field to your variable, then operating on that field. > > Bob S That is what I am currently doing. And I have a hidden field, hidden image, hidden player - all for purposes of various operations that you can do on real objects that the templateField, templateImage, and templatePlayer don't do (although there are some things done very nicely with the templates, such as set the rtfText of the templateField to ; get the text of the templateField -- for conversion from RTF to text (or text to htmlText or htmlText to text or ...) For reasons past that are not worth bring up in this email list, I have a slight aversion to hidden objects and prefer to work with the templateObjects or variables when i can. So, that is the very specific question of this post: Does anyone have a clever trick to do the equivalent of charIndex on a variable of text? I guess the allowed answers are "No" (no post is necessary), Yes (but I won't share it) (also no post necessary), Yes, and here it is (thank you), or perhaps a 4th, I don't understand the question, please clarify (which I would be happy to do if someone thinks they have a clever solution and just needs a bit more info) Paul From bobsneidar at iotecdigital.com Wed Jul 26 16:05:26 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 20:05:26 +0000 Subject: Determine the screen DPI In-Reply-To: <6BCFCF46-5F3E-407A-924D-7DEABD37ABC5@starfirelighting.com> References: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> <6BCFCF46-5F3E-407A-924D-7DEABD37ABC5@starfirelighting.com> Message-ID: <1A60965C-0773-458C-B187-0CD3174251F5@iotecdigital.com> Yes, and that is what I did eventually. What I decided to do at any rate is assume 110 PPI for MacOS and 96 PPI for Windows. Not sure what Linux is or if there is anything such as a standard. My goal is to create a popup menu for selecting stack/card size when creating a new stack. Bob S > On Jul 26, 2023, at 11:44 AM, Craig Newman via use-livecode wrote: > > Hi. > > The “screenrect” gives you the factor required directly. If you measure the actual width, say, of the screen and divide that into the difference between item 3 and item 1 of the screenRect, you will get the number of pixels per inch. > > Craig > >> On Jul 26, 2023, at 2:23 PM, Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? >> >> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Wed Jul 26 16:20:43 2023 From: martyknappster at gmail.com (Marty Knapp) Date: Wed, 26 Jul 2023 13:20:43 -0700 Subject: LC on Sonoma beta Message-ID: Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. Also, anyone using the Levure framework to build Universal apps with LC 9.6.9? Thanks for any input --- Marty Knapp From paul at researchware.com Wed Jul 26 17:46:01 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 17:46:01 -0400 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: <9b80618e-a262-321d-e68d-2fdf7d2c0230@researchware.com> On 7/26/2023 4:20 PM, Marty Knapp via use-livecode wrote: > Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. > > Also, anyone using the Levure framework to build Universal apps with LC 9.6.9? > > Thanks for any input > There was an earlier series of posts on this list about an LC standalone or LC itself not running on Sonoma beta - whether that is a beta OS bug for Apple to fix or a breaking change that Livecode LTD will need to address in a 9.6.10 release I have no idea. From MikeKerner at roadrunner.com Wed Jul 26 20:00:06 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 26 Jul 2023 20:00:06 -0400 Subject: charIndex property In-Reply-To: <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> Message-ID: actually, i have a couple of questions, which are maybe suggestions, but are actually questions, because maybe someone else will be curious enough to try to solve them * did you check the oss source to see if the function is available? * have you messed with using regex to get around the issue? On Wed, Jul 26, 2023 at 3:48 PM Paul Dupuis via use-livecode wrote: > > On 7/26/2023 1:13 PM, Bob Sneidar via use-livecode wrote: > > OIC what that does. I suggest having a hidden field, setting the text of that field to your variable, then operating on that field. > > > > Bob S > > That is what I am currently doing. And I have a hidden field, hidden > image, hidden player - all for purposes of various operations that you > can do on real objects that the templateField, templateImage, and > templatePlayer don't do (although there are some things done very nicely > with the templates, such as set the rtfText of the templateField to > ; get the text of the templateField -- for conversion from RTF > to text (or text to htmlText or htmlText to text or ...) > > For reasons past that are not worth bring up in this email list, I have > a slight aversion to hidden objects and prefer to work with the > templateObjects or variables when i can. > > So, that is the very specific question of this post: Does anyone have a > clever trick to do the equivalent of charIndex on a variable of text? > > I guess the allowed answers are "No" (no post is necessary), Yes (but I > won't share it) (also no post necessary), Yes, and here it is (thank > you), or perhaps a 4th, I don't understand the question, please clarify > (which I would be happy to do if someone thinks they have a clever > solution and just needs a bit more info) > > Paul > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 paul at researchware.com Wed Jul 26 21:15:25 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 21:15:25 -0400 Subject: charIndex property In-Reply-To: References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> Message-ID: On 7/26/2023 8:00 PM, Mike Kerner via use-livecode wrote: > actually, i have a couple of questions, which are maybe suggestions, > but are actually questions, because maybe someone else will be curious > enough to try to solve them > * did you check the oss source to see if the function is available? No. I have little detailed understanding of the open source Livecode code repository. My minimal understanding is that the engine source is mostly C++ and my knowledge of C is 30 years out of date. It would be a bit challenging for me to try to tease out the algorithm charIndex actually uses. An excellent question and idea though! Kudos! > * have you messed with using regex to get around the issue? My regex is a bit better, although I would not consider myself a regex expert. I had not though of exploring regex for this. I might give that a try, but if there is a regex expert who sees this that is willing to weigh on on how you might do this - even just a pointer in the right direction - that would be helpful. Another great question/idea. Thanks! charIndex is actually really powerful, if tied to a field object. You can do thing like "the charIndex of the last character of word 11 to 18 of field X" and it return the character position of the last character of the last word in the chunk. Of course, if that is what you want, "the charIndex of char -1 of word 18 of field X" is shorter and does the same thing. Complex expressions like: the charIndex of word 8 of sentence 3 of paragraph 5 of field X work as expected. Gosh, I really *love* Livecode Script's chunk expressions! They make complex text manipulation task so easy! -- Paul From mark at livecode.com Thu Jul 27 04:31:28 2023 From: mark at livecode.com (Mark Waddingham) Date: Thu, 27 Jul 2023 09:31:28 +0100 Subject: charIndex property In-Reply-To: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> Message-ID: On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: > If I have some text in a field, I can use the "charIndex" property (see > Dictionary) to obtain teh character position of the first character of > a chunk. > > Does anyone know of a clever way to do the equivalent of the charIndex > for an arbitrary chunk expression for a container/variable (i.e. not an > actual field object)? This should work I think: function charIndexOfWord pWordIndex, pTarget delete word pWordIndex to -1 of pTarget return the number of characters in pTarget + 1 end charIndexOfWord Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). Hope this helps! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From mark at livecode.com Thu Jul 27 04:39:16 2023 From: mark at livecode.com (Mark Waddingham) Date: Thu, 27 Jul 2023 09:39:16 +0100 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: > Anyone have any input regarding LC apps running on the Apple Sonoma > beta? I have not installed it but have some customers who have and > saying my app crashes. Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 We've investigated and have a fix. As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From marksmithhfx at gmail.com Thu Jul 27 06:39:57 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Thu, 27 Jul 2023 11:39:57 +0100 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: Thanks Mark. Wonderful to see LC is working on it. > On 27 Jul 2023, at 9:39 am, Mark Waddingham via use-livecode wrote: > > On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: >> Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. > > Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 > > We've investigated and have a fix. > > As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). > > I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Build Amazing Things > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Thu Jul 27 09:37:29 2023 From: martyknappster at gmail.com (Marty Knapp) Date: Thu, 27 Jul 2023 06:37:29 -0700 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: Thanks for that update! --- Marty Knapp > On Jul 27, 2023, at 1:39 AM, Mark Waddingham via use-livecode wrote: > > On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: >> Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. > > Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 > > We've investigated and have a fix. > > As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). > > I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Build Amazing Things From matthias_livecode_150811 at m-r-d.de Thu Jul 27 10:48:39 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 27 Jul 2023 16:48:39 +0200 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? Message-ID: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> Hi, is there anyone in the list who has already one of those new code signing certificates on an eToken or in the cloud and would like to test my new wrapper for signtool.exe? Especially those who are not very familiar with Windows might find this wrapper helpful. I've tested it with my cloud base certificate, but had no chance to get it tested from one with an eToken certificate. So if there is interest, then please let me know. Regards, Matthias From matthias_livecode_150811 at m-r-d.de Thu Jul 27 14:23:09 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 27 Jul 2023 20:23:09 +0200 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: The fixed version of LC 9.6.9 for Sonoma is now as download available. > Am 27.07.2023 um 15:37 schrieb Marty Knapp via use-livecode : > > Thanks for that update! > --- > Marty Knapp > >> On Jul 27, 2023, at 1:39 AM, Mark Waddingham via use-livecode wrote: >> >> On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: >>> Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. >> >> Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 >> >> We've investigated and have a fix. >> >> As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). >> >> I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! >> >> Warmest Regards, >> >> Mark. >> >> -- >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >> LiveCode: Build Amazing Things > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 27 16:22:21 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 27 Jul 2023 16:22:21 -0400 Subject: charIndex property In-Reply-To: References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> Message-ID: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: > On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >> If I have some text in a field, I can use the "charIndex" property >> (see Dictionary) to obtain teh character position of the first >> character of a chunk. >> >> Does anyone know of a clever way to do the equivalent of the >> charIndex for an arbitrary chunk expression for a container/variable >> (i.e. not an actual field object)? > > This should work I think: > >    function charIndexOfWord pWordIndex, pTarget >       delete word pWordIndex to -1 of pTarget >       return the number of characters in pTarget + 1 >    end charIndexOfWord > > Deletion of chunks works from the first char that makes up the > computed range, so you are left with all the characters which sit > before it. > > The index of the character immediately before the start of the > specified word is the just the number of characters which sit before > it; and so the index of the first char of the specified word (which is > what charIndex gives you in a field) is that +1. > > The above should work for both +ve and -ve indices, and the obvious > changes will make it work for other string chunks (i.e. change 'Word' > for ). > Mark, Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) Using [] to quote strings. delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. This leaves pTarget as [The quick brown fox jumps over the .] The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. There are some similar issues, being off by  or more, with sentences and paragraphs in longer text. Thank you very much for chiming in with a good direction to try. Paul Dupuis Researchware From mark at livecode.com Thu Jul 27 17:06:17 2023 From: mark at livecode.com (Mark Waddingham) Date: Thu, 27 Jul 2023 22:06:17 +0100 Subject: charIndex property In-Reply-To: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. Alternative attempt: Put null into word N to -1 of S Delete codeunit (codeunitoffset(null, S) to -1 of S Return the number of chars in S + 1 The problem before was the chars which do not form part of the last chunk and remain after deletion. The above puts in a sentinel char which can be searched for to find where the requested chunk started. Second time lucky? ;) Mark. Sent from my iPhone > On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode wrote: > > On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >>> >>> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >> >> This should work I think: >> >> function charIndexOfWord pWordIndex, pTarget >> delete word pWordIndex to -1 of pTarget >> return the number of characters in pTarget + 1 >> end charIndexOfWord >> >> Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. >> >> The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. >> >> The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). >> > > Mark, > > Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: > > pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] > pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) > > Using [] to quote strings. > delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. > This leaves pTarget as [The quick brown fox jumps over the .] > The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. > > There are some similar issues, being off by or more, with sentences and paragraphs in longer text. > > Thank you very much for chiming in with a good direction to try. > > Paul Dupuis > Researchware > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Thu Jul 27 22:19:30 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 28 Jul 2023 12:19:30 +1000 Subject: revDeleteFolder Message-ID: I just got hit (again - I had forgotten my previous encounter) with the fact that revDeleteFolder is not available in LC server. I have no problem using the workaround from the Common library noted in the bug report that dates from 2014, but it would be nice if the documentation could be updated —after 9 years it *still* says it is included in the server edition. From marksmithhfx at gmail.com Fri Jul 28 06:19:16 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 11:19:16 +0100 Subject: Reorder fields Message-ID: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? Thanks From paul at researchware.com Fri Jul 28 07:54:31 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 28 Jul 2023 07:54:31 -0400 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: <1896a657-8168-53b0-d256-8bf0c19a0e2b@researchware.com> On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote: > Oh those pesky chunks which dont cover the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting. > > Alternative attempt: > > Put null into word N to -1 of S > Delete codeunit (codeunitoffset(null, S) to -1 of S > Return the number of chars in S + 1 > > The problem before was the chars which do not form part of the last chunk and remain after deletion. > > The above puts in a sentinel char which can be searched for to find where the requested chunk started. > > Second time lucky? ;) > > Second time's the charm. That works for all chunk types tested (trueWord, sentence, paragraph)! Thank you! From craig at starfirelighting.com Fri Jul 28 09:36:28 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 09:36:28 -0400 Subject: Reorder fields In-Reply-To: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> Message-ID: <0CA76417-57FB-4224-8FAD-D7FB86B95C4A@starfirelighting.com> Hi. Not sure why the tabbing order seems to be out of whack, but you can always force the issue by trapping the tabKey message in each field, and directing it to the next one of you own choice. Craig > On Jul 28, 2023, at 6:19 AM, Mark Smith via use-livecode wrote: > > How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? > > 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 craig at starfirelighting.com Fri Jul 28 09:50:57 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 09:50:57 -0400 Subject: Reorder fields In-Reply-To: <0CA76417-57FB-4224-8FAD-D7FB86B95C4A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <0CA76417-57FB-4224-8FAD-D7FB86B95C4A@starfirelighting.com> Message-ID: <8A8B6C9B-D642-4B08-B73D-7A181CE288E4@starfirelighting.com> I was sloppy, as usual. Trap the message in the card, and use the target to know where you are and where to go next. Craig > On Jul 28, 2023, at 9:36 AM, Craig Newman via use-livecode wrote: > > Hi. > > Not sure why the tabbing order seems to be out of whack, but you can always force the issue by trapping the tabKey message in each field, and directing it to the next one of you own choice. > > Craig > >> On Jul 28, 2023, at 6:19 AM, Mark Smith via use-livecode wrote: >> >> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >> >> Thanks >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Fri Jul 28 10:00:55 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 28 Jul 2023 10:00:55 -0400 Subject: Reorder fields In-Reply-To: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> Message-ID: <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: > How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? > > 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 marksmithhfx at gmail.com Fri Jul 28 10:19:57 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 15:19:57 +0100 Subject: Reorder fields In-Reply-To: <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> Message-ID: Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. Mark > On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: > > You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. > > > On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >> >> Thanks >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Fri Jul 28 11:17:42 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 11:17:42 -0400 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> Message-ID: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? Craig > On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: > > Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. > > Mark > > >> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >> >> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >> >> >> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>> >>> Thanks >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Fri Jul 28 11:17:42 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 11:17:42 -0400 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> Message-ID: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? Craig > On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: > > Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. > > Mark > > >> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >> >> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >> >> >> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>> >>> Thanks >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Fri Jul 28 11:50:59 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 16:50:59 +0100 Subject: Reorder fields In-Reply-To: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you select the label or the field on the form it does not select a group, so I never realised the grouping existed). Using the project browser to select each group the order was 8, 14, 11. I used Pauls trick to move grp 11 above 14 and that satisfied the reorder. But, I also tried and successfully used the Layer field in the Inspector to change the group ordering (in this case to 8, 14, 15) and achieved the same effect. It was a bit more complicated because I had to use the PB to select the grp and then open the inspector for that group to change the layer. Très compliqué, non! > On 28 Jul 2023, at 4:17 pm, Craig Newman via use-livecode wrote: > > Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? > > Craig > >> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: >> >> Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. >> >> Mark >> >> >>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >>> >>> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >>> >>> >>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 12:14:32 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 28 Jul 2023 11:14:32 -0500 Subject: Reorder fields In-Reply-To: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: <1899d47be40.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Layering works in the property inspector for me. The clue is that any layer you set moves everything above that layer one position higher. So if I want field b to layer lower than field c, I would set b's layer to what is currently c's layer. That would push c to one layer higher than b. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 28, 2023 10:20:23 AM Craig Newman via use-livecode wrote: > Why does, as Paul suggests, changing the layer order in the Project Browser > work, whereas changing the layer order explicitly does not? We know that > layers cannot be assigned to a particular object class (like fields) but > include all controls at once. Is it possible that the layer order of the > fields only was not properly grokked? > > Craig > >> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode >> wrote: >> >> Thanks Paul. That is one of those super helpful tips that is hard to >> discover on your own. 1 day we need an easily searchable wiki for all this >> acquired wisdom (but for now I have tucked it away for future reference). >> Thanks for replying. >> >> Mark >> >> >>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode >>> wrote: >>> >>> You can change the layer (order) in the Project Browser in the IDE by just >>> dragging the objects up or down the list of objects on the card. >>> >>> >>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) >>>> in positions 9, 15, 12 (as indicated by the Layer field in the Position >>>> tab). Tabbing cause these fields to be visited in the order a, c, b whereas >>>> I would prefer a, b, c. I have tried all manner of editing the Layer field >>>> to make them be in that order with no success, Ive variously tried new >>>> orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect >>>> their order. It always returns to 9, 15, 12. Lock size and position is not >>>> checked. Ive even tried doing this with the Number field in the Advanced >>>> tab, also without success. Ok, I did find a solution but while it was easy >>>> for me, it might not be as easy on a more complicated form. I deleted all 3 >>>> fields. Recreated field A (which was given the starting position of 11) >>>> then copy pasted two more times creating fields 12 and 13. So this >>>> satisfies my reorder interest, but seems to me a rather cumbersome and >>>> unnecessary procedure (if for no other reason than deleting fields also >>>> deletes all of the custom settings on the fields which doubles or triples >>>> the amount of effort involved). Maybe I am missing something more obvious? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 12:27:03 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 28 Jul 2023 11:27:03 -0500 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> You can toggle what gets selected with the "Select Grouped" icon in the top toolbar. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 28, 2023 10:53:08 AM Mark Smith via use-livecode wrote: > Well, this might explain it. The original designer had grouped the labels > and the fields into groups (so label A and field A into grp A, etc). I was > trying to change the order of the fields, (oddly, when you select the label > or the field on the form it does not select a group, so I never realised > the grouping existed). Using the project browser to select each group the > order was 8, 14, 11. I used Pauls trick to move grp 11 above 14 and that > satisfied the reorder. But, I also tried and successfully used the Layer > field in the Inspector to change the group ordering (in this case to 8, 14, > 15) and achieved the same effect. It was a bit more complicated because I > had to use the PB to select the grp and then open the inspector for that > group to change the layer. > > Trs compliqu, non! > > > >> On 28 Jul 2023, at 4:17 pm, Craig Newman via use-livecode >> wrote: >> >> Why does, as Paul suggests, changing the layer order in the Project Browser >> work, whereas changing the layer order explicitly does not? We know that >> layers cannot be assigned to a particular object class (like fields) but >> include all controls at once. Is it possible that the layer order of the >> fields only was not properly grokked? >> >> Craig >> >>> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode >>> wrote: >>> >>> Thanks Paul. That is one of those super helpful tips that is hard to >>> discover on your own. 1 day we need an easily searchable wiki for all this >>> acquired wisdom (but for now I have tucked it away for future reference). >>> Thanks for replying. >>> >>> Mark >>> >>> >>>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode >>>> wrote: >>>> >>>> You can change the layer (order) in the Project Browser in the IDE by just >>>> dragging the objects up or down the list of objects on the card. >>>> >>>> >>>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) >>>>> in positions 9, 15, 12 (as indicated by the Layer field in the Position >>>>> tab). Tabbing cause these fields to be visited in the order a, c, b whereas >>>>> I would prefer a, b, c. I have tried all manner of editing the Layer field >>>>> to make them be in that order with no success, Ive variously tried new >>>>> orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect >>>>> their order. It always returns to 9, 15, 12. Lock size and position is not >>>>> checked. Ive even tried doing this with the Number field in the Advanced >>>>> tab, also without success. Ok, I did find a solution but while it was easy >>>>> for me, it might not be as easy on a more complicated form. I deleted all 3 >>>>> fields. Recreated field A (which was given the starting position of 11) >>>>> then copy pasted two more times creating fields 12 and 13. So this >>>>> satisfies my reorder interest, but seems to me a rather cumbersome and >>>>> unnecessary procedure (if for no other reason than deleting fields also >>>>> deletes all of the custom settings on the fields which doubles or triples >>>>> the amount of effort involved). Maybe I am missing something more obvious? >>>>> >>>>> Thanks >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 28 13:05:13 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 18:05:13 +0100 Subject: Reorder fields In-Reply-To: <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> You hit the nail on the head. Select grouped was not selected so each field / label looked independent (and could be independently selected). But in fact they were grouped. With select grouped off the fields could not be rearranged. Turning it on enabled layering the groups (containing the fields) in the correct order. Because its not obvious the fields are grouped I never think to check that option (this is not my stack but someone else’s. Probably at some point there was a point to grouping them together… maybe during the design phase). It’s all working now. And Pauls suggestion of checking the PB was useful in “seeing” that each fields label and field was grouped (even without the select grouped icon being toggled on). Thanks to all. Mark > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode wrote: > > You can toggle what gets selected with the "Select Grouped" icon in the top toolbar. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode wrote: > >> Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 17:12:41 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 28 Jul 2023 17:12:41 -0400 Subject: ICYMI: 2024 app store API tightening Message-ID: Saw this in ZDNet: Certain iOS (and presumably macos) apis will require specific justification to be used, starting 2024: https://www.zdnet.com/article/developers-have-new-apple-app-store-rules-to-follow From bobsneidar at iotecdigital.com Fri Jul 28 17:35:14 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 28 Jul 2023 21:35:14 +0000 Subject: charIndex property In-Reply-To: <1896a657-8168-53b0-d256-8bf0c19a0e2b@researchware.com> References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> <1896a657-8168-53b0-d256-8bf0c19a0e2b@researchware.com> Message-ID: This is the essence on Livecode! This is why we love it! Shouldn’t we rebrand it? How about Lovecode?? ….. Never mind. 😂 Sent from my iPhone > On Jul 28, 2023, at 04:55, Paul Dupuis via use-livecode wrote: > > On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote: >> Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. >> >> Alternative attempt: >> >> Put null into word N to -1 of S >> Delete codeunit (codeunitoffset(null, S) to -1 of S >> Return the number of chars in S + 1 >> >> The problem before was the chars which do not form part of the last chunk and remain after deletion. >> >> The above puts in a sentinel char which can be searched for to find where the requested chunk started. >> >> Second time lucky? ;) >> >> > > Second time's the charm. That works for all chunk types tested (trueWord, sentence, paragraph)! Thank you! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Jul 28 18:20:56 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 28 Jul 2023 12:20:56 -1000 Subject: Reorder fields In-Reply-To: <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> Message-ID: Also check out the relayerGroupedControls property. It probably would have led to even greater confusion in this instance, but it's good to know about it and what it does. From the dictionary: "Specifies whether you can change the layer of controls in a group even if not in group-editing mode." I don't know how it works in the Project Browser, but in Navigator I set it to true before attempting any relayering, so in Navigator by default it's possible to relayer controls in groups, and into and out of groups, by dragging them. On Fri, Jul 28, 2023 at 7:06 AM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > You hit the nail on the head. Select grouped was not selected so each > field / label looked independent (and could be independently selected). But > in fact they were grouped. With select grouped off the fields could not be > rearranged. Turning it on enabled layering the groups (containing the > fields) in the correct order. Because its not obvious the fields are > grouped I never think to check that option (this is not my stack but > someone else’s. Probably at some point there was a point to grouping them > together… maybe during the design phase). It’s all working now. And Pauls > suggestion of checking the PB was useful in “seeing” that each fields label > and field was grouped (even without the select grouped icon being toggled > on). > > Thanks to all. > Mark > > > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > You can toggle what gets selected with the "Select Grouped" icon in the > top toolbar. > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> Well, this might explain it. The original designer had grouped the > labels and the fields into groups (so label A and field A into grp A, etc). > I was trying to change the order of the fields, (oddly, when you Please > visit this url to subscribe, unsubscribe and manage your subscription > preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 29 03:49:13 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 29 Jul 2023 08:49:13 +0100 Subject: charIndex property In-Reply-To: References: Message-ID: Love it 😂 Sent from my iPhone > On Jul 28, 2023, at 10:36 PM, Bob Sneidar via use-livecode wrote: > > This is the essence on Livecode! This is why we love it! Shouldn’t we rebrand it? How about Lovecode?? ….. > > Never mind. 😂 > > Sent from my iPhone > >>> On Jul 28, 2023, at 04:55, Paul Dupuis via use-livecode wrote: >>> >>> On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote: >>> Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. >>> >>> Alternative attempt: >>> >>> Put null into word N to -1 of S >>> Delete codeunit (codeunitoffset(null, S) to -1 of S >>> Return the number of chars in S + 1 >>> >>> The problem before was the chars which do not form part of the last chunk and remain after deletion. >>> >>> The above puts in a sentinel char which can be searched for to find where the requested chunk started. >>> >>> Second time lucky? ;) >>> >>> >> >> Second time's the charm. That works for all chunk types tested (trueWord, sentence, paragraph)! Thank you! >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 29 09:19:23 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 29 Jul 2023 14:19:23 +0100 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> Message-ID: <9D4AB25B-CBB8-4FD8-A6C7-10AE8718CBC9@gmail.com> Thanks Geoff. Very interesting. That was, of course, my problem. The items were grouped and the relayerGroupedControls property was false. Changing it to true immediately made it possible to relayer the controls. I feel like I’ve just been introduced to huge component of livecode that I never knew existed (and thought was only available in one place in the IDE). There are rules here, and not just a few. First, items won’t relayer if they are grouped and relayingGroupedControls is set to false. If set to true then you can relayer them, but keep in mind a side effect (as I experienced) is it might change the grouping. However, if you toggle "select grouped" in the IDE you’ll visually see what is grouped, and you can relayer those groups if that achieves your purpose. In the case of just changing the tab order you have several options: you can change the relayerGroupedControls to true, you can ungroup the items and change the layer on the positions tab in the properties inspector or you can use the project browser to drag items around to relayer them (as this has the advantage of showing (more clearly) what items are grouped). Terrific information to know. Thank you everyone. Geoff, I’ve never played with Navigator but from the sounds of it you’ve kept it updated. Is it still available? Mark > On 28 Jul 2023, at 11:20 pm, Geoff Canyon wrote: > > Also check out the relayerGroupedControls property. It probably would have led to even greater confusion in this instance, but it's good to know about it and what it does. From the dictionary: "Specifies whether you can change the layer of controls in a group even if not in group-editing mode." > > I don't know how it works in the Project Browser, but in Navigator I set it to true before attempting any relayering, so in Navigator by default it's possible to relayer controls in groups, and into and out of groups, by dragging them. > > On Fri, Jul 28, 2023 at 7:06 AM Mark Smith via use-livecode > wrote: > You hit the nail on the head. Select grouped was not selected so each field / label looked independent (and could be independently selected). But in fact they were grouped. With select grouped off the fields could not be rearranged. Turning it on enabled layering the groups (containing the fields) in the correct order. Because its not obvious the fields are grouped I never think to check that option (this is not my stack but someone else’s. Probably at some point there was a point to grouping them together… maybe during the design phase). It’s all working now. And Pauls suggestion of checking the PB was useful in “seeing” that each fields label and field was grouped (even without the select grouped icon being toggled on). > > Thanks to all. > Mark > > > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode > wrote: > > > > You can toggle what gets selected with the "Select Grouped" icon in the top toolbar. > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode > wrote: > > > >> Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mkoob at rogers.com Sat Jul 29 10:27:44 2023 From: mkoob at rogers.com (Martin Koob) Date: Sat, 29 Jul 2023 10:27:44 -0400 Subject: Reorder fields In-Reply-To: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Hi The tab order will follow the field’s layer from lowest to highest. (Or from highest to lowest if you hold down the SHIFT key while tabbing just like other apps.) So as you said with your original fields they will tab in this order. field “a" - Layer 9 field ”c" - Layer 12 field “b" - Layer 15 Craig you said... > whereas changing the layer order explicitly does not (work) How were you trying to change the layer? I didn’t know that dragging in the project browser works to order the objects. I will have to check that out. The two ways I have used are either with the property inspector or by script. Property Inspector - click the ‘Position’ tab of the property inspector - Change the number in the ‘Layer’ field either directly or by using the arrow keys. In your case I would first select field ‘b’ and then bump up its layer to 10. field “a" - Layer 9 field “b" - Layer 10 field ”c" - Layer 12 Then I would first select field c’ and then bump up its layer to 11. This is to prevent the focus going to object with layer 11 before going to object with later 12. The user will think the tab key did not work and have to tab again. field “a" - Layer 9 field “b" - Layer 10 field ”c" - Layer 11 That of course will reorder tabbing behaviour or overlapping of other objects between layer 9 and 15 which may or may not lead to unwanted results. Sometimes it can get crazy trying to figure out the order that is correct. Here is a script you can use to quickly show the fields’ layers as their values and put the fields names in their tooltips. command showFieldsLayers repeat with tfieldNumber = 1 to the number of fields of this card put "Layer: " & the layer of field tfieldNumber into field tfieldNumber set the tooltip of field tfieldNumber to the name of field tfieldNumber end repeat end showFieldsLayers Set Layer by Script The other way to set the layer of an object is to do it by script in the message box. set the layer of field "A" to 3 Have a good weekend all. Martin Koob > On Jul 28, 2023, at 11:17 AM, Craig Newman via use-livecode wrote: > > Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? > > Craig > >> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: >> >> Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. >> >> Mark >> >> >>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >>> >>> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >>> >>> >>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 29 11:00:35 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 29 Jul 2023 16:00:35 +0100 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode wrote: > > The two ways I have used are either with the property inspector or by script. > > Property Inspector > - click the ‘Position’ tab of the property inspector > - Change the number in the ‘Layer’ field either directly or by using the arrow keys. Thanks Martin, but as noted, "items won’t relayer if they are grouped and “relayingGroupedControls" is set to false. That was exactly the situation I was in. In my case, field A was grouped with label A, etc so attempting to relayer them failed. I didn’t notice they were grouped because Select Grouped was not chosen in the menu bar. With Select Grouped chosen it’s easy to see the label-field grouping, and then to relayer the groups (not the fields inside the groups) if need be. Or, you can use the PB to do this by just dragging the groups around to relayer them. Finally, there’s a property called relayerGroupedControls which will allow you to relayer objects inside a group. If that had of been “true” instead of the default “false” I would have been able to relayer them in the first instance. But you have to be careful with this option as it can also revise the grouping. BTW, I just tried it (grouped the labels and fields, set the relayerGroupedControls option to true, turned off Select Grouped) and I was able to select the individual fields and relayer them using the Layer field in the Property Inspector. Kinda cool but my goodness you really have to know your stuff to make that manoeuvre happen. But also thank you for the opportunity to discuss this further. It helps with the encoding of this new information into my ageing brain 😊 And also, if I got any of it wrong, please correct me. Mark From mkoob at rogers.com Sat Jul 29 16:45:22 2023 From: mkoob at rogers.com (Martin Koob) Date: Sat, 29 Jul 2023 16:45:22 -0400 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Hi MarkwI did not see your later post that the fields were grouped. My scenario was just the most basic case of fields on a card. I guess it would work if all the fields were in 1 group but having fields in different groups certainly complicates things. Cool solution though. I wasn’t aware of the relayerGroupedControls option. Reading the entry in the Dictionary I learned some interesting things about groups and layers. e.g. you can move an object out of a group by setting its layer above the layer of the topmost object in the group or conversely setting it below the bottommost object in the group. Hmmm…. What could you do with that? True the old brain needs a bit of a work out once in a while to keep the neurons running. Thanks for posting your question. Martin > On Jul 29, 2023, at 11:00 AM, Mark Smith wrote: > > On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode > wrote: >> >> The two ways I have used are either with the property inspector or by script. >> >> Property Inspector >> - click the ‘Position’ tab of the property inspector >> - Change the number in the ‘Layer’ field either directly or by using the arrow keys. > > Thanks Martin, but as noted, "items won’t relayer if they are grouped and “relayingGroupedControls" is set to false. That was exactly the situation I was in. In my case, field A was grouped with label A, etc so attempting to relayer them failed. I didn’t notice they were grouped because Select Grouped was not chosen in the menu bar. With Select Grouped chosen it’s easy to see the label-field grouping, and then to relayer the groups (not the fields inside the groups) if need be. Or, you can use the PB to do this by just dragging the groups around to relayer them. Finally, there’s a property called relayerGroupedControls which will allow you to relayer objects inside a group. If that had of been “true” instead of the default “false” I would have been able to relayer them in the first instance. But you have to be careful with this option as it can also revise the grouping. BTW, I just tried it (grouped the labels and fields, set the relayerGroupedControls option to true, turned off Select Grouped) and I was able to select the individual fields and relayer them using the Layer field in the Property Inspector. Kinda cool but my goodness you really have to know your stuff to make that manoeuvre happen. > > But also thank you for the opportunity to discuss this further. It helps with the encoding of this new information into my ageing brain 😊 And also, if I got any of it wrong, please correct me. > > Mark > From gcanyon at gmail.com Sat Jul 29 18:20:48 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 29 Jul 2023 12:20:48 -1000 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: One trick to this is that objects are included into a group if relayerGroupedControls is set to true and the layer of the control is set to the layer above the group. Meaning that if you have this arrangement: stack "Untitled 1" card id 1002 | group id 1005 (1005) | | button "Button" (1006) | | button "Button" (1004) | button "Button" (1003) | button "test" (1007) put the layer of button "test" -- puts 5 set relayergroupedcontrols to false;set the layer of button "test" to 4 This is now the arrangement: stack "Untitled 1" card id 1002 | group id 1005 (1005) | | button "Button" (1006) | | button "Button" (1004) | button "test" (1007) | button "Button" (1003) put the layer of button "test" -- puts 4 Button "test" is immediately above the group, but not in the group set relayergroupedcontrols to true;set the layer of button "test" to 4 Now the arrangement is: stack "Untitled 1" card id 1002 | group id 1005 (1005) | | button "Button" (1006) | | button "Button" (1004) | | button "test" (1007) | button "Button" (1003) put the layer of button "test" -- puts 4 The layer of button "test" didn't change, but now it is in the group -- and the topmost object in the group. I learned this the hard way through much experimentation building Navigator. Getting drag-and-drop relayering right with selection of multiple objects, and discontiguous selections, in and out of groups, is *painful*, and I've done it several times now... On Sat, Jul 29, 2023 at 10:46 AM Martin Koob via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi MarkwI did not see your later post that the fields were grouped. My > scenario was just the most basic case of fields on a card. I guess it > would work if all the fields were in 1 group but having fields in different > groups certainly complicates things. Cool solution though. I wasn’t aware > of the relayerGroupedControls option. Reading the entry in the Dictionary > I learned some interesting things about groups and layers. > e.g. you can move an object out of a group by setting its layer above the > layer of the topmost object in the group or conversely setting it below > the bottommost object in the group. Hmmm…. What could you do with that? > > True the old brain needs a bit of a work out once in a while to keep the > neurons running. Thanks for posting your question. > > Martin > > > On Jul 29, 2023, at 11:00 AM, Mark Smith wrote: > > > > On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode < > use-livecode at lists.runrev.com > > wrote: > >> > >> The two ways I have used are either with the property inspector or by > script. > >> > >> Property Inspector > >> - click the ‘Position’ tab of the property inspector > >> - Change the number in the ‘Layer’ field either directly or by using > the arrow keys. > > > > Thanks Martin, but as noted, "items won’t relayer if they are grouped > and “relayingGroupedControls" is set to false. That was exactly the > situation I was in. In my case, field A was grouped with label A, etc so > attempting to relayer them failed. I didn’t notice they were grouped > because Select Grouped was not chosen in the menu bar. With Select Grouped > chosen it’s easy to see the label-field grouping, and then to relayer the > groups (not the fields inside the groups) if need be. Or, you can use the > PB to do this by just dragging the groups around to relayer them. Finally, > there’s a property called relayerGroupedControls which will allow you to > relayer objects inside a group. If that had of been “true” instead of the > default “false” I would have been able to relayer them in the first > instance. But you have to be careful with this option as it can also revise > the grouping. BTW, I just tried it (grouped the labels and fields, set the > relayerGroupedControls option to true, turned off Select Grouped) and I was > able to select the individual fields and relayer them using the Layer field > in the Property Inspector. Kinda cool but my goodness you really have to > know your stuff to make that manoeuvre happen. > > > > But also thank you for the opportunity to discuss this further. It helps > with the encoding of this new information into my ageing brain 😊 And also, > if I got any of it wrong, please correct me. > > > > 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 tom at makeshyft.com Sun Jul 30 02:42:41 2023 From: tom at makeshyft.com (Tom Glod) Date: Sun, 30 Jul 2023 02:42:41 -0400 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? In-Reply-To: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> References: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> Message-ID: Hmm, I'm going to look into this Matthias, I had not heard of etoken Certs. I wonder if this is the reason for the recent doubling of the price of signing certificates. On Thu, Jul 27, 2023 at 10:49 AM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > is there anyone in the list who has already one of those new code signing > certificates on an eToken or in the cloud and would like to test my new > wrapper for signtool.exe? > > Especially those who are not very familiar with Windows might find this > wrapper helpful. > > I've tested it with my cloud base certificate, but had no chance to get it > tested from one with an eToken certificate. > > So if there is interest, then please let me know. > > 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 jacque at hyperactivesw.com Sun Jul 30 14:08:18 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 30 Jul 2023 13:08:18 -0500 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? In-Reply-To: References: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> Message-ID: <189a7fc9e50.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Yes, prices have gone way up. You now need a physical USB stick with an encrypted certificate for Windows. I understand there is a cloud option too but we weren't offered that. If you go for the USB solution, give yourself some time. We ordered from Sectigo and while they claim you will get the device in 2 or 3 days, they didn't send it for 5 weeks, which required numerous support interactions to determine why the order was lost in the bureaucracy. If that happens to you, get on phone, the chat bot people are evasive and will tell you it's processing and you will receive it in "2 or 3 days." Demand to talk to a supervisor. My client can be very persuasive when she's pissed off. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 30, 2023 1:45:06 AM Tom Glod via use-livecode wrote: > Hmm, I'm going to look into this Matthias, I had not heard of etoken Certs. > I wonder if this is the reason for the recent doubling of the price of > signing certificates. > > On Thu, Jul 27, 2023 at 10:49AM matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi, >> is there anyone in the list who has already one of those new code signing >> certificates on an eToken or in the cloud and would like to test my new >> wrapper for signtool.exe? >> >> Especially those who are not very familiar with Windows might find this >> wrapper helpful. >> >> I've tested it with my cloud base certificate, but had no chance to get it >> tested from one with an eToken certificate. >> >> So if there is interest, then please let me know. >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Sun Jul 30 15:23:01 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sun, 30 Jul 2023 19:23:01 +0000 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Also good time to mention revNavigator where the grouping would be immediately obvious and you can drag to reorder. Sent from my iPhone > On Jul 29, 2023, at 15:22, Geoff Canyon via use-livecode wrote: > > One trick to this is that objects are included into a group if > relayerGroupedControls is set to true and the layer of the control is set > to the layer above the group. Meaning that if you have this arrangement: > > stack "Untitled 1" > card id 1002 > | group id 1005 (1005) > | | button "Button" (1006) > | | button "Button" (1004) > | button "Button" (1003) > | button "test" (1007) > > put the layer of button "test" > -- puts 5 > > set relayergroupedcontrols to false;set the layer of button "test" to 4 > > This is now the arrangement: > > stack "Untitled 1" > card id 1002 > | group id 1005 (1005) > | | button "Button" (1006) > | | button "Button" (1004) > | button "test" (1007) > | button "Button" (1003) > > put the layer of button "test" > -- puts 4 > > Button "test" is immediately above the group, but not in the group > > set relayergroupedcontrols to true;set the layer of button "test" to 4 > > Now the arrangement is: > > stack "Untitled 1" > card id 1002 > | group id 1005 (1005) > | | button "Button" (1006) > | | button "Button" (1004) > | | button "test" (1007) > | button "Button" (1003) > > put the layer of button "test" > -- puts 4 > > The layer of button "test" didn't change, but now it is in the group -- and > the topmost object in the group. > > I learned this the hard way through much experimentation building > Navigator. Getting drag-and-drop relayering right with selection of > multiple objects, and discontiguous selections, in and out of groups, is > *painful*, and I've done it several times now... > >> On Sat, Jul 29, 2023 at 10:46 AM Martin Koob via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Hi MarkwI did not see your later post that the fields were grouped. My >> scenario was just the most basic case of fields on a card. I guess it >> would work if all the fields were in 1 group but having fields in different >> groups certainly complicates things. Cool solution though. I wasn’t aware >> of the relayerGroupedControls option. Reading the entry in the Dictionary >> I learned some interesting things about groups and layers. >> e.g. you can move an object out of a group by setting its layer above the >> layer of the topmost object in the group or conversely setting it below >> the bottommost object in the group. Hmmm…. What could you do with that? >> >> True the old brain needs a bit of a work out once in a while to keep the >> neurons running. Thanks for posting your question. >> >> Martin >> >>>> On Jul 29, 2023, at 11:00 AM, Mark Smith wrote: >>> >>> On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode < >> use-livecode at lists.runrev.com > >> wrote: >>>> >>>> The two ways I have used are either with the property inspector or by >> script. >>>> >>>> Property Inspector >>>> - click the ‘Position’ tab of the property inspector >>>> - Change the number in the ‘Layer’ field either directly or by using >> the arrow keys. >>> >>> Thanks Martin, but as noted, "items won’t relayer if they are grouped >> and “relayingGroupedControls" is set to false. That was exactly the >> situation I was in. In my case, field A was grouped with label A, etc so >> attempting to relayer them failed. I didn’t notice they were grouped >> because Select Grouped was not chosen in the menu bar. With Select Grouped >> chosen it’s easy to see the label-field grouping, and then to relayer the >> groups (not the fields inside the groups) if need be. Or, you can use the >> PB to do this by just dragging the groups around to relayer them. Finally, >> there’s a property called relayerGroupedControls which will allow you to >> relayer objects inside a group. If that had of been “true” instead of the >> default “false” I would have been able to relayer them in the first >> instance. But you have to be careful with this option as it can also revise >> the grouping. BTW, I just tried it (grouped the labels and fields, set the >> relayerGroupedControls option to true, turned off Select Grouped) and I was >> able to select the individual fields and relayer them using the Layer field >> in the Property Inspector. Kinda cool but my goodness you really have to >> know your stuff to make that manoeuvre happen. >>> >>> But also thank you for the opportunity to discuss this further. It helps >> with the encoding of this new information into my ageing brain 😊 And also, >> if I got any of it wrong, please correct me. >>> >>> 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 matthias_livecode_150811 at m-r-d.de Sun Jul 30 16:56:37 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 30 Jul 2023 22:56:37 +0200 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? In-Reply-To: <189a7fc9e50.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> <189a7fc9e50.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <9BA65F49-1577-4C48-83EA-4FB2D5181534@m-r-d.de> > Am 30.07.2023 um 20:08 schrieb J. Landman Gay via use-livecode : > > Yes, prices have gone way up. You now need a physical USB stick with an encrypted certificate for Windows. > I understand there is a cloud option too but we weren't offered that. Not every certificate issuer offers the 'certificate in cloud' (software token) solution. I for example have a Certum certificate. Certum offers for the OV and the EV certificates both the certificate in cloud and the eToken solution. So one can choose. For my OV certificate in the cloud I paid not more than i paid for my old 3-year certificate. I purchased not directly from Certum, but from SSLPoint and paid 329 Eur for a 3-year OV certificate in the cloud. For those who are interested in a Cloud certificate.... Leaderssl.com is currently selling the 3-years Certum OV cloud certificate even for only 300 Euros and the EV for 600 Euros. The cloud based solutions works this way: You have to install a mobile app on your Android or iOS smart phone and also a desktop app on your Windows pc. The mobile app creates a one time password which you need to login with your desktop app into the Certum "Cloud" or however this could be called. As soon and as long you are logged in to the cloud service the certificate is "included" in your certificate store. Signtool.exe and any also other signing tool, e.g. Jarsigner, which is able to sign using a token, can access the certificate then. The eToken solution works similar. You have to install a driver for the eToken on your Windows PC. As soon as signtool tries to access the certificate from the eToken, the driver software asks for the password to access the eToken. Unfortunately osslsigncode for macOS currently does not support tokens, therefore it is not possible to sign Windows executabls on macOS anymore when using those new certificates. Osslsignode for Linux shall support the new tokens, but i haven't tested it yet. Matthias > If you go for the USB solution, give yourself some time. We ordered from Sectigo and while they claim you will get the device in 2 or 3 days, they didn't send it for 5 weeks, which required numerous support interactions to determine why the order was lost in the bureaucracy. If that happens to you, get on phone, the chat bot people are evasive and will tell you it's processing and you will receive it in "2 or 3 days." Demand to talk to a supervisor. > > My client can be very persuasive when she's pissed off. :) > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 30, 2023 1:45:06 AM Tom Glod via use-livecode wrote: > >> Hmm, I'm going to look into this Matthias, I had not heard of etoken Certs. >> I wonder if this is the reason for the recent doubling of the price of >> signing certificates. >> >> On Thu, Jul 27, 2023 at 10:49 AM matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi, >>> is there anyone in the list who has already one of those new code signing >>> certificates on an eToken or in the cloud and would like to test my new >>> wrapper for signtool.exe? >>> >>> Especially those who are not very familiar with Windows might find this >>> wrapper helpful. >>> >>> I've tested it with my cloud base certificate, but had no chance to get it >>> tested from one with an eToken certificate. >>> >>> So if there is interest, then please let me know. >>> >>> Regards, >>> Matthias >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Mon Jul 31 01:00:09 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 30 Jul 2023 22:00:09 -0700 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Yeah, the three driving forces behind Navigator originally were: 1. Speed, because the alternatives didn't run so quickly for larger projects on hardware available circa 20 years ago. 2. Compactness, because the alternatives were pretty overwhelming on the monitors people were using back then. 3. And to your point: showing multiple layers clearly, because there were a number of former HyperCard users finding it hard to adapt to an environment with more than one "background". :-) On Sun, Jul 30, 2023 at 12:24 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Also good time to mention revNavigator where the grouping would be > immediately obvious and you can drag to reorder. > > Sent from my iPhone > > > On Jul 29, 2023, at 15:22, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > One trick to this is that objects are included into a group if > > relayerGroupedControls is set to true and the layer of the control is set > > to the layer above the group. Meaning that if you have this arrangement: > > > > stack "Untitled 1" > > card id 1002 > > | group id 1005 (1005) > > | | button "Button" (1006) > > | | button "Button" (1004) > > | button "Button" (1003) > > | button "test" (1007) > > > > put the layer of button "test" > > -- puts 5 > > > > set relayergroupedcontrols to false;set the layer of button "test" to 4 > > > > This is now the arrangement: > > > > stack "Untitled 1" > > card id 1002 > > | group id 1005 (1005) > > | | button "Button" (1006) > > | | button "Button" (1004) > > | button "test" (1007) > > | button "Button" (1003) > > > > put the layer of button "test" > > -- puts 4 > > > > Button "test" is immediately above the group, but not in the group > > > > set relayergroupedcontrols to true;set the layer of button "test" to 4 > > > > Now the arrangement is: > > > > stack "Untitled 1" > > card id 1002 > > | group id 1005 (1005) > > | | button "Button" (1006) > > | | button "Button" (1004) > > | | button "test" (1007) > > | button "Button" (1003) > > > > put the layer of button "test" > > -- puts 4 > > > > The layer of button "test" didn't change, but now it is in the group -- > and > > the topmost object in the group. > > > > I learned this the hard way through much experimentation building > > Navigator. Getting drag-and-drop relayering right with selection of > > multiple objects, and discontiguous selections, in and out of groups, is > > *painful*, and I've done it several times now... > > > >> On Sat, Jul 29, 2023 at 10:46 AM Martin Koob via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Hi MarkwI did not see your later post that the fields were grouped. My > >> scenario was just the most basic case of fields on a card. I guess it > >> would work if all the fields were in 1 group but having fields in > different > >> groups certainly complicates things. Cool solution though. I wasn’t > aware > >> of the relayerGroupedControls option. Reading the entry in the > Dictionary > >> I learned some interesting things about groups and layers. > >> e.g. you can move an object out of a group by setting its layer above > the > >> layer of the topmost object in the group or conversely setting it below > >> the bottommost object in the group. Hmmm…. What could you do with that? > >> > >> True the old brain needs a bit of a work out once in a while to keep the > >> neurons running. Thanks for posting your question. > >> > >> Martin > >> > >>>> On Jul 29, 2023, at 11:00 AM, Mark Smith > wrote: > >>> > >>> On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode < > >> use-livecode at lists.runrev.com > > >> wrote: > >>>> > >>>> The two ways I have used are either with the property inspector or by > >> script. > >>>> > >>>> Property Inspector > >>>> - click the ‘Position’ tab of the property inspector > >>>> - Change the number in the ‘Layer’ field either directly or by using > >> the arrow keys. > >>> > >>> Thanks Martin, but as noted, "items won’t relayer if they are grouped > >> and “relayingGroupedControls" is set to false. That was exactly the > >> situation I was in. In my case, field A was grouped with label A, etc so > >> attempting to relayer them failed. I didn’t notice they were grouped > >> because Select Grouped was not chosen in the menu bar. With Select > Grouped > >> chosen it’s easy to see the label-field grouping, and then to relayer > the > >> groups (not the fields inside the groups) if need be. Or, you can use > the > >> PB to do this by just dragging the groups around to relayer them. > Finally, > >> there’s a property called relayerGroupedControls which will allow you to > >> relayer objects inside a group. If that had of been “true” instead of > the > >> default “false” I would have been able to relayer them in the first > >> instance. But you have to be careful with this option as it can also > revise > >> the grouping. BTW, I just tried it (grouped the labels and fields, set > the > >> relayerGroupedControls option to true, turned off Select Grouped) and I > was > >> able to select the individual fields and relayer them using the Layer > field > >> in the Property Inspector. Kinda cool but my goodness you really have to > >> know your stuff to make that manoeuvre happen. > >>> > >>> But also thank you for the opportunity to discuss this further. It > helps > >> with the encoding of this new information into my ageing brain 😊 And > also, > >> if I got any of it wrong, please correct me. > >>> > >>> 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 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 31 11:44:24 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Jul 2023 15:44:24 +0000 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: I replaced the code in the original function with this code and it won’t compile. Do you mind posting the full working function again? Bob S > On Jul 27, 2023, at 2:06 PM, Mark Waddingham via use-livecode wrote: > > Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. > > Alternative attempt: > > Put null into word N to -1 of S > Delete codeunit (codeunitoffset(null, S) to -1 of S > Return the number of chars in S + 1 > > The problem before was the chars which do not form part of the last chunk and remain after deletion. > > The above puts in a sentinel char which can be searched for to find where the requested chunk started. > > Second time lucky? ;) > > Mark. > > Sent from my iPhone > >> On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode wrote: >> >> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>>> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >>>> >>>> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >>> >>> This should work I think: >>> >>> function charIndexOfWord pWordIndex, pTarget >>> delete word pWordIndex to -1 of pTarget >>> return the number of characters in pTarget + 1 >>> end charIndexOfWord >>> >>> Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. >>> >>> The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. >>> >>> The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). >>> >> >> Mark, >> >> Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: >> >> pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] >> pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) >> >> Using [] to quote strings. >> delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. >> This leaves pTarget as [The quick brown fox jumps over the .] >> The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. >> >> There are some similar issues, being off by or more, with sentences and paragraphs in longer text. >> >> Thank you very much for chiming in with a good direction to try. >> >> Paul Dupuis >> Researchware >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Jul 31 11:54:04 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 31 Jul 2023 11:54:04 -0400 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: Bob, Here is a version of Mark's method, for trueWords, sentences, and paragraphs, with the added parameter of pDirection to get the char index of the start of the chunk or the end of the chunk containing the character position pChunkIndex. *private**function* rwCharIndex pText, pChunkType, pChunkIndex, pDirection *-- pText is the full text* *-- pChunkType is once of: words|sentences|paragraphs* *-- pChunkIndex is the integer index in the indicated units. ie. "word",7 is the 7th word* *-- pDirection is one of: first|last meaning either the 1st character of the chunk or the last character* *-- error checking, emty is returned if an error occurs with the parameters* *if* pText isempty*then* *return*empty *if* pChunkType isnotamongtheitemsof"words,sentences,paragraphs"*then* *return*empty *if* pChunkIndex isnotaninteger*then* *return*empty *if* pDirection isnotamongtheitemsof"first,last"*then* *return*empty *local*tL *switch* pChunkType *case* "words" *switch* pDirection *case* "first" *put*nullintotrueWordpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharsinpText + 1) *break* *case* "last" *put*length(trueWordpChunkIndex ofpText) intotL *put*nullintotrueWordpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharactersinpText + tL) *break* *end* *switch* *break* *case* "sentences" *switch* pDirection *case* "first" *put*nullintosentencepChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharsinpText + 1) *break* *case* "last" *put*length(sentencepChunkIndex ofpText) intotL *put*nullintosentencepChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharactersinpText + tL) *break* *end* *switch* *break* *case* "paragraphs" *switch* pDirection *case* "first" *put*nullintoparagraphpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharsinpText + 1) *break* *case* "last" *put*length(paragraphpChunkIndex ofpText) intotL *put*nullintoparagraphpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharactersinpText + tL) *break* *end* *switch* *break* *end* *switch* *end*rwCharIndex On 7/31/2023 11:44 AM, Bob Sneidar via use-livecode wrote: > I replaced the code in the original function with this code and it wont compile. > > Do you mind posting the full working function again? > > Bob S > > >> On Jul 27, 2023, at 2:06 PM, Mark Waddingham via use-livecode wrote: >> >> Oh those pesky chunks which dont cover the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting. >> >> Alternative attempt: >> >> Put null into word N to -1 of S >> Delete codeunit (codeunitoffset(null, S) to -1 of S >> Return the number of chars in S + 1 >> >> The problem before was the chars which do not form part of the last chunk and remain after deletion. >> >> The above puts in a sentinel char which can be searched for to find where the requested chunk started. >> >> Second time lucky? ;) >> >> Mark. >> >> Sent from my iPhone >> >>> On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode wrote: >>> >>> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>>>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>>>> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >>>>> >>>>> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >>>> This should work I think: >>>> >>>> function charIndexOfWord pWordIndex, pTarget >>>> delete word pWordIndex to -1 of pTarget >>>> return the number of characters in pTarget + 1 >>>> end charIndexOfWord >>>> >>>> Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. >>>> >>>> The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. >>>> >>>> The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). >>>> >>> Mark, >>> >>> Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: >>> >>> pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] >>> pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) >>> >>> Using [] to quote strings. >>> delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. >>> This leaves pTarget as [The quick brown fox jumps over the .] >>> The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. >>> >>> There are some similar issues, being off by or more, with sentences and paragraphs in longer text. >>> >>> Thank you very much for chiming in with a good direction to try. >>> >>> Paul Dupuis >>> Researchware >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Jul 31 11:56:01 2023 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 31 Jul 2023 15:56:01 +0000 Subject: LC domains for sale Message-ID: <20230731155601.Horde.-K_qhsPryOcwm8pdStpuAxt@hub.4wsys.com> I had taken out these domains some time ago for possible projects, but now I'm planning on having those proposed services become part of the existing livecodejournal.com domain instead.   If anyone here is interested in these domains they're listed at AfterNIC.com, and I'd be happy to negotiate favorable pricing if you have a community-oriented use in mind:   livecodeworld.com learnlivecode.com   --   Richard Gaskin Fourth World System   From paul at researchware.com Mon Jul 31 12:08:08 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 31 Jul 2023 12:08:08 -0400 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: I have no idea why pasting placed *'s all over the place! On 7/31/2023 11:54 AM, Paul Dupuis via use-livecode wrote: > Bob, > > Here is a version of Mark's method, for trueWords, sentences, and > paragraphs, with the added parameter of pDirection to get the char > index of the start of the chunk or the end of the chunk containing the > character position pChunkIndex. > > *private**function* rwCharIndex pText, pChunkType, pChunkIndex, > pDirection > > *-- pText is the full text* > > *-- pChunkType is once of: words|sentences|paragraphs* > > *-- pChunkIndex is the integer index in the indicated units. ie. > "word",7 is the 7th word* > > *-- pDirection is one of: first|last meaning either the 1st character > of the chunk or the last character* > > *-- error checking, emty is returned if an error occurs with the > parameters* > > *if* pText isempty*then* *return*empty > > *if* pChunkType isnotamongtheitemsof"words,sentences,paragraphs"*then* > *return*empty > > *if* pChunkIndex isnotaninteger*then* *return*empty > > *if* pDirection isnotamongtheitemsof"first,last"*then* *return*empty > > *local*tL > > *switch* pChunkType > > *case* "words" > > *switch* pDirection > > *case* "first" > > *put*nullintotrueWordpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharsinpText + 1) > > *break* > > *case* "last" > > *put*length(trueWordpChunkIndex ofpText) intotL > > *put*nullintotrueWordpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharactersinpText + tL) > > *break* > > *end* *switch* > > *break* > > *case* "sentences" > > *switch* pDirection > > *case* "first" > > *put*nullintosentencepChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharsinpText + 1) > > *break* > > *case* "last" > > *put*length(sentencepChunkIndex ofpText) intotL > > *put*nullintosentencepChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharactersinpText + tL) > > *break* > > *end* *switch* > > *break* > > *case* "paragraphs" > > *switch* pDirection > > *case* "first" > > *put*nullintoparagraphpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharsinpText + 1) > > *break* > > *case* "last" > > *put*length(paragraphpChunkIndex ofpText) intotL > > *put*nullintoparagraphpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharactersinpText + tL) > > *break* > > *end* *switch* > > *break* > > *end* *switch* > > *end*rwCharIndex > > > > > On 7/31/2023 11:44 AM, Bob Sneidar via use-livecode wrote: >> I replaced the code in the original function with this code and it >> wont compile. >> >> Do you mind posting the full working function again? >> >> Bob S >> >> >>> On Jul 27, 2023, at 2:06 PM, Mark Waddingham via use-livecode >>> wrote: >>> >>> Oh those pesky chunks which dont cover the target string (which >>> is actually all of them except codeunit/point/char come to think of >>> it). I should have run through a few more examples in my head before >>> posting. >>> >>> Alternative attempt: >>> >>> Put null into word N to -1 of S >>> Delete codeunit (codeunitoffset(null, S) to -1 of S >>> Return the number of chars in S + 1 >>> >>> The problem before was the chars which do not form part of the last >>> chunk and remain after deletion. >>> >>> The above puts in a sentinel char which can be searched for to find >>> where the requested chunk started. >>> >>> Second time lucky? ;) >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>>> On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode >>>> wrote: >>>> >>>> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>>>>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>>>>> If I have some text in a field, I can use the "charIndex" >>>>>> property (see Dictionary) to obtain teh character position of the >>>>>> first character of a chunk. >>>>>> >>>>>> Does anyone know of a clever way to do the equivalent of the >>>>>> charIndex for an arbitrary chunk expression for a >>>>>> container/variable (i.e. not an actual field object)? >>>>> This should work I think: >>>>> >>>>>    function charIndexOfWord pWordIndex, pTarget >>>>>       delete word pWordIndex to -1 of pTarget >>>>>       return the number of characters in pTarget + 1 >>>>>    end charIndexOfWord >>>>> >>>>> Deletion of chunks works from the first char that makes up the >>>>> computed range, so you are left with all the characters which sit >>>>> before it. >>>>> >>>>> The index of the character immediately before the start of the >>>>> specified word is the just the number of characters which sit >>>>> before it; and so the index of the first char of the specified >>>>> word (which is what charIndex gives you in a field) is that +1. >>>>> >>>>> The above should work for both +ve and -ve indices, and the >>>>> obvious changes will make it work for other string chunks (i.e. >>>>> change 'Word' for ). >>>>> >>>> Mark, >>>> >>>> Thank you very much. This was a brilliant approach and I should >>>> have thought of it myself. However, it is not quite an accurate >>>> substitute for the charIndex property of a field. The following >>>> example illustrates the issue: >>>> >>>> pTarget is [The quick brown fox jumps over the lazy dog. The lazy >>>> dog was named "Oz".] >>>> pWordIndex is 8 (having been derived from searching for 'lazy', the >>>> 8th word) >>>> >>>> Using [] to quote strings. >>>> delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not >>>> the period (.) at the end since it is not considered part of word -1. >>>> This leaves pTarget as [The quick brown fox jumps over the .] >>>> The number of characters in pTarget + 1 is actually not the >>>> position of the [l] in [lazy], which is character 36, but the [a] >>>> in [azy], character 37, due to the period being left. >>>> >>>> There are some similar issues, being off by  or more, with >>>> sentences and paragraphs in longer text. >>>> >>>> Thank you very much for chiming in with a good direction to try. >>>> >>>> Paul Dupuis >>>> Researchware >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 31 12:11:51 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Jul 2023 16:11:51 +0000 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: On Jul 31, 2023, at 8:54 AM, Paul Dupuis via use-livecode wrote: Bob, Here is a version of Mark's method, for trueWords, sentences, and paragraphs, with the added parameter of pDirection to get the char index of the start of the chunk or the end of the chunk containing the character position pChunkIndex. Thanks, but whatever email app you sent from borked the code, putting asterisks before and after every keyword and running other words together. I always paste/copy my code in a generic text editor before sending to the list. At any rate, I cleaned it up and here is the code. Not sure why you made it a private function but I removed the keyword PRIVATE so it could be used anywhere. Thanks Mark for this effort. I think it should become part of the Master Library. Bob S function rwCharIndex pText, pChunkType, pChunkIndex, pDirection -- pText is the full text -- pChunkType is once of: words|sentences|paragraphs -- pChunkIndex is the integer index in the indicated units. ie. "word",7 is the 7th word -- pDirection is one of: first|last meaning either the 1st character of the chunk or the last character -- error checking, empty is returned if an error occurs with the parameters if pText is empty then return empty if pChunkType is not among the items of "words,sentences,paragraphs" then return empty if pChunkIndex is not an integer then return empty if pDirection is not among the items of "first,last" then return empty local tL switch pChunkType case "words" switch pDirection case "first" put null into trueWord pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of chars in pText + 1) break case "last" put length(trueWord pChunkIndex of pText) into tL put null into trueWord pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of characters in pText + tL) break end switch break case "sentences" switch pDirection case "first" put null into sentence pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of chars in pText + 1) break case "last" put length(sentence pChunkIndex of pText) into tL put null into sentence pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of characters in pText + tL) break end switch break case "paragraphs" switch pDirection case "first" put null into paragraph pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of chars in pText + 1) break case "last" put length(paragraph pChunkIndex of pText) into tL put null into paragraph pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of characters in pText + tL) break end switch break end switch end rwCharIndex From bobsneidar at iotecdigital.com Mon Jul 31 12:31:13 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Jul 2023 16:31:13 +0000 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: <0E3C0707-3417-4DD7-B617-6A2234F3B933@iotecdigital.com> Are you using Thunderbird for an email client? Or are you copying from the forum? This was talked about years ago. For some reason different apps format clipboard text differently, and this is an artifact of one of those apps. That is why I paste, then re-copy code in a text editor like TextEdit or Sublime Text. If I don’t, then the lines are double spaced and it looks like crap and is hard to read. :-) Bob S On Jul 31, 2023, at 9:08 AM, Paul Dupuis via use-livecode wrote: I have no idea why pasting placed *'s all over the place! From dsc at swcp.com Mon Jul 31 20:48:27 2023 From: dsc at swcp.com (Dar Scott) Date: Mon, 31 Jul 2023 18:48:27 -0600 Subject: Managing windows in the IDE on Mac Message-ID: <9B368B43-B56B-43AE-A1D7-AF825538B07F@swcp.com> It has been a while. Hi, all. I’m getting back into LiveCode. I’m using 9.6.9 on Mac Ventura. I’m having a lot of trouble with the windows in the IDE. The backdrop doesn’t always work. The stack I’m working on keeps disappearing. I can check Float above everything, but that is not what I need and it can become a problem when I want to look at something else. The Project Browser stays behind everything and then disappears when I click on it. Dar Dar Scott  +1.505.433.1024 | darzLAB.com | DarScott at darzLAB.com From jacque at hyperactivesw.com Mon Jul 31 23:56:27 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 31 Jul 2023 22:56:27 -0500 Subject: Managing windows in the IDE on Mac In-Reply-To: <9B368B43-B56B-43AE-A1D7-AF825538B07F@swcp.com> References: <9B368B43-B56B-43AE-A1D7-AF825538B07F@swcp.com> Message-ID: <189af3d71f8.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Hey Dar! So nice to see you here again. The backdrop problem is a known bug on Ventura. Sometimes you can click where the window ought to be and it comes to the front, but basically windowing is broken. The only fix I know of for now is to not use a backdrop. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 31, 2023 7:50:52 PM Dar Scott via use-livecode wrote: > It has been a while. Hi, all. Im getting back into LiveCode. > > Im using 9.6.9 on Mac Ventura. > > Im having a lot of trouble with the windows in the IDE. The backdrop > doesnt always work. The stack Im working on keeps disappearing. I can > check Float above everything, but that is not what I need and it can become > a problem when I want to look at something else. The Project Browser stays > behind everything and then disappears when I click on it. > > Dar > > > > > Dar Scott > > > > +1.505.433.1024 | darzLAB.com | > DarScott at darzLAB.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 General.2018 at outlook.com Sat Jul 1 12:54:03 2023 From: General.2018 at outlook.com (General 2018) Date: Sat, 1 Jul 2023 16:54:03 +0000 Subject: Answer dialog text missing in standalone 9.6.9 In-Reply-To: References: <27C6F429-B111-49A1-B924-FF36CC6C58E6@starfirelighting.com> <48FB70CF-1528-40D2-9206-5FD495C0C3B1@m-r-d.de> Message-ID: Hi , Is this a bug ? Win 10 LC 9.6.8 Standalone Black Text. Background as stack colour but needs to set to white as text cannot be seen. Buttons black text on grey - a bit naff. LC 9.6.9 Standalone White Text. Background as stack colour - okay except for white as text is white. Buttons white text on grey - no good. LC 9.6.8 / 9.6.9 Always black text on white/grey regardless of stack colours? Is there a fundamental problem with ask/answer dialog on Windows ? Would expect this to work and why changing across versions ? Regards Camm > On 30 Jun 2023, at 19:23, Mike Kerner via use-livecode wrote: > > i think there are other ide stacks that switched from binary to > script-only stacks in 9.6.9. that broke some other behaviors, too. if > i was betting, i would bet that the SOS is not explicitly setting the > font color, but i haven't read the script to confirm, either. > >> On Fri, Jun 30, 2023 at 1:49 PM General 2018 via use-livecode >> wrote: >> >> Hi , >> >> Made new stack and works okay. >> >> Then found that I had set the background colour of ask and answer to white, this has worked for many years and showed black text. The stack background is blue. Do I assume something has changed in 9.6.9 ? >> >> I removed the set background to white and the answer background is now blue as expected with white text. The answer banner is white with black text but the yes/no buttons are grey with white text which is unreadable. >> >> Regards >> Camm >> >>>> On 30 Jun 2023, at 13:36, matthias rebbe via use-livecode wrote: >>> >>> Did you already try it with a new stack just with a button which includes only a mouseup script with only the answer.... command? >>> >>>> Am 30.06.2023 um 14:29 schrieb General 2018 via use-livecode : >>>> >>>> Windows 10 >>>> LC 9.6.9 >>>> >>>> Regards >>>> Camm >>>> >>>>>> On 30 Jun 2023, at 12:13, panagiotis m via use-livecode wrote: >>>>> >>>>> Hello Camm, >>>>> >>>>> In which platform? Seems to work as expected here (MacOS). >>>>> >>>>> Cheers, >>>>> Panos >>>>> -- >>>>> >>>>>> On Fri, 30 Jun 2023 at 09:54, General 2018 via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> Just the “Yes” , “No” >>>>>> >>>>>> “Some Text” missing. >>>>>> >>>>>> Works fine in IDE and previous standalones. >>>>>> >>>>>> Regards >>>>>> Camm >>>>>> >>>>>>> On 29 Jun 2023, at 23:13, Craig Newman via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> Hi. >>>>>>> >>>>>>> I assume you mean the standard “Answer” command. There is no “Answer >>>>>> Text”. >>>>>>> >>>>>>> So if you: >>>>>>> >>>>>>> answer “Some Text" with “Yes" or “No" >>>>>>> what exactly pops up? >>>>>>> >>>>>>> >>>>>>> >>>>>>> Craig >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> On Jun 29, 2023, at 4:21 PM, General 2018 via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Answer Text missing in standalone , the icon and buttons (with text) >>>>>> appear but no dialog text. >>>>>>>> All okay in IDE. >>>>>>>> >>>>>>>> Checked inclusions - all seems okay. >>>>>>>> >>>>>>>> Regards >>>>>>>> Camm >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode at lists.runrev.com >>>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>>> >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at lists.runrev.com >>>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 dfe4 at cornell.edu Sun Jul 2 14:24:26 2023 From: dfe4 at cornell.edu (David Epstein) Date: Sun, 2 Jul 2023 14:24:26 -0400 Subject: Remote debugger error message Message-ID: panagiotis m asked: @david How do you trigger this error? Could you provide a recipe? With the stacks that trigger the error it is hard to troubleshoot them without triggering the error. So I’m starting with an entirely new stack, and will report if I encounter the problem. I suspect the problem has something to do with a message that calls a handler in a stack-in-use. Best wishes, David > > > On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode > > wrote: >> >> I?ve just started using LiveCode 9.6.9 and 10.0.0 DP 5 on two Intel > Macs, and can do very little without getting this error message: >> >> ?There was an error executing a script in stack > com.livecode.library.remotedebugger. No more information is available > because the stack is password protected.? From jacque at hyperactivesw.com Sun Jul 2 15:08:35 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 2 Jul 2023 14:08:35 -0500 Subject: Remote debugger error message In-Reply-To: References: Message-ID: <192ac13f-7c64-9c46-0f1b-bf230294f08f@hyperactivesw.com> I've seen the same error more than once but it's a bit random and I don't know what triggers it. It's only in the IDE so far, even though I've included the remote debugger in the standalone. Funny that it should occur in the IDE when the remote debugger isn't active. The remote debugger in the standalone did trigger some errors a few times. Maybe something is left in memory? The IDE was still running while testing the standalone. On 7/2/23 1:24 PM, David Epstein via use-livecode wrote: > panagiotis m asked: > @david > How do you trigger this error? Could you provide a recipe? > > With the stacks that trigger the error it is hard to troubleshoot them without triggering the error. So I’m starting with an entirely new stack, and will report if I encounter the problem. > > I suspect the problem has something to do with a message that calls a handler in a stack-in-use. > > Best wishes, > David > >> >> >> On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode >> > wrote: >>> >>> I?ve just started using LiveCode 9.6.9 and 10.0.0 DP 5 on two Intel >> Macs, and can do very little without getting this error message: >>> >>> ?There was an error executing a script in stack >> com.livecode.library.remotedebugger. No more information is available >> because the stack is password protected.? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sun Jul 2 15:19:05 2023 From: paul at researchware.com (Paul Dupuis) Date: Sun, 2 Jul 2023 15:19:05 -0400 Subject: Remote debugger error message In-Reply-To: <192ac13f-7c64-9c46-0f1b-bf230294f08f@hyperactivesw.com> References: <192ac13f-7c64-9c46-0f1b-bf230294f08f@hyperactivesw.com> Message-ID: I got this error in a new install of LC969 on a brand new Windows 11 HP laptop. After I quit LC and started it again, I have not seen the error. I think there may have been some Windows notification that appeared but went away before I could do anything in the standard Win10/11 Notifications (lower right corner) and when I, later, popped open the notification panel, there was nothing there. I have now launched LC many times since without seeing the error again. On 7/2/2023 3:08 PM, J. Landman Gay via use-livecode wrote: > I've seen the same error more than once but it's a bit random and I > don't know what triggers it. It's only in the IDE so far, even though > I've included the remote debugger in the standalone. Funny that it > should occur in the IDE when the remote debugger isn't active. > > The remote debugger in the standalone did trigger some errors a few > times. Maybe something is left in memory? The IDE was still running > while testing the standalone. > > On 7/2/23 1:24 PM, David Epstein via use-livecode wrote: >> panagiotis m asked: >> @david >> How do you trigger this error? Could you provide a recipe? >> >> With the stacks that trigger the error it is hard to troubleshoot >> them without triggering the error.  So Im starting with an entirely >> new stack, and will report if I encounter the problem. >> >> I suspect the problem has something to do with a message that calls a >> handler in a stack-in-use. >> >> Best wishes, >> David >> >>> >>> >>> On Thu, Jun 29, 2023 at 8:40?PM David Epstein via use-livecode >>> >> > wrote: >>>> >>>> I?ve just started using LiveCode 9.6.9 and 10.0.0 DP 5 on two Intel >>> Macs, and can do very little without getting this error message: >>>> >>>> ?There was an error executing a script in stack >>> com.livecode.library.remotedebugger.  No more information is available >>> because the stack is password protected.? >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From andrew at midwestcoastmedia.com Mon Jul 3 13:30:52 2023 From: andrew at midwestcoastmedia.com (Andrew at MWCM) Date: Mon, 3 Jul 2023 13:30:52 -0400 Subject: Installing mySQL on Windows In-Reply-To: References: Message-ID: <204E50D5-575C-4EB7-A63A-DAD7752FBFF6@midwestcoastmedia.com> The installer itself is 32bit but it will give you 64bit binaries. I had to upgrade my 5.7.x to the latest version first, but then I could add the x64 version of 8.0. —Andrew Bell > > Yes, and as you will note, those are 32 bit installers. I was hoping there was a 64 bit installer. There ARE 64 bit binaries, but no MSI. > > Bob S > > > On Jun 23, 2023, at 11:55 AM, Andrew at MWCM via use-livecode wrote: > > Just installed it last week on a Windows Server 2019 VM using the installer from https://dev.mysql.com/downloads/installer/ > > -Andrew Bell From jacque at hyperactivesw.com Mon Jul 3 15:44:33 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 3 Jul 2023 14:44:33 -0500 Subject: Writing to Mac Support folder In-Reply-To: <5BC05A6D-404D-4EF0-8D8A-38B95C0D31C0@m-r-d.de> References: <5BC05A6D-404D-4EF0-8D8A-38B95C0D31C0@m-r-d.de> Message-ID: <8b602e8b-f51f-828c-701b-94c2fbb23da5@hyperactivesw.com> On 6/30/23 1:32 AM, matthias rebbe via use-livecode wrote: > This is what Apple says: > > "If you distribute your macOS app through the App Store, you must enable App Sandbox. If you notarize your macOS app to distribute it outside of the App Store, you must enable hardened runtime and, optionally, can also enable App Sandbox." > https://help.apple.com/xcode/mac/current/#/devf87a2ac8f If I have notarized the app, is hardened runtime enabled? I don't even know what that means. I use mrSignNotarizeHelper. I tried to enable entitlements, but I don't need any of the listed ones and if none are selected then the Entitlements checkbox reverts to off. I assume that means my app is not sandboxed? How do I sandbox the app, and would that allow it to write to the App Support folder? Does LC automatically enable hardened runtime? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Jul 5 18:25:16 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 5 Jul 2023 22:25:16 +0000 Subject: Installing mySQL on Windows In-Reply-To: <204E50D5-575C-4EB7-A63A-DAD7752FBFF6@midwestcoastmedia.com> References: <204E50D5-575C-4EB7-A63A-DAD7752FBFF6@midwestcoastmedia.com> Message-ID: Ah, thanks you. That is helpful. Bob S > On Jul 3, 2023, at 10:30 AM, Andrew at MWCM via use-livecode wrote: > > The installer itself is 32bit but it will give you 64bit binaries. I had to upgrade my 5.7.x to the latest version first, but then I could add the x64 version of 8.0. > > —Andrew Bell > >> >> Yes, and as you will note, those are 32 bit installers. I was hoping there was a 64 bit installer. There ARE 64 bit binaries, but no MSI. >> >> Bob S >> >> >> On Jun 23, 2023, at 11:55 AM, Andrew at MWCM via use-livecode wrote: >> >> Just installed it last week on a Windows Server 2019 VM using the installer from https://dev.mysql.com/downloads/installer/ >> >> -Andrew Bell > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 6 10:26:18 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 Jul 2023 10:26:18 -0400 Subject: A stack "revCursors" is already in memory. Message-ID: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> I have a new Livecode 9.6.9  install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. From jacque at hyperactivesw.com Thu Jul 6 17:12:49 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 6 Jul 2023 16:12:49 -0500 Subject: A stack "revCursors" is already in memory. In-Reply-To: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> Message-ID: <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: > I have a new Livecode 9.6.9  install on a new Windows 11 laptop. It was working normally for a > while, and, now, whenever I launch it, I get a warning message: > > A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. > > Can someone advise what I need to do to address this? I seem to recall this problem has been > seen before. I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. Check the substacks of your mainstack. If revCursors is in there, delete it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Thu Jul 6 17:28:59 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 6 Jul 2023 17:28:59 -0400 Subject: A stack "revCursors" is already in memory. In-Reply-To: <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> Message-ID: <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: > On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >> I have a new Livecode 9.6.9  install on a new Windows 11 laptop. It >> was working normally for a while, and, now, whenever I launch it, I >> get a warning message: >> >> A stack "revCursors" is already in memory. The Livecode UI does not >> ... etc.. >> >> Can someone advise what I need to do to address this? I seem to >> recall this problem has been seen before. > > I think it happens when you include cursors in a standalone build. > Sometimes LC adds it to your stack as well as to the executable. When > LC launches it see both the one in the stack and the one in the IDE. > > Check the substacks of your mainstack. If revCursors is in there, > delete it. > Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. From bobsneidar at iotecdigital.com Thu Jul 6 18:39:30 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 6 Jul 2023 22:39:30 +0000 Subject: A stack "revCursors" is already in memory. In-Reply-To: <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> Message-ID: Well….. What happens is that when you build an app, every stack it uses will be opened in the IDE, ostensibly to determine what inclusions are necessary. I have seen where the version of the stack that is open AFTER building the standalone is the one in the STANDALONE! So if you continue to use the IDE or try to build another app, you will get that conflict. That *may* be what you are experiencing, although that may have been addressed in 9.6.9 or some subsequent release. To avoid this altogether, I quit the IDE every time I build an app per platform so I do not encounter that. The first time it happened, I saved my stack and it replaced all the references to the stack files with the version from the standalone! I had a hell of a time cleaning it up! There is code you can put at the beginning of certain handlers like preOpenCard where you can check the value of the global variable reSaveAsStandalone (or something like that) and then exit accordingly, I forget the list of handlers you need to use this on. I think preOpenCard, preOpenstack, openCard and openStack. But if you do this, then you cannot use the Auto Inclusions feature. Really a bummer. I suppose you could trap for revSaveAsStandalone in your openCard handler of your main stack, then run a routine that registers all the stacksInUse, then when the standalone finishes, run a routine that closes those stacks by name, then reopens the correct versions, but that is a LOT to have to do for a feature so fundamental as building a standalone. Another thing building standalone does is it adds every stack the IDE opens to the recents list! BOOOO!!! BIG BAD BELLOWING BLUSTERY BOOOOOOO!!!!!!! The handler that does that should ITSELF be checking the status of revSaveAsStandalone! Bob S > On Jul 6, 2023, at 2:28 PM, Paul Dupuis via use-livecode wrote: > > On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: >> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >>> I have a new Livecode 9.6.9 install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: >>> >>> A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. >>> >>> Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. >> >> I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. >> >> Check the substacks of your mainstack. If revCursors is in there, delete it. >> > > Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 6 22:46:32 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 7 Jul 2023 12:46:32 +1000 Subject: A stack "revCursors" is already in memory. In-Reply-To: References: Message-ID: <9BB2DC6B-9524-4193-AF2D-35F418BDDE57@optusnet.com.au> Paul Are you launching a stack that has previously been made into a standalone? Some time ago very often when I created a standalone it added copies of the built-in revCursors stack(s) as substacks of my stack. Before I noticed this subsequent standalone builds could add multiple copies all with the same name. And then I would get that message when the stack was launched, since the copies conflicted with the original versions that the IDE needs. I never quite pinned down what caused the insertion, so couldn’t report it as a bug, and I haven’t seen it in recent versions of LiveCode. The solution was to use the project browser to list all the substacks of the stack and simply delete the nugatory copies of revCursors. As I recall there was some extra step such as renaming the substack before deleting, perhaps only necessary in the case there were multiple copies, so as to not to confuse the delete command. Neville > On 7 Jul 2023, at 2:00 am, use-livecode-request at lists.runrev.com wrote: > > A stack "revCursors" is already in memory. From bobsneidar at iotecdigital.com Fri Jul 7 11:43:20 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 7 Jul 2023 15:43:20 +0000 Subject: A stack "revCursors" is already in memory. In-Reply-To: References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> Message-ID: Correction: revSaveAsStandalone. Not even sure that is it though. For some reason I removed the bits of code where I was using this. Putting revSaveAsStandalone in the dialog box produces nothing, so it may be a global that gets created when a standalone is being built, and gets deleted when done. Bob S > On Jul 6, 2023, at 3:39 PM, Bob Sneidar via use-livecode wrote: > > Well….. > > What happens is that when you build an app, every stack it uses will be opened in the IDE, ostensibly to determine what inclusions are necessary. I have seen where the version of the stack that is open AFTER building the standalone is the one in the STANDALONE! So if you continue to use the IDE or try to build another app, you will get that conflict. That *may* be what you are experiencing, although that may have been addressed in 9.6.9 or some subsequent release. > > To avoid this altogether, I quit the IDE every time I build an app per platform so I do not encounter that. The first time it happened, I saved my stack and it replaced all the references to the stack files with the version from the standalone! I had a hell of a time cleaning it up! > > There is code you can put at the beginning of certain handlers like preOpenCard where you can check the value of the global variable reSaveAsStandalone (or something like that) and then exit accordingly, I forget the list of handlers you need to use this on. I think preOpenCard, preOpenstack, openCard and openStack. But if you do this, then you cannot use the Auto Inclusions feature. Really a bummer. > > I suppose you could trap for revSaveAsStandalone in your openCard handler of your main stack, then run a routine that registers all the stacksInUse, then when the standalone finishes, run a routine that closes those stacks by name, then reopens the correct versions, but that is a LOT to have to do for a feature so fundamental as building a standalone. > > Another thing building standalone does is it adds every stack the IDE opens to the recents list! BOOOO!!! BIG BAD BELLOWING BLUSTERY BOOOOOOO!!!!!!! The handler that does that should ITSELF be checking the status of revSaveAsStandalone! > > Bob S > > >> On Jul 6, 2023, at 2:28 PM, Paul Dupuis via use-livecode wrote: >> >> On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: >>> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >>>> I have a new Livecode 9.6.9 install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: >>>> >>>> A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. >>>> >>>> Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. >>> >>> I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. >>> >>> Check the substacks of your mainstack. If revCursors is in there, delete it. >>> >> >> Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 7 11:46:19 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 7 Jul 2023 15:46:19 +0000 Subject: A stack "revCursors" is already in memory. In-Reply-To: References: <38de8258-2421-e7cf-d7e1-e7980924f385@researchware.com> <838c94c3-e1f1-437f-819f-a6653d702d6b@hyperactivesw.com> <70f4e724-a92b-1859-3015-8b9886cd22c9@researchware.com> Message-ID: Hmmm… the global variable revSaveAsStandalone does not seem to be available anymore, or is it a global created at build time, then deleted when done? Bob S > On Jul 6, 2023, at 3:39 PM, Bob Sneidar wrote: > > Well….. > > What happens is that when you build an app, every stack it uses will be opened in the IDE, ostensibly to determine what inclusions are necessary. I have seen where the version of the stack that is open AFTER building the standalone is the one in the STANDALONE! So if you continue to use the IDE or try to build another app, you will get that conflict. That *may* be what you are experiencing, although that may have been addressed in 9.6.9 or some subsequent release. > > To avoid this altogether, I quit the IDE every time I build an app per platform so I do not encounter that. The first time it happened, I saved my stack and it replaced all the references to the stack files with the version from the standalone! I had a hell of a time cleaning it up! > > There is code you can put at the beginning of certain handlers like preOpenCard where you can check the value of the global variable reSaveAsStandalone (or something like that) and then exit accordingly, I forget the list of handlers you need to use this on. I think preOpenCard, preOpenstack, openCard and openStack. But if you do this, then you cannot use the Auto Inclusions feature. Really a bummer. > > I suppose you could trap for revSaveAsStandalone in your openCard handler of your main stack, then run a routine that registers all the stacksInUse, then when the standalone finishes, run a routine that closes those stacks by name, then reopens the correct versions, but that is a LOT to have to do for a feature so fundamental as building a standalone. > > Another thing building standalone does is it adds every stack the IDE opens to the recents list! BOOOO!!! BIG BAD BELLOWING BLUSTERY BOOOOOOO!!!!!!! The handler that does that should ITSELF be checking the status of revSaveAsStandalone! > > Bob S > > >> On Jul 6, 2023, at 2:28 PM, Paul Dupuis via use-livecode wrote: >> >> On 7/6/2023 5:12 PM, J. Landman Gay via use-livecode wrote: >>> On 7/6/23 9:26 AM, Paul Dupuis via use-livecode wrote: >>>> I have a new Livecode 9.6.9 install on a new Windows 11 laptop. It was working normally for a while, and, now, whenever I launch it, I get a warning message: >>>> >>>> A stack "revCursors" is already in memory. The Livecode UI does not ... etc.. >>>> >>>> Can someone advise what I need to do to address this? I seem to recall this problem has been seen before. >>> >>> I think it happens when you include cursors in a standalone build. Sometimes LC adds it to your stack as well as to the executable. When LC launches it see both the one in the stack and the one in the IDE. >>> >>> Check the substacks of your mainstack. If revCursors is in there, delete it. >>> >> >> Thank you. that was the problem. I don't recall adding revCursors to my app's mainstack, but I did get a code execution error during a standaloneSaved handler before this started happening, so perhaps it left the build in a strange state. Fixed now. Thanks again. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From bobcole at mac.com Fri Jul 7 12:14:24 2023 From: bobcole at mac.com (Robert Cole) Date: Fri, 7 Jul 2023 11:14:24 -0500 Subject: use-livecode Digest, Vol 237, Issue 17 Message-ID: Mike: I have created a SVG from a signature widget. Please see a sample start on the forum at https://forums.livecode.com/viewtopic.php?f=8&t=37299#p217928 Hope this helps. Bob > On Jun 22, 2023, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > Message: 2 > Date: Wed, 21 Jun 2023 16:52:23 -0400 > From: Mike Kerner > > To: How to use LiveCode > > Subject: signature widget > Message-ID: > > > Content-Type: text/plain; charset="UTF-8" > > i finally have a use-case for the signature widget. > * has anyone used it? > * does anyone have experiencing transporting the signature data, then > recreating it, say, by adding it to a document, or generating an svg > file? From MikeKerner at roadrunner.com Mon Jul 10 11:29:04 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 10 Jul 2023 11:29:04 -0400 Subject: bored LC nerd looking for projects Message-ID: ok, i'm bored. not unemployed, just bored. i'm actually considering working on my novel again. does anyone know of any lc projects in need of help-for-hire, saving the world from awful, contrived prose? -- 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 rdimola at evergreeninfo.net Mon Jul 10 12:25:52 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 10 Jul 2023 12:25:52 -0400 Subject: [OT ish] Visual Code Editor and Line Endings Message-ID: <002601d9b34b$3586dc10$a0949430$@net> Beware! I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. Code does not support CR line endings. I received a text file that was output from InDesign(latest version). I made a minor change in the text file. I processed it with a program that had been around for years. I sent the processed file to the customer and results were disastrous. Unknown to me all the LFs in the file were changed without warning to line endings. Apparently VC only has 2 line ending options LF and CRLF but not CR. Apparently I'm not the first to get bitten by this. An enhancement request to support CR line endings has been around for 5 years and not addressed. Seem like a simple fix, but what do I know about VC's internals. Hope this prevents one of you from getting bitten.. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From bobsneidar at iotecdigital.com Mon Jul 10 16:09:02 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 10 Jul 2023 20:09:02 +0000 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <002601d9b34b$3586dc10$a0949430$@net> References: <002601d9b34b$3586dc10$a0949430$@net> Message-ID: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. One of a hundred things that upset me about Microsoft. Bob S > On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode wrote: > > Beware! > > > > I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. > > Code does not support CR line endings. I received a text file that was > output from InDesign(latest version). I made a minor change in the text > file. I processed it with a program that had been around for years. I sent > the processed file to the customer and results were disastrous. Unknown to > me all the LFs in the file were changed without warning to line endings. > Apparently VC only has 2 line ending options LF and CRLF but not CR. > Apparently I'm not the first to get bitten by this. An enhancement request > to support CR line endings has been around for 5 years and not addressed. > Seem like a simple fix, but what do I know about VC's internals. > > > > Hope this prevents one of you from getting bitten.. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 10 16:11:56 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 10 Jul 2023 15:11:56 -0500 Subject: Solved: Writing to Mac Application Support folder Message-ID: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. 3. The path to the container is in ~/Library/Containers// We don't have a specialFolderPath for that, so here's how I did it: put specialFolderPath("support") into tContainer set the itemdel to slash put "Containers/your.bundle.id/" into last item of tContainer if there is no folder tContainer then create folder tContainer if the result <> empty then log "Create container:" && the result end if put tContainer & "yourFileName.ext" into tPath This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Tue Jul 11 07:28:13 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 07:28:13 -0400 Subject: Livecode 10.0.0dp5 new reserved words Message-ID: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> Does anyone, including folks at the mothership, have a list of new reserved words in Livecode 10? I have used a variable called "tExt" (t for temp, Ext for extension)  to pull of the file extension from file paths. i.e. if tFile contains "C:/users/paul/desktop/image.png" set itemDel to "." put last item of tFile into tExt -- tExt contains "png" However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears to be a reserved work and you can not use it as a variable. This is not true in LC 9.6.9.  This has me asking: Are there any other new reserved words I should refactor out of my code before I get mysterious errors? From mark at livecode.com Tue Jul 11 08:01:40 2023 From: mark at livecode.com (Mark Waddingham) Date: Tue, 11 Jul 2023 13:01:40 +0100 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> Message-ID: <8d4af0290da8c9afdc283119b52d5434@livecode.com> On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote: > Does anyone, including folks at the mothership, have a list of new > reserved words in Livecode 10? > > I have used a variable called "tExt" (t for temp, Ext for extension)  > to pull of the file extension from file paths. i.e. if tFile contains > "C:/users/paul/desktop/image.png" > > set itemDel to "." > put last item of tFile into tExt -- tExt contains "png" > > However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears > to be a reserved work and you can not use it as a variable. This is not > true in LC 9.6.9.  This has me asking: Are there any other new reserved > words I should refactor out of my code before I get mysterious errors? I don't think we knowingly made 'text' not be allowed as a variable in non-explicitVariables mode... You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I think) ever - but it obviously worked in 9.6.x and before if you don't use explicitVariables. I'm not sure what change we've made which has caused that - file a bug and we'll look into it - its probably a regression, but could be a (necessary, but unrealized) side-effect of another change we've made internally. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From mkoob at rogers.com Tue Jul 11 08:04:22 2023 From: mkoob at rogers.com (Martin Koob) Date: Tue, 11 Jul 2023 08:04:22 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> Message-ID: <9F011A00-9E10-4ED5-B540-14DFD6474218@rogers.com> Hi Paul, I remember that at a workshop or meeting, a few years PCE* it was says by someone from LiveCode (although possibly RunRev at the time) by Mark W (I think but I could be wrong but definitely from the mothership) that ‘All words in the English Dictionary should be considered reserved words.’ Or something to that effect. The rationale was that even though LiveCode does not use the words in its vocabulary currently It may in the future. (Can someone else corroborate my vague memory of this?) So with that in mind even though tExt is camelCase and visually does not appear to be a word livecode does not consider case so it sees it as ’text’ which is a word in the English dictionary and also one that would more likely be a part of LiveCode’s future lexicon ( more so than perhaps Oxford’s word of the year. https://languages.oup.com/word-of-the-year/2022/ Although I think it would be cool to have ‘goblin mode’ as a LiveCode word. e.g. command relaxHygieneStandards set goblin mode to “severe” end relaxHygieneStandards command restoreHygieneStandards set goblin mode to “false” end restoreHygieneStandards In any case the advice as to best practice was to never use an English dictionary word as the name of a variable in order to future proof your application should the MotherShip decide to add a new term from the English dictionary to the LiveCode lexicon. So in your case it would be better to use something like tExtn or even tExtension. Martin *PCE (Pre COVID Era) > On Jul 11, 2023, at 7:28 AM, Paul Dupuis via use-livecode wrote: > > Does anyone, including folks at the mothership, have a list of new reserved words in Livecode 10? > > I have used a variable called "tExt" (t for temp, Ext for extension) to pull of the file extension from file paths. i.e. if tFile contains "C:/users/paul/desktop/image.png" > > set itemDel to "." > put last item of tFile into tExt -- tExt contains "png" > > However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears to be a reserved work and you can not use it as a variable. This is not true in LC 9.6.9. This has me asking: Are there any other new reserved words I should refactor out of my code before I get mysterious errors? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Jul 11 08:20:12 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 08:20:12 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <8d4af0290da8c9afdc283119b52d5434@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> Message-ID: On 7/11/2023 8:01 AM, Mark Waddingham via use-livecode wrote: > On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote: >> Does anyone, including folks at the mothership, have a list of new >> reserved words in Livecode 10? >> >> I have used a variable called "tExt" (t for temp, Ext for extension)  >> to pull of the file extension from file paths. i.e. if tFile contains >> "C:/users/paul/desktop/image.png" >> >> set itemDel to "." >> put last item of tFile into tExt -- tExt contains "png" >> >> However, in LC 10.0.0dp5, the word "tExt" (which is "text") now >> appears to be a reserved work and you can not use it as a variable. >> This is not true in LC 9.6.9.  This has me asking: Are there any >> other new reserved words I should refactor out of my code before I >> get mysterious errors? > > I don't think we knowingly made 'text' not be allowed as a variable in > non-explicitVariables mode... > > You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I > think) ever - but it obviously worked in 9.6.x and before if you don't > use explicitVariables. > > I'm not sure what change we've made which has caused that - file a bug > and we'll look into it - its probably a regression, but could be a > (necessary, but unrealized) side-effect of another change we've made > internally. > > Warmest Regards, > > Mark. > Thank you! Bug filed: https://quality.livecode.com/show_bug.cgi?id=24266 I am fine changing 'tExt'. As Martin just posted, All words in the English Dictionary should be considered reserved words. is not a bad rule. Just to illustrate how the eyes and mind can play tricks, I have been using the variable 'tExt' for parsing file extensions for DECADES and ONLY TODAY realized that it was the word 'text'! I never saw it as a dictionary word until today! From mark at livecode.com Tue Jul 11 08:26:31 2023 From: mark at livecode.com (Mark Waddingham) Date: Tue, 11 Jul 2023 13:26:31 +0100 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> Message-ID: <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> On 2023-07-11 13:20, Paul Dupuis via use-livecode wrote: > Thank you! Bug filed: > https://quality.livecode.com/show_bug.cgi?id=24266 > > I am fine changing 'tExt'. As Martin just posted, All words in the > English Dictionary should be considered reserved words. is not a bad > rule. Just to illustrate how the eyes and mind can play tricks, I have > been using the variable 'tExt' for parsing file extensions for DECADES > and ONLY TODAY realized that it was the word 'text'! I never saw it as > a dictionary word until today! Yeah - Martin is correct that the rule about words in the English dictionary should all be considered reserved is still very much in force, and has been around longer than I've worked here! Cases of using 'tExt' is not uncommon - as it is really difficult to see that it is 'text'... Another one (which bit Ali recently) is `pLayer'. I'm sure there are a fair few other examples. Anyway, we'll try and figure out what has changed to cause the change in behavior - at the very least we can go back and add a 'breaking change' warning to the release note for the change which caused the issue. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From klaus at major-k.de Tue Jul 11 09:04:44 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 15:04:44 +0200 Subject: Search for an app in Google Play Store Message-ID: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> Hi friends, strange results whjen searching a german app in the Google Playstore. We have an app namde -> Sehen - Hören - Merken in the Apple and Google store. iOS Android However it is not easy to find the app in Google be it on the PC/Mac (via browser URL: https://play.google.com/store) or on an Android Device with the Googgle app: 1. If I enter -> Sehen - Hören App is found 2. If I enter its full name: Sehen - Hören - Merken NO results 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app App is found. Any hintst that may shed some light on this phenomenon very appreciated. Thank a lot in advance! Best Klaus -- 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 Tue Jul 11 09:34:21 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 11 Jul 2023 15:34:21 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> Message-ID: <5405C039-911D-4309-8474-40DFD1F3B3C5@m-r-d.de> Much better.... if i enter Sehen Hören Merkn or sehen-hören-merkn or sehen - hören - merkn the app is found and listed at first if i enter Sehen Hören Merken or sehen-hören-merk or sehen hören merk or sehen - hören - merken the app is also not found. > Am 11.07.2023 um 15:04 schrieb Klaus major-k via use-livecode : > > Hi friends, > > strange results whjen searching a german app in the Google Playstore. > We have an app namde -> Sehen - Hören - Merken > in the Apple and Google store. > iOS > > Android > > > However it is not easy to find the app in Google be it on the PC/Mac > (via browser URL: https://play.google.com/store) or on an Android Device > with the Googgle app: > 1. If I enter -> Sehen - Hören > App is found > > 2. If I enter its full name: Sehen - Hören - Merken > NO results > > 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app > App is found. > > Any hintst that may shed some light on this phenomenon very appreciated. > Thank a lot 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 klaus at major-k.de Tue Jul 11 09:42:19 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 15:42:19 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <5405C039-911D-4309-8474-40DFD1F3B3C5@m-r-d.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <5405C039-911D-4309-8474-40DFD1F3B3C5@m-r-d.de> Message-ID: <3FE9EF08-3C2F-47C9-B9BB-00EC7DCE5992@major-k.de> Hi Matthias, > Am 11.07.2023 um 15:34 schrieb matthias rebbe via use-livecode : > > Much better.... > if i enter > Sehen Hören Merkn > or > sehen-hören-merkn > or > sehen - hören - merkn > the app is found and listed at first YO!? merkn, oh my, oh my... :-D Thanks for testing! > if i enter > Sehen Hören Merken > or > sehen-hören-merk > or > sehen hören merk > or > sehen - hören - merken > the app is also not found. Molto mysterioso... So I guess there are no search-regularities of any kind here? >> Am 11.07.2023 um 15:04 schrieb Klaus major-k via use-livecode : >> >> Hi friends, >> >> strange results whjen searching a german app in the Google Playstore. >> We have an app namde -> Sehen - Hören - Merken >> in the Apple and Google store. >> iOS >> >> Android >> >> >> However it is not easy to find the app in Google be it on the PC/Mac >> (via browser URL: https://play.google.com/store) or on an Android Device >> with the Googgle app: >> 1. If I enter -> Sehen - Hören >> App is found >> >> 2. If I enter its full name: Sehen - Hören - Merken >> NO results >> >> 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app >> App is found. >> >> Any hintst that may shed some light on this phenomenon very appreciated. >> Thank a lot in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Tue Jul 11 10:56:32 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 10:56:32 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> Message-ID: <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> On 7/11/2023 8:26 AM, Mark Waddingham via use-livecode wrote: > Cases of using 'tExt' is not uncommon - as it is really difficult to > see that it is 'text'... Another one (which bit Ali recently) is > `pLayer'. I'm sure there are a fair few other examples. > Ouch! 'pLayer' is another I'd better check for. I may have used that as well! From bobsneidar at iotecdigital.com Tue Jul 11 11:20:26 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 15:20:26 +0000 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <8d4af0290da8c9afdc283119b52d5434@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> Message-ID: <9CD045C4-C74C-41B2-A2D8-23A52163503F@iotecdigital.com> Or… he could just go through his code using the find utility and replace every instance of tExt with tExtension. :-) Bob S On Jul 11, 2023, at 5:01 AM, Mark Waddingham via use-livecode wrote: On 2023-07-11 12:28, Paul Dupuis via use-livecode wrote: Does anyone, including folks at the mothership, have a list of new reserved words in Livecode 10? I have used a variable called "tExt" (t for temp, Ext for extension) to pull of the file extension from file paths. i.e. if tFile contains "C:/users/paul/desktop/image.png" set itemDel to "." put last item of tFile into tExt -- tExt contains "png" However, in LC 10.0.0dp5, the word "tExt" (which is "text") now appears to be a reserved work and you can not use it as a variable. This is not true in LC 9.6.9. This has me asking: Are there any other new reserved words I should refactor out of my code before I get mysterious errors? I don't think we knowingly made 'text' not be allowed as a variable in non-explicitVariables mode... You cannot explicitly declare `tExt` as a variable in 10 or 9.x or (I think) ever - but it obviously worked in 9.6.x and before if you don't use explicitVariables. I'm not sure what change we've made which has caused that - file a bug and we'll look into it - its probably a regression, but could be a (necessary, but unrealized) side-effect of another change we've made internally. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From bobsneidar at iotecdigital.com Tue Jul 11 11:26:07 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 15:26:07 +0000 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> Message-ID: <1FBAA64A-E124-4289-B8DB-5539C4CE4922@iotecdigital.com> Interesting. The reason I’ve never been bit by this I think, is that I like to use more descriptive variables. For instance, I might have use tFileExt. I think I got that from one of the articles (or lessons or books) from one of the Livecode contributors, that variable names should be as descriptive as possible of their purpose. I am still tempted to try and shorten my variable names though. Bob S > On Jul 11, 2023, at 7:56 AM, Paul Dupuis via use-livecode wrote: > > On 7/11/2023 8:26 AM, Mark Waddingham via use-livecode wrote: >> Cases of using 'tExt' is not uncommon - as it is really difficult to see that it is 'text'... Another one (which bit Ali recently) is `pLayer'. I'm sure there are a fair few other examples. >> > > Ouch! 'pLayer' is another I'd better check for. I may have used 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 jacque at hyperactivesw.com Tue Jul 11 11:31:56 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Jul 2023 10:31:56 -0500 Subject: Search for an app in Google Play Store In-Reply-To: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> Message-ID: <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> My client had similar results where the name of the app was not found. It could be found by searching for the company name though. We couldn't explain it. Some weeks later it suddenly could be found normally by its name. I don't know how the search algorithm works, maybe it takes some time to populate. --- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 11, 2023 8:06:18 AM Klaus major-k via use-livecode wrote: > Hi friends, > > strange results whjen searching a german app in the Google Playstore. > We have an app namde -> Sehen - Hren - Merken > in the Apple and Google store. > iOS > > Android > > > However it is not easy to find the app in Google be it on the PC/Mac > (via browser URL: https://play.google.com/store) or on an Android Device > with the Googgle app: > 1. If I enter -> Sehen - Hren > App is found > > 2. If I enter its full name: Sehen - Hren - Merken > NO results > > 3. If I enter its full name and its file externsion: Sehen - Hren - Merke.app > App is found. > > Any hintst that may shed some light on this phenomenon very appreciated. > Thank a lot 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 rdimola at evergreeninfo.net Tue Jul 11 12:16:31 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 11 Jul 2023 12:16:31 -0400 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: <004901d9b413$11342a70$339c7f50$@net> Bob, Know what you mean. Another program that's been running for years failed last week because MS changed the behavior of Excel in 365. Customer received the very useful error "Run-time error '1004' Unable to update the FreezePanes property of the windows class". 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, July 10, 2023 4:09 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: [OT ish] Visual Code Editor and Line Endings Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. One of a hundred things that upset me about Microsoft. Bob S > On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode wrote: > > Beware! > > > > I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. > > Code does not support CR line endings. I received a text file that was > output from InDesign(latest version). I made a minor change in the > text file. I processed it with a program that had been around for > years. I sent the processed file to the customer and results were > disastrous. Unknown to me all the LFs in the file were changed without warning to line endings. > Apparently VC only has 2 line ending options LF and CRLF but not CR. > Apparently I'm not the first to get bitten by this. An enhancement > request to support CR line endings has been around for 5 years and not addressed. > Seem like a simple fix, but what do I know about VC's internals. > > > > Hope this prevents one of you from getting bitten.. > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Tue Jul 11 12:27:11 2023 From: paul at researchware.com (Paul Dupuis) Date: Tue, 11 Jul 2023 12:27:11 -0400 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <9CD045C4-C74C-41B2-A2D8-23A52163503F@iotecdigital.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <9CD045C4-C74C-41B2-A2D8-23A52163503F@iotecdigital.com> Message-ID: On 7/11/2023 11:20 AM, Bob Sneidar via use-livecode wrote: > Or he could just go through his code using the find utility and replace every instance of tExt with tExtension. :-) > > Yes, I plan to: tExt = t Ext = TEXT  > tFileExtension pLayer = p Layer = PLAYER > tObjectLayer etc. From ahsoftware at sonic.net Tue Jul 11 12:54:53 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 11 Jul 2023 09:54:53 -0700 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> <23f249b7-80dc-63d7-5c94-f6e3e118b90c@researchware.com> Message-ID: <90888ad7-cd45-58c2-4e1e-9858607a5b8a@sonic.net> On 7/11/23 07:56, Paul Dupuis via use-livecode wrote: > On 7/11/2023 8:26 AM, Mark Waddingham via use-livecode wrote: >> Cases of using 'tExt' is not uncommon - as it is really difficult to >> see that it is 'text'... Another one (which bit Ali recently) is >> `pLayer'. I'm sure there are a fair few other examples. I'm not sure this is a bug that should be "fixed" other than with the breaking change warning as MW mentioned. > Ouch! 'pLayer' is another I'd better check for. I may have used that as > well! Of course neither tExt nor pLayer would be a problem if you enabled explicitVariables ("strict compilation mode" in LC preferences). If you tried to script that as a variable you'd get the compilation error not a valid variable or constant name -- Mark Wieder ahsoftware at gmail.com From mark at livecode.com Tue Jul 11 13:09:08 2023 From: mark at livecode.com (Mark Waddingham) Date: Tue, 11 Jul 2023 18:09:08 +0100 Subject: Livecode 10.0.0dp5 new reserved words In-Reply-To: <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> References: <7bf50977-e92d-0ca0-e1bc-4a16414b25aa@researchware.com> <8d4af0290da8c9afdc283119b52d5434@livecode.com> <02e0bd98c117943e16c36e32a1f39a8f@livecode.com> Message-ID: <6d94f65db7307fb8886ebeef55cabfa2@livecode.com> On 2023-07-11 13:26, Mark Waddingham via use-livecode wrote: > Anyway, we'll try and figure out what has changed to cause the change > in behavior - at the very least we can go back and add a 'breaking > change' warning to the release note for the change which caused the > issue. Okay so after a bit of digging I can confirm that this is down to an unintended consequence of implementation constant expressions. The behavior prior to that feature was: You are allowed to assign and evaluate variables whose name is the same as property keywords which can only appear as object properties (i.e. require an OF afterwards) and are not also constant keywords ('left' and 'right' I think are the only two which are object properties and constants). Further, if explicitVariables is true then you cannot declare such variables, but you can evaluate them. (In this case, they would act as unquoted literals - you can still assign indirectly using do with explicitVars turned off at the time of the do). The reason it was changed was to fix a problem with the constants 'left' and 'right' being used in constant initializer expressions - but at the expense of object only properties not being able to be variables. That problem needs to be resolved in a different way. So this is a bug/regression - not so much because of the use of 'tExt' (text) but because scripts which use any object property keyword as a variable name will break. As many object property keywords are not dictionary words - but compounds or contractions - this means that even scripts which conform to the long standing rule could fall foul. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From bobsneidar at iotecdigital.com Tue Jul 11 14:19:55 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 18:19:55 +0000 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: For what it’s worth, I use SublimeText which has linters for both Livecode Script and Livecode Builder that were so graciously provided by Trevor Devore. Not sure how many people know it, but we have a Datagrid and also sqlYoga because of Trevor. Bob S On Jul 10, 2023, at 1:08 PM, Bob Sneidar wrote: Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. One of a hundred things that upset me about Microsoft. Bob S From klaus at major-k.de Tue Jul 11 14:46:51 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 20:46:51 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> Hi Jacques, > Am 11.07.2023 um 17:31 schrieb J. Landman Gay via use-livecode : > > My client had similar results where the name of the app was not found. It could be found by searching for the company name though. > We couldn't explain it. Some weeks later it suddenly could be found normally by its name. the apps are in the stores since february... > I don't know how the search algorithm works, maybe it takes some time to populate. See above, well, that should be finished already. 8-) > --- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 11, 2023 8:06:18 AM Klaus major-k via use-livecode wrote: > >> Hi friends, >> >> strange results whjen searching a german app in the Google Playstore. >> We have an app namde -> Sehen - Hören - Merken >> in the Apple and Google store. >> iOS >> >> Android >> >> >> However it is not easy to find the app in Google be it on the PC/Mac >> (via browser URL: https://play.google.com/store) or on an Android Device >> with the Googgle app: >> 1. If I enter -> Sehen - Hören >> App is found >> >> 2. If I enter its full name: Sehen - Hören - Merken >> NO results >> >> 3. If I enter its full name and its file externsion: Sehen - Hören - Merke.app >> App is found. >> >> Any hintst that may shed some light on this phenomenon very appreciated. >> Thank a lot in advance! 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 Tue Jul 11 15:32:32 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 11 Jul 2023 14:32:32 -0500 Subject: Search for an app in Google Play Store In-Reply-To: <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> Message-ID: On 7/11/23 1:46 PM, Klaus major-k via use-livecode wrote: >> I don't know how the search algorithm works, maybe it takes some time to populate. > See above, well, that should be finished already. 8-) > You could try writing to support and see if they can tell you what's wrong. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Tue Jul 11 15:44:45 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 11 Jul 2023 21:44:45 +0200 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> Message-ID: <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Hi Jacques, > Am 11.07.2023 um 21:32 schrieb J. Landman Gay via use-livecode : > > On 7/11/23 1:46 PM, Klaus major-k via use-livecode wrote: >>> I don't know how the search algorithm works, maybe it takes some time to populate. >> See above, well, that should be finished already. 8-) > You could try writing to support and see if they can tell you what's wrong. yes, worth a try, do you have the supports email address? > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at livecode.org Tue Jul 11 15:54:47 2023 From: paul at livecode.org (Paul Hibbert) Date: Tue, 11 Jul 2023 12:54:47 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: Thank you for sharing. That’s a very useful snippet to save for the future. Paul > On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: > > After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. > > In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. > > 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. > > 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. > > 3. The path to the container is in ~/Library/Containers// > > We don't have a specialFolderPath for that, so here's how I did it: > > put specialFolderPath("support") into tContainer > set the itemdel to slash > put "Containers/your.bundle.id/" into last item of tContainer > if there is no folder tContainer then > create folder tContainer > if the result <> empty then log "Create container:" && the result > end if > put tContainer & "yourFileName.ext" into tPath > > This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. > > Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. > > -- > 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 Paul paul at livecode.org macOS Mojave 10.14 From marksmithhfx at gmail.com Tue Jul 11 16:21:57 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 11 Jul 2023 21:21:57 +0100 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: <82651319-13C7-4EBA-B15C-EA06B4EF33F3@gmail.com> Speaking of editors. Does anyone know if there is a list of all the colours used in the LC editor, and what they represent? (some are obvious, others less so) Thanks > On 11 Jul 2023, at 7:19 pm, Bob Sneidar via use-livecode wrote: > > For what it’s worth, I use SublimeText which has linters for both Livecode Script and Livecode Builder that were so graciously provided by Trevor Devore. Not sure how many people know it, but we have a Datagrid and also sqlYoga because of Trevor. > > Bob S > > > On Jul 10, 2023, at 1:08 PM, Bob Sneidar wrote: > > Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. > > It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? > > Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. > > One of a hundred things that upset me about Microsoft. > > 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 MikeKerner at roadrunner.com Tue Jul 11 16:27:48 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 11 Jul 2023 16:27:48 -0400 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: and levure quickbooks also provides amazingly useless errors, especially when you are trying to import data. On Tue, Jul 11, 2023 at 2:21 PM Bob Sneidar via use-livecode wrote: > > For what it’s worth, I use SublimeText which has linters for both Livecode Script and Livecode Builder that were so graciously provided by Trevor Devore. Not sure how many people know it, but we have a Datagrid and also sqlYoga because of Trevor. > > Bob S > > > On Jul 10, 2023, at 1:08 PM, Bob Sneidar wrote: > > Code is not the only editor to “assume” you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. > > It is in my opinion a serious violation of trust on Microsoft’s part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? > > Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will “corrupt” the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. > > One of a hundred things that upset me about Microsoft. > > 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 -- 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 bobsneidar at iotecdigital.com Tue Jul 11 19:00:21 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 23:00:21 +0000 Subject: Get the nested behaviors of an object Message-ID: <5DE89A6F-E508-4F42-9E5C-04CE1E623634@iotecdigital.com> Hi all. I’ve got me doots, as Richmond would say, but is there a way to get (and even better SET) the nested behaviors of an object? Now that nested behaviors work for Datagrids, actually *setting* the nested behavior is problematic. There is no place to actually set it in the Datagrid properties, like there is in the properties of other objects. Bob S From bobsneidar at iotecdigital.com Tue Jul 11 19:15:47 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 11 Jul 2023 23:15:47 +0000 Subject: Get the nested behaviors of an object In-Reply-To: <5DE89A6F-E508-4F42-9E5C-04CE1E623634@iotecdigital.com> References: <5DE89A6F-E508-4F42-9E5C-04CE1E623634@iotecdigital.com> Message-ID: <04012655-FCB9-4629-AEDE-2AF2F9852AE9@iotecdigital.com> Actually I can set the behavior of a Datagrid via the message box, so that’s okay, but it would be nice to have a property called the nestedBehaviors or something akin. I can probably write a function to iterate through the behaviors to get it and in the reverse to set it. I’ll give that a go. Bob S On Jul 11, 2023, at 4:00 PM, Bob Sneidar via use-livecode wrote: Hi all. I’ve got me doots, as Richmond would say, but is there a way to get (and even better SET) the nested behaviors of an object? Now that nested behaviors work for Datagrids, actually *setting* the nested behavior is problematic. There is no place to actually set it in the Datagrid properties, like there is in the properties of other objects. Bob S From benr_mc at cogapp.com Wed Jul 12 05:34:49 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 12 Jul 2023 10:34:49 +0100 Subject: [OT ish] Visual Code Editor and Line Endings In-Reply-To: <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> Message-ID: <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> I agree that the behaviour of the editors is very annoying. But LC is also needs to get with the program. On the positive side, it interprets any combination of LF, CR, CRLF as a line break when reading a file as text. But it persists in writing text files with a platform dependent encoding of line breaks, which on macOS (where the system default is LF) is still CR. As I wrote in https://quality.livecode.com/show_bug.cgi?id=17774: > As near as I can tell, Metacard introduced support for Mac around 1993 > (? -happy to be corrected). So MC/Rev/LC has already been writing the 'wrong' > files for twice as long as it was writing the 'right' ones (based on MacOS X > introduced in 2001). At what point can we change? If not now, when? But I was excited just now to see this: https://quality.livecode.com/show_bug.cgi?id=23943 Is it possible that the long reign of CR terror may soon be over? Ben On 10/07/2023 21:09, Bob Sneidar via use-livecode wrote: > Code is not the only editor to assume you want to change out all the line endings. Microsoft has been doing this for years. Just OPENING a file where the platform defaults differ from the document results in Microsoft Word altering the file, despite a user closing without saving. > > It is in my opinion a serious violation of trust on Microsofts part. Who made them the gods of data formatting that they think they can take this license with files that do not belong to them? > > Toshiba has an address book export function with line endings of a certain kind. If I open them in Word for Windows, edit the file and save it, everything works fine. If I just open the file on Word for MacOS it will corrupt the file, and I do mean corrupt! The file will become unusable even if it is not edited or saved. > > One of a hundred things that upset me about Microsoft. > > Bob S > >> On Jul 10, 2023, at 9:25 AM, Ralph DiMola via use-livecode wrote: >> >> Beware! >> >> >> >> I moved from Atom to Code 6-9 months ago. Didn't look back until yesterday. >> >> Code does not support CR line endings. I received a text file that was >> output from InDesign(latest version). I made a minor change in the text >> file. I processed it with a program that had been around for years. I sent >> the processed file to the customer and results were disastrous. Unknown to >> me all the LFs in the file were changed without warning to line endings. >> Apparently VC only has 2 line ending options LF and CRLF but not CR. >> Apparently I'm not the first to get bitten by this. An enhancement request >> to support CR line endings has been around for 5 years and not addressed. >> Seem like a simple fix, but what do I know about VC's internals. >> >> >> >> Hope this prevents one of you from getting bitten.. >> >> >> >> Ralph DiMola >> >> IT Director >> >> Evergreen Information Services >> >> rdimola at evergreeninfo.net >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Wed Jul 12 14:19:09 2023 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Jul 2023 18:19:09 +0000 Subject: Stylized Text on Mobile In-Reply-To: <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> Message-ID: Just want to make sure I’m not missing something… there is no method to enter, display or edit stylized text in a native mobile text control (or the widget). Is this true? If so, has anyone got a workaround? Kinda hard to believe that this is the case?! Then again, LC doesn’t have justified text. Sorry for the rant… LiveCode does SO MUCH that when you run into these seemingly core items that aren’t there, it’s a bit puzzling and frustrating. -Dan From jacque at hyperactivesw.com Wed Jul 12 18:15:27 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 12 Jul 2023 17:15:27 -0500 Subject: Stylized Text on Mobile In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> Message-ID: On 7/12/23 1:19 PM, Dan Friedman via use-livecode wrote: > Just want to make sure I’m not missing something… there is no method to enter, display or edit stylized text in a native mobile text control (or the widget). Is this true? If so, has anyone got a workaround? You can use a regular LC field for display and some editing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Wed Jul 12 18:21:57 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 12 Jul 2023 18:21:57 -0400 Subject: Field highlited Message-ID: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. OR There should be a feature enhancement: set the preserveHighlight of field X to true That keeps the highlighted selection unless or until you make a new one in that field From dan at clearvisiontech.com Wed Jul 12 18:49:48 2023 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 12 Jul 2023 22:49:48 +0000 Subject: Stylized Text on Mobile In-Reply-To: References: <002601d9b34b$3586dc10$a0949430$@net> <91981B56-60F3-43E6-9CF1-12444607A229@iotecdigital.com> <67f86544-21a9-0799-ecf1-5717d42e28b2@cogapp.com> Message-ID: Jacque, Yes, I know that. But that’s kinda a hack… looking to use the native copy/paste and text editing features that we have all come to expect in even the most basic and simplistic apps. -Dan From: use-livecode on behalf of J. Landman Gay via use-livecode Date: Wednesday, July 12, 2023 at 3:17 PM To: How to use LiveCode Cc: J. Landman Gay Subject: Re: Stylized Text on Mobile On 7/12/23 1:19 PM, Dan Friedman via use-livecode wrote: > Just want to make sure I’m not missing something… there is no method to enter, display or edit stylized text in a native mobile text control (or the widget). Is this true? If so, has anyone got a workaround? You can use a regular LC field for display and some editing. -- 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 neville.smythe at optusnet.com.au Thu Jul 13 04:19:53 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Thu, 13 Jul 2023 18:19:53 +1000 Subject: Convert date Message-ID: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! Neville Smythe From bobsneidar at iotecdigital.com Thu Jul 13 11:22:50 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 15:22:50 +0000 Subject: Convert date In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: <11FBD08F-461A-4341-AE48-0D2CD9D32980@iotecdigital.com> I wrote a formatDate function years ago that called this "sql date". Maybe I should rename it “ISO Date” or just add a case for it. There is also an “sql time” format in the function formatTime. This way you can put format date(the date, “sql date”) && formative(the time, “sql time”) to get an sql datetime format for a database column. They should be in the Master Library. I suppose a lot of things could be done by the engine, but as was discussed years ago, what LC is NOT is a development environment that does almost anything. What it IS is a development environment that has the TOOLS to do almost anything. Bob S On Jul 13, 2023, at 1:19 AM, Neville Smythe via use-livecode wrote: I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! Neville Smythe From bobsneidar at iotecdigital.com Thu Jul 13 11:27:50 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 15:27:50 +0000 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: <67C38ED6-2EBA-4258-8CBE-10B7C852AC5D@iotecdigital.com> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. Bob S > On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: > > I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. > > Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. > > OR > > There should be a feature enhancement: set the preserveHighlight of field X to true > That keeps the highlighted selection unless or until you make a new one in that field From craig at starfirelighting.com Thu Jul 13 12:04:00 2023 From: craig at starfirelighting.com (Craig Newman) Date: Thu, 13 Jul 2023 12:04:00 -0400 Subject: Field highlited In-Reply-To: <67C38ED6-2EBA-4258-8CBE-10B7C852AC5D@iotecdigital.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <67C38ED6-2EBA-4258-8CBE-10B7C852AC5D@iotecdigital.com> Message-ID: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> Paul. I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. Craig > On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: > > I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. > > What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. > > Bob S > > >> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >> >> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >> >> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >> >> OR >> >> There should be a feature enhancement: set the preserveHighlight of field X to true >> That keeps the highlighted selection unless or until you make a new one in that field > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Thu Jul 13 12:50:57 2023 From: prothero at earthlearningsolutions.org (William Prothero) Date: Thu, 13 Jul 2023 09:50:57 -0700 Subject: Field highlited In-Reply-To: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> Message-ID: <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> Folks, A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. Just thinking. Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: > > Paul. > > I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. > > A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. > > I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. > > Craig > >> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >> >> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >> >> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >> >> Bob S >> >> >>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>> >>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>> >>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>> >>> OR >>> >>> There should be a feature enhancement: set the preserveHighlight of field X to true >>> That keeps the highlighted selection unless or until you make a new one in that field >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 13 13:07:04 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 13 Jul 2023 13:07:04 -0400 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: Thank your Bob, Craig, and William for the responses. It appears the way I have done it in the past is the "best" option. I was hoping there was some clever trick I don't know, but it is what it is. I'll do what I have done before. Thanks again. On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: > I've used the "selectionChanged" message to (1) set the background > color of the selection to a highlight color and store the start and > end characters as custom properties of the field. From bobsneidar at iotecdigital.com Thu Jul 13 13:12:17 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 17:12:17 +0000 Subject: Field highlited In-Reply-To: <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> Message-ID: <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> Untested This in a frontScript: on openField put long id of the target into pField set the selection to the savedChunk of pField — if you want to restore the last selection Set the savedChunk of pField to empty pass openField end openField on exitField put the long id of the target into pField set the savedChunk of pField to the selectedChunk pass exitField end exitField Bob S > On Jul 13, 2023, at 9:50 AM, William Prothero via use-livecode wrote: > > Folks, > A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. > > Just thinking. > Bill > > William A. Prothero, PhD > Prof Emeritus, Dept of Earth Science > University of California, Santa Barbara > >> On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: >> >> Paul. >> >> I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. >> >> A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. >> >> I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. >> >> Craig >> >>> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >>> >>> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >>> >>> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >>> >>> Bob S >>> >>> >>>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>>> >>>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>>> >>>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>>> >>>> OR >>>> >>>> There should be a feature enhancement: set the preserveHighlight of field X to true >>>> That keeps the highlighted selection unless or until you make a new one in that field >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 13 13:17:33 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Thu, 13 Jul 2023 18:17:33 +0100 Subject: Convert date In-Reply-To: <11FBD08F-461A-4341-AE48-0D2CD9D32980@iotecdigital.com> References: <11FBD08F-461A-4341-AE48-0D2CD9D32980@iotecdigital.com> Message-ID: Thanks Bob. Sounds very useful. How does one access (or locate) the master library? Cheers, Mark Sent from my iPhone > On Jul 13, 2023, at 4:24 PM, Bob Sneidar via use-livecode wrote: > > I wrote a formatDate function years ago that called this "sql date". Maybe I should rename it “ISO Date” or just add a case for it. There is also an “sql time” format in the function formatTime. This way you can put format date(the date, “sql date”) && formative(the time, “sql time”) to get an sql datetime format for a database column. They should be in the Master Library. > > I suppose a lot of things could be done by the engine, but as was discussed years ago, what LC is NOT is a development environment that does almost anything. What it IS is a development environment that has the TOOLS to do almost anything. > > Bob S > > > On Jul 13, 2023, at 1:19 AM, Neville Smythe via use-livecode wrote: > > I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. > > But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! > > Neville Smythe > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Jul 13 13:20:44 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 13 Jul 2023 17:20:44 +0000 Subject: Field highlited In-Reply-To: <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> Message-ID: Correction: on openField put long id of the target into pField if the savedChunk of pField is not empty then put the savedChunk of pField into tSelection select tSelection Set the savedChunk of pField to empty end if pass openField end openField > On Jul 13, 2023, at 10:12 AM, Bob Sneidar wrote: > > > Untested > > This in a frontScript: > > on openField > put long id of the target into pField > set the selection to the savedChunk of pField — if you want to restore the last selection > Set the savedChunk of pField to empty > pass openField > end openField > > on exitField > put the long id of the target into pField > set the savedChunk of pField to the selectedChunk > pass exitField > end exitField > > Bob S > > >> On Jul 13, 2023, at 9:50 AM, William Prothero via use-livecode wrote: >> >> Folks, >> A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. >> >> Just thinking. >> Bill >> >> William A. Prothero, PhD >> Prof Emeritus, Dept of Earth Science >> University of California, Santa Barbara >> >>> On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: >>> >>> Paul. >>> >>> I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot “remember” such a thing. >>> >>> A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. >>> >>> I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. >>> >>> Craig >>> >>>> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >>>> >>>> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >>>> >>>> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >>>> >>>> Bob S >>>> >>>> >>>>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>>>> >>>>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>>>> >>>>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>>>> >>>>> OR >>>>> >>>>> There should be a feature enhancement: set the preserveHighlight of field X to true >>>>> That keeps the highlighted selection unless or until you make a new one in that field >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Thu Jul 13 13:42:37 2023 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 13 Jul 2023 20:42:37 +0300 Subject: Field highlited In-Reply-To: References: <18877280-3F06-4B9E-B7C3-C9409838D2BE@starfirelighting.com> <55740105-A028-4633-B295-6782ACEE0172@earthlearningsolutions.org> <05FAE37E-0288-4230-8C30-A2BEC1A0D057@iotecdigital.com> Message-ID: <223c4f49-b982-1ab6-0158-e983ad7a4c78@gmail.com> I just did this: on mouseLeave    put the selectedText of fld "f1" into fld "f2" end mouseLeave you can then do whatever you want with your button on the basis of the contents of fld "f2" Best, Richmond. On 13.07.23 20:20, Bob Sneidar via use-livecode wrote: > Correction: > > on openField > put long id of the target into pField > if the savedChunk of pField is not empty then > put the savedChunk of pField into tSelection > select tSelection > Set the savedChunk of pField to empty > end if > pass openField > end openField > > >> On Jul 13, 2023, at 10:12 AM, Bob Sneidar wrote: >> >> >> Untested >> >> This in a frontScript: >> >> on openField >> put long id of the target into pField >> set the selection to the savedChunk of pField if you want to restore the last selection >> Set the savedChunk of pField to empty >> pass openField >> end openField >> >> on exitField >> put the long id of the target into pField >> set the savedChunk of pField to the selectedChunk >> pass exitField >> end exitField >> >> Bob S >> >> >>> On Jul 13, 2023, at 9:50 AM, William Prothero via use-livecode wrote: >>> >>> Folks, >>> A possible strategy is to change the color of a line in a field, when it is selected. There would need to be a script that could simply returns the content of a line of a specified color, changes the color to "unselected", or whatever your need requires. You could have multiple lines selected, and other variations as needed. >>> >>> Just thinking. >>> Bill >>> >>> William A. Prothero, PhD >>> Prof Emeritus, Dept of Earth Science >>> University of California, Santa Barbara >>> >>>> On Jul 13, 2023, at 9:06 AM, Craig Newman via use-livecode wrote: >>>> >>>> Paul. >>>> >>>> I think that Bob S. is correct. The change in focus is sort of built into the engine, and a field cannot remember such a thing. >>>> >>>> A fun kludge would be to create one or more overlays, however you like those to look, and apply them to the field of interest. These overlays can be managed in terms of their rects, depending on the formatted properties of the hilted line or lines. They can be shown and hidden as well. >>>> >>>> I am struggling not to do this just for fun. So you do it, because I bet that the team has bigger fish to fry. >>>> >>>> Craig >>>> >>>>> On Jul 13, 2023, at 11:27 AM, Bob Sneidar via use-livecode wrote: >>>>> >>>>> I do not see how that could work. In Windows, buttons can have the focus, which means a field would always lose it. >>>>> >>>>> What I do when I need something like this is I save the selection (or selectedChunk or some such thing) as a property of the field upon exitField. You could even put that in a frontScript and reference the target. Then in the field script re-select the text upon enterField. >>>>> >>>>> Bob S >>>>> >>>>> >>>>>>> On Jul 12, 2023, at 3:21 PM, Paul Dupuis via use-livecode wrote: >>>>>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>>>>> >>>>>> Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. >>>>>> >>>>>> OR >>>>>> >>>>>> There should be a feature enhancement: set the preserveHighlight of field X to true >>>>>> That keeps the highlighted selection unless or until you make a new one in that field >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 13 14:18:59 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Thu, 13 Jul 2023 19:18:59 +0100 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> Hi Paul, try “the selectedText". Create a scrolling text field, call it fld1, and put a large amount of text in it. Create 2 buttons: one with “on mouse down, answer “Hello World” and the other with “on mouse down, answer the selectedText of field “fld1” Now highlight an area of text in fld1. Click either button, the highlight in the text does not go away. The first button responds with “Hello World” and the second responds with the highlighted text in fld1. I am using LC 10 if that makes a difference, although just tested in 9.6.8 and it worked there as well. Mark > On 12 Jul 2023, at 11:21 pm, Paul Dupuis via use-livecode wrote: > > I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. > > Any simple solutions to this. Some property I am just blanking on? In another app, I've used the "selectionChanged" message to (1) set the background color of the selection to a highlight color and store the start and end characters as custom properties of the field. I'm hoping there is an easier way I am just missing. > > OR > > There should be a feature enhancement: set the preserveHighlight of field X to true > That keeps the highlighted selection unless or until you make a new one in that field > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 13 15:58:23 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 14:58:23 -0500 Subject: Field highlited In-Reply-To: <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> Message-ID: <5920d18b-c4a1-3e66-aa3a-6987e488b876@hyperactivesw.com> On 7/13/23 1:18 PM, Mark Smith via use-livecode wrote: > Hi Paul, try “the selectedText". Whaddya know...it works! Another way is to turn off traversalOn in the button. That prevents the focus from changing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at gmail.com Thu Jul 13 16:03:07 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 13 Jul 2023 13:03:07 -0700 Subject: Crazy question: is it possible/reasonable to use Python in LC? Message-ID: I've been playing with Python, and it has a lot of nice qualities, but a built-in GUI isn't one of them (no apologies to tkinter). So it would be interesting/nice to be able to open LC, add a button to a stack, and put some python into the script of that button and have it just work, with access to the rest of the LC stack/controls as usual. Obviously that's not possible, but how close can we come? I assume it would be possible to write a shell command to trigger a python script, but that seems complex and sub-optimal, especially when thinking about having to bundle together all the bits and bobs from the LC UI to pass as arguments to the Python script instead of having it able to just reference what it needs on the fly. Anyway, wondering if anyone else has thought about this. gc From MikeKerner at roadrunner.com Thu Jul 13 16:23:24 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 13 Jul 2023 16:23:24 -0400 Subject: Crazy question: is it possible/reasonable to use Python in LC? In-Reply-To: References: Message-ID: there are no crazy questions there is, however, bat-guano-crazy geoff canyon anyway, i think you will have to write the parser, linker, lexical analyzer, etc., and all the other pre-compiler stuff that you would have to write for any language. i'm not aware of something like a DLL for python. even better, while we're wondering, wouldn't it be great if we could implement any interpreted grammar? i'd love it, because our erp software is written in a a BASIC-COBOL-Fortran thing. I could dump all the 1970's-era tools for managing forms and databases and replace them with something nicer. On Thu, Jul 13, 2023 at 4:04 PM Geoff Canyon via use-livecode wrote: > > I've been playing with Python, and it has a lot of nice qualities, but a > built-in GUI isn't one of them (no apologies to tkinter). > > So it would be interesting/nice to be able to open LC, add a button to a > stack, and put some python into the script of that button and have it just > work, with access to the rest of the LC stack/controls as usual. > > Obviously that's not possible, but how close can we come? I assume it would > be possible to write a shell command to trigger a python script, but that > seems complex and sub-optimal, especially when thinking about having to > bundle together all the bits and bobs from the LC UI to pass as arguments > to the Python script instead of having it able to just reference what it > needs on the fly. > > Anyway, wondering if anyone else has thought about this. > > gc > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Thu Jul 13 16:43:39 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 15:43:39 -0500 Subject: Search for an app in Google Play Store In-Reply-To: <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote: >> You could try writing to support and see if they can tell you what's wrong. > > yes, worth a try, do you have the supports email address? Sorry for the late reply, you may have found it already but you can write to support here: Scroll to the middle of the page, there's a button. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jul 13 17:00:02 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 16:00:02 -0500 Subject: Field highlited In-Reply-To: <5920d18b-c4a1-3e66-aa3a-6987e488b876@hyperactivesw.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <3B8614A3-3ABA-402C-827B-4617301ACC72@gmail.com> <5920d18b-c4a1-3e66-aa3a-6987e488b876@hyperactivesw.com> Message-ID: <58d776a4-36fc-921b-cfe8-38456f7671a9@hyperactivesw.com> On 7/13/23 2:58 PM, J. Landman Gay via use-livecode wrote: > On 7/13/23 1:18 PM, Mark Smith via use-livecode wrote: >> Hi Paul, try “the selectedText". > > Whaddya know...it works! > > Another way is to turn off traversalOn in the button. That prevents the focus from changing. > Actually, I've been trying different button and field settings and no matter what I do, the selection doesn't go away It doesn't matter if I click a button or directly on the card. I'm not sure what changed because it didn't used to be that way. LC 9.6.9. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Jul 13 17:05:44 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 13 Jul 2023 16:05:44 -0500 Subject: Convert date In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: <1b81a696-4fcd-c11f-c1df-de61f01fc0ca@hyperactivesw.com> On 7/13/23 3:19 AM, Neville Smythe via use-livecode wrote: > I seem to have hallucinated that the built-in convert handler recognised the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD hh:mm:ss+-hh.ss, etc) but I must have written my own conversion routines in a former life. > > But one would have to ask… Why doesn’t it? After all, the original ISO 8601 standard was adopted 1988! I've been collecting handlers for this for some years. I have four now. I didn't note where the first two came from, but here's what I have: on formatTime put the long time into tTime convert tTime to dateItems split tTime by "," return format("%02d:%02d:%02d",tTime[4],tTime[5],tTime[6]) end formatTime function sqlDate pDate convert pDate to dateitems set the numberformat to "00" return merge("[[item 1 of pDate]]-[[item 2 of pDate + 0]]-[[item 3 of pDate + 0]]") end sqlDate -- Mark Waddingham, sql date and time: function convertDateTimeToISO pDateTime local tTimeZone convert pDateTime to internet date put the last word of pDateTime into tTimeZOne convert pDateTime to dateitems return format("%04d-%02d-%02d %02d:%02d:%02d%s", \ item 1 of pDateTime, item 2 of pDateTime, item 3 of pDateTime, \ item 4 of pDateTime, item 5 of pDateTime, item 6 of pDateTime, tTimeZone) end convertDateTimeToISO -- Klaus Major, using seconds: function smpt_lite tSecs return format("%02d:%02d:%02d", tSecs div 3600, (tSecs mod 3600) div 60, tSecs mod 60) end smpt_lite -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Thu Jul 13 18:01:23 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 13 Jul 2023 18:01:23 -0400 Subject: Field highlited In-Reply-To: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> Message-ID: <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: > I have a LC9 field object - just a scrolling field (not a list field) > with a lot of text. The user selects some text and then click a button > near the field. I want the selection to remain highlighted, but when > you click outside the field the highlight goes away. > Thanks to Richmond, Mark, and Jacque for your responses. So, I actually need to note the position of the selected (i.e. char x to y) rather than the selected text itself. Indeed, if you have text highlighted in a lock, scrolling text field (autohilite on) and click a button, the highlight does not go away. However, if you click on another field it does. I need a solution where the highlight appears to remain in the primary "Content" field no matter what else the user clicks on in terms of other UI actions. So, it still seems the "best" way to do this is using the on selectioChanged message and getting the selectedChunk and if not empty and word 2 is not > word 4 (insertion point), then save word 2 as the start and word 4 as the end and change the background color of the selected range to the highlight color, clearing another of background color This makes it appear that the selection remains, updates it when the use makes a new selection, but sacrifices any other use of background color for the text in the field (which I can live with) Thanks all, From ambassador at fourthworld.com Thu Jul 13 19:16:06 2023 From: ambassador at fourthworld.com (ambassador at fourthworld.com) Date: Thu, 13 Jul 2023 23:16:06 +0000 Subject: Field highlited Message-ID: <20230713231606.Horde.Awu7E-BDRXrJomyDxrKFfgZ@hub.4wsys.com> Paul Dupuis wrote:   > I have a LC9 field object - just a scrolling field (not a list field) with > a lot of text. The user selects some text and then click a button near > the field. I want the selection to remain highlighted, but when you  > click outside the field the highlight goes away. Any simple solutions > to this. Some property I am just blanking on? In another app, I've used > the "selectionChanged" message to (1) set the background color of > the selection to a highlight color and store the start and end characters > as custom properties of the field. I'm hoping there is an easier way I am > just missing. > OR > There should be a feature enhancement: set the  > preserveHighlight of field X to true That keeps the highlighted selection > unless or until you make a new one in that field   https://quality.livecode.com/show_bug.cgi?id=3327   --  Richard Gaskin  Fourth World Systems   From ambassador at fourthworld.com Thu Jul 13 19:19:53 2023 From: ambassador at fourthworld.com (ambassador at fourthworld.com) Date: Thu, 13 Jul 2023 23:19:53 +0000 Subject: Convert date Message-ID: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> Neville Smythe wrote: > I seem to have hallucinated that the built-in convert handler recognised > the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD  > hh:mm:ss+-http://hh.ss, etc) but I must have written my own conversion > routines in a former life. > But one would have to ask Why doesnt it? > After all, the original ISO 8601 standard was adopted 1988! https://quality.livecode.com/show_bug.cgi?id=4636   --  Richard Gaskin  Fourth World Systems   From neville.smythe at optusnet.com.au Thu Jul 13 22:59:59 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 14 Jul 2023 12:59:59 +1000 Subject: Convert date Message-ID: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. Neville Smythe From ludovic.thebault at laposte.net Fri Jul 14 02:26:17 2023 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 14 Jul 2023 08:26:17 +0200 Subject: Check connection and timeout Message-ID: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Hello, I use this code to check is there is an internet connection : tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders if tResult begins with "tsneterr:" then return false else return true end if But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. Is there an other settings ? Thanks. From ludovic.thebault at laposte.net Fri Jul 14 03:50:46 2023 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Fri, 14 Jul 2023 09:50:46 +0200 Subject: Check connection and timeout In-Reply-To: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Message-ID: <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> > Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. From klaus at major-k.de Fri Jul 14 04:23:25 2023 From: klaus at major-k.de (Klaus major-k) Date: Fri, 14 Jul 2023 10:23:25 +0200 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: <07405DCC-1AC4-4B93-BC23-53493AE02750@major-k.de> Hi Jacques, > Am 13.07.2023 um 22:43 schrieb J. Landman Gay via use-livecode : > > On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote: >>> You could try writing to support and see if they can tell you what's wrong. >> yes, worth a try, do you have the supports email address? > > Sorry for the late reply, you may have found it already but you can write to support here: > > Scroll to the middle of the page, there's a button. thank you very much! > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Fri Jul 14 07:08:12 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 14 Jul 2023 07:08:12 -0400 Subject: Convert date In-Reply-To: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Message-ID: Yes to this. I have, lot so many developer, a set of functions to translate to and from this date format. We can all write our own or use ones others have provided, but it would be nice if this was built into the language. On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote: > Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. Ill add the snippets to my own version. > > The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. > > Neville Smythe > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Fri Jul 14 08:09:46 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 14 Jul 2023 13:09:46 +0100 Subject: Convert date In-Reply-To: References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Message-ID: Which makes me think, it would be nice if we could have plug-in code modules. Essentially a faceless widget that could be called to perform some sort of action (with parameters). Completely encapsulated. Or is that “bat crazy” as Mike would say 😊 > On 14 Jul 2023, at 12:08 pm, Paul Dupuis via use-livecode wrote: > > Yes to this. I have, lot so many developer, a set of functions to translate to and from this date format. > > We can all write our own or use ones others have provided, but it would be nice if this was built into the language. > > > On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote: >> Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. >> >> The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. >> >> Neville Smythe >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 14 08:16:15 2023 From: klaus at major-k.de (Klaus major-k) Date: Fri, 14 Jul 2023 14:16:15 +0200 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: Hi Jacques, > Am 13.07.2023 um 22:43 schrieb J. Landman Gay via use-livecode : > > On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote: >>> You could try writing to support and see if they can tell you what's wrong. >> yes, worth a try, do you have the supports email address? > Sorry for the late reply, you may have found it already but you can write to support here: > oops, just noticed... I am looking for a support email at GOOGLE Dev. My problem is the search engine of Google Play Store. Just like the subject says. ;-) > Scroll to the middle of the page, there's a button. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From rdimola at evergreeninfo.net Fri Jul 14 11:14:01 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Jul 2023 11:14:01 -0400 Subject: Check connection and timeout In-Reply-To: <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> Message-ID: <002701d9b665$d5ca5720$815f0560$@net> Ludovic, Make sure that tsNet is active: command NetworkType if GetNetworkType() = "libURL" then answer"tsNet is disabled(LibURL)" else answer "tsNet in use"&cr&"Version==>"& tsNetVersion() end if end NetworkType Did you initialize tsNet? ==> tsNetInit Disable tsNet ==> dispatch "revunloadlibrary" to stack "tsnetliburl" To enable tsNet ==> dispatch "revloadlibrary" to stack "tsnetliburl" 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 Ludovic THEBAULT via use-livecode Sent: Friday, July 14, 2023 3:51 AM To: How to use LiveCode Cc: Ludovic THEBAULT Subject: Re: Check connection and timeout > Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 14 11:13:28 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:13:28 +0000 Subject: Convert date In-Reply-To: References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> Message-ID: <0D1E1DEA-697A-4589-B017-8586BABAFF32@iotecdigital.com> I beg to differ. Again, Livecode is a way to build both the tools and the product made by those tools. Livecode is NOT a collection of every conceivable tool for everything everyone wants to do. No language is. I think the LC dev team is far more useful to everyone if they focus on completing the projects they already have, and squashing the long standing and pervasive bugs that exist. I think if there is a fairly easy way to create the tool you need with the codeset you now have, then you would need a compelling reason, like dramatic performance increases to justify building it into the engine. Bob S > On Jul 14, 2023, at 4:08 AM, Paul Dupuis via use-livecode wrote: > > Yes to this. I have, lot so many developer, a set of functions to translate to and from this date format. > > We can all write our own or use ones others have provided, but it would be nice if this was built into the language. > > > On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote: >> Jacque: Nice! Particularly as a demonstration of the variety of ways to achieve an objective in LC and different coding styles. I’ll add the snippets to my own version. >> >> The ISO date (aka sql date) format is my favourite because it avoids the ambiguity of the English/American ordering of day, month and mostly because it works for sorting. I could wish it were universally adopted. >> >> Neville Smythe From bobsneidar at iotecdigital.com Fri Jul 14 11:17:27 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:17:27 +0000 Subject: Check connection and timeout In-Reply-To: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Message-ID: I’m interested in this. But how do you GET the timeout? Bob S > On Jul 13, 2023, at 11:26 PM, Ludovic THEBAULT via use-livecode wrote: > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > > Thanks. From bobsneidar at iotecdigital.com Fri Jul 14 11:20:36 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:20:36 +0000 Subject: Check connection and timeout In-Reply-To: <002701d9b665$d5ca5720$815f0560$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> Message-ID: <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> getNetwotkType() is not a valid function. Bob S > On Jul 14, 2023, at 8:14 AM, Ralph DiMola via use-livecode wrote: > > Ludovic, > > Make sure that tsNet is active: > > command NetworkType > if GetNetworkType() = "libURL" then > answer"tsNet is disabled(LibURL)" > else > answer "tsNet in use"&cr&"Version==>"& tsNetVersion() > end if > end NetworkType > > Did you initialize tsNet? ==> tsNetInit > > Disable tsNet ==> dispatch "revunloadlibrary" to stack "tsnetliburl" > To enable tsNet ==> dispatch "revloadlibrary" to stack "tsnetliburl" > > 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 Ludovic THEBAULT via use-livecode > Sent: Friday, July 14, 2023 3:51 AM > To: How to use LiveCode > Cc: Ludovic THEBAULT > Subject: Re: Check connection and timeout > > > >> Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : >> >> Hello, >> >> I use this code to check is there is an internet connection : >> >> tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 >> >> put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders >> >> if tResult begins with "tsneterr:" then >> return false >> else >> return true >> end if >> >> >> But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. >> >> Is there an other settings ? >> > > > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 14 11:26:35 2023 From: brian at milby7.com (Brian Milby) Date: Fri, 14 Jul 2023 11:26:35 -0400 Subject: Convert date In-Reply-To: References: Message-ID: <74C72151-418C-4584-B7EB-9BDBB3FBCA83@milby7.com> We actually do with LCB libraries (Icon SVG Library is one example), but with the caveat that they are not as performant as LCS code in many cases (compare the LCS and LCB implementations of JSON for example). LCS libraries are doable too. Just make everything internal private/script local and only expose the calls you want to be public. We just don’t currently have a built in way to manage them like the LCB modules. Brian Milby brian at milby7.com > On Jul 14, 2023, at 8:11 AM, Mark Smith via use-livecode wrote: > > Which makes me think, it would be nice if we could have plug-in code modules. Essentially a faceless widget that could be called to perform some sort of action (with parameters). Completely encapsulated. Or is that “bat crazy” as Mike would say 😊 From bobsneidar at iotecdigital.com Fri Jul 14 11:34:24 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:34:24 +0000 Subject: Convert date In-Reply-To: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> Message-ID: <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> Hmmm… I read the enhancement request. I’m still in the dark though on how to get to "2023-07-14 08:30:00" from “7/14/23” using format strings. Here’s my solution for those who do not want to download the masterLibrary. Given these, what else do you need? FUNCTION formatDate theDate, theFormat /* Accepts any valid date for the first parameter. If not a valid date, it simply returns what was passed. Second parameter can be any of the following: sql date: date in the yyyy-mm-dd format short date, abbreviated date, internet date, long date: LC versions of the same julian date: Julian number based on (I believe) Jacques formula */ put theDate into tSavedDate put the itemdelimiter into theOldDelim set the itemdelimiter to "-" IF the length of item 1 of theDate = 4 AND \ the number of items of theDate = 3 AND \ item 1 of theDate is a number AND \ item 2 of theDate is a number AND \ item 3 of theDate is a number THEN put item 2 of theDate & "/" & \ item 3 of theDate & "/" & \ item 1 of theDate into theDate END IF -- replace "." with "/" in theDate convert theDate to dateitems set the itemdelimiter to theOldDelim if the number of items of theDate <> 7 then answer "'" & theDate & "' is not a valid date format!" return tSavedDate end if SWITCH theFormat CASE "sql date" put item 1 of theDate & "-" & \ format("%02d",item 2 of theDate) & "-" & \ format("%02d",item 3 of theDate) into theDate break CASE "short date" convert theDate from dateitems to short date break CASE "abbreviated date" convert theDate from dateitems to abbreviated date break CASE "abbr date" convert theDate from dateitems to abbreviated date break CASE "internet date" convert theDate from dateitems to internet date break CASE "long date" convert theDate from dateitems to long date break CASE "julian date" put the date into theDate convert theDate to dateItems IF ((item 2 of theDate = 1) OR (item 2 of theDate = 2)) THEN put 1 into theDay ELSE put 0 into theDay END IF put item 1 of theDate + 4800 - theDay into theYear put item 2 of theDate + (12 * theDay) - 3 into theMonth put item 3 of theDate + \ ((153 * theMonth + 2) div 5) + \ (365 * theYear) + \ (theYear div 4) - \ (theYear div 100) + \ (theYear div 400) - \ 32045 into theDate break END SWITCH return theDate END formatDate FUNCTION formatTime theTime, theFormat /* accepts any valid time and returns the form of the time specified in the second parameter. The valid formats are: sql time: hh:mm:ss (Note: combining sql date from the formatDate() function with the sql time will produce a valid SQL date time type). short time: LC short time format abbreviated time: LC abbr time format (same as short time) long time: LC long time format seconds: the number of seconds since the prior midnight military: the military time 00:00 - 23:59 */ IF theTime is empty THEN return empty set the numberformat to "00" SWITCH theFormat CASE "sql time" convert theTime to dateitems put (item 4 of theTime +0) & ":" & \ (item 5 of theTime +0) & ":" & \ (item 6 of theTime +0) into theTime break CASE "short time" convert theTime to short time break CASE "abbreviated time" convert theTime to abbreviated time break CASE "long time" convert theTime to long time break CASE "seconds" convert theTime to seconds break CASE "military" set the itemdelimiter to ":" IF theTime contains "PM" THEN add 12 to item 1 of theTime END IF put word 1 of item 2 of theTime into item 2 of theTime break END SWITCH return theTime END formatTime And as an added bonus, those who use Spiceworks know they format time for tickets as 0h0m0s. FUNCTION spiceTime pStartTime, pEndTime convert pStartTime to dateItems convert pEndTime to dateItems subtract item 4 of pStartTime from item 4 of pEndTime subtract item 5 of pStartTime from item 5 of pEndTime convert pEndTime from dateItems to short time put formatTime(pEndTime, "military") into pEndTime set the itemdelimiter to ":" IF item 1 of pEndTime > 11 THEN subtract 12 from item 1 of pEndTime put item 1 of pEndTime & "h" & item 2 of pEndTime & "m" into tTotalTime return tTotalTime END spiceTime Bob S > On Jul 13, 2023, at 4:19 PM, ambassador--- via use-livecode wrote: > > Neville Smythe wrote: >> I seem to have hallucinated that the built-in convert handler recognised >> the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD >> hh:mm:ss+-http://hh.ss, etc) but I must have written my own conversion >> routines in a former life. >> But one would have to ask… Why doesn’t it? >> After all, the original ISO 8601 standard was adopted 1988! > > https://quality.livecode.com/show_bug.cgi?id=4636 > > -- > Richard Gaskin > Fourth World Systems > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 14 11:36:22 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Jul 2023 11:36:22 -0400 Subject: Check connection and timeout In-Reply-To: <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> Message-ID: <002b01d9b668$f444e4b0$dcceae10$@net> Sorry, It was mine... function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "libURL" else return "tsNet" end if end GetNetworkType 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: Friday, July 14, 2023 11:21 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Check connection and timeout getNetwotkType() is not a valid function. Bob S > On Jul 14, 2023, at 8:14 AM, Ralph DiMola via use-livecode wrote: > > Ludovic, > > Make sure that tsNet is active: > > command NetworkType > if GetNetworkType() = "libURL" then > answer"tsNet is disabled(LibURL)" > else > answer "tsNet in use"&cr&"Version==>"& tsNetVersion() > end if > end NetworkType > > Did you initialize tsNet? ==> tsNetInit > > Disable tsNet ==> dispatch "revunloadlibrary" to stack "tsnetliburl" > To enable tsNet ==> dispatch "revloadlibrary" to stack "tsnetliburl" > > 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 Ludovic THEBAULT via use-livecode > Sent: Friday, July 14, 2023 3:51 AM > To: How to use LiveCode > Cc: Ludovic THEBAULT > Subject: Re: Check connection and timeout > > > >> Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode a écrit : >> >> Hello, >> >> I use this code to check is there is an internet connection : >> >> tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 >> >> put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders >> >> if tResult begins with "tsneterr:" then >> return false >> else >> return true >> end if >> >> >> But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. >> >> Is there an other settings ? >> > > > Addendum : it happen when there is a connection (aka in 4G or Wifi) but no enough network. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 14 11:47:10 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 15:47:10 +0000 Subject: Check connection and timeout In-Reply-To: <002b01d9b668$f444e4b0$dcceae10$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> <002b01d9b668$f444e4b0$dcceae10$@net> Message-ID: Thanks Ralph, very handy, but is there a way to get the timeout to see if the command to set the timeout worked? I change networks frequently, and if I do not disconnect and reconnect to my SQL database, I run the risk of using a stale connection, and then I face the dreaded 60 second stall before I can proceed. Bob S On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode wrote: Sorry, It was mine... function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "libURL" else return "tsNet" end if end GetNetworkType Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From rdimola at evergreeninfo.net Fri Jul 14 12:04:20 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 14 Jul 2023 12:04:20 -0400 Subject: Check connection and timeout In-Reply-To: References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> <002b01d9b668$f444e4b0$dcceae10$@net> Message-ID: <002c01d9b66c$ddd50a30$997f1e90$@net> Bob, I use this function to return an array of the timeouts. function EIStsNetGetTimeouts local tTimeouts, tTsNetTimeoutArray put tsNetGetTimeouts() into tTimeouts put item 1 of tTimeouts into tTsNetTimeoutArray["DnsCacheTimeout"] put item 2 of tTimeouts into tTsNetTimeoutArray["RequestTimeoutMS"] put item 3 of tTimeouts into tTsNetTimeoutArray["ConnectTimeoutMS"] put item 4 of tTimeouts into tTsNetTimeoutArray["AcceptTimeoutMS"] put item 5 of tTimeouts into tTsNetTimeoutArray["LowSpeedTime"] put item 6 of tTimeouts into tTsNetTimeoutArray["LowSpeedLimit"] return tTsNetTimeoutArray end EIStsNetGetTimeouts 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: Friday, July 14, 2023 11:47 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Check connection and timeout Thanks Ralph, very handy, but is there a way to get the timeout to see if the command to set the timeout worked? I change networks frequently, and if I do not disconnect and reconnect to my SQL database, I run the risk of using a stale connection, and then I face the dreaded 60 second stall before I can proceed. Bob S On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode wrote: Sorry, It was mine... function GetNetworkType local tLibUrlDriver try put the behavior of stack"revLibUrl" into tLibUrlDriver end try if tLibUrlDriver is empty then return "libURL" else return "tsNet" end if end GetNetworkType Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 14 12:07:18 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 16:07:18 +0000 Subject: Check connection and timeout In-Reply-To: <002c01d9b66c$ddd50a30$997f1e90$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> <94E58D84-51B7-439F-A6C8-E3E8E60EBC0B@iotecdigital.com> <002b01d9b668$f444e4b0$dcceae10$@net> <002c01d9b66c$ddd50a30$997f1e90$@net> Message-ID: <574A85A7-F745-4D5C-803D-29D6A7A8511E@iotecdigital.com> Oooohhh… code candy! Thanks again Ralph! Bob S > On Jul 14, 2023, at 9:04 AM, Ralph DiMola via use-livecode wrote: > > Bob, > > I use this function to return an array of the timeouts. > > function EIStsNetGetTimeouts > local tTimeouts, tTsNetTimeoutArray > put tsNetGetTimeouts() into tTimeouts > put item 1 of tTimeouts into tTsNetTimeoutArray["DnsCacheTimeout"] > put item 2 of tTimeouts into tTsNetTimeoutArray["RequestTimeoutMS"] > put item 3 of tTimeouts into tTsNetTimeoutArray["ConnectTimeoutMS"] > put item 4 of tTimeouts into tTsNetTimeoutArray["AcceptTimeoutMS"] > put item 5 of tTimeouts into tTsNetTimeoutArray["LowSpeedTime"] > put item 6 of tTimeouts into tTsNetTimeoutArray["LowSpeedLimit"] > return tTsNetTimeoutArray > end EIStsNetGetTimeouts > > 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: Friday, July 14, 2023 11:47 AM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Re: Check connection and timeout > > Thanks Ralph, very handy, but is there a way to get the timeout to see if > the command to set the timeout worked? I change networks frequently, and if > I do not disconnect and reconnect to my SQL database, I run the risk of > using a stale connection, and then I face the dreaded 60 second stall before > I can proceed. > > Bob S > > > On Jul 14, 2023, at 8:36 AM, Ralph DiMola via use-livecode > wrote: > > Sorry, > > It was mine... > > function GetNetworkType > local tLibUrlDriver > try > put the behavior of stack"revLibUrl" into tLibUrlDriver > end try > if tLibUrlDriver is empty then > return "libURL" > else > return "tsNet" > end if > end GetNetworkType > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 14 12:14:19 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 14 Jul 2023 17:14:19 +0100 Subject: Field highlited In-Reply-To: <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> Message-ID: BTW, is there a way of determining the default highlight colour? When I select some text in a field it highlights to a light blue color, but I can’t find where that color is set. Thanks Mark > On 13 Jul 2023, at 11:01 pm, Paul Dupuis via use-livecode wrote: > > On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: >> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >> > Thanks to Richmond, Mark, and Jacque for your responses. > > So, I actually need to note the position of the selected (i.e. char x to y) rather than the selected text itself. > > Indeed, if you have text highlighted in a lock, scrolling text field (autohilite on) and click a button, the highlight does not go away. However, if you click on another field it does. I need a solution where the highlight appears to remain in the primary "Content" field no matter what else the user clicks on in terms of other UI actions. > > So, it still seems the "best" way to do this is using the on selectioChanged message and getting the selectedChunk and if not empty and word 2 is not > word 4 (insertion point), then save word 2 as the start and word 4 as the end and change the background color of the selected range to the highlight color, clearing another of background color > > This makes it appear that the selection remains, updates it when the use makes a new selection, but sacrifices any other use of background color for the text in the field (which I can live with) > > Thanks all, > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 14 12:21:34 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 16:21:34 +0000 Subject: Check connection and timeout In-Reply-To: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> Message-ID: Hi Ludovic. I use a simple method of sockets to determine if I have a connection to a host. I close the socket first: closeSocket 127.0.0.1:3306 Then I open the socket: Open socket to 127.0.0.1:3306 Put the result into tError If terror begins with “ERROR: “ then — your code here End if Then close the socket again. Close socket 127.0.0.1:3306 I find this to be the most reliable way to check a connection. I may not have internet, but the host may not be on the internet it may be local. Also, sockets will always work whereas ICMP can be blocked by a firewall. And simply trying to connect to a host will, as you have noticed bring timeouts into play. Bob S > On Jul 13, 2023, at 11:26 PM, Ludovic THEBAULT via use-livecode wrote: > > Hello, > > I use this code to check is there is an internet connection : > > tsNETSETTIMEOUTS 60,0,2000,60000,5,1000 > > put tsNetHeadSync("https://google.com/", tHeaders, tResult, tBytes) into tRecvHeaders > > if tResult begins with "tsneterr:" then > return false > else > return true > end if > > > But the setting for the timeout of tsNETSETTIMEOUTS is not active, I always have a 30 seconds timeout. > > Is there an other settings ? > > 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 paul at researchware.com Fri Jul 14 12:38:58 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 14 Jul 2023 12:38:58 -0400 Subject: Field highlited In-Reply-To: References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> Message-ID: <68ba3753-78e4-35fd-09b1-9f1a65dcafd0@researchware.com> Use the effective keyword as in: put the effective hiliteColor of field X into tHiliteColor It will figure out the color by inheritance. If you just put the hiliteColor of field X  (without it being set specifically for field X) your get empty On 7/14/2023 12:14 PM, Mark Smith wrote: > BTW, is there a way of determining the default highlight colour? When I select some text in a field it highlights to a light blue color, but I cant find where that color is set. > > Thanks > Mark > > >> On 13 Jul 2023, at 11:01 pm, Paul Dupuis via use-livecode wrote: >> >> On 7/12/2023 6:21 PM, Paul Dupuis via use-livecode wrote: >>> I have a LC9 field object - just a scrolling field (not a list field) with a lot of text. The user selects some text and then click a button near the field. I want the selection to remain highlighted, but when you click outside the field the highlight goes away. >>> >> Thanks to Richmond, Mark, and Jacque for your responses. >> >> So, I actually need to note the position of the selected (i.e. char x to y) rather than the selected text itself. >> >> Indeed, if you have text highlighted in a lock, scrolling text field (autohilite on) and click a button, the highlight does not go away. However, if you click on another field it does. I need a solution where the highlight appears to remain in the primary "Content" field no matter what else the user clicks on in terms of other UI actions. >> >> So, it still seems the "best" way to do this is using the on selectioChanged message and getting the selectedChunk and if not empty and word 2 is not > word 4 (insertion point), then save word 2 as the start and word 4 as the end and change the background color of the selected range to the highlight color, clearing another of background color >> >> This makes it appear that the selection remains, updates it when the use makes a new selection, but sacrifices any other use of background color for the text in the field (which I can live with) >> >> Thanks all, >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Jul 14 14:39:41 2023 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 14 Jul 2023 19:39:41 +0100 Subject: Convert date In-Reply-To: <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> Message-ID: <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> On 14/07/2023 16:34, Bob Sneidar via use-livecode wrote: > CASE "sql date" > put item 1 of theDate & "-" & \ > format("%02d",item 2 of theDate) & "-" & \ > format("%02d",item 3 of theDate) into theDate > break Why not just put format("%s-%02d-%02d", item 1 of theDate, item 2 of theDate), \ item 3 of theDate) into theDate Alex. btw - you forgot the if/switch check for "if in the USA" vs "if in the UK" :-) :-) From bobsneidar at iotecdigital.com Fri Jul 14 14:45:05 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 18:45:05 +0000 Subject: Convert date In-Reply-To: <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> Message-ID: <5D8C7A2C-43BD-41F2-A8EA-4CAA8D4D8892@iotecdigital.com> Because I’m not that good with regular expressions and the format function. :-) But you example has one too many close parens. Also, for SQL Date I do not thing UK or US matters. It’s YYYY-MM-DD everywhere, isn’t it? Also, I assumed that the localization of the LC engine would take into account the local date format for the built in date functions. Is that incorrect? Bob S > On Jul 14, 2023, at 11:39 AM, Alex Tweedly via use-livecode wrote: > > > On 14/07/2023 16:34, Bob Sneidar via use-livecode wrote: >> CASE "sql date" >> put item 1 of theDate & "-" & \ >> format("%02d",item 2 of theDate) & "-" & \ >> format("%02d",item 3 of theDate) into theDate >> break > > Why not just > > put format("%s-%02d-%02d", item 1 of theDate, item 2 of theDate), \ > item 3 of theDate) into theDate > > Alex. > > btw - you forgot the if/switch check for > "if in the USA" vs "if in the UK" :-) :-) > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 14 16:36:06 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 15:36:06 -0500 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> Message-ID: <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: > I am looking for a support email at GOOGLE Dev. > My problem is the search engine of Google Play Store. > Just like the subject says. ;-) Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: They don't make it easy. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Jul 14 16:39:11 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 15:39:11 -0500 Subject: Field highlited In-Reply-To: References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> Message-ID: <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote: > BTW, is there a way of determining the default highlight colour? The dictionary says: "By default, the global hiliteColor property is set to the system highlight color." I'd guess yours is blue. That's pretty standard on Mac. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Fri Jul 14 17:09:21 2023 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 14 Jul 2023 14:09:21 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice about how to proceed. 2 questions: If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? Thanks for the heads-up and recipe on how to create the folder. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: > > After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. > > In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. > > 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. > > 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. > > 3. The path to the container is in ~/Library/Containers// > > We don't have a specialFolderPath for that, so here's how I did it: > > put specialFolderPath("support") into tContainer > set the itemdel to slash > put "Containers/your.bundle.id/" into last item of tContainer > if there is no folder tContainer then > create folder tContainer > if the result <> empty then log "Create container:" && the result > end if > put tContainer & "yourFileName.ext" into tPath > > This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. > > Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Fri Jul 14 17:10:37 2023 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 14 Jul 2023 14:10:37 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice about how to proceed. 2 questions: If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? Thanks for the heads-up and recipe on how to create the folder. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: > > After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. > > In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. > > 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. > > 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. > > 3. The path to the container is in ~/Library/Containers// > > We don't have a specialFolderPath for that, so here's how I did it: > > put specialFolderPath("support") into tContainer > set the itemdel to slash > put "Containers/your.bundle.id/" into last item of tContainer > if there is no folder tContainer then > create folder tContainer > if the result <> empty then log "Create container:" && the result > end if > put tContainer & "yourFileName.ext" into tPath > > This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. > > Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Jul 14 17:17:39 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 21:17:39 +0000 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: <53A8E4B5-4B70-4E5A-ADD1-4A3EC2057944@iotecdigital.com> Create file and write permissions are very seldom different. Sent from my iPhone > On Jul 14, 2023, at 14:11, scott--- via use-livecode wrote: > > Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice about how to proceed. 2 questions: > > If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? > > How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? > > Thanks for the heads-up and recipe on how to create the folder. > > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > >> On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode wrote: >> >> After innumerable tests and failures I've figured out how to read/write to the Application Support folder on newer versions of MacOS X. Manually setting permissions in System Settings didn't work for my tester, and Ventura never did ask him to allow file access, so he was stuck. >> >> In case anyone else needs to do this, here is what worked for distribution outside the Mac App Store. >> >> 1. The app must be signed and notarized. I thank Matthias every day for his mrSignNotarizeHelper. The app does not need to be sandboxed. >> >> 2. Apps can automatically read from and write to their own container. My problem was not knowing where the container was. >> >> 3. The path to the container is in ~/Library/Containers// >> >> We don't have a specialFolderPath for that, so here's how I did it: >> >> put specialFolderPath("support") into tContainer >> set the itemdel to slash >> put "Containers/your.bundle.id/" into last item of tContainer >> if there is no folder tContainer then >> create folder tContainer >> if the result <> empty then log "Create container:" && the result >> end if >> put tContainer & "yourFileName.ext" into tPath >> >> This appears to work on any version of MacOS X so far, though I haven't yet heard from a tester on Mojave. >> >> Note: in the past I could just write a file into the Preferences or the App Support folder and it worked. Now I can't. You need the app container. >> >> -- >> 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 Jul 14 19:05:47 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 18:05:47 -0500 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> Message-ID: <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> On 7/14/23 4:10 PM, scott--- via use-livecode wrote: > If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? > > How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? That's a very good question and I'm afraid I don't know the answer. It's worrying though, because a couple of my older products need to write to Preferences. Here's what I do know. The issue only came up recently. My tester with the problem is on Ventura but I suspect it's a little older than that. In the past I always wrote files to Preferences without issues. For my current project there was already a prefs file there and it worked. But it also worked if I put it directly in App Support, and also worked if I made a container. In fact, it worked anywhere because it's my machine. Not so for others. For the tester, I originally tried to create and write the file in Preferences as usual. It didn't work and no file was created. Another tester, also on Ventura, had the Mac ask for permissions, he gave it, and it worked. Everything else I subsequently tried also worked for him. Next, I changed the app to write directly to Application Support. Same problem, no file was created, the Mac didn't ask for permission. So I changed it again to create a folder in Application Support with the name of the app and put the prefs file in there. Same failure. Finally, I created the container folder in ~/Library/Conainers and bingo, success. The tester who gave permissions and had no trouble at any point, including reading and writing to the container. Since I can't test on my own machine, I'm waiting for someone who has my older products to tell me there's a problem. Or I'll lean on my husband to try it. Husbands are good for things like that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Jul 14 19:16:40 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 14 Jul 2023 23:16:40 +0000 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> Message-ID: <4EAADF32-9551-42C8-907A-EB394841075C@iotecdigital.com> I don’t think there is any way past this. Ultimately the permissions to write to any path must be authorized by the current user agent. If they accept, well and good. If not, there cannot be any way around it. Sent from my iPhone > On Jul 14, 2023, at 16:07, J. Landman Gay via use-livecode wrote: > > On 7/14/23 4:10 PM, scott--- via use-livecode wrote: >> If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? >> How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? > > That's a very good question and I'm afraid I don't know the answer. It's worrying though, because a couple of my older products need to write to Preferences. Here's what I do know. > > The issue only came up recently. My tester with the problem is on Ventura but I suspect it's a little older than that. > > In the past I always wrote files to Preferences without issues. For my current project there was already a prefs file there and it worked. But it also worked if I put it directly in App Support, and also worked if I made a container. In fact, it worked anywhere because it's my machine. Not so for others. > > For the tester, I originally tried to create and write the file in Preferences as usual. It didn't work and no file was created. Another tester, also on Ventura, had the Mac ask for permissions, he gave it, and it worked. Everything else I subsequently tried also worked for him. > > Next, I changed the app to write directly to Application Support. Same problem, no file was created, the Mac didn't ask for permission. So I changed it again to create a folder in Application Support with the name of the app and put the prefs file in there. Same failure. Finally, I created the container folder in ~/Library/Conainers and bingo, success. > > The tester who gave permissions and had no trouble at any point, including reading and writing to the container. > > Since I can't test on my own machine, I'm waiting for someone who has my older products to tell me there's a problem. Or I'll lean on my husband to try it. Husbands are good for things like that. > > > -- > 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 Jul 14 19:27:17 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 14 Jul 2023 18:27:17 -0500 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <4EAADF32-9551-42C8-907A-EB394841075C@iotecdigital.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> <4EAADF32-9551-42C8-907A-EB394841075C@iotecdigital.com> Message-ID: <18956bae808.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> What I found out is that the app container has permission automatically. That's the only place though. All other file access has to be initiated by the user. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 14, 2023 6:18:45 PM Bob Sneidar via use-livecode wrote: > I dont think there is any way past this. Ultimately the permissions to > write to any path must be authorized by the current user agent. If they > accept, well and good. If not, there cannot be any way around it. > > Sent from my iPhone > >> On Jul 14, 2023, at 16:07, J. Landman Gay via use-livecode >> wrote: >> >> On 7/14/23 4:10 PM, scott--- via use-livecode wrote: >>> If the file (say a preference.txt file) already exists in the Preferences >>> or App Support folder, are we able to continue writing to it? In other >>> words, is this an issue with the creation of the file or also of writing in >>> general? >>> How are you handling this? Are you attempting to write to the Preferences >>> or App Support folder first and are you moving existing files to the >>> Container folder? >> >> That's a very good question and I'm afraid I don't know the answer. It's >> worrying though, because a couple of my older products need to write to >> Preferences. Here's what I do know. >> >> The issue only came up recently. My tester with the problem is on Ventura >> but I suspect it's a little older than that. >> >> In the past I always wrote files to Preferences without issues. For my >> current project there was already a prefs file there and it worked. But it >> also worked if I put it directly in App Support, and also worked if I made >> a container. In fact, it worked anywhere because it's my machine. Not so >> for others. >> >> For the tester, I originally tried to create and write the file in >> Preferences as usual. It didn't work and no file was created. Another >> tester, also on Ventura, had the Mac ask for permissions, he gave it, and >> it worked. Everything else I subsequently tried also worked for him. >> >> Next, I changed the app to write directly to Application Support. Same >> problem, no file was created, the Mac didn't ask for permission. So I >> changed it again to create a folder in Application Support with the name of >> the app and put the prefs file in there. Same failure. Finally, I created >> the container folder in ~/Library/Conainers and bingo, success. >> >> The tester who gave permissions and had no trouble at any point, including >> reading and writing to the container. >> >> Since I can't test on my own machine, I'm waiting for someone who has my >> older products to tell me there's a problem. Or I'll lean on my husband to >> try it. Husbands are good for things like that. >> >> >> -- >> 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 scott at elementarysoftware.com Sat Jul 15 01:24:08 2023 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 14 Jul 2023 22:24:08 -0700 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> Message-ID: Thanks again, Jacque. My solution for migrating preference files from the Preferences folder to the Container turned out to be quite simple but for some reason I spent a bunch of time pondering other more complicated methods. In the end I changed an existing function which returns a path to the preferences file and had it first look to see if a Container exists. If it doesn’t then it creates the Container but still returns the path to the original Preferences folder. (This works in my use case because the app's first call to this function will always be to “read” the preference file) Now that the Container exists, all future calls to the function will return the Container path… and the original data, having been already loaded into the app, is ready to write to (and read from) the new Container location. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 14, 2023, at 4:05 PM, J. Landman Gay via use-livecode wrote: > > On 7/14/23 4:10 PM, scott--- via use-livecode wrote: >> If the file (say a preference.txt file) already exists in the Preferences or App Support folder, are we able to continue writing to it? In other words, is this an issue with the creation of the file or also of writing in general? >> How are you handling this? Are you attempting to write to the Preferences or App Support folder first… and are you moving existing files to the “Container” folder? > > That's a very good question and I'm afraid I don't know the answer. It's worrying though, because a couple of my older products need to write to Preferences. Here's what I do know. > > The issue only came up recently. My tester with the problem is on Ventura but I suspect it's a little older than that. > > In the past I always wrote files to Preferences without issues. For my current project there was already a prefs file there and it worked. But it also worked if I put it directly in App Support, and also worked if I made a container. In fact, it worked anywhere because it's my machine. Not so for others. > > For the tester, I originally tried to create and write the file in Preferences as usual. It didn't work and no file was created. Another tester, also on Ventura, had the Mac ask for permissions, he gave it, and it worked. Everything else I subsequently tried also worked for him. > > Next, I changed the app to write directly to Application Support. Same problem, no file was created, the Mac didn't ask for permission. So I changed it again to create a folder in Application Support with the name of the app and put the prefs file in there. Same failure. Finally, I created the container folder in ~/Library/Conainers and bingo, success. > > The tester who gave permissions and had no trouble at any point, including reading and writing to the container. > > Since I can't test on my own machine, I'm waiting for someone who has my older products to tell me there's a problem. Or I'll lean on my husband to try it. Husbands are good for things like that. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Sat Jul 15 03:06:23 2023 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 15 Jul 2023 10:06:23 +0300 Subject: Field highlited In-Reply-To: <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> Message-ID: It is really very easy to do this sort of thing: set the hilitecolor of fld "f1" to red Best, Richmond. On 14.07.23 23:39, J. Landman Gay via use-livecode wrote: > On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote: >> BTW, is there a way of determining the default highlight colour? > > The dictionary says: "By default, the global hiliteColor property is > set to the system highlight color." > > I'd guess yours is blue. That's pretty standard on Mac. > From klaus at major-k.de Sat Jul 15 03:52:28 2023 From: klaus at major-k.de (Klaus major-k) Date: Sat, 15 Jul 2023 09:52:28 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: <4D9B505A-B90B-4DEA-BD00-1E0D05E94D0B@major-k.de> Hi Jacques, > Am 14.07.2023 um 22:36 schrieb J. Landman Gay via use-livecode : > > On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: >> I am looking for a support email at GOOGLE Dev. >> My problem is the search engine of Google Play Store. >> Just like the subject says. ;-) > > Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: > ah, thank you, will try to get some help there. > They don't make it easy. So sad and so true... > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From alex at tweedly.net Sat Jul 15 08:12:13 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 15 Jul 2023 13:12:13 +0100 Subject: Convert date In-Reply-To: <0D1E1DEA-697A-4589-B017-8586BABAFF32@iotecdigital.com> References: <2F536F80-342E-47E9-9037-851C794758AC@optusnet.com.au> <0D1E1DEA-697A-4589-B017-8586BABAFF32@iotecdigital.com> Message-ID: <906c05ce-3b6e-9395-6ece-74e46e783817@tweedly.net> On 14/07/2023 16:13, Bob Sneidar via use-livecode wrote: > I beg to differ. Again, Livecode is a way to build both the tools and the product made by those tools. Livecode is NOT a collection of every conceivable tool for everything everyone wants to do. No language is. > > I think the LC dev team is far more useful to everyone if they focus on completing the projects they already have, and squashing the long standing and pervasive bugs that exist. > > I think if there is a fairly easy way to create the tool you need with the codeset you now have, then you would need a compelling reason, like dramatic performance increases to justify building it into the engine. I guess the primary argument is having it available "out of the box" for new users, or for those who are still unfamiliar / uncertain about LC scripting. What I'd *really* like to see the LC dev team work on is bringing LCS libraries up to the same level of support as LCB libraries. It's taken a few years to finally get LCS widgets - and that was clearly HARD work. I would have thought t would be much easier - and just about as useful - to get CS libraries. (and even to add some better support, such as "require library" that will properly deal with missing / duplicate attempts to load a library). Alex. From david.bovill at gmail.com Sat Jul 15 09:07:13 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 14:07:13 +0100 Subject: Workaround for regular Crash setting (audio) file of player? In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: I'm working a lot with media again - and the last two days I get a crash every 15 minutes when I set the filename of a player to various mp4 audio tracks. I'd love a workaround as its slowing things up quite a bit. I've seen this behavior quite a bit over the years with media and the player. it happens erratically - so works well then after 5 or 6 successful attempts setting the audio file in the script crashes livecode. Recipe: 1. *set* the filename of me to audioFile -- the offending line 2. audiioFile is one of several different m4a files (created using mergMicrophone) 3. The filename is a long path 4. No pattern regarding a particular audio file, or sequence I can detect If anyone has a thought of a way to set an audio file that will work without crashing... much appreciated. From david.bovill at gmail.com Sat Jul 15 09:09:54 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 14:09:54 +0100 Subject: Tree Widget - order of titles In-Reply-To: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: Is there a way to display an indexed array in the tree widget without displaying the numeric inde items (ie first column)? I'm looking to display an ordered index of titles and would prefer not to use both a field and a tree widget to accomplish this? From alex at tweedly.net Sat Jul 15 09:41:07 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 15 Jul 2023 14:41:07 +0100 Subject: Convert date In-Reply-To: <5D8C7A2C-43BD-41F2-A8EA-4CAA8D4D8892@iotecdigital.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> <5d6e6c55-1ddd-6076-6934-72cc82e93434@tweedly.net> <5D8C7A2C-43BD-41F2-A8EA-4CAA8D4D8892@iotecdigital.com> Message-ID: <7e723802-f4e7-78c8-42fa-49cdf31a031b@tweedly.net> On 14/07/2023 19:45, Bob Sneidar via use-livecode wrote: > Because Im not that good with regular expressions and the format function. :-) But you example has one too many close parens. Oops - I got caught out copying / pasting again :-( Yes, of course it should have been > put format("%s-%02d-%02d", item 1 of theDate, item 2 of theDate, \ > item 3 of theDate) into theDate > Also, for SQL Date I do not thing UK or US matters. Its YYYY-MM-DD everywhere, isnt it? Yes, sql (or ISO) is same everywhere. > > Also, I assumed that the localization of the LC engine would take into account the local date format for the built in date functions. Is that incorrect? That is correct, but there is kind of a problem (or at least limitation) with the function. If I have a user here (UK) type a date into a field, and then I try to format it to SQLdate (or anything else) using this function, it will fail. My user will type something  (15/07/2023), and that gets an "invalid date" error. I'm not sure there is anything you can do that is completely safe - you can't tell whether a /-separated date string is US or UK. But I'd argue that dates ready to pass in to the function are either internally-generated (so they'll be sql, or dateitems, or otherwise unambiguous), or they are user-generated (and hence local format).  And therefore I would suggest changing the code to > put item 2 of theDate & "/" & \ > item 3 of theDate & "/" & \ > item 1 of theDate into theDate > convert theDate to dateitems > ELSE > convert theDate from system date to dateitems > END IF > > -- replace "." with "/" in theDate > -- convert theDate to dateitems Alex. From paul at researchware.com Sat Jul 15 09:41:25 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 09:41:25 -0400 Subject: Workaround for regular Crash setting (audio) file of player? In-Reply-To: References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> Message-ID: <28ace82d-2b9a-5ac3-31b4-29129836e4a9@researchware.com> Are you on a single monitor or do you have more than 1 display? It is a known bug that the player object freezes or crashes when petting properties on any monitor but the primary display: https://quality.livecode.com/show_bug.cgi?id=20707 On 7/15/2023 9:07 AM, David Bovill via use-livecode wrote: > I'm working a lot with media again - and the last two days I get a crash > every 15 minutes when I set the filename of a player to various mp4 audio > tracks. I'd love a workaround as its slowing things up quite a bit. > > I've seen this behavior quite a bit over the years with media and the > player. it happens erratically - so works well then after 5 or 6 > successful attempts setting the audio file in the script crashes livecode. > > Recipe: > > 1. > > *set* the filename of me to audioFile -- the offending line > > 2. > > audiioFile is one of several different m4a files (created using > mergMicrophone) > 3. > > The filename is a long path > 4. > > No pattern regarding a particular audio file, or sequence I can detect > > If anyone has a thought of a way to set an audio file that will work > without crashing... much appreciated. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 10:27:32 2023 From: brian at milby7.com (Brian Milby) Date: Sat, 15 Jul 2023 10:27:32 -0400 Subject: Tree Widget - order of titles In-Reply-To: References: Message-ID: <3D217129-A6BB-4AD2-A647-A2A2C02B6D4A@milby7.com> While I don’t know if a way to hide the key, there is a way to get a manual sort by combining the key with a sortable leading value. See the charsToTrimFromKey property. Brian Milby brian at milby7.com > On Jul 15, 2023, at 9:11 AM, David Bovill via use-livecode wrote: > > Is there a way to display an indexed array in the tree widget without > displaying the numeric inde items (ie first column)? I'm looking to display > an ordered index of titles and would prefer not to use both a field and a > tree widget to accomplish this? > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 11:06:09 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 11:06:09 -0400 Subject: What is your best practice for setting a script in a script? Message-ID: So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? Example: BUTTON "Make" on mouseUp   local tScript   create button "Sample"   put "on mouseUp"&cr into tScript   put "  ask 'Please enter a number between 1 and 100'" &cr after tScript   put "  if it is not a number then exit mouseUp" &cr after tScript   put "  if it < 1 OR it > 100 then exit mouseUp" &cr after tScript   put "  put it into field 'Number'" &cr after tScript   put "end mouseUp" after tScript   replace "'" with quote in tScript   set the script of button "Sample" to tScript end mouseUp This create a button "Sample" with the script on mouseUp   ask "Please enter a number between 1 and 100"   if it is not a number then exit mouseUp   if it < 1 OR it > 100 then exit mouseUp   put it into field "Number" end mouseUp However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. I wish there was a command like "put begin block" where you could follow it any  number of lines and then "end block into tVar". i.e. put begin block on mouseUp   ask "Please enter a number between 1 and 100"   if it is not a number then exit mouseUp   if it < 1 OR it > 100 then exit mouseUp   put it into field "Number" end mouseUp end block into tScript Is there a better way to have a script written in a script? From gcanyon at gmail.com Sat Jul 15 13:05:27 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 15 Jul 2023 10:05:27 -0700 Subject: Shell + Python? Message-ID: In terminal, this works: python -c "print('hello world')" In LiveCode, this: *put* shell("python -c " & quote & "print('hello world')" & quote) puts this: /bin/sh: line 1: python: command not found while this: *put* shell("pwd") puts this: /Applications/LiveCode 9.6.9.app So any idea why terminal can find python but LC's shell function can't? From alex at tweedly.net Sat Jul 15 13:51:55 2023 From: alex at tweedly.net (Tweedly) Date: Sat, 15 Jul 2023 18:51:55 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: <683ACBBE-7C02-4D8B-A7FB-C4F68D736820@tweedly.net> Maybe keep the script in a custom property ? Or in a “prefs” file ? Or ….. any number of ways of avoiding the exact question you asked ;-) And yes, there’s been a request for “block” text constants for about as long as I’ve used RR/LC - say 20 years. Alex Sent from my iPad > On 15 Jul 2023, at 16:06, Paul Dupuis via use-livecode wrote: > > So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp > local tScript > create button "Sample" > put "on mouseUp"&cr into tScript > put " ask 'Please enter a number between 1 and 100'" &cr after tScript > put " if it is not a number then exit mouseUp" &cr after tScript > put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript > put " put it into field 'Number'" &cr after tScript > put "end mouseUp" after tScript > replace "'" with quote in tScript > set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could follow it any number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ludovic.thebault at laposte.net Sat Jul 15 13:59:12 2023 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Sat, 15 Jul 2023 19:59:12 +0200 Subject: Check connection and timeout In-Reply-To: <002701d9b665$d5ca5720$815f0560$@net> References: <4CE9052F-DC98-40DD-8986-B22E2517469B@laposte.net> <24C356F4-2C6E-49E6-BDA9-6909ECA5AB0E@laposte.net> <002701d9b665$d5ca5720$815f0560$@net> Message-ID: > Le 14 juil. 2023 à 17:14, Ralph DiMola via use-livecode a écrit : > > Ludovic, > > Make sure that tsNet is active: > Hello Ralph Thanks. But yes tsnet was initialized. I’ve measured the timeouts in miliseconds and it was always 30003 milliseconds. But it’s only when there is a connection but there isn't enough network capacity for data transfer (so it’s difficult to test ! This can happen in the mountains, far from mobile antennas, or on the edge of wifi coverage. Ludovic From dick.kriesel at mail.com Sat Jul 15 15:46:18 2023 From: dick.kriesel at mail.com (Dick Kriesel) Date: Sat, 15 Jul 2023 12:46:18 -0700 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: > On Jul 15, 2023, at 8:06 AM, Paul Dupuis via use-livecode wrote: > > So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? Hi, Paul. The best way to set the script may be not to; that is, instead set the new object’s behavior to a button that contains the readable script. — Dick From david.bovill at gmail.com Sat Jul 15 15:56:22 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 20:56:22 +0100 Subject: Tree Widget - order of titles In-Reply-To: <3D217129-A6BB-4AD2-A647-A2A2C02B6D4A@milby7.com> References: <3D217129-A6BB-4AD2-A647-A2A2C02B6D4A@milby7.com> Message-ID: Thanks Brian - that works. I can remove the indent created by the now empty first column by using: set the separatorRatio of widget to 0 However there is still a separator line and if I: set the showSeparator to false Then the indent returns. But it mostly looks OK. On Sat, 15 Jul 2023 at 15:28, Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > While I don’t know if a way to hide the key, there is a way to get a > manual sort by combining the key with a sortable leading value. See the > charsToTrimFromKey property. > > Brian Milby > brian at milby7.com > > > On Jul 15, 2023, at 9:11 AM, David Bovill via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Is there a way to display an indexed array in the tree widget without > > displaying the numeric inde items (ie first column)? I'm looking to > display > > an ordered index of titles and would prefer not to use both a field and a > > tree widget to accomplish this? > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From david.bovill at gmail.com Sat Jul 15 16:00:54 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 21:00:54 +0100 Subject: Workaround for regular Crash setting (audio) file of player? In-Reply-To: <28ace82d-2b9a-5ac3-31b4-29129836e4a9@researchware.com> References: <94195622-8C0B-4669-ACE9-807EEC86B64A@optusnet.com.au> <28ace82d-2b9a-5ac3-31b4-29129836e4a9@researchware.com> Message-ID: Interesting - I do have two monitors - though the player is on the main default monitor - I will try with the monitor disconnected. On Sat, 15 Jul 2023 at 14:42, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Are you on a single monitor or do you have more than 1 display? > > It is a known bug that the player object freezes or crashes when petting > properties on any monitor but the primary display: > https://quality.livecode.com/show_bug.cgi?id=20707 > > > On 7/15/2023 9:07 AM, David Bovill via use-livecode wrote: > > I'm working a lot with media again - and the last two days I get a crash > > every 15 minutes when I set the filename of a player to various mp4 audio > > tracks. I'd love a workaround as its slowing things up quite a bit. > > > > I've seen this behavior quite a bit over the years with media and the > > player. it happens erratically - so works well then after 5 or 6 > > successful attempts setting the audio file in the script crashes > livecode. > > > > Recipe: > > > > 1. > > > > *set* the filename of me to audioFile -- the offending line > > > > 2. > > > > audiioFile is one of several different m4a files (created using > > mergMicrophone) > > 3. > > > > The filename is a long path > > 4. > > > > No pattern regarding a particular audio file, or sequence I can > detect > > > > If anyone has a thought of a way to set an audio file that will work > > without crashing... much appreciated. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 16:05:21 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 15 Jul 2023 15:05:21 -0500 Subject: What is your best practice for setting a script in a script? In-Reply-To: <683ACBBE-7C02-4D8B-A7FB-C4F68D736820@tweedly.net> References: <683ACBBE-7C02-4D8B-A7FB-C4F68D736820@tweedly.net> Message-ID: <7910ebed-de86-4765-e8e0-84507fe1bc42@hyperactivesw.com> On 7/15/23 12:51 PM, Tweedly via use-livecode wrote: > Maybe keep the script in a custom property ? That's what I usually do. If the variables or references may change, I use placeholders and the merge command to replace things before setting the script on the control. If it's a very short script I sometimes use this method: set the script of tObj to "on mouseUp;doSomething;end mouseUp" -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From david.bovill at gmail.com Sat Jul 15 16:06:12 2023 From: david.bovill at gmail.com (David Bovill) Date: Sat, 15 Jul 2023 21:06:12 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: This is the same type of problem as deleting an object from a user interaction with the object - but more common use case and I don;t know a good way of doing that either. I use: send "delete_Object" to somewhere in 2 ticks But it is messy and tends to be a bit unreliable in my experience. I don't know a way around it other than avoiding any events being trapped within the object itself - but that is not so easy. On Sat, 15 Jul 2023 at 20:47, Dick Kriesel via use-livecode < use-livecode at lists.runrev.com> wrote: > > > On Jul 15, 2023, at 8:06 AM, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > So in the instances where you have a script that creates an object and > then sets the script of that object (example below), what is you best > practice for having the script in a script and still be readable? > > Hi, Paul. The best way to set the script may be not to; that is, instead > set the new object’s behavior to a button that contains the readable script. > — Dick > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 16:16:37 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 15 Jul 2023 21:16:37 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: <288B8697-8BE6-433D-A8BF-92B8697C2711@gmail.com> Another possibility, which is sort of a combination of Alex and Dicks suggestions is to create a “scripts” card and store all of the scripts as readable custom properties. When I have done this in the past I typically just number the scripts (cScript1 … cScriptn) and put some metadata in the first line of each. Usually a comment of the form "—cScript1 — button Sample of cd X". If you do that, when you list the custom properties of the scripts in the property inspector you see the metadata along with each cp field name (so it would look like, cScript1 — cScript1 — button Sample of cd X) and you can see a whole list of them. In this situation, the code you provided would be replaced with: create button “Sample” set the script of btn “Sample” to the cScript1 of cd “Scripts" Mark > On 15 Jul 2023, at 4:06 pm, Paul Dupuis via use-livecode wrote: > > So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp > local tScript > create button "Sample" > put "on mouseUp"&cr into tScript > put " ask 'Please enter a number between 1 and 100'" &cr after tScript > put " if it is not a number then exit mouseUp" &cr after tScript > put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript > put " put it into field 'Number'" &cr after tScript > put "end mouseUp" after tScript > replace "'" with quote in tScript > set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could follow it any number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 16:22:01 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 15 Jul 2023 15:22:01 -0500 Subject: Solved: Writing to Mac Application Support folder In-Reply-To: References: <2afdbfdd-2c31-d334-14ef-68b561e3a287@hyperactivesw.com> <583ff6d4-3def-d10f-66a8-e280bac8be05@hyperactivesw.com> Message-ID: <003fd44c-f5c0-cdbf-8865-f4722e83bdcd@hyperactivesw.com> Good approach. I assume if there is no file in Preferences, you write defaults directly to the container. I got curious and looked at where LC stores its files. They do not have a container. It's mostly in Application Support, in a folder "RunRev" (there's also an older one there named "Runtime Revolution".) Some of the files were updated recently so it apparently still works. Now I wonder if there's another way to do this stuff. I'd like some definitive info about this. @Panos? @Mark? On 7/15/23 12:24 AM, scott--- via use-livecode wrote: > Thanks again, Jacque. > > My solution for migrating preference files from the Preferences folder to the Container turned out to be quite simple but for some reason I spent a bunch of time pondering other more complicated methods. In the end I changed an existing function which returns a path to the preferences file and had it first look to see if a Container exists. If it doesn’t then it creates the Container but still returns the path to the original Preferences folder. (This works in my use case because the app's first call to this function will always be to “read” the preference file) Now that the Container exists, all future calls to the function will return the Container path… and the original data, having been already loaded into the app, is ready to write to (and read from) the new Container location. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sat Jul 15 16:29:27 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 16:29:27 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> All good suggestions so far, but not what I was after, which was whether there is any better way to have the script you are setting the newly created object to, readable, in the script that setup of the new object. If a behavior script is used or properties or objects then I can not read (and potentially revise) the script right in the script that is making the object. I have to open something else if I want to revise the script. Of course I can have a comment that says "look here for the script" and it is generally obvious from "set the script of button "Sample" to . On 7/15/2023 11:06 AM, Paul Dupuis via use-livecode wrote: > So in the instances where you have a script that creates an object and > then sets the script of that object (example below), what is you best > practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp >   local tScript >   create button "Sample" >   put "on mouseUp"&cr into tScript >   put "  ask 'Please enter a number between 1 and 100'" &cr after tScript >   put "  if it is not a number then exit mouseUp" &cr after tScript >   put "  if it < 1 OR it > 100 then exit mouseUp" &cr after tScript >   put "  put it into field 'Number'" &cr after tScript >   put "end mouseUp" after tScript >   replace "'" with quote in tScript >   set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp >   ask "Please enter a number between 1 and 100" >   if it is not a number then exit mouseUp >   if it < 1 OR it > 100 then exit mouseUp >   put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with > the "pu" statements and quotes (double and single) and cr and so one > cumbersome to read. Yes there are behavior scripts, but this is about > the best practice of placing a script in a script (to set the script > of an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could > follow it any  number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp >   ask "Please enter a number between 1 and 100" >   if it is not a number then exit mouseUp >   if it < 1 OR it > 100 then exit mouseUp >   put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 15 16:47:29 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 15 Jul 2023 21:47:29 +0100 Subject: Field highlited In-Reply-To: <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> References: <976c2622-b614-3cf2-1546-2bd51a0b100a@researchware.com> <205e196c-c008-075e-0e8c-d7c5774c5c0a@researchware.com> <654ff77e-96ff-3e45-91cc-1d1fef2f5a0b@hyperactivesw.com> Message-ID: <5384A3D3-A3D5-43D1-BD80-3C6DAD4C371E@gmail.com> The effective attribute is what I was looking for. As Paul mentioned, if you just say “set the background of… to hiliteColor” you don’t get anything. But if you set it to the “effective hiliteColor” you get the system default (btw, I tried “system hiliteColor” but LC treats it as a syntax error. Pity, since “system” in this case makes more sense to me than effective. But that’s another story…) I was intrigued by Pauls example of trying to set some highlighting that “sticks” but that still gives the user the illusion that nothing unusual is going on ie. If you select another portion of text, the first selection unhighlights, of if you click in the field the highlighting goes away, but you can click in other fields and it doesn’t. I saw it as a challenge to try and get that working. He probably has more elegant code than I do but the following comes very close, I hope, to the solution he was describing. The biggest challenge I found is that when you have a selection in the field, and you go to change it to some other text the normal behaviour is to have the first selection immediately disappear. That doesn’t happen if you are depending on a selectionChanged message since you don’t actually get that until the end of the 2nd selection and you need the old one to disappear when you start the 2nd selection. I solved that by having an openField handler that just checks to see if there is a selection, and if there is, removes it. openField happens immediately and before selectionChanged is sent. I can’t remember at the moment why I left the removal in both handlers, but it seems it was necessary for some combination of clicks or selections. I’d have to go back and test that again. on openField -- a selection is potentially about to begin -- see if there is already a selection in the field and unhighlight it put the cpChunkExpression of field "fld1" into chunkExp if chunkExp is not empty then set the backgroundcolor of chunkExp to "" -- gets rid of our fake highlighting set the cpChunkExpression of field "fld1" to empty end if end openField on selectionChanged -- get the current highlight color put the effective hiliteColor of field "fld1" into tHiliteColor -- then initialize our new chunk expression put the selectedChunk of fld "fld1" into newChunkExp -- determine if there is an old chunk we need to unhighlight put the cpChunkExpression of field "fld1" into chunkExp if chunkExp is not empty then set the backgroundcolor of chunkExp to "" -- gets rid of our fake highlighting set the cpChunkExpression of field "fld1" to empty end if -- now, with regards to the new chunk expression there are 3 possibilities -- 1. its empty, in which case we do nothing -- 2. its just an insertion point, in which case we do nothing (ie. word 2 of newChunkExp > word 4) -- 3. But, if word 2 and word 4 of newChunkExp define a range of text, highlight it if word 2 of newChunkExp < word 4 of newChunkExp then set the backgroundcolor of newChunkExp to tHiliteColor -- and save it for future reference set the cpChunkExpression of field "fld1" to newChunkExp end if -- if we want to unhighlight everything we can just click anywhere in the field end selectionChanged > On 14 Jul 2023, at 9:39 pm, J. Landman Gay via use-livecode wrote: > > On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote: >> BTW, is there a way of determining the default highlight colour? > > The dictionary says: "By default, the global hiliteColor property is set to the system highlight color." > > I'd guess yours is blue. That's pretty standard on Mac. > > -- > 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 marksmithhfx at gmail.com Sat Jul 15 16:53:33 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 15 Jul 2023 21:53:33 +0100 Subject: Convert date In-Reply-To: <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> References: <20230713231953.Horde.9eJ72o36AlQiAHtvPNeK2Ws@hub.4wsys.com> <4908200F-9463-403F-8B33-FD1D5BF61DA4@iotecdigital.com> Message-ID: <08D97D2F-42E3-4DC1-9BBC-4FD22137FE8B@gmail.com> Thanks Bob. These examples are all very handy to have. Added to the wiki!! Just kidding, I do think we need a wiki somewhere for these kinds of code snippets but I’m not offering to build it (this year). We’ll have to see how bored I am next year, or, hopefully, someone else will beat me to it. 😊🙏 > On 14 Jul 2023, at 4:34 pm, Bob Sneidar via use-livecode wrote: > > Hmmm… I read the enhancement request. I’m still in the dark though on how to get to "2023-07-14 08:30:00" from “7/14/23” using format strings. Here’s my solution for those who do not want to download the masterLibrary. Given these, what else do you need? > > FUNCTION formatDate theDate, theFormat > /* > Accepts any valid date for the first parameter. If not a valid date, it simply returns > what was passed. Second parameter can be any of the following: > sql date: date in the yyyy-mm-dd format > short date, abbreviated date, internet date, long date: LC versions of the same > julian date: Julian number based on (I believe) Jacques formula > */ > > put theDate into tSavedDate > put the itemdelimiter into theOldDelim > set the itemdelimiter to "-" > > IF the length of item 1 of theDate = 4 AND \ > the number of items of theDate = 3 AND \ > item 1 of theDate is a number AND \ > item 2 of theDate is a number AND \ > item 3 of theDate is a number THEN > put item 2 of theDate & "/" & \ > item 3 of theDate & "/" & \ > item 1 of theDate into theDate > END IF > > -- replace "." with "/" in theDate > convert theDate to dateitems > set the itemdelimiter to theOldDelim > > if the number of items of theDate <> 7 then > answer "'" & theDate & "' is not a valid date format!" > return tSavedDate > end if > > SWITCH theFormat > CASE "sql date" > put item 1 of theDate & "-" & \ > format("%02d",item 2 of theDate) & "-" & \ > format("%02d",item 3 of theDate) into theDate > break > CASE "short date" > convert theDate from dateitems to short date > break > CASE "abbreviated date" > convert theDate from dateitems to abbreviated date > break > CASE "abbr date" > convert theDate from dateitems to abbreviated date > break > CASE "internet date" > convert theDate from dateitems to internet date > break > CASE "long date" > convert theDate from dateitems to long date > break > CASE "julian date" > put the date into theDate > convert theDate to dateItems > IF ((item 2 of theDate = 1) OR (item 2 of theDate = 2)) THEN > put 1 into theDay > ELSE > put 0 into theDay > END IF > put item 1 of theDate + 4800 - theDay into theYear > put item 2 of theDate + (12 * theDay) - 3 into theMonth > put item 3 of theDate + \ > ((153 * theMonth + 2) div 5) + \ > (365 * theYear) + \ > (theYear div 4) - \ > (theYear div 100) + \ > (theYear div 400) - \ > 32045 into theDate > break > END SWITCH > > return theDate > END formatDate > > FUNCTION formatTime theTime, theFormat > /* > accepts any valid time and returns the form of the time specified in the second parameter. > The valid formats are: > sql time: hh:mm:ss (Note: combining sql date from the formatDate() function with the > sql time will produce a valid SQL date time type). > short time: LC short time format > abbreviated time: LC abbr time format (same as short time) > long time: LC long time format > seconds: the number of seconds since the prior midnight > military: the military time 00:00 - 23:59 > */ > > IF theTime is empty THEN return empty > > set the numberformat to "00" > SWITCH theFormat > CASE "sql time" > convert theTime to dateitems > put (item 4 of theTime +0) & ":" & \ > (item 5 of theTime +0) & ":" & \ > (item 6 of theTime +0) into theTime > break > CASE "short time" > convert theTime to short time > break > CASE "abbreviated time" > convert theTime to abbreviated time > break > CASE "long time" > convert theTime to long time > break > CASE "seconds" > convert theTime to seconds > break > CASE "military" > set the itemdelimiter to ":" > > IF theTime contains "PM" THEN > add 12 to item 1 of theTime > END IF > > put word 1 of item 2 of theTime into item 2 of theTime > break > END SWITCH > > return theTime > END formatTime > > And as an added bonus, those who use Spiceworks know they format time for tickets as 0h0m0s. > > FUNCTION spiceTime pStartTime, pEndTime > convert pStartTime to dateItems > convert pEndTime to dateItems > subtract item 4 of pStartTime from item 4 of pEndTime > subtract item 5 of pStartTime from item 5 of pEndTime > convert pEndTime from dateItems to short time > put formatTime(pEndTime, "military") into pEndTime > set the itemdelimiter to ":" > IF item 1 of pEndTime > 11 THEN subtract 12 from item 1 of pEndTime > put item 1 of pEndTime & "h" & item 2 of pEndTime & "m" into tTotalTime > return tTotalTime > END spiceTime > > Bob S > > >> On Jul 13, 2023, at 4:19 PM, ambassador--- via use-livecode wrote: >> >> Neville Smythe wrote: >>> I seem to have hallucinated that the built-in convert handler recognised >>> the ISO date and dateTime formats (YYYY-MM-DD, YYYY-MM-DD >>> hh:mm:ss+-http://hh.ss, etc) but I must have written my own conversion >>> routines in a former life. >>> But one would have to ask… Why doesn’t it? >>> After all, the original ISO 8601 standard was adopted 1988! >> >> https://quality.livecode.com/show_bug.cgi?id=4636 >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 18:57:25 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 15 Jul 2023 22:57:25 +0000 Subject: Shell + Python? In-Reply-To: References: Message-ID: <71CEE136-F97A-40C3-A813-958EAEBAD957@iotecdigital.com> I ran into a similar thing. Older versions of LC worked with anything you could type into the terminal but now basic things return an error. Sent from my iPhone > On Jul 15, 2023, at 10:07, Geoff Canyon via use-livecode wrote: > > In terminal, this works: > > python -c "print('hello world')" > > > In LiveCode, this: > > *put* shell("python -c " & quote & "print('hello world')" & quote) > > puts this: > > /bin/sh: line 1: python: command not found > > while this: > > *put* shell("pwd") > > puts this: > > /Applications/LiveCode 9.6.9.app > > So any idea why terminal can find python but LC's shell function can't? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sat Jul 15 19:14:48 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 15 Jul 2023 16:14:48 -0700 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: Custom properties would definitely be my go-to, similar to what others have said. That said, I think the merge command is your friend here. This script in a button does what you want: on mouseUp set the script of button "Sample" to \ merge("on mouseUp[[cr]]" &\ "ask [[quote]]Please enter a number between 1 and 100[[quote]][[cr]]" &\ "if it is not a number then exit mouseUp[[cr]]" &\ "if it < 1 OR it > 100 then exit mouseUp[[cr]]" &\ "put it into field [[quote]]Number[[quote]][[cr]]" &\ "end mouseUp") end mouseUp The use of \ to continue, and [[quote]] and [[cr]] results in a pretty readable script to my eye at least. gc On Sat, Jul 15, 2023 at 8:07 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > So in the instances where you have a script that creates an object and > then sets the script of that object (example below), what is you best > practice for having the script in a script and still be readable? > > Example: > BUTTON "Make" > on mouseUp > local tScript > create button "Sample" > put "on mouseUp"&cr into tScript > put " ask 'Please enter a number between 1 and 100'" &cr after tScript > put " if it is not a number then exit mouseUp" &cr after tScript > put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript > put " put it into field 'Number'" &cr after tScript > put "end mouseUp" after tScript > replace "'" with quote in tScript > set the script of button "Sample" to tScript > end mouseUp > > This create a button "Sample" with the script > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > > However, I reading the script for button Sample in button Make with the > "pu" statements and quotes (double and single) and cr and so one > cumbersome to read. Yes there are behavior scripts, but this is about > the best practice of placing a script in a script (to set the script of > an object) and having it as clear as possible. > > I wish there was a command like "put begin block" where you could follow > it any number of lines and then "end block into tVar". i.e. > > put begin block > on mouseUp > ask "Please enter a number between 1 and 100" > if it is not a number then exit mouseUp > if it < 1 OR it > 100 then exit mouseUp > put it into field "Number" > end mouseUp > end block into tScript > > Is there a better way to have a script written in a script? > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 15 19:35:03 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 15 Jul 2023 16:35:03 -0700 Subject: Shell + Python? In-Reply-To: References: Message-ID: <0c83d7ba-f81f-6bf6-a2df-3e9b1fc69f50@sonic.net> On 7/15/23 10:05, Geoff Canyon via use-livecode wrote: > So any idea why terminal can find python but LC's shell function can't? Your user context is different from LC's shell context. Try put shell("env | grep PATH") # in the message box and env | grep PATH # in terminal If you want to launch python from LC's shell you'll have to have it in LC's path somewhere, or at least an alias to it in the path. -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Sat Jul 15 19:43:53 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 19:43:53 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: References: Message-ID: That's pretty good! On 7/15/2023 7:14 PM, Geoff Canyon via use-livecode wrote: > Custom properties would definitely be my go-to, similar to what others have > said. That said, I think the merge command is your friend here. > > This script in a button does what you want: > > on mouseUp > set the script of button "Sample" to \ > merge("on mouseUp[[cr]]" &\ > "ask [[quote]]Please enter a number between 1 and > 100[[quote]][[cr]]" &\ > "if it is not a number then exit mouseUp[[cr]]" &\ > "if it < 1 OR it > 100 then exit mouseUp[[cr]]" &\ > "put it into field [[quote]]Number[[quote]][[cr]]" &\ > "end mouseUp") > end mouseUp > > The use of \ to continue, and [[quote]] and [[cr]] results in a pretty > readable script to my eye at least. From alex at tweedly.net Sat Jul 15 20:23:18 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 16 Jul 2023 01:23:18 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> References: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> Message-ID: <33b83ecd-52d9-61df-8351-5c3f619a9fbd@tweedly.net> On 15/07/2023 21:29, Paul Dupuis via use-livecode wrote: > All good suggestions so far, but not what I was after, which was > whether there is any better way to have the script you are setting the > newly created object to, readable, in the script that setup of the new > object. If a behavior script is used or properties or objects then I > can not read (and potentially revise) the script right in the script > that is making the object. I have to open something else if I want to > revise the script. Of course I can have a comment that says "look here > for the script" and it is generally obvious from "set the script of > button "Sample" to . > OK, how about this ? > on mouseUp >    -- using special comments to set script of another object >    local tmp >    put the script of me into tmp >    filter tmp with "*--1 *" >    replace "--1 " with empty in tmp >    set the script of btn "B" to tmp >    --1 on mouseup >    --1   put "hello world" >    --1 end mouseup > end mouseUp of course, you could have multiple of them --1, --2, etc. and you could have metadata, say the first line of each "special comment" has the object name --1 -- script for button "abc" --1 on mouseup ... --1 end mouseup Alex. From paul at researchware.com Sat Jul 15 20:43:37 2023 From: paul at researchware.com (Paul Dupuis) Date: Sat, 15 Jul 2023 20:43:37 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: <33b83ecd-52d9-61df-8351-5c3f619a9fbd@tweedly.net> References: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> <33b83ecd-52d9-61df-8351-5c3f619a9fbd@tweedly.net> Message-ID: <7b573c23-489d-7cca-6eac-9b12cfd91367@researchware.com> Oh, another great solutions! On 7/15/2023 8:23 PM, Alex Tweedly via use-livecode wrote: > > On 15/07/2023 21:29, Paul Dupuis via use-livecode wrote: >> All good suggestions so far, but not what I was after, which was >> whether there is any better way to have the script you are setting >> the newly created object to, readable, in the script that setup of >> the new object. If a behavior script is used or properties or objects >> then I can not read (and potentially revise) the script right in the >> script that is making the object. I have to open something else if I >> want to revise the script. Of course I can have a comment that says >> "look here for the script" and it is generally obvious from "set the >> script of button "Sample" to . >> > OK, how about this ? > >> on mouseUp >>    -- using special comments to set script of another object >>    local tmp >>    put the script of me into tmp >>    filter tmp with "*--1 *" >>    replace "--1 " with empty in tmp >>    set the script of btn "B" to tmp >>    --1 on mouseup >>    --1   put "hello world" >>    --1 end mouseup >> end mouseUp > > of course, you could have multiple of them --1, --2, etc. > > and you could have metadata, say the first line of each "special > comment" has the object name > > --1 -- script for button "abc" > --1 on mouseup > ... > --1 end mouseup > > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alanstenhouse at hotmail.com Sat Jul 15 22:09:05 2023 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 16 Jul 2023 11:39:05 +0930 Subject: Workaround for regular Crash setting (audio) file of player? Message-ID: Hi David This rings a distant bell... not sure, but can you try set the filename of me to empty and then set the filename of me to audioFile to see if that makes a difference? HTH, cheers Alan From marksmithhfx at gmail.com Sun Jul 16 05:57:24 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 16 Jul 2023 10:57:24 +0100 Subject: What is your best practice for setting a script in a script? In-Reply-To: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> References: <5d59d2b7-0844-422e-e73c-5c396c8fed92@researchware.com> Message-ID: Not a perfect solution but it does solve the problem of not having to use all the put statements and other grammar which as you note is cumbersome to read, let alone write. I agree though, a more elegant solution to this problem would be useful. > On 15 Jul 2023, at 9:29 pm, Paul Dupuis via use-livecode wrote: > > All good suggestions so far, but not what I was after, which was whether there is any better way to have the script you are setting the newly created object to, readable, in the script that setup of the new object. If a behavior script is used or properties or objects then I can not read (and potentially revise) the script right in the script that is making the object. I have to open something else if I want to revise the script. Of course I can have a comment that says "look here for the script" and it is generally obvious from "set the script of button "Sample" to . > > > > On 7/15/2023 11:06 AM, Paul Dupuis via use-livecode wrote: >> So in the instances where you have a script that creates an object and then sets the script of that object (example below), what is you best practice for having the script in a script and still be readable? >> >> Example: >> BUTTON "Make" >> on mouseUp >> local tScript >> create button "Sample" >> put "on mouseUp"&cr into tScript >> put " ask 'Please enter a number between 1 and 100'" &cr after tScript >> put " if it is not a number then exit mouseUp" &cr after tScript >> put " if it < 1 OR it > 100 then exit mouseUp" &cr after tScript >> put " put it into field 'Number'" &cr after tScript >> put "end mouseUp" after tScript >> replace "'" with quote in tScript >> set the script of button "Sample" to tScript >> end mouseUp >> >> This create a button "Sample" with the script >> on mouseUp >> ask "Please enter a number between 1 and 100" >> if it is not a number then exit mouseUp >> if it < 1 OR it > 100 then exit mouseUp >> put it into field "Number" >> end mouseUp >> >> However, I reading the script for button Sample in button Make with the "pu" statements and quotes (double and single) and cr and so one cumbersome to read. Yes there are behavior scripts, but this is about the best practice of placing a script in a script (to set the script of an object) and having it as clear as possible. >> >> I wish there was a command like "put begin block" where you could follow it any number of lines and then "end block into tVar". i.e. >> >> put begin block >> on mouseUp >> ask "Please enter a number between 1 and 100" >> if it is not a number then exit mouseUp >> if it < 1 OR it > 100 then exit mouseUp >> put it into field "Number" >> end mouseUp >> end block into tScript >> >> Is there a better way to have a script written in a script? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Sun Jul 16 18:25:47 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Sun, 16 Jul 2023 23:25:47 +0100 Subject: Browser widget "Navigation request cancelled"/"NSURLErrorDomain error -999" Message-ID: <1ebb2680-c423-7b65-0012-a19dd072ed67@cogapp.com> I'm finding intermittent issues with the browser widget failing to load an internal site. In 9.6.8, the error (in browserDocumentLoadFailed) will usually be "NSURLErrorDomain error -999". In 10.0.0 (dp 5) it will be "Navigation request cancelled". Alternatively, sometimes (at least in 9.6.8) it will be "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." ... which is fair enough, because it's an "http:" URL rather than an "https:" (this is an application on our intranet); but the whacky part is that _sometimes_ I can load the site, and once loaded I can navigate it fine. In particular I have more success in loading it in 10.0.0 (dp 5) - although sometimes the site will load, _and_ the browserDocumentLoadFailed message will be sent! I also sometimes find I can load it if I set the URL in the property inspector for the browser widget, where setting it in script fails. Can anyone shed light? I'd prefer to get this working in 9.6.8, because due to https://quality.livecode.com/show_bug.cgi?id=24268 I tend to lose work in 10.0.0 (dp 5) - but if I could get it consistently working in either that would be a step forward! TIA, Ben From klaus at major-k.de Mon Jul 17 04:10:26 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Jul 2023 10:10:26 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: Hi all, > Am 14.07.2023 um 22:36 schrieb J. Landman Gay via use-livecode : > > On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: >> I am looking for a support email at GOOGLE Dev. >> My problem is the search engine of Google Play Store. >> Just like the subject says. ;-) > > Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: > > > They don't make it easy. just received a response from Google. It is completely generic, does not make any sense to me, but it looks like they do NOT search for the correct and complete title of an app in their database. :-/ Maybe I do not understand it correctly? ------------------------------------------------------------ Hi Klaus, Thanks for contacting Google Play Developer Support. Google Play app search works across title, developer name, and app descriptions. Your title should be unique and accessible, avoid common terms, and reinforce what your app is about. Using common or generic words like "Puzzle" or "Sports" can often increase the total number of potential search results, thus making your app more difficult to find. Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). For more information about Google Search Operators, please see this Google Search Help Center article. ... ------------------------------------------------------------ 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 Mon Jul 17 06:02:24 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Jul 2023 12:02:24 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi friends, FYI: I solved the problem! 1. For testing I ordered the cheapest USB footswitch fom Mr. Pesos -> 15.99 Euro 2. Also ordered an USB-A to Micro-USB adapter 3. Downloaded the software for setting up the footswitch, there is even a Mac version! 4. Configured the footswitch to act as a mouseclick 5. Tested with a quick LC app on my Android tablet and... ... IT WORKS, hooray! :-) The P.S. in my initial posting is still waiting for an answer. :-) > Am 25.05.2023 um 17:22 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I'm still an active musician (bass guitar) and am currently playing in four bands. > > Nowadays bulky music stands on stage are OUT and tablets are IN! > So I am considering to create a little app for myself to display PDF leadsheets > (= lyrics and chord symbols) on an Andorid tablet, which I still have to buy. :-) > > There are some USB footswitches, and I would like to use one of them to browse > through the (multipage) PDFs (next page, previous page). > > Anyone knows if these switches will act like an "external keyboard", means if they > will just send any RAWKEY that I could catch in LC? > Or will I need something created with LCB to do so? > > Thanks for any hint! P.S. Since PDFs are not accessible via "mobilepickmedia" are there ANY other ways to add some PDFs later without having to download them from some URL? 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 Mon Jul 17 11:20:17 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Jul 2023 15:20:17 +0000 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: <43849C96-3A38-427D-A7F3-653032BEA7B9@iotecdigital.com> I bet the dashes mean something in the search algorithm. Bob S > On Jul 17, 2023, at 1:10 AM, Klaus major-k via use-livecode wrote: > > Hi all, > >> Am 14.07.2023 um 22:36 schrieb J. Landman Gay via use-livecode : >> >> On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote: >>> I am looking for a support email at GOOGLE Dev. >>> My problem is the search engine of Google Play Store. >>> Just like the subject says. ;-) >> >> Oh right, I'm supposed to read the subject title. Oops. This is the closest thing I could find: >> >> >> They don't make it easy. > > just received a response from Google. > > It is completely generic, does not make any sense to me, but it looks like they do NOT > search for the correct and complete title of an app in their database. :-/ > > Maybe I do not understand it correctly? > ------------------------------------------------------------ > Hi Klaus, > > Thanks for contacting Google Play Developer Support. > > Google Play app search works across title, developer name, and app descriptions. > Your title should be unique and accessible, avoid common terms, and reinforce > what your app is about. > > Using common or generic words like "Puzzle" or "Sports" can often increase the > total number of potential search results, thus making your app more difficult to find. > Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect > the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). > > For more information about Google Search Operators, please see this Google Search Help Center article. > ... > ------------------------------------------------------------ > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Mon Jul 17 11:26:19 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 17 Jul 2023 17:26:19 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <43849C96-3A38-427D-A7F3-653032BEA7B9@iotecdigital.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <43849C96-3A38-427D-A7F3-653032BEA7B9@iotecdigital.com> Message-ID: <6EE26599-DD5D-4188-9CC6-3ED93A8BDBD3@major-k.de> Hi Bob, > Am 17.07.2023 um 17:20 schrieb Bob Sneidar via use-livecode : > > I bet the dashes mean something in the search algorithm. well, maybe. However that entering a misspelled app name will lead to a successfull find is really ridiculous! sehen - hören - merkn -> App found (missing E renders this to a NON german word!) instead of sehen - hören - merken -> no result 8-) > Bob S > >> On Jul 17, 2023, at 1:10 AM, Klaus major-k via use-livecode wrote: >> ... >> just received a response from Google. >> It is completely generic, does not make any sense to me, but it looks like they do NOT >> search for the correct and complete title of an app in their database. :-/ >> Maybe I do not understand it correctly? >> ------------------------------------------------------------ >> Hi Klaus, >> >> Thanks for contacting Google Play Developer Support. >> >> Google Play app search works across title, developer name, and app descriptions. >> Your title should be unique and accessible, avoid common terms, and reinforce >> what your app is about. >> >> Using common or generic words like "Puzzle" or "Sports" can often increase the >> total number of potential search results, thus making your app more difficult to find. >> Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect >> the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). >> >> For more information about Google Search Operators, please see this Google Search Help Center article. >> ... >> ------------------------------------------------------------ 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 Mon Jul 17 11:32:42 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Jul 2023 15:32:42 +0000 Subject: Shell + Python? In-Reply-To: <0c83d7ba-f81f-6bf6-a2df-3e9b1fc69f50@sonic.net> References: <0c83d7ba-f81f-6bf6-a2df-3e9b1fc69f50@sonic.net> Message-ID: <5A153757-647E-443F-9B18-BBD700B5CA2E@iotecdigital.com> OK mine are definitely different. So what changed? Virtually everything I used for shell in the past worked without a problem but at some point in the recent updates this changed. So then what is the solution? Obviously I am going to have to change the shell for LC, and not the one for Terminal. LC’s shellCommand is /bin/sh. The terminal is zsh so I set Livecode’s shellCommand to /bin/zsh. The path changed but is still different from what I grep in the terminal!! Shouldn’t there be a way to tell LC what the default shell is in the terminal?? Bob S > On Jul 15, 2023, at 4:35 PM, Mark Wieder via use-livecode wrote: > > On 7/15/23 10:05, Geoff Canyon via use-livecode wrote: > >> So any idea why terminal can find python but LC's shell function can't? > > Your user context is different from LC's shell context. Try > > put shell("env | grep PATH") # in the message box > > and > > env | grep PATH # in terminal > > If you want to launch python from LC's shell you'll have to have it in LC's path somewhere, or at least an alias to it in the path. > > -- > Mark Wieder > ahsoftware at gmail.com From paul at researchware.com Mon Jul 17 12:39:32 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Jul 2023 12:39:32 -0400 Subject: Apple Notarization changes... Message-ID: I got an email from Apple Developer date 13-Jun-2023 that: "Were reaching out because you recently used the altool command-line utility to notarize your macOS software with Apple. As announced last year at WWDC22, if youre still using altool with the Apple notary service, you should transition to the notarytool command-line utility as soon as possible. Notarizing software with altool was deprecated in Xcode 13, and the Apple notary service will no longer accept uploads from altool as of November 1, 2023. Existing notarized software will continue to function properly. " So, my questions for the Hivemind and/or the Mothership are: 1) I currently code sign and notarize using some version of Xcode under Mojave on a MacBook Pro. I do not really want to upgrade the OS from Mojave. The MacBook pro literal only function is macOS code signing and notarization. It sits off line and doesn't get any updates because I am terrified some update will break the code signing and notarization process. So, is there a version of Xcode that will run on Mojave and supports the new notarytool (vs attool as the terminal command - I have been using is "xcrun altool -type osx --notarize-app --primary-bundle-id ... etc.")? What is the minimum OS/Xcode combination that lets me use notarytool? 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! From matthias_livecode_150811 at m-r-d.de Mon Jul 17 12:48:52 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 17 Jul 2023 18:48:52 +0200 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: > > 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? > see here https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Mon Jul 17 12:56:10 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 17 Jul 2023 17:56:10 +0100 Subject: Crazy question: is it possible/reasonable to use Python in LC? In-Reply-To: References: Message-ID: "do ... as python" ?? On 13/07/2023 21:03, Geoff Canyon via use-livecode wrote: > I've been playing with Python, and it has a lot of nice qualities, but a > built-in GUI isn't one of them (no apologies to tkinter). > > So it would be interesting/nice to be able to open LC, add a button to a > stack, and put some python into the script of that button and have it just > work, with access to the rest of the LC stack/controls as usual. > > Obviously that's not possible, but how close can we come? I assume it would > be possible to write a shell command to trigger a python script, but that > seems complex and sub-optimal, especially when thinking about having to > bundle together all the bits and bobs from the LC UI to pass as arguments > to the Python script instead of having it able to just reference what it > needs on the fly. > > Anyway, wondering if anyone else has thought about this. > > gc > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 13:11:38 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 17 Jul 2023 13:11:38 -0400 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: Well, I'm glad the lesson and tool exists and thanks for the link. On the negative side, I just found the Apple developer Xcode page that shows that Xcode 13minimum OS version is  macOS Big Sur 11.3 So, no more Mojave. Huge bummer for me. We have a macBook Air with Ventura (latest version), so I guess it is time to set up and get used to Xcode 15. Ugh, I have when OS vendors change things. We have enough changes we need to make in our own products we can't keep up with :-( On 7/17/2023 12:48 PM, matthias rebbe via use-livecode wrote: >> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? >> > see here > https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > > > >> November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 13:11:55 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 17 Jul 2023 12:11:55 -0500 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: <18964d65378.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> @Paul : Matthias' helper stack is a great gift to the community. I think the LC team even uses it. You'll never have to use Terminal or Xcode again. You can download the stack from the lesson he linked to, then scroll down to section 9 to see the setup. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 17, 2023 11:50:50 AM matthias rebbe via use-livecode wrote: >> >> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, >> etc, for using this new notarytool? If so, can anyone point me to it? > see here > https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > > > >> November 1 is still a ways off, but I find Apple Notarization so >> incomprehensible that once I get a set of steps to work, I document them >> and follow them verbatim and the thought of trying to figure out what this >> change means is daunting! From marksmithhfx at gmail.com Mon Jul 17 13:18:40 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 17 Jul 2023 18:18:40 +0100 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: Matthias, thanks for upgrading your lesson plan to work with the new signing tool. It’s an invaluable asset and assistance to the community of mobile app developers. Mark > On 17 Jul 2023, at 5:48 pm, matthias rebbe via use-livecode wrote: > >> >> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? >> > see here > https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up > > > >> November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 13:25:30 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 17 Jul 2023 18:25:30 +0100 Subject: Apple Notarization changes... In-Reply-To: References: Message-ID: <4CACAABE-BC41-4E31-AA81-39C2E540AB32@gmail.com> Hi Paul, my sentiments exactly. I also shudder at having to change, modify or upgrade any aspect of the development environment because, like a set of dominoes, once you change one thing you are pretty much committed to having to upgrade and change everything else as well. Its an unfortunate aspect of developing in the modern computer age but tools like Matthias’s MrSignNotarizeHelperV4 makes it a LOT less bumpy. I probably would have given up ages ago without it!! Mark > On 17 Jul 2023, at 6:11 pm, Paul Dupuis via use-livecode wrote: > > Well, I'm glad the lesson and tool exists and thanks for the link. > > On the negative side, I just found the Apple developer Xcode page that shows that Xcode 13minimum OS version is macOS Big Sur 11.3 > > So, no more Mojave. Huge bummer for me. > > We have a macBook Air with Ventura (latest version), so I guess it is time to set up and get used to Xcode 15. Ugh, I have when OS vendors change things. We have enough changes we need to make in our own products we can't keep up with :-( > > > > On 7/17/2023 12:48 PM, matthias rebbe via use-livecode wrote: >>> 2) Has Livecode (or anyone else) updated lessons. documentation, help apps, etc, for using this new notarytool? If so, can anyone point me to it? >>> >> see here >> https://lessons.livecode.com/m/4071/l/1653720-code-signing-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore-with-xcode-13-and-up >> >> >> >>> November 1 is still a ways off, but I find Apple Notarization so incomprehensible that once I get a set of steps to work, I document them and follow them verbatim and the thought of trying to figure out what this change means is daunting! >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 17 16:05:04 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 17 Jul 2023 15:05:04 -0500 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> Message-ID: <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: > Maybe I do not understand it correctly? > ------------------------------------------------------------ > Hi Klaus, > > Thanks for contacting Google Play Developer Support. > > Google Play app search works across title, developer name, and app descriptions. > Your title should be unique and accessible, avoid common terms, and reinforce > what your app is about. > > Using common or generic words like "Puzzle" or "Sports" can often increase the > total number of potential search results, thus making your app more difficult to find. > Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect > the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). Interesting. The app that couldn't be found for me had an "@" sign in the name. So I agree that symbols or punctuation like hyphens may be the problem. Since their algorithm converts the search term, you could try putting the Google version in the description somewhere. You could put it way at the bottom of the description, just for reference. I very occasionally see titles like this: Sehen-Hören-Merken (Sehen - Hören - Merken) I wondered why but now I think I know. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Jul 17 16:44:45 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 17 Jul 2023 20:44:45 +0000 Subject: Search for an app in Google Play Store In-Reply-To: <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> Message-ID: <1179EAF4-180E-4AE7-8942-8D96161C58E1@iotecdigital.com> That IS weird. Bob S > On Jul 17, 2023, at 1:05 PM, J. Landman Gay via use-livecode wrote: > > On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: >> Maybe I do not understand it correctly? >> ------------------------------------------------------------ >> Hi Klaus, >> Thanks for contacting Google Play Developer Support. >> Google Play app search works across title, developer name, and app descriptions. >> Your title should be unique and accessible, avoid common terms, and reinforce >> what your app is about. >> Using common or generic words like "Puzzle" or "Sports" can often increase the >> total number of potential search results, thus making your app more difficult to find. >> Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect >> the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). > > Interesting. The app that couldn't be found for me had an "@" sign in the name. So I agree that symbols or punctuation like hyphens may be the problem. > > Since their algorithm converts the search term, you could try putting the Google version in the description somewhere. You could put it way at the bottom of the description, just for reference. > > I very occasionally see titles like this: > Sehen-Hören-Merken (Sehen - Hören - Merken) > > I wondered why but now I think I know. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Jul 17 20:00:11 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 18 Jul 2023 00:00:11 +0000 Subject: sqlYoga question Message-ID: <738BAEAA-02A7-4FA9-BE79-0F23E89178EB@iotecdigital.com> Hi ll. I have a curious problem. I am trying to select only records with the highest value in an SQL table. I know the SQL to do it, but how to get sqlYoga to do it is a mystery to me. The actual SQL looks something like this: select * from files t1 where custid = '289' and fileversion = (select max(fileversion) from files t2 where t2.filename = t1.filename) I know I can do this in the native API, but the question is, how to do this in sqlYoga?? Bob S From marksmithhfx at gmail.com Tue Jul 18 06:59:41 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 11:59:41 +0100 Subject: tsneterr Message-ID: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> I received the following error: tsenterr (55) SSLWrite() returned error -9805 Anyone know what this means or where to lookup what it means? Thanks From klaus at major-k.de Tue Jul 18 07:03:32 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 13:03:32 +0200 Subject: Search for an app in Google Play Store In-Reply-To: <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> Message-ID: Hi Jacque, > Am 17.07.2023 um 22:05 schrieb J. Landman Gay via use-livecode : > > On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: >> Maybe I do not understand it correctly? >> ------------------------------------------------------------ >> Hi Klaus, >> Thanks for contacting Google Play Developer Support. >> Google Play app search works across title, developer name, and app descriptions. >> Your title should be unique and accessible, avoid common terms, and reinforce >> what your app is about. >> Using common or generic words like "Puzzle" or "Sports" can often increase the >> total number of potential search results, thus making your app more difficult to find. >> Using the search phrase Sehen-Hören-Merken forces our search engine to autocorrect >> the search term and return results as if the search term were "Sehen - Hören - Merken" (in quotes). > Interesting. The app that couldn't be found for me had an "@" sign in the name. So I agree that symbols or punctuation like hyphens may be the problem. yes, looks like... > Since their algorithm converts the search term, you could try putting the Google version in the description somewhere. You could put it way at the bottom of the description, just for reference. Do you mean in the description on the page in the Google Play Store? If yes, that will not make sense, since the problem is to find that page first! Chicken and egg problem... :-) If not, please explain. > I very occasionally see titles like this: > Sehen-Hören-Merken (Sehen - Hören - Merken) > > I wondered why but now I think I know. > > -- > Jacqueline Landman Gay Best Klaus -- 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 Tue Jul 18 07:27:58 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 18 Jul 2023 13:27:58 +0200 Subject: tsneterr In-Reply-To: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> Message-ID: <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> The error numbers in the brackets returned by tsNet are curl error numbers. And according to https://curl.se/libcurl/c/libcurl-errors.html it means there was a problem sending data to the peer. Searching further for Curl error 55 i found some causes 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server 2. Your or the remote compute could have incorrect time settings 3. wrong firewall settings on the remote system > Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : > > I received the following error: > > tsenterr (55) SSLWrite() returned error -9805 > > Anyone know what this means or where to lookup what it means? > > 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 marksmithhfx at gmail.com Tue Jul 18 08:20:37 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 13:20:37 +0100 Subject: tsneterr In-Reply-To: <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> Message-ID: <3C6E86B1-0033-4759-87B5-339A58AF8258@gmail.com> Thanks Matthias. I’ve bookmarked the curl page for future reference. That solves about 1/2 the problem. Too bad it is difficult to find any information on error code -9805. I’ll follow up with dropbox to see if they are issuing it and what it means. I checked the things you mentioned and none of them seemed to apply (I’m using http not ftp so that rules out #1, time settings have not changed on my end since forever, unlikely dropbox would change them either so that probably rules out #2, and I can’t speak to their firewall settings). Very helpful, so many thanks! PS I’ve noticed this error only since upgrading to LC10. I wonder if anything changed in LC that might be contributing? I’d go back to using 9.6.8 (I still have it installed) but since upgrading Xcode to be compatible I don’t have the old SDK available to test with. BTW, this is a question I’ve long wondered but never answered: is it possible to just have (or keep) the SDK files and not all of Xcode? That would sure make life easier space wise. Mark > On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode wrote: > > The error numbers in the brackets returned by tsNet are curl error numbers. > And according to > https://curl.se/libcurl/c/libcurl-errors.html > > it means there was a problem sending data to the peer. > > Searching further for Curl error 55 i found some causes > > 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server > 2. Your or the remote compute could have incorrect time settings > 3. wrong firewall settings on the remote system > > >> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >> >> I received the following error: >> >> tsenterr (55) SSLWrite() returned error -9805 >> >> Anyone know what this means or where to lookup what it means? >> >> Thanks >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Jul 18 08:33:07 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 14:33:07 +0200 Subject: permanency of an unsigned Android app on the phone? Message-ID: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> Hi all, if I "Do not sign" my Android app and let someone install the app via Google Drive, will the app cease to work at some point like iOS apps do after 90 days (I think)? Thanks for any hint! 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 Jul 18 08:49:25 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 13:49:25 +0100 Subject: tsneterr In-Reply-To: <3C6E86B1-0033-4759-87B5-339A58AF8258@gmail.com> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> <3C6E86B1-0033-4759-87B5-339A58AF8258@gmail.com> Message-ID: <5A92DDC7-32BF-4827-B9AD-F8EFD7BF416E@gmail.com> Here is another timing issue I hadn’t thought of. My upload has recently passed the 1/2 mb size and this may cause a timeout of some sort on the receiving end if it has grown too big?? I don’t think 1/2 mb on DB would be a problem (I have 2 TB of storage, with 25% still free) but maybe when combined with a slow transfer rate? Anyway, I’ve sent a msg to DB so will see what they come back with. Mark > On 18 Jul 2023, at 1:20 pm, Mark Smith wrote: > > Thanks Matthias. I’ve bookmarked the curl page for future reference. That solves about 1/2 the problem. Too bad it is difficult to find any information on error code -9805. I’ll follow up with dropbox to see if they are issuing it and what it means. I checked the things you mentioned and none of them seemed to apply (I’m using http not ftp so that rules out #1, time settings have not changed on my end since forever, unlikely dropbox would change them either so that probably rules out #2, and I can’t speak to their firewall settings). Very helpful, so many thanks! > > PS I’ve noticed this error only since upgrading to LC10. I wonder if anything changed in LC that might be contributing? I’d go back to using 9.6.8 (I still have it installed) but since upgrading Xcode to be compatible I don’t have the old SDK available to test with. BTW, this is a question I’ve long wondered but never answered: is it possible to just have (or keep) the SDK files and not all of Xcode? That would sure make life easier space wise. > > Mark > >> On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode wrote: >> >> The error numbers in the brackets returned by tsNet are curl error numbers. >> And according to >> https://curl.se/libcurl/c/libcurl-errors.html >> >> it means there was a problem sending data to the peer. >> >> Searching further for Curl error 55 i found some causes >> >> 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server >> 2. Your or the remote compute could have incorrect time settings >> 3. wrong firewall settings on the remote system >> >> >>> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >>> >>> I received the following error: >>> >>> tsenterr (55) SSLWrite() returned error -9805 >>> >>> Anyone know what this means or where to lookup what it means? >>> >>> Thanks >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jul 18 11:12:16 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 10:12:16 -0500 Subject: permanency of an unsigned Android app on the phone? In-Reply-To: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> References: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> Message-ID: <189698f2480.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> No, they'll work indefinitely. Depending on the Android version the user may need to bypass a scary warning, accept some permissions, and turn on the ability to download from unknown sources in system settings. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 18, 2023 7:34:28 AM Klaus major-k via use-livecode wrote: > Hi all, > > if I "Do not sign" my Android app and let someone install > the app via Google Drive, will the app cease to work at > some point like iOS apps do after 90 days (I think)? > > Thanks for any hint! > > > 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 Jul 18 11:22:01 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 17:22:01 +0200 Subject: permanency of an unsigned Android app on the phone? In-Reply-To: <189698f2480.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <2C856787-86B9-456F-9E91-C7E5C77F5B26@major-k.de> <189698f2480.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <3F25D43F-A243-40E6-AE09-519B79F90980@major-k.de> Hi Jacques, > Am 18.07.2023 um 17:12 schrieb J. Landman Gay via use-livecode : > > No, they'll work indefinitely. ah, thank you, that's good news! :-) > Depending on the Android version the user may need to bypass a scary warning, > accept some permissions, and turn on the ability to download from unknown sources in system settings. Yes, sure. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com 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 Tue Jul 18 11:27:22 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 10:27:22 -0500 Subject: Search for an app in Google Play Store In-Reply-To: References: <576ECB7C-3C57-45B8-A256-843E7EA9F0DA@major-k.de> <1894594a1e0.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <56BC3A74-752D-4F7A-A005-56A887B9F2AB@major-k.de> <53F04A3D-DAAB-49FA-BF4D-23AAF5AFBBFD@major-k.de> <1a4ea4bb-7f16-bd09-5cac-9e4752f4098e@hyperactivesw.com> <9c68efef-1482-a072-6b69-ca8f2fe891c3@hyperactivesw.com> Message-ID: <189699cf790.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Google said it searches the description as well as the title and author, so if you put their modified string into the description their bot should find it. You could even do something like this: Search Ref: Sehen - Hren - Merken That is the modified string Google uses for search. It adds spaces around the hyphens. If you don't want to do that, you could just edit the title to include the spaces. I'm not sure if you can change the title without resubmitting the app but you could try. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 18, 2023 6:04:53 AM Klaus major-k via use-livecode wrote: > Hi Jacque, > >> Am 17.07.2023 um 22:05 schrieb J. Landman Gay via use-livecode >> : >> >> On 7/17/23 3:10 AM, Klaus major-k via use-livecode wrote: >>> Maybe I do not understand it correctly? >>> ------------------------------------------------------------ >>> Hi Klaus, >>> Thanks for contacting Google Play Developer Support. >>> Google Play app search works across title, developer name, and app >>> descriptions. >>> Your title should be unique and accessible, avoid common terms, and reinforce >>> what your app is about. >>> Using common or generic words like "Puzzle" or "Sports" can often increase the >>> total number of potential search results, thus making your app more >>> difficult to find. >>> Using the search phrase Sehen-Hren-Merken forces our search engine to >>> autocorrect >>> the search term and return results as if the search term were "Sehen - >>> Hren - Merken" (in quotes). >> Interesting. The app that couldn't be found for me had an "@" sign in the >> name. So I agree that symbols or punctuation like hyphens may be the problem. > > yes, looks like... > >> Since their algorithm converts the search term, you could try putting the >> Google version in the description somewhere. You could put it way at the >> bottom of the description, just for reference. > > Do you mean in the description on the page in the Google Play Store? > If yes, that will not make sense, since the problem is to find that page first! > Chicken and egg problem... :-) > > If not, please explain. > >> I very occasionally see titles like this: >> Sehen-Hren-Merken (Sehen - Hren - Merken) >> >> I wondered why but now I think I know. >> >> -- >> Jacqueline Landman Gay > > 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 marksmithhfx at gmail.com Tue Jul 18 11:50:09 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 16:50:09 +0100 Subject: tsneterr In-Reply-To: <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> Message-ID: <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> Hi Matthias, First let me thank you for your previous response. In response to my question about error -9805 dropbox replied: The error you posted shows some platform specific error. Dropbox doesn't respond with any similar error. You have to read your environment documentation for more info. It seems, according to the method name, the trouble is related to SSL tunneling work. Does your environment support TLSv1.2? The method name is SSLWrite(). Apple says the method has been deprecated since iOS13, I am running 15.6. Note, this is a relatively new occurrence in the app… I think I’ve seen it maybe 4 times since June 21 (dated screen shots) but a lot changed around then. I upgraded to LC10, swapped Xcode, changed the SDK, god knows what else possibly iOS (I can’t remember). So it’s very difficult to point a finger at what has changed to cause this. The only other error to pop up was (56) broken pipe which, come to think of it, might be related? Oh, other bit of trivia… I usually just send again (after a few steps to re-enable uploading) and it works fine. So it’s very sporadic. I use the app maybe 10-15 times a day and have seen this error maybe 4 times in the last month. Thanks, Mark > On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode wrote: > > The error numbers in the brackets returned by tsNet are curl error numbers. > And according to > https://curl.se/libcurl/c/libcurl-errors.html > > it means there was a problem sending data to the peer. > > Searching further for Curl error 55 i found some causes > > 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server > 2. Your or the remote compute could have incorrect time settings > 3. wrong firewall settings on the remote system > > >> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >> >> I received the following error: >> >> tsenterr (55) SSLWrite() returned error -9805 >> >> Anyone know what this means or where to lookup what it means? >> >> Thanks >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Jul 18 14:44:25 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 18 Jul 2023 20:44:25 +0200 Subject: tsneterr In-Reply-To: <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> Message-ID: <03CF6807-0D4C-4EED-8EB9-9A2637B440DD@m-r-d.de> Hi Mark, it seems error -9805 is an error which is returned by iOS. I just searched for error 9805 and found this page here with some open source code from Apple. https://opensource.apple.com/source/libsecurity_ssl/libsecurity_ssl-36800/lib/SecureTransport.h There is the following line errSSLClosedGraceful = -9805, /* connection closed gracefully */ Anyway, maybe someone from LC or maybe even Charles Warwick, the author of the tsNet external, could chime in. Regards, Matthias > Am 18.07.2023 um 17:50 schrieb Mark Smith : > > Hi Matthias, > > First let me thank you for your previous response. In response to my question about error -9805 dropbox replied: > > The error you posted shows some platform specific error. Dropbox doesn't respond with any similar error. You have to read your environment documentation for more info. It seems, according to the method name, the trouble is related to SSL tunneling work. Does your environment support TLSv1.2? > > The method name is SSLWrite(). Apple says the method has been deprecated since iOS13, I am running 15.6. Note, this is a relatively new occurrence in the app… I think I’ve seen it maybe 4 times since June 21 (dated screen shots) but a lot changed around then. I upgraded to LC10, swapped Xcode, changed the SDK, god knows what else possibly iOS (I can’t remember). So it’s very difficult to point a finger at what has changed to cause this. The only other error to pop up was (56) broken pipe which, come to think of it, might be related? Oh, other bit of trivia… I usually just send again (after a few steps to re-enable uploading) and it works fine. So it’s very sporadic. I use the app maybe 10-15 times a day and have seen this error maybe 4 times in the last month. > > Thanks, > Mark > >> On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode > wrote: >> >> The error numbers in the brackets returned by tsNet are curl error numbers. >> And according to >> https://curl.se/libcurl/c/libcurl-errors.html >> >> it means there was a problem sending data to the peer. >> >> Searching further for Curl error 55 i found some causes >> >> 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server >> 2. Your or the remote compute could have incorrect time settings >> 3. wrong firewall settings on the remote system >> >> >>> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >>> >>> I received the following error: >>> >>> tsenterr (55) SSLWrite() returned error -9805 >>> >>> Anyone know what this means or where to lookup what it means? >>> >>> Thanks >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jul 18 14:57:19 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 13:57:19 -0500 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: On 7/17/23 5:02 AM, Klaus major-k via use-livecode wrote: > Since PDFs are not accessible via "mobilepickmedia" are there ANY other ways to add > some PDFs later without having to download them from some URL? I tried several things but I couldn't get any of them to work. You can write to and read from the mobile documents folder, but if you put a file in there manually it isn't seen by the app. I use a very good file manager on Android called Solid Explorer and it does see a file I copy to documents, but my mobile app doesn't list it or confirm anything is there. If you want to try, download a good file manager; Google or Samsung's default Files app won't work. Then go to the app's document folder, which is located here: /Android/data/com.your.appID/ You may have to give the file manager permissions to open those folders, they're locked down in recent versions of Android. Solid Explorer will ask you to allow it. We really need LC to give us access to the public documents folder. I think that's the only way to do what you (and I) want. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From marksmithhfx at gmail.com Tue Jul 18 15:16:07 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 18 Jul 2023 20:16:07 +0100 Subject: tsneterr In-Reply-To: <03CF6807-0D4C-4EED-8EB9-9A2637B440DD@m-r-d.de> References: <3F3ADC70-498F-44A7-B87B-FDB117287D73@gmail.com> <8EF80C95-D617-42C9-A4C7-8FA6C2278F6C@m-r-d.de> <82C96E38-9AF9-4B30-8C8B-1FAD63FEE828@gmail.com> <03CF6807-0D4C-4EED-8EB9-9A2637B440DD@m-r-d.de> Message-ID: Thanks Matthias. I find it strange that they would report “connection closed gracefully” as an error. But as I noted previously, this just started happening about a month ago so I am going on the assumption that it’s not a good thing and will keep looking for an explanation. If I can think of way to phrase it, I may even try the mothership. At the moment, however, I have no way to make this happen reliably so that’s not much for them to go on. Mark > On 18 Jul 2023, at 7:44 pm, matthias rebbe via use-livecode wrote: > > Hi Mark, > it seems error -9805 is an error which is returned by iOS. > > I just searched for error 9805 and found this page here with some open source code from Apple. > https://opensource.apple.com/source/libsecurity_ssl/libsecurity_ssl-36800/lib/SecureTransport.h > > There is the following line > errSSLClosedGraceful = -9805, /* connection closed gracefully */ > > Anyway, maybe someone from LC or maybe even Charles Warwick, the author of the tsNet external, could chime in. > > Regards, > Matthias > > >> Am 18.07.2023 um 17:50 schrieb Mark Smith >: >> >> Hi Matthias, >> >> First let me thank you for your previous response. In response to my question about error -9805 dropbox replied: >> >> The error you posted shows some platform specific error. Dropbox doesn't respond with any similar error. You have to read your environment documentation for more info. It seems, according to the method name, the trouble is related to SSL tunneling work. Does your environment support TLSv1.2? >> >> The method name is SSLWrite(). Apple says the method has been deprecated since iOS13, I am running 15.6. Note, this is a relatively new occurrence in the app… I think I’ve seen it maybe 4 times since June 21 (dated screen shots) but a lot changed around then. I upgraded to LC10, swapped Xcode, changed the SDK, god knows what else possibly iOS (I can’t remember). So it’s very difficult to point a finger at what has changed to cause this. The only other error to pop up was (56) broken pipe which, come to think of it, might be related? Oh, other bit of trivia… I usually just send again (after a few steps to re-enable uploading) and it works fine. So it’s very sporadic. I use the app maybe 10-15 times a day and have seen this error maybe 4 times in the last month. >> >> Thanks, >> Mark >> >>> On 18 Jul 2023, at 12:27 pm, matthias rebbe via use-livecode >> wrote: >>> >>> The error numbers in the brackets returned by tsNet are curl error numbers. >>> And according to >>> https://curl.se/libcurl/c/libcurl-errors.html >>> >>> it means there was a problem sending data to the peer. >>> >>> Searching further for Curl error 55 i found some causes >>> >>> 1. if uploading to an ftp server this error could mean that there is insufficient quota on the server >>> 2. Your or the remote compute could have incorrect time settings >>> 3. wrong firewall settings on the remote system >>> >>> >>>> Am 18.07.2023 um 12:59 schrieb Mark Smith via use-livecode : >>>> >>>> I received the following error: >>>> >>>> tsenterr (55) SSLWrite() returned error -9805 >>>> >>>> Anyone know what this means or where to lookup what it means? >>>> >>>> Thanks >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Jul 18 15:30:59 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 21:30:59 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi Jacque, > Am 18.07.2023 um 20:57 schrieb J. Landman Gay via use-livecode : > > On 7/17/23 5:02 AM, Klaus major-k via use-livecode wrote: >> Since PDFs are not accessible via "mobilepickmedia" are there ANY other ways to add >> some PDFs later without having to download them from some URL? > > I tried several things but I couldn't get any of them to work. You can write to and read from the mobile documents folder, but if you put a file in there manually it isn't seen by the app. I use a very good file manager on Android called Solid Explorer and it does see a file I copy to documents, but my mobile app doesn't list it or confirm anything is there. > If you want to try, download a good file manager; Google or Samsung's default Files app won't work. Then go to the app's document folder, which is located here: > /Android/data/com.your.appID/ > You may have to give the file manager permissions to open those folders, they're locked down in recent versions of Android. Solid Explorer will ask you to allow it. thank you, will install and try Solid Explorer! > We really need LC to give us access to the public documents folder. I think that's the only way to do what you (and I) want. Yes, definitively! The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps where the user needs to add more files. Since this is an app for my personal pleasure, I will create a way to "sync" local files with files on my server. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Tue Jul 18 15:47:38 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 18 Jul 2023 21:47:38 +0200 Subject: missing folders in resource folder Message-ID: <83E7E2DB-6EBF-4250-B5ED-1591481CEB07@major-k.de> Hi friends, I added a folder "daten" in the "Copy files" tab in the "Standalone Application settings". Inside of this folder are five more folders and two of them are EMPTY. The two empty folders do NOT appear in the Android runtime if I do: ... put specialfolderpath("resources") & "/daten" into tFolder put folders(tFolder) into fld xyz ## I only get the NOT empty folders in the field!? ... Is this a feature or a bug? 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 Tue Jul 18 17:49:03 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 18 Jul 2023 16:49:03 -0500 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: <03ecff9f-02b6-cf90-c7a0-127221bfe7f8@hyperactivesw.com> On 7/18/23 2:30 PM, Klaus major-k via use-livecode wrote: > thank you, will install and try Solid Explorer! I'm very impressed with it, it can do so many things. You can link to any cloud storage and access files as though they were local on the device. It can unzip files, create collections of favorite folders, play audio files, and display text and images. Like Finder, you can drag files from one place to another to either copy or move them. It can access your computer or another device on the network via FTP. It gets frequent updates. There's too much to list here, but it's been my file manager for years and the first app I install on a new device. Disclaimer: I'm not involved with it at all, I just like it a lot. This kind of file management is what I miss most about iOS. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jul 19 16:53:38 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 19 Jul 2023 15:53:38 -0500 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> Message-ID: <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> @Matthias: does the upgraded WinSignHelper work with the new hardware eTokens? Those are required now. If so, do the instructions change on how to use your tool? On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: > i've upgraded my free tool WinSignHelper. > > For those who do not know what WinSignHelper is... > It's a GUI for osslsigncode. Osslsigncode is command line tool that can do the Authenticode signing and timestamping. With it you can code sign Windows applications using an appropriate code signing certificate. > > You just drag a folder with your Windows application into WinSignHelper and it signs all components of your standalone (.exe and .dll). > WinSignHelper Help section gives enough information about how to install osslsigncode. > > So if anyone is interested in testing.... > > The version is notarized and is an universal build for X86 and Arm > > Zip > https://dl.qck.nu/?dl=WinSignHelper_universal.zip > > DMG > https://dl.qck.nu/?dl=WinSignHelper_universal.dmg > > > Hope this is of help for one or the other. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Wed Jul 19 17:18:15 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 19 Jul 2023 23:18:15 +0200 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> Message-ID: <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> To be honest, i do not know. I am currently using a cloud code signing certificate which i can only use on Windows. I've chosen the cloud version because of the price, but later i noticed that it seems that those cloud certificates cannot be used on macOS. Or maybe they can, but i do not know how, especially with ossl signcode WinSignHelper uses ossl signcode and currently that tool needs a path to a certificate Do you know where the certificate is stored with the eToken solution? Is it stored also on the eToken or anywhere else on the Mac? If you have the certificate as a physical file it maybe could be possible to select that file in the WinSignHelper prefs. But as i alread wrote, i really don't know exactly. I am currently thinking of purchasing a 2nd certificate as eToken solution, but there is not yet a decision made, if i should spent money for this, as i have a working cloud certificate which expires in 3 years. Regards, Matthias > Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode : > > @Matthias: does the upgraded WinSignHelper work with the new hardware eTokens? Those are required now. > > If so, do the instructions change on how to use your tool? > > > On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >> i've upgraded my free tool WinSignHelper. >> For those who do not know what WinSignHelper is... >> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do the Authenticode signing and timestamping. With it you can code sign Windows applications using an appropriate code signing certificate. >> You just drag a folder with your Windows application into WinSignHelper and it signs all components of your standalone (.exe and .dll). >> WinSignHelper Help section gives enough information about how to install osslsigncode. >> So if anyone is interested in testing.... >> The version is notarized and is an universal build for X86 and Arm >> Zip >> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >> DMG >> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >> Hope this is of help for one or the other. > > > -- > 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 klaus at major-k.de Thu Jul 20 07:00:17 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 13:00:17 +0200 Subject: missing folders in resource folder In-Reply-To: <83E7E2DB-6EBF-4250-B5ED-1591481CEB07@major-k.de> References: <83E7E2DB-6EBF-4250-B5ED-1591481CEB07@major-k.de> Message-ID: <1083FE71-A95E-4CCC-8BBA-C42F29A5C8B9@major-k.de> FYI I added a bug report for this: > Am 18.07.2023 um 21:47 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I added a folder "daten" in the "Copy files" tab in the "Standalone Application settings". > Inside of this folder are five more folders and two of them are EMPTY. > > The two empty folders do NOT appear in the Android runtime if I do: > ... > put specialfolderpath("resources") & "/daten" into tFolder > put folders(tFolder) into fld xyz > ## I only get the NOT empty folders in the field!? > ... > Is this a feature or a bug? -- 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 Jul 20 09:58:31 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 15:58:31 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi all, > Am 18.07.2023 um 21:30 schrieb Klaus major-k via use-livecode : > ... >> We really need LC to give us access to the public documents folder. > The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps > where the user needs to add more files. FYI: there is a feature request for this, please add a comment if you like to have this in the next version: I see that other apps offer something like this, so it IS in fact possible somehow... 8-) 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 Jul 20 11:21:21 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 Jul 2023 10:21:21 -0500 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> Message-ID: <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Thanks Matthias. I've been reading about it and I think the cert is stored on the machine but it is tied to that computer and not exportable. If you get a new computer you need to buy a new certificate. So I don't think I'll experiment, and we'll just do the whole thing on the Windows box. The sad part is that if we'd renewed just a couple of weeks earlier we'd have been within the cutoff date and could have purchased the old type of certificate. If anyone else has used the new token hardware I'd be grateful for any tips or suggestions. This is all new to me. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 19, 2023 4:20:23 PM matthias rebbe via use-livecode wrote: > To be honest, i do not know. > I am currently using a cloud code signing certificate which i can only use > on Windows. > I've chosen the cloud version because of the price, but later i noticed > that it seems that those cloud certificates cannot be used on macOS. > Or maybe they can, but i do not know how, especially with ossl signcode > WinSignHelper uses ossl signcode and currently that tool needs a path to a > certificate > > Do you know where the certificate is stored with the eToken solution? Is it > stored also on the eToken or anywhere else on the Mac? > If you have the certificate as a physical file it maybe could be possible > to select that file in the WinSignHelper prefs. > > But as i alread wrote, i really don't know exactly. > > I am currently thinking of purchasing a 2nd certificate as eToken solution, > but there is not yet a decision made, if i should spent money for this, as > i have a working cloud certificate which expires in 3 years. > > Regards, > Matthias > >> Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode >> : >> >> @Matthias: does the upgraded WinSignHelper work with the new hardware >> eTokens? Those are required now. >> >> If so, do the instructions change on how to use your tool? >> >> >> On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >>> i've upgraded my free tool WinSignHelper. >>> For those who do not know what WinSignHelper is... >>> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do >>> the Authenticode signing and timestamping. With it you can code sign >>> Windows applications using an appropriate code signing certificate. >>> You just drag a folder with your Windows application into WinSignHelper and >>> it signs all components of your standalone (.exe and .dll). >>> WinSignHelper Help section gives enough information about how to install >>> osslsigncode. >>> So if anyone is interested in testing.... >>> The version is notarized and is an universal build for X86 and Arm >>> Zip >>> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >>> DMG >>> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >>> Hope this is of help for one or the other. >> >> >> -- >> 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 klaus at major-k.de Thu Jul 20 12:14:21 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 18:14:21 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Hi all, > Am 20.07.2023 um 15:58 schrieb Klaus major-k via use-livecode : > Hi all, > >> Am 18.07.2023 um 21:30 schrieb Klaus major-k via use-livecode : >> ... >>> We really need LC to give us access to the public documents folder. >> The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps >> where the user needs to add more files. > FYI: there is a feature request for this, please add a comment if you like to have this in the next version: > > I see that other apps offer something like this, so it IS in fact possible somehow... 8-) someone from a german bass player forum sent me an screenshot of the app "MobileSheets": This appears after clicking the PLUS sign (or "Import" button?) in that app, which looks like a "regular" "Open..." dialog: So I dare to naively ask: Why can't LC offer something like this? 8-) 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 Jul 20 12:17:17 2023 From: klaus at major-k.de (Klaus major-k) Date: Thu, 20 Jul 2023 18:17:17 +0200 Subject: Android and USB footswitch In-Reply-To: References: Message-ID: Am 20.07.2023 um 18:14 schrieb Klaus major-k via use-livecode : > > Hi all, > >> Am 20.07.2023 um 15:58 schrieb Klaus major-k via use-livecode : >> Hi all, >> >>> Am 18.07.2023 um 21:30 schrieb Klaus major-k via use-livecode : >>> ... >>>> We really need LC to give us access to the public documents folder. >>> The "Downloads" or "Documents" folder would be a good start, otherwise we cannot create apps >>> where the user needs to add more files. >> FYI: there is a feature request for this, please add a comment if you like to have this in the next version: >> >> I see that other apps offer something like this, so it IS in fact possible somehow... 8-) > > someone from a german bass player forum sent me an screenshot of the app "MobileSheets": > > > This appears after clicking the PLUS sign (or "Import" button?) in that app, which looks like a "regular" "Open..." dialog: > Received another screenshot, this is from the app "Songbook Pro": -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From gcanyon at gmail.com Thu Jul 20 15:33:31 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 20 Jul 2023 12:33:31 -0700 Subject: Has anyone experimented with using Python within LC? Message-ID: I've now figured out that calling a Python file from within LC is as easy as: put shell(quote & "" & quote && quote & "" & quote) Then whatever gets print()'ed in Python gets returned to LC. Has anyone done work this way and has ideas on best practices for some sort of 1. generate python code 2. write python code to a file 3. write data to a (separate?) file 4. call the code 5. process the results ...loop? gc From matthias_livecode_150811 at m-r-d.de Thu Jul 20 17:18:52 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 20 Jul 2023 23:18:52 +0200 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: > Am 20.07.2023 um 17:21 schrieb J. Landman Gay via use-livecode : > > Thanks Matthias. I've been reading about it and I think the cert is stored on the machine but it is tied to that computer and not exportable. > If you get a new computer you need to buy a new certificate. I don't think that is true. The new type of certificate has to be stored on a secure device. That's what the eToken is for. The private key is also stored on the eToken and the certificate and the private key cannot be exported. You should be able to use that token on multiple computers. You just have to install the eToken driver to an other computer and attach the eToken to it. This is what Trustzone is saying about it: "The token-based type of Standard Code Signing certificates can also be used on multiple computers. The same goes for token-based EV certificates. But no token-based certificate can ever be used simultaneously on two computers since the SafeNet token can only be plugged into one computer at a time." As i never had such eToken, i do not know, if the certificate and the private key can be accessed as files through Finder. And what extension do they have. I've read the osslsigncode can use also certificates and key files with .cem extension. So if the eToken contains such files, WinSignHelper could be slightly adjusted to work with the eToken. But that's just an assumption. Matthias > So I don't think I'll experiment, and we'll just do the whole thing on the Windows box. > > The sad part is that if we'd renewed just a couple of weeks earlier we'd have been within the cutoff date and could have purchased the old type of certificate. > Same here. I was about 5 days to late otherwise i could have ordered the olde type. > If anyone else has used the new token hardware I'd be grateful for any tips or suggestions. This is all new to me. I am using a cloud based OV certificate from Certum. I just need to install the Software SimplySign Desktop. The software "integrates" the certificate into Windows' certificate storage (or what ever this is called) after i logged in using that SimplySign Desktop software. Microsoft's signtool can then directly access the certificate. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 19, 2023 4:20:23 PM matthias rebbe via use-livecode wrote: > >> To be honest, i do not know. >> I am currently using a cloud code signing certificate which i can only use on Windows. >> I've chosen the cloud version because of the price, but later i noticed that it seems that those cloud certificates cannot be used on macOS. >> Or maybe they can, but i do not know how, especially with ossl signcode >> WinSignHelper uses ossl signcode and currently that tool needs a path to a certificate >> >> Do you know where the certificate is stored with the eToken solution? Is it stored also on the eToken or anywhere else on the Mac? >> If you have the certificate as a physical file it maybe could be possible to select that file in the WinSignHelper prefs. >> >> But as i alread wrote, i really don't know exactly. >> >> I am currently thinking of purchasing a 2nd certificate as eToken solution, but there is not yet a decision made, if i should spent money for this, as i have a working cloud certificate which expires in 3 years. >> >> Regards, >> Matthias >> >>> Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode : >>> >>> @Matthias: does the upgraded WinSignHelper work with the new hardware eTokens? Those are required now. >>> >>> If so, do the instructions change on how to use your tool? >>> >>> >>> On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >>>> i've upgraded my free tool WinSignHelper. >>>> For those who do not know what WinSignHelper is... >>>> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do the Authenticode signing and timestamping. With it you can code sign Windows applications using an appropriate code signing certificate. >>>> You just drag a folder with your Windows application into WinSignHelper and it signs all components of your standalone (.exe and .dll). >>>> WinSignHelper Help section gives enough information about how to install osslsigncode. >>>> So if anyone is interested in testing.... >>>> The version is notarized and is an universal build for X86 and Arm >>>> Zip >>>> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >>>> DMG >>>> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >>>> Hope this is of help for one or the other. >>> >>> >>> -- >>> 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 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 20 17:46:14 2023 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 20 Jul 2023 17:46:14 -0400 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <000301d9bb53$9e35dcb0$daa19610$@net> Late to the game... I use the same method for PHP. I needed to batch minify html/js/css files. There is a great PHP script to do it. Batch it up with LC and one button did it all. There is a ton of open source useful PHP that can be integrated with ease to LC. I'll remember this if I need some Python in the future. Thanks Geoff. 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 Geoff Canyon via use-livecode Sent: Thursday, July 20, 2023 3:34 PM To: How to use LiveCode Cc: Geoff Canyon Subject: Has anyone experimented with using Python within LC? I've now figured out that calling a Python file from within LC is as easy as: put shell(quote & "" & quote && quote & "" & quote) Then whatever gets print()'ed in Python gets returned to LC. Has anyone done work this way and has ideas on best practices for some sort of 1. generate python code 2. write python code to a file 3. write data to a (separate?) file 4. call the code 5. process the results ...loop? gc _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 20 19:06:33 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 20 Jul 2023 23:06:33 +0000 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> Interesting. Ostensibly you could use low level file commands to create they python file? Or does the Python script need to be processed by Python first? Bob S > On Jul 20, 2023, at 12:33 PM, Geoff Canyon via use-livecode wrote: > > I've now figured out that calling a Python file from within LC is as easy > as: > > put shell(quote & "" & quote && quote & > "" & quote) > > Then whatever gets print()'ed in Python gets returned to LC. Has anyone > done work this way and has ideas on best practices for some sort of > > 1. generate python code > 2. write python code to a file > 3. write data to a (separate?) file > 4. call the code > 5. process the results > > ...loop? > > gc From ambassador at fourthworld.com Thu Jul 20 20:46:01 2023 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 21 Jul 2023 00:46:01 +0000 Subject: permanency of an unsigned Android app on the phone? Message-ID: <20230721004601.Horde.aP-Ql3HW-fSr7CTgL4AVx_6@hub.4wsys.com> J. Landman Gay jacque wrote: > Depending on the Android version the user may need to bypass > a scary warning, accept some permissions, and turn on the ability > to download from unknown sources in system settings   ...and after the app is installed then immediatel turn sideloading back off.   It's powerful.  And the bad guys know it.  Don't run with it turned on.   -- Richard Gaskin Fourth World System   From ambassador at fourthworld.com Thu Jul 20 20:52:58 2023 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 21 Jul 2023 00:52:58 +0000 Subject: What is your best practice for setting a script in a script? Message-ID: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> Paul Dupuis wrote: > So in the instances where you have a script that creates an object > and then sets the script of that object (example below), what is you > best practice for having the script in a script and still be readable?   Why?   Among other concerns (robustness, debugging, maintenance), setting the script of an object requires turning off script encryption.   Dick Kriesel wrote: > Hi, Paul. The best way to set the script may be not to; that is, instead > set the new objects behavior to a button that contains the readable script.   ^ this.   Simple, clean, with-the-grain.   Know the engine. Trust the engine. Use the engine.   --   Richard Gaskin Fourth World System   From gcanyon at gmail.com Thu Jul 20 21:20:35 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 20 Jul 2023 18:20:35 -0700 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> References: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> Message-ID: I just checked, and this in a stack script works perfectly: function pythonFile p put the filename of this stack into fp set the itemdel to "/" put the long seconds into fn replace "." with "_" in fn put "_temp.py" after fn put fn into item -1 of fp put p into url ("file:" & fp) return shell(quote & "" & quote && quote & fp & quote) end pythonFile In the real world you'd probably want to set up a single external file (or set of files? if performance is important and the files need to be used repeatedly?) and check to make sure you're not accidentally overwriting something. On Thu, Jul 20, 2023 at 4:07 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Interesting. Ostensibly you could use low level file commands to create > they python file? Or does the Python script need to be processed by Python > first? > > Bob S > > > > On Jul 20, 2023, at 12:33 PM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I've now figured out that calling a Python file from within LC is as easy > > as: > > > > put shell(quote & "" & quote && quote & > > "" & quote) > > > > Then whatever gets print()'ed in Python gets returned to LC. Has anyone > > done work this way and has ideas on best practices for some sort of > > > > 1. generate python code > > 2. write python code to a file > > 3. write data to a (separate?) file > > 4. call the code > > 5. process the results > > > > ...loop? > > > > gc > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 20 23:47:57 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 Jul 2023 22:47:57 -0500 Subject: OT - a new release of WinSignHelper for macOS In-Reply-To: References: <55243856-963F-4771-A49E-BA6BE3496E0E@m-r-d.de> <3f7dc1f4-fd3a-7e26-9c8d-ae6171c0380c@hyperactivesw.com> <94065A6E-BD87-4BA3-9AEA-FD98138A0A06@m-r-d.de> <18973e42d68.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <189768fb5c8.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Very useful info, thank you. Especially the part about using the token on different machines. I was duped into believing everything I read on the internet. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 20, 2023 4:20:59 PM matthias rebbe via use-livecode wrote: >> Am 20.07.2023 um 17:21 schrieb J. Landman Gay via use-livecode >> : >> >> Thanks Matthias. I've been reading about it and I think the cert is stored >> on the machine but it is tied to that computer and not exportable. > > >> If you get a new computer you need to buy a new certificate. > I don't think that is true. The new type of certificate has to be stored on > a secure device. That's what the eToken is for. The private key is also > stored on the eToken and the certificate and the private key cannot be > exported. You should be able to use that token on multiple computers. You > just have to install the eToken driver to an other computer and attach the > eToken to it. > > This is what Trustzone is saying about it: > "The token-based type of Standard Code Signing certificates can also be > used on multiple computers. The same goes for token-based EV certificates. > But no token-based certificate can ever be used simultaneously on two > computers since the SafeNet token can only be plugged into one computer at > a time." > > As i never had such eToken, i do not know, if the certificate and the > private key can be accessed as files through Finder. And what extension do > they have. I've read the osslsigncode can use also certificates and key > files with .cem extension. > So if the eToken contains such files, WinSignHelper could be slightly > adjusted to work with the eToken. But that's just an assumption. > > Matthias > > >> So I don't think I'll experiment, and we'll just do the whole thing on the >> Windows box. >> >> The sad part is that if we'd renewed just a couple of weeks earlier we'd >> have been within the cutoff date and could have purchased the old type of >> certificate. >> > Same here. I was about 5 days to late otherwise i could have ordered the > olde type. > > >> If anyone else has used the new token hardware I'd be grateful for any tips >> or suggestions. This is all new to me. > > I am using a cloud based OV certificate from Certum. I just need to install > the Software SimplySign Desktop. The software "integrates" the certificate > into Windows' certificate storage (or what ever this is called) after i > logged in using that SimplySign Desktop software. > Microsoft's signtool can then directly access the certificate. > > >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On July 19, 2023 4:20:23 PM matthias rebbe via use-livecode >> wrote: >> >>> To be honest, i do not know. >>> I am currently using a cloud code signing certificate which i can only use >>> on Windows. >>> I've chosen the cloud version because of the price, but later i noticed >>> that it seems that those cloud certificates cannot be used on macOS. >>> Or maybe they can, but i do not know how, especially with ossl signcode >>> WinSignHelper uses ossl signcode and currently that tool needs a path to a >>> certificate >>> >>> Do you know where the certificate is stored with the eToken solution? Is it >>> stored also on the eToken or anywhere else on the Mac? >>> If you have the certificate as a physical file it maybe could be possible >>> to select that file in the WinSignHelper prefs. >>> >>> But as i alread wrote, i really don't know exactly. >>> >>> I am currently thinking of purchasing a 2nd certificate as eToken solution, >>> but there is not yet a decision made, if i should spent money for this, as >>> i have a working cloud certificate which expires in 3 years. >>> >>> Regards, >>> Matthias >>> >>>> Am 19.07.2023 um 22:53 schrieb J. Landman Gay via use-livecode >>>> : >>>> >>>> @Matthias: does the upgraded WinSignHelper work with the new hardware >>>> eTokens? Those are required now. >>>> >>>> If so, do the instructions change on how to use your tool? >>>> >>>> >>>> On 12/23/22 10:44 AM, matthias rebbe via use-livecode wrote: >>>>> i've upgraded my free tool WinSignHelper. >>>>> For those who do not know what WinSignHelper is... >>>>> It's a GUI for osslsigncode. Osslsigncode is command line tool that can do >>>>> the Authenticode signing and timestamping. With it you can code sign >>>>> Windows applications using an appropriate code signing certificate. >>>>> You just drag a folder with your Windows application into WinSignHelper and >>>>> it signs all components of your standalone (.exe and .dll). >>>>> WinSignHelper Help section gives enough information about how to install >>>>> osslsigncode. >>>>> So if anyone is interested in testing.... >>>>> The version is notarized and is an universal build for X86 and Arm >>>>> Zip >>>>> https://dl.qck.nu/?dl=WinSignHelper_universal.zip >>>>> DMG >>>>> https://dl.qck.nu/?dl=WinSignHelper_universal.dmg >>>>> Hope this is of help for one or the other. >>>> >>>> >>>> -- >>>> 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 >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 20 23:59:59 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 20 Jul 2023 22:59:59 -0500 Subject: permanency of an unsigned Android app on the phone? In-Reply-To: <20230721004601.Horde.aP-Ql3HW-fSr7CTgL4AVx_6@hub.4wsys.com> References: <20230721004601.Horde.aP-Ql3HW-fSr7CTgL4AVx_6@hub.4wsys.com> Message-ID: <189769aba18.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> On July 20, 2023 7:48:13 PM Richard Gaskin via use-livecode wrote: > J. Landman Gay jacque wrote: >> Depending on the Android version the user > may need to bypass >> a scary warning, accept some permissions, and turn on > the ability >> to download from unknown sources in system settings > > ...and after the app is installed then immediatel turn sideloading back off. > > It's powerful. And the bad guys know it. Don't run with it turned on. One nice thing about Android 13 (and I think 12?) is that it allows you to permit downloads by app, rather than toggling a global property. That way you don't need to turn on unknown sources in system settings. Of course, you can still get yourself in trouble if you give permissions to your browser and then binge download everything you see. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gcanyon at gmail.com Fri Jul 21 03:48:56 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 21 Jul 2023 00:48:56 -0700 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: <823665C7-89A2-407C-A26B-11B98036DC4F@iotecdigital.com> Message-ID: This stack script hacks in support for arbitrary parameters to be passed in easily. You can, of course, do the same by including functions in the python script, and then calling them in the shell statement. That's how I started this journey, but it requires escaping things to make them shell-compatible. This might be especially weird to do because of python's flexible handling of double and single quotes. This way the data can be passed in as you intend to use it, the only limitation being that it all starts as text. Still, it works a treat. Note: this doesn't check for file existence before writing them, although it seems unlikely that anyone would have files named e.g. 89914707287616_data.txt. Also, this doesn't re-use any files, so repeated calls quickly pile up. This is far from a usable function. The round-trip cost of doing things this way is maybe something like a tenth of a second(?) so this is likely only for when you have a lot of backend processing to do. local fnb function pythonFile p put the filename of this stack into fp set the itemdel to "/" if fnb is empty then put the long seconds into fnb replace "." with empty in fnb delete char 1 to 2 of fnb end if if paramCount() > 1 then put "exData = {}" & cr into fileHeader repeat with i = 2 to paramCount() add 1 to fnb put fnb & "_data.txt" into fn put fn into item -1 of fp put param(i) into url ("file:" & fp) put merge("with open('[[fp]]', 'r') as f:[[cr]]") after fileHeader put merge(" exData[ [[i - 2]] ] = f.read()[[cr]]") after fileHeader end repeat put fileHeader & cr before p end if add 1 to fnb put fnb & "_temp.py" into fn put fn into item -1 of fp put p into url ("file:" & fp) return shell(quote & "/Users/gcanyon/opt/anaconda3/bin/python" & quote && quote & fp & quote) end pythonFile On Thu, Jul 20, 2023 at 6:20 PM Geoff Canyon wrote: > I just checked, and this in a stack script works perfectly: > > function pythonFile p > put the filename of this stack into fp > set the itemdel to "/" > put the long seconds into fn > replace "." with "_" in fn > put "_temp.py" after fn > put fn into item -1 of fp > put p into url ("file:" & fp) > return shell(quote & "" & quote && quote & fp & quote) > end pythonFile > > In the real world you'd probably want to set up a single external file (or > set of files? if performance is important and the files need to be used > repeatedly?) and check to make sure you're not accidentally overwriting > something. > > On Thu, Jul 20, 2023 at 4:07 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Interesting. Ostensibly you could use low level file commands to create >> they python file? Or does the Python script need to be processed by Python >> first? >> >> Bob S >> >> >> > On Jul 20, 2023, at 12:33 PM, Geoff Canyon via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > I've now figured out that calling a Python file from within LC is as >> easy >> > as: >> > >> > put shell(quote & "" & quote && quote & >> > "" & quote) >> > >> > Then whatever gets print()'ed in Python gets returned to LC. Has anyone >> > done work this way and has ideas on best practices for some sort of >> > >> > 1. generate python code >> > 2. write python code to a file >> > 3. write data to a (separate?) file >> > 4. call the code >> > 5. process the results >> > >> > ...loop? >> > >> > gc >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Jul 21 11:20:27 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Jul 2023 15:20:27 +0000 Subject: What is your best practice for setting a script in a script? In-Reply-To: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> Message-ID: <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> I wanted to ask why as well. You can put all the scripts necessary in a card, and if you need to know the actual object the user interacted with use the target command. Eg. Local lTargetID On mouseUp Put the long id of the target into lTargetID /* Your script here */ End mouseUp Bob S > On Jul 20, 2023, at 5:52 PM, Richard Gaskin via use-livecode wrote: > > Paul Dupuis wrote: >> So in the instances where you have a script that creates an object >> and then sets the script of that object (example below), what is you >> best practice for having the script in a script and still be readable? > > Why? > > Among other concerns (robustness, debugging, maintenance), setting the script of an object requires turning off script encryption. > > Dick Kriesel wrote: >> > > Hi, Paul. The best way to set the script may be not to; that is, instead >> set the new object’s behavior to a button that contains the readable script. > > ^ this. > > Simple, clean, with-the-grain. > > Know the engine. > Trust the engine. > Use the engine. > > -- > Richard Gaskin > Fourth World System From paul at researchware.com Fri Jul 21 12:10:53 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 21 Jul 2023 12:10:53 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> Message-ID: <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> As some people on this list and the forums have explored in the past, I have a interest in creating a Livecode application (stack) entirely from a (text only) single script. So there are initially no Livecode objects to place a behavior script in. There are initially no buttons, fields, cards, stacks, or anything else. Yes, one of the values of Livecode is an interactive IDE for UI design (and refinement), but for this specific interest, it is all about creating the UI - in fact the whole app - from a single script. From craig at starfirelighting.com Fri Jul 21 13:16:08 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 21 Jul 2023 13:16:08 -0400 Subject: What is your best practice for setting a script in a script? In-Reply-To: <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> Message-ID: Paul. I assume you have a blueprint of what will become a stack with at least one card? And that stack will possibly contain other cards, controls, scripts and behaviors? But since all objects have properties, including scripts, and since LC has the “create” command, whatever you want to do seems straightforward, if not simple. You must have the IDE open to even start, of course, so you are already “in” LC. Why not just do it the old fashioned way? The end result will be a stack, correct? What is the advantage of not starting with a stack? Craig > On Jul 21, 2023, at 12:10 PM, Paul Dupuis via use-livecode wrote: > > As some people on this list and the forums have explored in the past, I have a interest in creating a Livecode application (stack) entirely from a (text only) single script. So there are initially no Livecode objects to place a behavior script in. There are initially no buttons, fields, cards, stacks, or anything else. > > Yes, one of the values of Livecode is an interactive IDE for UI design (and refinement), but for this specific interest, it is all about creating the UI - in fact the whole app - from a single script. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Jul 21 13:51:52 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 21 Jul 2023 10:51:52 -0700 Subject: What is your best practice for setting a script in a script? In-Reply-To: <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> Message-ID: Way back when (in the metacard era) I wrote code to create an XML representation of a stack, and build a copy of the stack from that XML file. Oh, I just checked and I still have a copy of the file. It almost certainly does not address all the nuances that have been added since then -- behaviors, widgets, and more -- but if you want a copy you're welcome to it. gc On Fri, Jul 21, 2023 at 9:12 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > As some people on this list and the forums have explored in the past, I > have a interest in creating a Livecode application (stack) entirely from > a (text only) single script. So there are initially no Livecode objects > to place a behavior script in. There are initially no buttons, fields, > cards, stacks, or anything else. > > Yes, one of the values of Livecode is an interactive IDE for UI design > (and refinement), but for this specific interest, it is all about > creating the UI - in fact the whole app - from a single script. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dan at clearvisiontech.com Fri Jul 21 17:01:15 2023 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 21 Jul 2023 21:01:15 +0000 Subject: Query Android Version Code In-Reply-To: References: <20230721005258.Horde.fGWFLX7QeysnQIb4kFMIKDN@hub.4wsys.com> <238B28B2-9D91-4156-81BC-0C4EB7CE7F07@iotecdigital.com> <8a40bc65-b369-3673-37ad-5702eee68f5d@researchware.com> Message-ID: Does anyone know if there is a way to query the “Version Code” that you enter in the Application Settings screen? -Dan From bobsneidar at iotecdigital.com Fri Jul 21 19:40:58 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 21 Jul 2023 23:40:58 +0000 Subject: Speed Improvements Message-ID: Hi all. I put a compiled version of Forms Generator 8 on a PC recently, and I would like to say that the speed improvements are very substantial from what I was experiencing in the past. SQL queries as well as file operation seem to be almost as fast as on my MacOS laptop. I would not hesitate to distribute a Windows app now, whereas before I would have been hard pressed. I will say that I streamlined my code to ensure I was not inadvertently re-querying for the same data, and the VM I am running it on has been migrated to another server, but even still I had tested on new PCs with SSD drives in the past and was getting disappointing results, whereas now I can hardly blink and a full query dataset is loaded and displayed. Kudos to the dev team! Bob S From prothero at earthlearningsolutions.org Fri Jul 21 20:02:24 2023 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Fri, 21 Jul 2023 17:02:24 -0700 Subject: Question re download timeout setting Message-ID: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Folks: Sorry for the trivial question, but.. I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. Could you direct me to a simple explanation about how to set a reasonable internet not connected message? Thanks, Bill put "https://"&theURL&"/test.html" into theURL put URL theURL into tOutput —if the request times out, the output is not received. if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful return true else return false end if From alex at tweedly.net Fri Jul 21 20:49:17 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 22 Jul 2023 01:49:17 +0100 Subject: Question re download timeout setting In-Reply-To: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: On 22/07/2023 01:02, prothero--- via use-livecode wrote: > Folks: > Sorry for the trivial question, but.. > I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. > > I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL command seems to hang forever. Ive looked for a way to set the timeout for an internet command, but. cant,. > > Could you direct me to a simple explanation about how to set a reasonable internet not connected message? > .... not thoroughly tested .... You should, I think, be able to do this using tsNetSetTimeouts. But I wouldn't :-) I'd do something like the following - I've tested some, but not all, failure cases, but haven't tested a successful url. > local sEventID > > -- neverhappens.com is a website - returns "Forbidden" > -- nevehapens.com isn't, so almost immediately returns "can't be reached" > -- I didn't test a properly working case :-) > > constant KURL = "http://neverhappens.com" > > on mouseup >    load url kURL with message "gotareply" >    send "timetocheck failed" to me in 10 seconds     -- or whatever > timeout you want >    put the result into sEventID > end mouseup > > on gotareply pURL, pURLStatus >    cancel sEventID >    timetocheck pURLStatus > end gotareply > > on timetocheck pWhat >    local tAnswer >    put "time to check" && pWhat &CR after msg >    if pWhat = "loaded" then >       put URL kURL into tAnswer >       if tAnswer contains "mycode" then >          -- Internet is good >          put "Internet is good" &CR after msg >       end if >    end if >    -- Internet problematic >    put "problem" &CR after msg >    if pWhat = "error" then put libUrlErrorData(kURL) &CR after msg > >    unload URL KURL > end timetocheck Alex. From alanstenhouse at hotmail.com Fri Jul 21 21:36:01 2023 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sat, 22 Jul 2023 11:06:01 +0930 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: Hi Geoff Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: on runPythonScript pScript put the tempname &".py" into tFile put pScript into URL ("binfile:" & tFile) put shell("" && tFile) into fld "output" end runPythonScript Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused... cheers Alan From bobsneidar at iotecdigital.com Fri Jul 21 22:09:04 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 22 Jul 2023 02:09:04 +0000 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Out of curiosity, what can be done in in Python that cannot be done in LC Script? Sent from my iPhone > On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode wrote: > > Hi Geoff > > Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: > > > on runPythonScript pScript > put the tempname &".py" into tFile > put pScript into URL ("binfile:" & tFile) > put shell("" && tFile) into fld "output" > end runPythonScript > > Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused... > > cheers > Alan > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 21 23:29:38 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 22 Jul 2023 03:29:38 +0000 Subject: Question re download timeout setting In-Reply-To: References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: Use sockets to test the connection. Open socket to If the result is not empty then… Close socket Sent from my iPhone > On Jul 21, 2023, at 17:49, Alex Tweedly via use-livecode wrote: > >  >> On 22/07/2023 01:02, prothero--- via use-livecode wrote: >> Folks: >> Sorry for the trivial question, but.. >> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >> >> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. >> >> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >> > .... not thoroughly tested .... > > You should, I think, be able to do this using tsNetSetTimeouts. But I wouldn't :-) > > I'd do something like the following - I've tested some, but not all, failure cases, but haven't tested a successful url. > > >> local sEventID >> >> -- neverhappens.com is a website - returns "Forbidden" >> -- nevehapens.com isn't, so almost immediately returns "can't be reached" >> -- I didn't test a properly working case :-) >> >> constant KURL = "http://neverhappens.com" >> >> on mouseup >> load url kURL with message "gotareply" >> send "timetocheck failed" to me in 10 seconds -- or whatever timeout you want >> put the result into sEventID >> end mouseup >> >> on gotareply pURL, pURLStatus >> cancel sEventID >> timetocheck pURLStatus >> end gotareply >> >> on timetocheck pWhat >> local tAnswer >> put "time to check" && pWhat &CR after msg >> if pWhat = "loaded" then >> put URL kURL into tAnswer >> if tAnswer contains "mycode" then >> -- Internet is good >> put "Internet is good" &CR after msg >> end if >> end if >> -- Internet problematic >> put "problem" &CR after msg >> if pWhat = "error" then put libUrlErrorData(kURL) &CR after msg >> >> unload URL KURL >> end timetocheck > > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sat Jul 22 07:30:38 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sat, 22 Jul 2023 13:30:38 +0200 Subject: Question re download timeout setting In-Reply-To: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> Hello Bill, since V8 or so tsNET external is included in any commercial/business license. Even put URL "ftp: or http: will be executed with tsNET by liburl. So in case you did not manually disabletsNET for your app, you could use tsNetSetTimeouts to set timeout values. By default tsNET does not limit the time a request could take and that might be the reason why the put URL takes forever. The Syntax looks like this tsNetSetTimeouts pDnsCacheTimeout, pRequestTimeoutMS, pConnectTimeoutMS, pAcceptTimeoutMS, pLowSpeedTime, pLowSpeedLimit The second parameter is responsible for the request timeout and has to be set in milliseconds. So for example tsNetSetTimeouts 30, 33000, 300000, 60000, 30, 1000 would set the request timeout to 33 seconds. The other values in my example are the default values. After the timeout the script continues and you could check if the put command returned the expected value. Regards, Matthias > Am 22.07.2023 um 02:02 schrieb prothero--- via use-livecode : > > Folks: > Sorry for the trivial question, but.. > I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. > > I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. > > Could you direct me to a simple explanation about how to set a reasonable internet not connected message? > > Thanks, > Bill > put "https://"&theURL&"/test.html" into theURL > > put URL theURL into tOutput —if the request times out, the output is not received. > > if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful > > return true > > else > > return false > > end if > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Sat Jul 22 07:45:00 2023 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 22 Jul 2023 12:45:00 +0100 Subject: Question re download timeout setting In-Reply-To: References: <0365CED5-01E0-4935-8D79-53AAF9260366@earthlearningsolutions.org> Message-ID: On 22/07/2023 04:29, Bob Sneidar via use-livecode wrote: > Use sockets to test the connection. > > Open socket to > If the result is not empty then > Close socket Hmmm - I have tried it but not got reliable results. According to the dictionary that won't work reliably. Dictionary says: > (4.5) The open socket command no longer blocks on DNS resolution. > > Instead, if resolution is required the command will return immediately > > and the DNS lookup will happen in the background. If resolution fails, > > then a socketError message is sent in the same was as if connection > > fails. > So if you need a DNS resolution, you'll get an empty result - and a later socketError message. Your suggested code takes the empty result as a sign things are working - when they may not be. (When I try to connect to a non existent host:port, I do get the empty result, but I don't seem to be getting the socketError messages. So there may be a bug in there - I'll try to track it down more closely, and if I can get anything reliable, submit a bug report). btw - livekode.com was my first attempt at a  "non-existent host" - and it does exist !! Alex. >> On Jul 21, 2023, at 17:49, Alex Tweedly via use-livecode wrote: >> >> >>> On 22/07/2023 01:02, prothero--- via use-livecode wrote: >>> Folks: >>> Sorry for the trivial question, but.. >>> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >>> >>> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL command seems to hang forever. Ive looked for a way to set the timeout for an internet command, but. cant,. >>> >>> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >>> >> .... not thoroughly tested .... >> >> You should, I think, be able to do this using tsNetSetTimeouts. But I wouldn't :-) >> >> I'd do something like the following - I've tested some, but not all, failure cases, but haven't tested a successful url. >> >> >>> local sEventID >>> >>> -- neverhappens.com is a website - returns "Forbidden" >>> -- nevehapens.com isn't, so almost immediately returns "can't be reached" >>> -- I didn't test a properly working case :-) >>> >>> constant KURL = "http://neverhappens.com" >>> >>> on mouseup >>> load url kURL with message "gotareply" >>> send "timetocheck failed" to me in 10 seconds -- or whatever timeout you want >>> put the result into sEventID >>> end mouseup >>> >>> on gotareply pURL, pURLStatus >>> cancel sEventID >>> timetocheck pURLStatus >>> end gotareply >>> >>> on timetocheck pWhat >>> local tAnswer >>> put "time to check" && pWhat &CR after msg >>> if pWhat = "loaded" then >>> put URL kURL into tAnswer >>> if tAnswer contains "mycode" then >>> -- Internet is good >>> put "Internet is good" &CR after msg >>> end if >>> end if >>> -- Internet problematic >>> put "problem" &CR after msg >>> if pWhat = "error" then put libUrlErrorData(kURL) &CR after msg >>> >>> unload URL KURL >>> end timetocheck >> >> Alex. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 22 10:50:33 2023 From: hakan at exformedia.se (Hakan@exformedia.se) Date: Sat, 22 Jul 2023 16:50:33 +0200 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> References: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Message-ID: <3281613D-8C64-49C3-B998-37ABA614E425@exformedia.se> Probably not much, but there are a lot of libraries that exist for python that you might want to use to save time. > 22 juli 2023 kl. 04:11 skrev Bob Sneidar via use-livecode : > > Out of curiosity, what can be done in in Python that cannot be done in LC Script? > > Sent from my iPhone > >> On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode wrote: >> >> Hi Geoff >> >> Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: >> >> >> on runPythonScript pScript >> put the tempname &".py" into tFile >> put pScript into URL ("binfile:" & tFile) >> put shell("" && tFile) into fld "output" >> end runPythonScript >> >> Was starting to provide an interface for experiment parameters for the scripts I was running (for some Turi ML classifications) but the project paused... >> >> cheers >> Alan >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Sat Jul 22 10:55:43 2023 From: prothero at earthlearningsolutions.org (William Prothero) Date: Sat, 22 Jul 2023 07:55:43 -0700 Subject: Question re download timeout setting In-Reply-To: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> References: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> Message-ID: Matthias, I'll try it. Thanks so much for your help. Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Jul 22, 2023, at 4:32 AM, matthias rebbe via use-livecode wrote: > > Hello Bill, > > since V8 or so tsNET external is included in any commercial/business license. > Even put URL "ftp: or http: will be executed with tsNET by liburl. > > So in case you did not manually disabletsNET for your app, you could use tsNetSetTimeouts to set timeout values. > By default tsNET does not limit the time a request could take and that might be the reason why the put URL takes forever. > > The Syntax looks like this > tsNetSetTimeouts pDnsCacheTimeout, pRequestTimeoutMS, pConnectTimeoutMS, pAcceptTimeoutMS, pLowSpeedTime, pLowSpeedLimit > > The second parameter is responsible for the request timeout and has to be set in milliseconds. > > So for example > > tsNetSetTimeouts 30, 33000, 300000, 60000, 30, 1000 > > would set the request timeout to 33 seconds. The other values in my example are the default values. > > After the timeout the script continues and you could check if the put command returned the expected value. > > > > Regards, > Matthias > > > >> Am 22.07.2023 um 02:02 schrieb prothero--- via use-livecode : >> >> Folks: >> Sorry for the trivial question, but.. >> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >> >> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. >> >> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >> >> Thanks, >> Bill >> put "https://"&theURL&"/test.html" into theURL >> >> put URL theURL into tOutput —if the request times out, the output is not received. >> >> if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful >> >> return true >> >> else >> >> return false >> >> end if >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sat Jul 22 13:11:52 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 22 Jul 2023 10:11:52 -0700 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> References: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Message-ID: Both are turing complete, so there's technically nothing one can do that the other can't, but some examples: Suppose you want to generate prime numbers. In LiveCode you might write this algorithm: https://github.com/gcanyon/primelist Generating the primes up to 1,000,000 takes over 1.3 seconds on my M1 MacBook. In Python, using a less efficient algorithm, the same takes 0.3 seconds. Import the numpy library and use a more efficient algorithm like so: def prime6(upto=1000000): primes=arange(3,upto+1,2) isprime=ones((upto-1)//2,dtype=bool) for factor in primes[:int(sqrt(upto))//2]: if isprime[(factor-2)//2]: isprime[(factor*3-2)//2::factor]=0 return insert(primes[isprime],0,2) And you can get the same result in 0.002 seconds -- over 500 times faster. In LiveCode, if you want to handle large integer math, you write your own library, which takes a ton of time and work to optimize. I did this five years ago: https://github.com/gcanyon/bignum which enables this: on mouseUp repeat 1000 times put "1234567890" after x end repeat put the long seconds into T get bigTimes(x,x) put the long seconds - T into T put T && length(it) end mouseUp I worked hard to optimize that library, and I'm happy to say that runs in about 1.3 seconds. This runs in 0.0004 seconds: from time import perf_counter_ns from math import log10 n = 1234567890 for _ in range(999): n = n * 10**10 + 1234567890 start = perf_counter_ns() n2 = n*n end = perf_counter_ns() print((end - start)/10**9,log10(n2),n2%10**10) Python has numerous syntactic niceties. For example, if you want a function to return a fibonacci list, multiple assignments are nice: def fib(n): i = j = 1 R = [] for _ in range(n): R.append(i) i,j = j,i+j return(R) print(fib(5)) [1, 1, 2, 3, 5] And list comprehensions are wonderful. If you want a dictionary containing perfect squares for odd numbers: L = {i:i**2 for i in range(1,20) if i % 2 == 1} print(L) {1: 1, 3: 9, 5: 25, 7: 49, 9: 81, 11: 121, 13: 169, 15: 225, 17: 289, 19: 361} Obviously you could do that with a "step", but the if can be more complex than that. So reasons you might use Python include: 1. Efficient and convenient syntax 2. Speed 3. Access to vast libraries of code. gc On Fri, Jul 21, 2023 at 7:10 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Out of curiosity, what can be done in in Python that cannot be done in LC > Script? > > Sent from my iPhone > > > On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Geoff > > > > Sorry for not replying earlier but looks like you've got it sorted. I > did a bit on this years ago and am contemplating it again. Just looked for > my old stack and see this script for running a python script and putting > the output into the "output" fld: > > > > > > on runPythonScript pScript > > put the tempname &".py" into tFile > > put pScript into URL ("binfile:" & tFile) > > put shell("" && tFile) into fld "output" > > end runPythonScript > > > > Was starting to provide an interface for experiment parameters for the > scripts I was running (for some Turi ML classifications) but the project > paused... > > > > cheers > > Alan > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alanstenhouse at hotmail.com Sat Jul 22 20:02:11 2023 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 23 Jul 2023 09:32:11 +0930 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: :-) For example, interfacing to machine learning (& associated) libraries for creating + running ML models (in my test case). > On 23 Jul 2023, at 1:30 am, use-livecode-request at lists.runrev.com wrote: > > Probably not much, but there are a lot of libraries that exist for python that you might want to use to save time. > >> 22 juli 2023 kl. 04:11 skrev Bob Sneidar via use-livecode : >> >> ?Out of curiosity, what can be done in in Python that cannot be done in LC Script? From alex at tweedly.net Sat Jul 22 20:18:30 2023 From: alex at tweedly.net (Tweedly) Date: Sun, 23 Jul 2023 01:18:30 +0100 Subject: Has anyone experimented with using Python within LC? In-Reply-To: References: Message-ID: <38FA655A-8DBC-45CF-B787-F80BBA515600@tweedly.net> > On 22 Jul 2023, at 18:13, Geoff Canyon via use-livecode wrote: > > Both are turing complete, so there's technically nothing one can do that > the other can't, but some examples: > Technically, that’s not correct. Simply being Turing complete doesn’t mean it can do everything you might want to do. Things Python can do that LCS can’t would include: - calling foreign language functions - threads - raw sockets - multicast - ipv6 - and many many more …. Alex. From tom at makeshyft.com Sun Jul 23 02:21:37 2023 From: tom at makeshyft.com (Tom Glod) Date: Sun, 23 Jul 2023 02:21:37 -0400 Subject: Crazy question: is it possible/reasonable to use Python in LC? In-Reply-To: References: Message-ID: One way to do it would be running python "service" executable, and you send it the code via socket to execute. In python the "do" equivalent is "exec()" ... although obviously the service will need access to the data that is involved with the code. Then you return the result to lc in whatever way works best. In theory. On Mon, Jul 17, 2023 at 12:57 PM Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > "do ... as python" ?? > > On 13/07/2023 21:03, Geoff Canyon via use-livecode wrote: > > I've been playing with Python, and it has a lot of nice qualities, but a > > built-in GUI isn't one of them (no apologies to tkinter). > > > > So it would be interesting/nice to be able to open LC, add a button to a > > stack, and put some python into the script of that button and have it > just > > work, with access to the rest of the LC stack/controls as usual. > > > > Obviously that's not possible, but how close can we come? I assume it > would > > be possible to write a shell command to trigger a python script, but that > > seems complex and sub-optimal, especially when thinking about having to > > bundle together all the bits and bobs from the LC UI to pass as arguments > > to the Python script instead of having it able to just reference what it > > needs on the fly. > > > > Anyway, wondering if anyone else has thought about this. > > > > gc > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jul 24 10:03:25 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 24 Jul 2023 15:03:25 +0100 Subject: Question re download timeout setting In-Reply-To: References: <4BFBF887-B8C2-4CFF-96AD-635F0CFE7485@m-r-d.de> Message-ID: <06159767-1A33-4BD3-9420-5E83C20FCD3B@gmail.com> Hi William, This is a long shot, but in case it inspires a solution, I do something like the following to upload and download files to dropbox (which I think is similar to what Matthias is suggesting as well). put "/todoitems.sqlite" into pPath -- the path to the file on server, in this case dropbox (equivalent to your put “https…”?) tsNetSetTimeouts 20,0,20000,60000,20,1000 -- establish a 20 second timeout (and also a slow response timeout) dropBoxDownload pAccessToken, pPath — if successful, the file is copied into the "it” variable (equiv to your put URL theURL into tOutput?) except output goes to “it” instead of tOutput put the result into tResult — if unsuccessful, tResult holds the error code from tsNet (I think this is dropBoxDownloads doing, but maybe something equiv is possible?) see below... if tResult is not empty then -- the dload did not work, do whatever you need to respond to a connection failure else put it into URL ("binfile:"&tTargetFile) -- write the data to disk end if *Important: If writing to a url container fails, an error is returned in the result. For example: local tResult put the result into tResult > On 22 Jul 2023, at 3:55 pm, William Prothero via use-livecode wrote: > > Matthias, > I'll try it. > Thanks so much for your help. > Bill > > William A. Prothero, PhD > Prof Emeritus, Dept of Earth Science > University of California, Santa Barbara > >> On Jul 22, 2023, at 4:32 AM, matthias rebbe via use-livecode wrote: >> >> Hello Bill, >> >> since V8 or so tsNET external is included in any commercial/business license. >> Even put URL "ftp: or http: will be executed with tsNET by liburl. >> >> So in case you did not manually disabletsNET for your app, you could use tsNetSetTimeouts to set timeout values. >> By default tsNET does not limit the time a request could take and that might be the reason why the put URL takes forever. >> >> The Syntax looks like this >> tsNetSetTimeouts pDnsCacheTimeout, pRequestTimeoutMS, pConnectTimeoutMS, pAcceptTimeoutMS, pLowSpeedTime, pLowSpeedLimit >> >> The second parameter is responsible for the request timeout and has to be set in milliseconds. >> >> So for example >> >> tsNetSetTimeouts 30, 33000, 300000, 60000, 30, 1000 >> >> would set the request timeout to 33 seconds. The other values in my example are the default values. >> >> After the timeout the script continues and you could check if the put command returned the expected value. >> >> >> >> Regards, >> Matthias >> >> >> >>> Am 22.07.2023 um 02:02 schrieb prothero--- via use-livecode : >>> >>> Folks: >>> Sorry for the trivial question, but.. >>> I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works fine when there is internet service. >>> >>> I test access by downloading a file with a simple text code. If there code is returned in the message, I continue accessing the database. However, when there is no internet, the "put URL” command seems to hang forever. I’ve looked for a way to set the timeout for an internet command, but…. can’t,. >>> >>> Could you direct me to a simple explanation about how to set a reasonable internet not connected message? >>> >>> Thanks, >>> Bill >>> put "https://"&theURL&"/test.html" into theURL >>> >>> put URL theURL into tOutput —if the request times out, the output is not received. >>> >>> if tOutput contains "AB7699HEYIMHERE” then —code received, internet access is successful >>> >>> return true >>> >>> else >>> >>> return false >>> >>> end if >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Mon Jul 24 11:04:46 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 24 Jul 2023 17:04:46 +0200 Subject: No progress updates on LC 10. Am i the only one who is concerned? Message-ID: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Hi, I know Xavvi will be the next big step and I even helped with the funding. But I'm wondering why there hasn't been any news about LC 10 for a some months now. Am I the only one worried that the full focus is now on Xavvi and LC10 is left behind? Matthias From jacques.clavel at gmail.com Mon Jul 24 11:29:05 2023 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Mon, 24 Jul 2023 17:29:05 +0200 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: +1 Jacques CLAVEL Le lun. 24 juil. 2023 à 17:05, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> a écrit : > Hi, > > I know Xavvi will be the next big step and I even helped with the funding. > But I'm wondering why there hasn't been any news about LC 10 for a some > months now. > Am I the only one worried that the full focus is now on Xavvi and LC10 is > left behind? > > 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 > -- Jacques Clavel From MikeKerner at roadrunner.com Mon Jul 24 11:56:21 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Jul 2023 11:56:21 -0400 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: the things that bug me are: * at renewal, i added the html5 license, but that project isn't anywhere * script compiler was supposed to be out six months ago for tinkering (technically seven, but we'll give them a pass on end-of-the-year because it was probably intended as end-of-the-yearish * script widgets are not going anywhere without docs, but the docs aren't going anywhere * i'm very concerned that x-whatever is going to be a resource and distraction-drain, and another dead end. to date, the LLM's have been severely overrated. obviously i hope that is something that gets fixed, quickly. On Mon, Jul 24, 2023 at 11:30 AM Jacques Clavel via use-livecode wrote: > > +1 > Jacques CLAVEL > > Le lun. 24 juil. 2023 à 17:05, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> a écrit : > > > Hi, > > > > I know Xavvi will be the next big step and I even helped with the funding. > > But I'm wondering why there hasn't been any news about LC 10 for a some > > months now. > > Am I the only one worried that the full focus is now on Xavvi and LC10 is > > left behind? > > > > 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 > > > > > -- > Jacques Clavel > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- 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 klaus at major-k.de Mon Jul 24 15:04:23 2023 From: klaus at major-k.de (Klaus major-k) Date: Mon, 24 Jul 2023 21:04:23 +0200 Subject: Android app black screen? Message-ID: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Hi all, today I used my Android app at home, no problems. Then I went to our band rehearsal, started the app and only got a black screen!? Everything else on the device worked without problems. De- and re-installing the app fixed it. Has someone also experienced something like this? Samsung tablet TAB A, Android 5.1, LC 9.6.9. 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 Mon Jul 24 15:11:55 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 24 Jul 2023 14:11:55 -0500 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: <98fa6848-d158-251c-51df-3d6b46ae589d@hyperactivesw.com> On 7/24/23 10:56 AM, Mike Kerner via use-livecode wrote: > the things that bug me are: > * at renewal, i added the html5 license, but that project isn't anywhere Did you select the correct license on renewal? I had the same problem but it turns out there's a tiny little arrow when the installer appears, and you can page through your licenses. I felt stupid when Heather noted it. Choose "Relicense" from the Help menu and see if you have that arrow. If not, contact support. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MikeKerner at roadrunner.com Mon Jul 24 20:24:16 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 24 Jul 2023 20:24:16 -0400 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <98fa6848-d158-251c-51df-3d6b46ae589d@hyperactivesw.com> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <98fa6848-d158-251c-51df-3d6b46ae589d@hyperactivesw.com> Message-ID: it's not that it isn't there, it's that it isn't in a state that is ready-for-prime-time On Mon, Jul 24, 2023 at 3:12 PM J. Landman Gay via use-livecode wrote: > > On 7/24/23 10:56 AM, Mike Kerner via use-livecode wrote: > > the things that bug me are: > > * at renewal, i added the html5 license, but that project isn't anywhere > > Did you select the correct license on renewal? I had the same problem but it turns out there's > a tiny little arrow when the installer appears, and you can page through your licenses. I felt > stupid when Heather noted it. > > Choose "Relicense" from the Help menu and see if you have that arrow. If not, contact support. > > -- > 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 -- 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 Tue Jul 25 05:14:17 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 25 Jul 2023 10:14:17 +0100 Subject: Android app black screen? In-Reply-To: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hi Klaus, I’ve had similar things happen on iOS, perhaps more recently in the past year than previously. Sometimes when I open the app (I’m not sure at these times if the app is just suspended or is actually reopening) I’ll get a black screen. If I tap on it 90% of the time it goes away and reveals the appropriate screen image. Very rarely the single or multiple taps solution does not work I’ve had to shut the app down (remove from memory) and then restart it again. This always fixes the problem (if the tapping doesn’t). It’s had me wondering where in the process it “hangs” since tapping the screen suggests it is still “alive" but just stuck somewhere and not displaying the appropriate screen image. On iOS I believe when you suspend an app (put it into the background) it just “maintains” the current screen image and re-presents that when you reopen. Up to now I’ve not spend any time trying to debug this. It would be nice to be able to trace the problem back to its origins and institute a remedy. Please let me know if you come up with any suggestions. Best, Mark > On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode wrote: > > Hi all, > > today I used my Android app at home, no problems. > Then I went to our band rehearsal, started the app and > only got a black screen!? > > Everything else on the device worked without problems. > De- and re-installing the app fixed it. > > Has someone also experienced something like this? > > Samsung tablet TAB A, Android 5.1, LC 9.6.9. > > > 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 benr_mc at cogapp.com Tue Jul 25 05:54:06 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 10:54:06 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> It's particularly frustrating because there are some good things in LC 10 that I'd like to be looking at/exploiting; but there's a vicious bug in the current DP script editor that can cause loss of work*, which prevents me doing anything with it. Just a new DP that includes a fix for this bug would be a huge step forward in my view/situation. Ben * https://quality.livecode.com/show_bug.cgi?id=24268 On 24/07/2023 16:04, matthias rebbe via use-livecode wrote: > Hi, > > I know Xavvi will be the next big step and I even helped with the funding. > But I'm wondering why there hasn't been any news about LC 10 for a some months now. > Am I the only one worried that the full focus is now on Xavvi and LC10 is left behind? > > 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 benr_mc at cogapp.com Tue Jul 25 06:06:10 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 11:06:10 +0100 Subject: Which Livecode/Xcode/macOS/iOS version Message-ID: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Somewhere on the livecode.com there used to be a very useful table which showed which versions of Livecode could run on which versions of macOS with which versions of Xcode in order to build to which versions of iOS. I can't find it now... can anyone point me at it? Many thanks, Ben From heather at livecode.com Tue Jul 25 06:55:35 2023 From: heather at livecode.com (Heather Laine) Date: Tue, 25 Jul 2023 11:55:35 +0100 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: https://livecode.com/resources/support/ask-a-question/ Top FAQ. Best Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 25 Jul 2023, at 11:06, Ben Rubinstein via use-livecode wrote: > > Somewhere on the livecode.com there used to be a very useful table which showed which versions of Livecode could run on which versions of macOS with which versions of Xcode in order to build to which versions of iOS. > > I can't find it now... can anyone point me at it? > > Many thanks, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 25 06:55:30 2023 From: sean at pidigital.co.uk (Pi Digital) Date: Tue, 25 Jul 2023 11:55:30 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: Message-ID: <6EB0413C-736E-472D-A820-FCE273A16140@pidigital.co.uk> > On 25 Jul 2023, at 01:24, Mike Kerner via use-livecode wrote: > > it's not that it isn't there, it's that it isn't in a state that is > ready-for-prime-time I’ve had to abandon a project and hence a client and hence LiveCode all together because of this single solitary issue. My company went bankrupt and is now dissolved because of this. LC have told me not to speak out against them as a company on this platform for fear of being removed from this chat area. Sure, some of the decisions made by me have led to the dissolving of Pi Digital Productions Ltd, but a lot WAS based on the PROMISE made pre-pandemic by LC that HTML5 would be ready for live, non-beta use ‘soon’. 4 years on and having paid for a HTML5 licence I STILL have not been able to use, clients become frustrated and annoyed that we STILL have been unable to deliver and the bitten bullet eventually explodes in our faces. This is the primary reason I have not been heard from on this area for a while now. I am now working as a shop assistant in a local shop having moved to a remote area on the Isle of Skye. There’s not many employers who will take LiveCode experience as experience of coding. And there’s little hope of finding clients who will want or have their apps coded in LC. Theoretically I should ask for a refund on the HTML license as they have simply not delivered on their promise. But I can’t be bothered with the hassle of arguing with a company who just don’t seem to listen. I know a lot of you here will disagree- but I can only speak from my own experience over the last 17 years. Besides, a refund would not come close to the amount my company haemorrhaged as a direct result of LC failing to deliver. There, I’m guessing this will get me banned from this platform but, seeing as I can no longer use LC for anything practical, I suppose it no longer matters and most of you hear will be thinking ‘good riddance’ anyway. Like me, LC will fail if they continue to be incapable of delivering on promises. Adding new features and/or applications without sorting out current ones and actually getting them into the wild will just add new problems and forget old ones. Our clients cannot work on a 5 year turnaround so how can LC continue to think we can accept it? It’s impossible working conditions. If a boss offered you better working conditions in a place of work but took 5 years to deliver on that promise, what would you think of them as a manager? This is effectively what was suffered. It amounts to unfair treatment in the workplace and caused me a great deal of anguish over the years, as many of you are well aware. My hope is that LC read this for your benefits and learn from it. It’s too late for me - I’ve moved on. But hopefully they can get v10 and HTML out sooner rather than later so that you can actually begin to make use of your investments. All the best and peace to you all. Sean Cole Ex Director of Pi Digital Over and out. From benr_mc at cogapp.com Tue Jul 25 07:28:31 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 12:28:31 +0100 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: <9077c98b-88c5-a5a6-79f0-a3fc64b74114@cogapp.com> Thanks Heather! On 25/07/2023 11:55, Heather Laine via use-livecode wrote: > https://livecode.com/resources/support/ask-a-question/ > > Top FAQ. > > Best > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 25 Jul 2023, at 11:06, Ben Rubinstein via use-livecode wrote: >> >> Somewhere on the livecode.com there used to be a very useful table which showed which versions of Livecode could run on which versions of macOS with which versions of Xcode in order to build to which versions of iOS. >> >> I can't find it now... can anyone point me at it? >> >> Many thanks, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Tue Jul 25 08:06:43 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 15:06:43 +0300 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hello Klaus, Are you setting the acceleratedRendering to true on startup? Kind regards, Panos On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi Klaus, > > I’ve had similar things happen on iOS, perhaps more recently in the past > year than previously. Sometimes when I open the app (I’m not sure at these > times if the app is just suspended or is actually reopening) I’ll get a > black screen. If I tap on it 90% of the time it goes away and reveals the > appropriate screen image. Very rarely the single or multiple taps solution > does not work I’ve had to shut the app down (remove from memory) and then > restart it again. This always fixes the problem (if the tapping doesn’t). > It’s had me wondering where in the process it “hangs” since tapping the > screen suggests it is still “alive" but just stuck somewhere and not > displaying the appropriate screen image. On iOS I believe when you suspend > an app (put it into the background) it just “maintains” the current screen > image and re-presents that when you reopen. Up to now I’ve not spend any > time trying to debug this. It would be nice to be able to trace the problem > back to its origins and institute a remedy. Please let me know if you come > up with any suggestions. > > Best, > Mark > > > > On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > > > today I used my Android app at home, no problems. > > Then I went to our band rehearsal, started the app and > > only got a black screen!? > > > > Everything else on the device worked without problems. > > De- and re-installing the app fixed it. > > > > Has someone also experienced something like this? > > > > Samsung tablet TAB A, Android 5.1, LC 9.6.9. > > > > > > 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 klaus at major-k.de Tue Jul 25 08:11:37 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 Jul 2023 14:11:37 +0200 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hi Panos, > Am 25.07.2023 um 14:06 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > Are you setting the acceleratedRendering to true on startup? no, should I? 8-) However this came out of a sudden after using my (same) app many times before... > Kind regards, > Panos > > On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> Hi Klaus, >> >> I’ve had similar things happen on iOS, perhaps more recently in the past >> year than previously. Sometimes when I open the app (I’m not sure at these >> times if the app is just suspended or is actually reopening) I’ll get a >> black screen. If I tap on it 90% of the time it goes away and reveals the >> appropriate screen image. Very rarely the single or multiple taps solution >> does not work I’ve had to shut the app down (remove from memory) and then >> restart it again. This always fixes the problem (if the tapping doesn’t). >> It’s had me wondering where in the process it “hangs” since tapping the >> screen suggests it is still “alive" but just stuck somewhere and not >> displaying the appropriate screen image. On iOS I believe when you suspend >> an app (put it into the background) it just “maintains” the current screen >> image and re-presents that when you reopen. Up to now I’ve not spend any >> time trying to debug this. It would be nice to be able to trace the problem >> back to its origins and institute a remedy. Please let me know if you come >> up with any suggestions. >> >> Best, >> Mark >> >> >>> On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi all, >>> >>> today I used my Android app at home, no problems. >>> Then I went to our band rehearsal, started the app and >>> only got a black screen!? >>> >>> Everything else on the device worked without problems. >>> De- and re-installing the app fixed it. >>> >>> Has someone also experienced something like this? >>> >>> Samsung tablet TAB A, Android 5.1, LC 9.6.9. 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 Jul 25 08:16:26 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 15:16:26 +0300 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hello Klaus, Nope, I just asked because I had seen some similar issues when setting this property on preopenstack. Well, if the same app worked as expected before, then it may be just a random glitch, which would have been fixed with a restart of the device (i.e no need to delete and reinstall the app). Cheers, Panos On Tue, 25 Jul 2023, 15:11 Klaus major-k via use-livecode, < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 25.07.2023 um 14:06 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Klaus, > > > > Are you setting the acceleratedRendering to true on startup? > > no, should I? 8-) > However this came out of a sudden after using my (same) app many times > before... > > > Kind regards, > > Panos > > > > On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi Klaus, > >> > >> I’ve had similar things happen on iOS, perhaps more recently in the past > >> year than previously. Sometimes when I open the app (I’m not sure at > these > >> times if the app is just suspended or is actually reopening) I’ll get a > >> black screen. If I tap on it 90% of the time it goes away and reveals > the > >> appropriate screen image. Very rarely the single or multiple taps > solution > >> does not work I’ve had to shut the app down (remove from memory) and > then > >> restart it again. This always fixes the problem (if the tapping > doesn’t). > >> It’s had me wondering where in the process it “hangs” since tapping the > >> screen suggests it is still “alive" but just stuck somewhere and not > >> displaying the appropriate screen image. On iOS I believe when you > suspend > >> an app (put it into the background) it just “maintains” the current > screen > >> image and re-presents that when you reopen. Up to now I’ve not spend any > >> time trying to debug this. It would be nice to be able to trace the > problem > >> back to its origins and institute a remedy. Please let me know if you > come > >> up with any suggestions. > >> > >> Best, > >> Mark > >> > >> > >>> On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Hi all, > >>> > >>> today I used my Android app at home, no problems. > >>> Then I went to our band rehearsal, started the app and > >>> only got a black screen!? > >>> > >>> Everything else on the device worked without problems. > >>> De- and re-installing the app fixed it. > >>> > >>> Has someone also experienced something like this? > >>> > >>> Samsung tablet TAB A, Android 5.1, LC 9.6.9. > > 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 marksmithhfx at gmail.com Tue Jul 25 08:41:13 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 25 Jul 2023 13:41:13 +0100 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: Hi Panos, I do set accelerated rendering to true in a preopencard handler on the “main”, “first”, “home” card (whatever you want to call it). It’s in the section of code that defines the properties of the data grid. Do you think this possibly could cause a problem? > On 25 Jul 2023, at 1:16 pm, panagiotis m via use-livecode wrote: > > Hello Klaus, > > Nope, I just asked because I had seen some similar issues when setting this > property on preopenstack. > > Well, if the same app worked as expected before, then it may be just a > random glitch, which would have been fixed with a restart of the device > (i.e no need to delete and reinstall the app). > > Cheers, > Panos > > On Tue, 25 Jul 2023, 15:11 Klaus major-k via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> Hi Panos, >> >>> Am 25.07.2023 um 14:06 schrieb panagiotis m via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> Hello Klaus, >>> >>> Are you setting the acceleratedRendering to true on startup? >> >> no, should I? 8-) >> However this came out of a sudden after using my (same) app many times >> before... >> >>> Kind regards, >>> Panos >>> >>> On Tue, 25 Jul 2023, 12:15 Mark Smith via use-livecode, < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Klaus, >>>> >>>> I’ve had similar things happen on iOS, perhaps more recently in the past >>>> year than previously. Sometimes when I open the app (I’m not sure at >> these >>>> times if the app is just suspended or is actually reopening) I’ll get a >>>> black screen. If I tap on it 90% of the time it goes away and reveals >> the >>>> appropriate screen image. Very rarely the single or multiple taps >> solution >>>> does not work I’ve had to shut the app down (remove from memory) and >> then >>>> restart it again. This always fixes the problem (if the tapping >> doesn’t). >>>> It’s had me wondering where in the process it “hangs” since tapping the >>>> screen suggests it is still “alive" but just stuck somewhere and not >>>> displaying the appropriate screen image. On iOS I believe when you >> suspend >>>> an app (put it into the background) it just “maintains” the current >> screen >>>> image and re-presents that when you reopen. Up to now I’ve not spend any >>>> time trying to debug this. It would be nice to be able to trace the >> problem >>>> back to its origins and institute a remedy. Please let me know if you >> come >>>> up with any suggestions. >>>> >>>> Best, >>>> Mark >>>> >>>> >>>>> On 24 Jul 2023, at 8:04 pm, Klaus major-k via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi all, >>>>> >>>>> today I used my Android app at home, no problems. >>>>> Then I went to our band rehearsal, started the app and >>>>> only got a black screen!? >>>>> >>>>> Everything else on the device worked without problems. >>>>> De- and re-installing the app fixed it. >>>>> >>>>> Has someone also experienced something like this? >>>>> >>>>> Samsung tablet TAB A, Android 5.1, LC 9.6.9. >> >> 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 klaus at major-k.de Tue Jul 25 08:48:47 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 Jul 2023 14:48:47 +0200 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> Message-ID: <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Hi Panos, > Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode : > > Hello Klaus, > > Nope, I just asked because I had seen some similar issues when setting this > property on preopenstack. > > Well, if the same app worked as expected before, then it may be just a > random glitch, which would have been fixed with a restart of the device > (i.e no need to delete and reinstall the app). OK, I only switched the device off and on again, which is probably NOT a restart. Will keep this in mind for the next time, which hopefully will never happen. 8-) Thank you! > Cheers, > Panos 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 Jul 25 09:01:56 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 16:01:56 +0300 Subject: Android app black screen? In-Reply-To: <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: Hello Mark, I had seen this issue on Android, not on iOS. And the workaround was to use a "send in time" command to set the acceleratedRendering to true, for example: on preOpenStack send initAE to me in 300 millisec end preOpenStack command initAE set the acceleratedRendering of this stack to true end initAE Kind regards, Panos -- On Tue, 25 Jul 2023 at 15:49, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > > Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Klaus, > > > > Nope, I just asked because I had seen some similar issues when setting > this > > property on preopenstack. > > > > Well, if the same app worked as expected before, then it may be just a > > random glitch, which would have been fixed with a restart of the device > > (i.e no need to delete and reinstall the app). > > OK, I only switched the device off and on again, which is probably NOT a > restart. > Will keep this in mind for the next time, which hopefully will never > happen. 8-) > > Thank you! > > > Cheers, > > Panos > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Tue Jul 25 09:02:59 2023 From: merakosp at gmail.com (panagiotis m) Date: Tue, 25 Jul 2023 16:02:59 +0300 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: heh the name of the command should have been "initAR" Cheers, Panos -- On Tue, 25 Jul 2023 at 16:01, panagiotis m wrote: > Hello Mark, > > I had seen this issue on Android, not on iOS. And the workaround was to > use a "send in time" command to set the acceleratedRendering to true, for > example: > > on preOpenStack > send initAE to me in 300 millisec > end preOpenStack > > command initAE > set the acceleratedRendering of this stack to true > end initAE > > Kind regards, > Panos > -- > > On Tue, 25 Jul 2023 at 15:49, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Panos, >> >> > Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode < >> use-livecode at lists.runrev.com>: >> > >> > Hello Klaus, >> > >> > Nope, I just asked because I had seen some similar issues when setting >> this >> > property on preopenstack. >> > >> > Well, if the same app worked as expected before, then it may be just a >> > random glitch, which would have been fixed with a restart of the device >> > (i.e no need to delete and reinstall the app). >> >> OK, I only switched the device off and on again, which is probably NOT a >> restart. >> Will keep this in mind for the next time, which hopefully will never >> happen. 8-) >> >> Thank you! >> >> > Cheers, >> > Panos >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From klaus at major-k.de Tue Jul 25 09:17:08 2023 From: klaus at major-k.de (Klaus major-k) Date: Tue, 25 Jul 2023 15:17:08 +0200 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: <29003DB1-B445-4EC9-AA42-6A31A1A5B64B@major-k.de> Hi Panos, > Am 25.07.2023 um 15:02 schrieb panagiotis m via use-livecode : > > heh the name of the command should have been "initAR" we got the picture anyway! :-D > Cheers, > Panos > -- > > On Tue, 25 Jul 2023 at 16:01, panagiotis m wrote: > >> Hello Mark, >> >> I had seen this issue on Android, not on iOS. And the workaround was to >> use a "send in time" command to set the acceleratedRendering to true, for >> example: >> >> on preOpenStack >> send initAE to me in 300 millisec >> end preOpenStack >> >> command initAE >> set the acceleratedRendering of this stack to true >> end initAE >> >> Kind regards, >> Panos -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From marksmithhfx at gmail.com Tue Jul 25 09:17:03 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 25 Jul 2023 14:17:03 +0100 Subject: Android app black screen? In-Reply-To: References: <683C6575-1F9C-4A9A-A7C8-892D151B102C@major-k.de> <06CE4088-6801-4965-B80F-B6ECF9F13605@major-k.de> Message-ID: <5E53A935-F190-4A78-AB16-7AC2F370DF81@gmail.com> No worries, I understood 😊 Thanks > On 25 Jul 2023, at 2:02 pm, panagiotis m via use-livecode wrote: > > heh the name of the command should have been "initAR" > > Cheers, > Panos > -- > > On Tue, 25 Jul 2023 at 16:01, panagiotis m wrote: > >> Hello Mark, >> >> I had seen this issue on Android, not on iOS. And the workaround was to >> use a "send in time" command to set the acceleratedRendering to true, for >> example: >> >> on preOpenStack >> send initAE to me in 300 millisec >> end preOpenStack >> >> command initAE >> set the acceleratedRendering of this stack to true >> end initAE >> >> Kind regards, >> Panos >> -- >> >> On Tue, 25 Jul 2023 at 15:49, Klaus major-k via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Panos, >>> >>>> Am 25.07.2023 um 14:16 schrieb panagiotis m via use-livecode < >>> use-livecode at lists.runrev.com>: >>>> >>>> Hello Klaus, >>>> >>>> Nope, I just asked because I had seen some similar issues when setting >>> this >>>> property on preopenstack. >>>> >>>> Well, if the same app worked as expected before, then it may be just a >>>> random glitch, which would have been fixed with a restart of the device >>>> (i.e no need to delete and reinstall the app). >>> >>> OK, I only switched the device off and on again, which is probably NOT a >>> restart. >>> Will keep this in mind for the next time, which hopefully will never >>> happen. 8-) >>> >>> Thank you! >>> >>>> Cheers, >>>> Panos >>> >>> Best >>> >>> Klaus >>> >>> -- >>> Klaus Major >>> https://www.major-k.de >>> https://www.major-k.de/bass >>> klaus at major-k.de >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 25 10:57:26 2023 From: heather at livecode.com (Heather Laine) Date: Tue, 25 Jul 2023 15:57:26 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> Message-ID: <851DF337-CCC2-43FE-A9D8-E9AE4A4DACF3@livecode.com> Hi Matthias and list folks, We are working on LiveCode 10 dp6. We expect it to ship in August, with support for Web Fonts plus a number of bug fixes. Web Fonts turned out to be rather trickier than expected but it looks like we've got it more or less sorted out now. If there are specific bugs in 10 dp-5 that are really problematic for you, its worth flagging them to me in support (not on the list) so I can at least find out for you if they will be fixed in dp-6. Please send me the bug report number from the Quality Center for checking. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 24 Jul 2023, at 16:04, matthias rebbe via use-livecode wrote: > > Hi, > > I know Xavvi will be the next big step and I even helped with the funding. > But I'm wondering why there hasn't been any news about LC 10 for a some months now. > Am I the only one worried that the full focus is now on Xavvi and LC10 is left behind? > > 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 ahsoftware at sonic.net Tue Jul 25 12:14:16 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 25 Jul 2023 09:14:16 -0700 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: On 7/25/23 03:55, Heather Laine via use-livecode wrote: > https://livecode.com/resources/support/ask-a-question/ > > Top FAQ. There's a FAQ? Why isn't there a link to it on the main web page? This really should be easier to get to for prospective users (aka customers. subscribers). Apparently the only way to get there from the main page is Scroll to the bottom Find the Resources link Click on Support (!) Scroll down to the Support section Find FAQ Click the button It's down there just above the link to the April 2022 Live Conference. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Tue Jul 25 12:51:50 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 25 Jul 2023 18:51:50 +0200 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: +1 > Am 25.07.2023 um 18:14 schrieb Mark Wieder via use-livecode : > > On 7/25/23 03:55, Heather Laine via use-livecode wrote: >> https://livecode.com/resources/support/ask-a-question/ >> Top FAQ. > > There's a FAQ? > Why isn't there a link to it on the main web page? > This really should be easier to get to for prospective users > (aka customers. subscribers). > > Apparently the only way to get there from the main page is > > Scroll to the bottom > Find the Resources link > Click on Support (!) > Scroll down to the Support section > Find FAQ > Click the button > > It's down there just above the link to the April 2022 Live Conference. > > -- > 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 benr_mc at cogapp.com Tue Jul 25 14:10:13 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 25 Jul 2023 19:10:13 +0100 Subject: How to persuade LC to accept Xcode for mobile support? Message-ID: <91a4e60c-c3b5-f271-f1ac-4f7bb2fd7b30@cogapp.com> Apologies for what is surely a FAQ, but I can't find this in the archives. Using LC 9.6.8 on macOS 12.6.7 with Xcode 13.4.1, trying to get set up for building to iOS for the first time in a long while; and failing at the first hurdle. In Preferences, Mobile Support, under iOS SDKs, I click "Add Entry" and select Xcode; and get the dreaded message The chosen folder is not a valid iOS SDK. Selected Xcode must have an iOS SDK among: 12.1 13.2 14.4 15.2 Per https://livecode.com/resources/support/ask-a-question/ one of the supported combinations is: LiveCode 9.6.8 Xcode 13.2.x Mac OS 11.3+ iOS 15.2 This is Xcode 13.4.1 rather than Xcode 13.2.x - is that really the problem? Or am I missing something else? TIA, Ben From gcanyon at gmail.com Tue Jul 25 14:37:21 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Jul 2023 08:37:21 -1000 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> Message-ID: Maybe a silly question, but that issue lists "turn on bracket completion" as a step to reproduce. If bracket completion is off, is it safe? On Mon, Jul 24, 2023 at 11:55 PM Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > It's particularly frustrating because there are some good things in LC 10 > that > I'd like to be looking at/exploiting; but there's a vicious bug in the > current > DP script editor that can cause loss of work*, which prevents me doing > anything with it. Just a new DP that includes a fix for this bug would be > a > huge step forward in my view/situation. > > Ben > > * https://quality.livecode.com/show_bug.cgi?id=24268 > > On 24/07/2023 16:04, matthias rebbe via use-livecode wrote: > > Hi, > > > > I know Xavvi will be the next big step and I even helped with the > funding. > > But I'm wondering why there hasn't been any news about LC 10 for a some > months now. > > Am I the only one worried that the full focus is now on Xavvi and LC10 > is left behind? > > > > 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 gcanyon at gmail.com Tue Jul 25 14:48:20 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Jul 2023 08:48:20 -1000 Subject: Has anyone experimented with using Python within LC? In-Reply-To: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> References: <932D4CD3-A27E-4675-94D3-67F2E25DCF19@iotecdigital.com> Message-ID: On Fri, Jul 21, 2023 at 4:10 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Out of curiosity, what can be done in in Python that cannot be done in LC > Script? > I'm learning more as I study python. This is pretty nice: import re x = re.split('[a|t]','this is a test and this is another') print(x) ['', 'his is ', ' ', 'es', ' ', 'nd ', 'his is ', 'no', 'her'] Or if you want the dividers as well: import re x = re.split('([a|t])','this is a test and this is another') print(x) ['', 't', 'his is ', 'a', ' ', 't', 'es', 't', ' ', 'a', 'nd ', 't', 'his is ', 'a', 'no', 't', 'her'] From MikeKerner at roadrunner.com Tue Jul 25 15:22:44 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 25 Jul 2023 15:22:44 -0400 Subject: How to persuade LC to accept Xcode for mobile support? In-Reply-To: <91a4e60c-c3b5-f271-f1ac-4f7bb2fd7b30@cogapp.com> References: <91a4e60c-c3b5-f271-f1ac-4f7bb2fd7b30@cogapp.com> Message-ID: yep. you can't exceed versions. the restrictions are pretty strict. On Tue, Jul 25, 2023 at 2:11 PM Ben Rubinstein via use-livecode wrote: > > Apologies for what is surely a FAQ, but I can't find this in the archives. > > Using LC 9.6.8 on macOS 12.6.7 with Xcode 13.4.1, trying to get set up for > building to iOS for the first time in a long while; and failing at the first > hurdle. > > In Preferences, Mobile Support, under iOS SDKs, I click "Add Entry" and select > Xcode; and get the dreaded message > The chosen folder is not a valid iOS SDK. > Selected Xcode must have an iOS SDK among: > 12.1 > 13.2 > 14.4 > 15.2 > > > Per https://livecode.com/resources/support/ask-a-question/ one of the > supported combinations is: > LiveCode 9.6.8 Xcode 13.2.x Mac OS 11.3+ iOS 15.2 > > This is Xcode 13.4.1 rather than Xcode 13.2.x - is that really the problem? > Or am I missing something else? > > TIA, > > Ben > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dick.kriesel at mail.com Tue Jul 25 16:35:03 2023 From: dick.kriesel at mail.com (Dick Kriesel) Date: Tue, 25 Jul 2023 13:35:03 -0700 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> Message-ID: <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> > On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode wrote: > > Maybe a silly question, but that issue lists "turn on bracket completion" > as a step to reproduce. If bracket completion is off, is it safe? Hi, Geoff. I filed the report. With bracket completion off, I saw no such problem. — Dick From paul at livecode.org Tue Jul 25 18:15:16 2023 From: paul at livecode.org (Paul Hibbert) Date: Tue, 25 Jul 2023 15:15:16 -0700 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: Or, click on” Resources" in the main Nav menu then scroll down to “Support" and there’s your FAQ button! Simples! :-) Paul > On Jul 25, 2023, at 9:14 AM, Mark Wieder via use-livecode wrote: > > On 7/25/23 03:55, Heather Laine via use-livecode wrote: >> https://livecode.com/resources/support/ask-a-question/ >> Top FAQ. > > There's a FAQ? > Why isn't there a link to it on the main web page? > This really should be easier to get to for prospective users > (aka customers. subscribers). > > Apparently the only way to get there from the main page is > > Scroll to the bottom > Find the Resources link > Click on Support (!) > Scroll down to the Support section > Find FAQ > Click the button > > It's down there just above the link to the April 2022 Live Conference. > > -- > 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 ahsoftware at sonic.net Tue Jul 25 19:53:01 2023 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 25 Jul 2023 16:53:01 -0700 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> Message-ID: <60e82d50-ac0e-ebe5-e684-d75d077d3e91@sonic.net> On 7/25/23 15:15, Paul Hibbert via use-livecode wrote: > Or, click on Resources" in the main Nav menu then scroll down to Support" and theres your FAQ button! > > Simples! :-) Missing the point though. You need to know it exists somewhere in order to go looking for it. I think a FAQ should be front and center instead of buried a few layers down. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Tue Jul 25 22:49:10 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 25 Jul 2023 16:49:10 -1000 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> Message-ID: So, not to be too much of an apologist, but the issue doesn't seem like a showstopper to me. On Tue, Jul 25, 2023 at 10:36 AM Dick Kriesel via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Maybe a silly question, but that issue lists "turn on bracket completion" > > as a step to reproduce. If bracket completion is off, is it safe? > > Hi, Geoff. I filed the report. With bracket completion off, I saw no such > problem. > — Dick > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dick.kriesel at mail.com Tue Jul 25 23:23:58 2023 From: dick.kriesel at mail.com (Dick Kriesel) Date: Tue, 25 Jul 2023 20:23:58 -0700 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> Message-ID: <0B1C9F9E-3CE7-4DF5-A7A2-7BDB0DA8D5C5@mail.com> > On Jul 25, 2023, at 7:49 PM, Geoff Canyon via use-livecode wrote: > > So, not to be too much of an apologist, but the issue doesn't seem like a > showstopper to me. This is just a crashing bug to fix before RC1. Let the show go on! — Dick From jaguayo at telur.es Wed Jul 26 02:55:23 2023 From: jaguayo at telur.es (JosebaTELUR) Date: Wed, 26 Jul 2023 08:55:23 +0200 Subject: No progress updates on LC 10 In-Reply-To: References: Message-ID: <89B8D6F7-E024-4499-92B9-79A964B869A7@telur.es> Hello Sean: You are not the only one. I also have the impression that we will never see version 10 of Livecode. Un saludo. Joseba Aguayo Fernández (jaguayo at telur.es) From benr_mc at cogapp.com Wed Jul 26 04:58:46 2023 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 26 Jul 2023 09:58:46 +0100 Subject: No progress updates on LC 10. Am i the only one who is concerned? In-Reply-To: References: <8F7D10FF-1B32-4177-BFDC-7CEE721ACF8A@m-r-d.de> <13ec553f-f7ef-8fb7-42b5-77e6205cec4b@cogapp.com> <51859D53-03FD-4FA6-9C97-33B04803F016@mail.com> Message-ID: <53887cdf-9bf4-4534-0741-ab08156b180b@cogapp.com> Oooh - I hadn't spotted that. (With only a little bit of fear) I'll venture back into 10dp5 and turn that off. Thanks Geoff! On 26/07/2023 03:49, Geoff Canyon via use-livecode wrote: > So, not to be too much of an apologist, but the issue doesn't seem like a > showstopper to me. > > On Tue, Jul 25, 2023 at 10:36AM Dick Kriesel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> >>> On Jul 25, 2023, at 11:37 AM, Geoff Canyon via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Maybe a silly question, but that issue lists "turn on bracket completion" >>> as a step to reproduce. If bracket completion is off, is it safe? >> >> Hi, Geoff. I filed the report. With bracket completion off, I saw no such >> problem. >> Dick >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 26 11:10:46 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 15:10:46 +0000 Subject: Which Livecode/Xcode/macOS/iOS version In-Reply-To: <60e82d50-ac0e-ebe5-e684-d75d077d3e91@sonic.net> References: <1ef8be7f-28c3-c425-badc-5e6b00ff7241@cogapp.com> <60e82d50-ac0e-ebe5-e684-d75d077d3e91@sonic.net> Message-ID: <9AB8B04D-7AAC-41B9-858F-31602DCE7A01@iotecdigital.com> +1 A lot of support sites are like that. You cannot find anything unless you know where to look, and if you know that, you probably don’t need to find it. :-) One of my pet peeves is searching for something on a support site and getting 1000 entries, none of which have anything to do with what I was looking for. Bob S On Jul 25, 2023, at 4:53 PM, Mark Wieder via use-livecode wrote: Or, click on” Resources" in the main Nav menu then scroll down to “Support" and there’s your FAQ button! Simples! :-) Missing the point though. You need to know it exists somewhere in order to go looking for it. I think a FAQ should be front and center instead of buried a few layers down. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Wed Jul 26 13:02:43 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 17:02:43 +0000 Subject: closeStackRequest resolved Message-ID: <2C482CE6-40E7-4AF7-A901-530F98F28CBC@iotecdigital.com> Hi all. FYI I've struggled a long time to try and figure out why I get the Save Stack dialog when I clicked the close window button and before my own closeStackRequest got a chance to auto-save the stack. The reason I want to do auto-save is that all my standalones use a splash stack that then kicks off the main stack. Before quitting the standalone I want to clear all the forms and reset the environment, then save the state of affairs without the user being annoyed and confused with a dialog asking if they want to save! As it turns out (and as some may have informed me I can’t remember) there is a closeStackRequest handler in LC’s own front script which is generating the Save Stack dialog. To intercept the message before LC does, you need to have your own closeStackRequest in YOUR OWN front script, then pass the message when you are done with it. Bob S From paul at researchware.com Wed Jul 26 13:02:50 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 13:02:50 -0400 Subject: charIndex property Message-ID: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. For example, if the field contains: The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz". The lazy dog was a great dog. Then there are 3 instances of  "lazy dog" trueWord 8 to 9 of the field,  11 to 12, and 17 to 18 You can also determine that first instance "lazy dog" is in sentence 1 to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in sentence 3 And you can determine that the first 2 instances are in paragraph 1 and the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, and paragraph chunk types) charIndex lets me determine the start of a sentence or paragraph, such as: the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75 the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 of fld X --> 75 My question is, charIndex appear to ONLY work on an actual field object (visible or invisible). You get execution errors if you try say: put the charIndex of word 8 of the text of the templateField put the charIndex of word 8 of the templateField put the charIndex of word 8 of tVar Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? From bobsneidar at iotecdigital.com Wed Jul 26 13:06:49 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 17:06:49 +0000 Subject: charIndex property In-Reply-To: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> Message-ID: <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> Offset? Bob S > On Jul 26, 2023, at 10:02 AM, Paul Dupuis via use-livecode wrote: > > If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. > > For example, if the field contains: > > The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz". > > The lazy dog was a great dog. > > Then there are 3 instances of "lazy dog" > > trueWord 8 to 9 of the field, 11 to 12, and 17 to 18 > > You can also determine that first instance "lazy dog" is in sentence 1 to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in sentence 3 > > And you can determine that the first 2 instances are in paragraph 1 and the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, and paragraph chunk types) > > charIndex lets me determine the start of a sentence or paragraph, such as: > > the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75 > > the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 of fld X --> 75 > > My question is, charIndex appear to ONLY work on an actual field object (visible or invisible). You get execution errors if you try say: > > put the charIndex of word 8 of the text of the templateField > > put the charIndex of word 8 of the templateField > > put the charIndex of word 8 of tVar > > Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 26 13:13:57 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 17:13:57 +0000 Subject: charIndex property In-Reply-To: <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> Message-ID: <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> OIC what that does. I suggest having a hidden field, setting the text of that field to your variable, then operating on that field. Bob S > On Jul 26, 2023, at 10:06 AM, Bob Sneidar via use-livecode wrote: > > Offset? > > Bob S > > >> On Jul 26, 2023, at 10:02 AM, Paul Dupuis via use-livecode wrote: >> >> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >> >> For example, if the field contains: >> >> The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz". >> >> The lazy dog was a great dog. >> >> Then there are 3 instances of "lazy dog" >> >> trueWord 8 to 9 of the field, 11 to 12, and 17 to 18 >> >> You can also determine that first instance "lazy dog" is in sentence 1 to 1 (or just sentence 1) of the field, the 2nd is in sentence 2, and the 3rd in sentence 3 >> >> And you can determine that the first 2 instances are in paragraph 1 and the 3rd instance of "lazy dog" is in paragraph 2 (using the trueWord, sentence, and paragraph chunk types) >> >> charIndex lets me determine the start of a sentence or paragraph, such as: >> >> the charIndex of sentence 1 to 1 of fld X --> 1 and the charIndex of sentence 2 of fld X --> 46 and the charIndex of sentence 3 of fld "X" --> 75 >> >> the charIndex of paragraph 1 of fld X --> 1 and the charIndex of paragraph 2 of fld X --> 75 >> >> My question is, charIndex appear to ONLY work on an actual field object (visible or invisible). You get execution errors if you try say: >> >> put the charIndex of word 8 of the text of the templateField >> >> put the charIndex of word 8 of the templateField >> >> put the charIndex of word 8 of tVar >> >> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 26 14:23:19 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 18:23:19 +0000 Subject: Determine the screen DPI Message-ID: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> Hi all. I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? Bob S From bobsneidar at iotecdigital.com Wed Jul 26 14:40:35 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 18:40:35 +0000 Subject: Determine the screen DPI In-Reply-To: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> References: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> Message-ID: NVM. Apparently it depends on several things, including manufacturer, OS, scaling etc. Bob S > On Jul 26, 2023, at 11:23 AM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? > > Bob S From craig at starfirelighting.com Wed Jul 26 14:44:23 2023 From: craig at starfirelighting.com (Craig Newman) Date: Wed, 26 Jul 2023 14:44:23 -0400 Subject: Determine the screen DPI In-Reply-To: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> References: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> Message-ID: <6BCFCF46-5F3E-407A-924D-7DEABD37ABC5@starfirelighting.com> Hi. The “screenrect” gives you the factor required directly. If you measure the actual width, say, of the screen and divide that into the difference between item 3 and item 1 of the screenRect, you will get the number of pixels per inch. Craig > On Jul 26, 2023, at 2:23 PM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? > > 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 paul at researchware.com Wed Jul 26 15:47:40 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 15:47:40 -0400 Subject: charIndex property In-Reply-To: <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> Message-ID: <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> On 7/26/2023 1:13 PM, Bob Sneidar via use-livecode wrote: > OIC what that does. I suggest having a hidden field, setting the text of that field to your variable, then operating on that field. > > Bob S That is what I am currently doing. And I have a hidden field, hidden image, hidden player - all for purposes of various operations that you can do on real objects that the templateField, templateImage, and templatePlayer don't do (although there are some things done very nicely with the templates, such as set the rtfText of the templateField to ; get the text of the templateField -- for conversion from RTF to text (or text to htmlText or htmlText to text or ...) For reasons past that are not worth bring up in this email list, I have a slight aversion to hidden objects and prefer to work with the templateObjects or variables when i can. So, that is the very specific question of this post: Does anyone have a clever trick to do the equivalent of charIndex on a variable of text? I guess the allowed answers are "No" (no post is necessary), Yes (but I won't share it) (also no post necessary), Yes, and here it is (thank you), or perhaps a 4th, I don't understand the question, please clarify (which I would be happy to do if someone thinks they have a clever solution and just needs a bit more info) Paul From bobsneidar at iotecdigital.com Wed Jul 26 16:05:26 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 26 Jul 2023 20:05:26 +0000 Subject: Determine the screen DPI In-Reply-To: <6BCFCF46-5F3E-407A-924D-7DEABD37ABC5@starfirelighting.com> References: <302DD1FD-D860-4E7A-AFCF-BF74EF4C021E@iotecdigital.com> <6BCFCF46-5F3E-407A-924D-7DEABD37ABC5@starfirelighting.com> Message-ID: <1A60965C-0773-458C-B187-0CD3174251F5@iotecdigital.com> Yes, and that is what I did eventually. What I decided to do at any rate is assume 110 PPI for MacOS and 96 PPI for Windows. Not sure what Linux is or if there is anything such as a standard. My goal is to create a popup menu for selecting stack/card size when creating a new stack. Bob S > On Jul 26, 2023, at 11:44 AM, Craig Newman via use-livecode wrote: > > Hi. > > The “screenrect” gives you the factor required directly. If you measure the actual width, say, of the screen and divide that into the difference between item 3 and item 1 of the screenRect, you will get the number of pixels per inch. > > Craig > >> On Jul 26, 2023, at 2:23 PM, Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> I am trying to convert size in inches to size in pixels given a certain monitor in use. To do that I need to obtain the DPI of the current monitor. So for example let’s say I want to set the card size to 4x6 in inches. The monitor may be 72 dpi, 96 dpi or something else depending on the resolution. Is there an LC way to do this, or will I have to use terminal to grok it? >> >> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Wed Jul 26 16:20:43 2023 From: martyknappster at gmail.com (Marty Knapp) Date: Wed, 26 Jul 2023 13:20:43 -0700 Subject: LC on Sonoma beta Message-ID: Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. Also, anyone using the Levure framework to build Universal apps with LC 9.6.9? Thanks for any input --- Marty Knapp From paul at researchware.com Wed Jul 26 17:46:01 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 17:46:01 -0400 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: <9b80618e-a262-321d-e68d-2fdf7d2c0230@researchware.com> On 7/26/2023 4:20 PM, Marty Knapp via use-livecode wrote: > Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. > > Also, anyone using the Levure framework to build Universal apps with LC 9.6.9? > > Thanks for any input > There was an earlier series of posts on this list about an LC standalone or LC itself not running on Sonoma beta - whether that is a beta OS bug for Apple to fix or a breaking change that Livecode LTD will need to address in a 9.6.10 release I have no idea. From MikeKerner at roadrunner.com Wed Jul 26 20:00:06 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 26 Jul 2023 20:00:06 -0400 Subject: charIndex property In-Reply-To: <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> Message-ID: actually, i have a couple of questions, which are maybe suggestions, but are actually questions, because maybe someone else will be curious enough to try to solve them * did you check the oss source to see if the function is available? * have you messed with using regex to get around the issue? On Wed, Jul 26, 2023 at 3:48 PM Paul Dupuis via use-livecode wrote: > > On 7/26/2023 1:13 PM, Bob Sneidar via use-livecode wrote: > > OIC what that does. I suggest having a hidden field, setting the text of that field to your variable, then operating on that field. > > > > Bob S > > That is what I am currently doing. And I have a hidden field, hidden > image, hidden player - all for purposes of various operations that you > can do on real objects that the templateField, templateImage, and > templatePlayer don't do (although there are some things done very nicely > with the templates, such as set the rtfText of the templateField to > ; get the text of the templateField -- for conversion from RTF > to text (or text to htmlText or htmlText to text or ...) > > For reasons past that are not worth bring up in this email list, I have > a slight aversion to hidden objects and prefer to work with the > templateObjects or variables when i can. > > So, that is the very specific question of this post: Does anyone have a > clever trick to do the equivalent of charIndex on a variable of text? > > I guess the allowed answers are "No" (no post is necessary), Yes (but I > won't share it) (also no post necessary), Yes, and here it is (thank > you), or perhaps a 4th, I don't understand the question, please clarify > (which I would be happy to do if someone thinks they have a clever > solution and just needs a bit more info) > > Paul > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 paul at researchware.com Wed Jul 26 21:15:25 2023 From: paul at researchware.com (Paul Dupuis) Date: Wed, 26 Jul 2023 21:15:25 -0400 Subject: charIndex property In-Reply-To: References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> <3C0F1CD4-FC4E-473F-8BF3-3EF2E810BCC6@iotecdigital.com> <9EB2DA71-9B54-4C32-928F-94D9BB01AA0E@iotecdigital.com> <880b1e5e-92cd-1ef3-eee9-dd8de5401ada@researchware.com> Message-ID: On 7/26/2023 8:00 PM, Mike Kerner via use-livecode wrote: > actually, i have a couple of questions, which are maybe suggestions, > but are actually questions, because maybe someone else will be curious > enough to try to solve them > * did you check the oss source to see if the function is available? No. I have little detailed understanding of the open source Livecode code repository. My minimal understanding is that the engine source is mostly C++ and my knowledge of C is 30 years out of date. It would be a bit challenging for me to try to tease out the algorithm charIndex actually uses. An excellent question and idea though! Kudos! > * have you messed with using regex to get around the issue? My regex is a bit better, although I would not consider myself a regex expert. I had not though of exploring regex for this. I might give that a try, but if there is a regex expert who sees this that is willing to weigh on on how you might do this - even just a pointer in the right direction - that would be helpful. Another great question/idea. Thanks! charIndex is actually really powerful, if tied to a field object. You can do thing like "the charIndex of the last character of word 11 to 18 of field X" and it return the character position of the last character of the last word in the chunk. Of course, if that is what you want, "the charIndex of char -1 of word 18 of field X" is shorter and does the same thing. Complex expressions like: the charIndex of word 8 of sentence 3 of paragraph 5 of field X work as expected. Gosh, I really *love* Livecode Script's chunk expressions! They make complex text manipulation task so easy! -- Paul From mark at livecode.com Thu Jul 27 04:31:28 2023 From: mark at livecode.com (Mark Waddingham) Date: Thu, 27 Jul 2023 09:31:28 +0100 Subject: charIndex property In-Reply-To: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> Message-ID: On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: > If I have some text in a field, I can use the "charIndex" property (see > Dictionary) to obtain teh character position of the first character of > a chunk. > > Does anyone know of a clever way to do the equivalent of the charIndex > for an arbitrary chunk expression for a container/variable (i.e. not an > actual field object)? This should work I think: function charIndexOfWord pWordIndex, pTarget delete word pWordIndex to -1 of pTarget return the number of characters in pTarget + 1 end charIndexOfWord Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). Hope this helps! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From mark at livecode.com Thu Jul 27 04:39:16 2023 From: mark at livecode.com (Mark Waddingham) Date: Thu, 27 Jul 2023 09:39:16 +0100 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: > Anyone have any input regarding LC apps running on the Apple Sonoma > beta? I have not installed it but have some customers who have and > saying my app crashes. Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 We've investigated and have a fix. As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From marksmithhfx at gmail.com Thu Jul 27 06:39:57 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Thu, 27 Jul 2023 11:39:57 +0100 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: Thanks Mark. Wonderful to see LC is working on it. > On 27 Jul 2023, at 9:39 am, Mark Waddingham via use-livecode wrote: > > On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: >> Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. > > Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 > > We've investigated and have a fix. > > As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). > > I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Build Amazing Things > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From martyknappster at gmail.com Thu Jul 27 09:37:29 2023 From: martyknappster at gmail.com (Marty Knapp) Date: Thu, 27 Jul 2023 06:37:29 -0700 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: Thanks for that update! --- Marty Knapp > On Jul 27, 2023, at 1:39 AM, Mark Waddingham via use-livecode wrote: > > On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: >> Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. > > Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 > > We've investigated and have a fix. > > As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). > > I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Build Amazing Things From matthias_livecode_150811 at m-r-d.de Thu Jul 27 10:48:39 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 27 Jul 2023 16:48:39 +0200 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? Message-ID: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> Hi, is there anyone in the list who has already one of those new code signing certificates on an eToken or in the cloud and would like to test my new wrapper for signtool.exe? Especially those who are not very familiar with Windows might find this wrapper helpful. I've tested it with my cloud base certificate, but had no chance to get it tested from one with an eToken certificate. So if there is interest, then please let me know. Regards, Matthias From matthias_livecode_150811 at m-r-d.de Thu Jul 27 14:23:09 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 27 Jul 2023 20:23:09 +0200 Subject: LC on Sonoma beta In-Reply-To: References: Message-ID: The fixed version of LC 9.6.9 for Sonoma is now as download available. > Am 27.07.2023 um 15:37 schrieb Marty Knapp via use-livecode : > > Thanks for that update! > --- > Marty Knapp > >> On Jul 27, 2023, at 1:39 AM, Mark Waddingham via use-livecode wrote: >> >> On 2023-07-26 21:20, Marty Knapp via use-livecode wrote: >>> Anyone have any input regarding LC apps running on the Apple Sonoma beta? I have not installed it but have some customers who have and saying my app crashes. >> >> Unfortunately LC does currently crash on startup on the macOS Sonoma beta releases - https://quality.livecode.com/show_bug.cgi?id=24278 >> >> We've investigated and have a fix. >> >> As this essentially blocks any sort of testing of LC and LC apps on macOS Sonoma we are currently working on back-porting the fix to 9.6.9 and doing a 'hotfix' release of that version (the fix will obviously then flow into the upcoming 9.6.10-rc-1 and 10.0.0-dp-6 releases). >> >> I can't guarantee that there won't be other issues in macOS Sonoma as yet of course (as it is still beta software and a couple of months away from release), but at least we will actually be able to find out! >> >> Warmest Regards, >> >> Mark. >> >> -- >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >> LiveCode: Build Amazing Things > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 27 16:22:21 2023 From: paul at researchware.com (Paul Dupuis) Date: Thu, 27 Jul 2023 16:22:21 -0400 Subject: charIndex property In-Reply-To: References: <996cf194-3c14-58e3-54ad-8b3435366e78@researchware.com> Message-ID: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: > On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >> If I have some text in a field, I can use the "charIndex" property >> (see Dictionary) to obtain teh character position of the first >> character of a chunk. >> >> Does anyone know of a clever way to do the equivalent of the >> charIndex for an arbitrary chunk expression for a container/variable >> (i.e. not an actual field object)? > > This should work I think: > >    function charIndexOfWord pWordIndex, pTarget >       delete word pWordIndex to -1 of pTarget >       return the number of characters in pTarget + 1 >    end charIndexOfWord > > Deletion of chunks works from the first char that makes up the > computed range, so you are left with all the characters which sit > before it. > > The index of the character immediately before the start of the > specified word is the just the number of characters which sit before > it; and so the index of the first char of the specified word (which is > what charIndex gives you in a field) is that +1. > > The above should work for both +ve and -ve indices, and the obvious > changes will make it work for other string chunks (i.e. change 'Word' > for ). > Mark, Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) Using [] to quote strings. delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. This leaves pTarget as [The quick brown fox jumps over the .] The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. There are some similar issues, being off by  or more, with sentences and paragraphs in longer text. Thank you very much for chiming in with a good direction to try. Paul Dupuis Researchware From mark at livecode.com Thu Jul 27 17:06:17 2023 From: mark at livecode.com (Mark Waddingham) Date: Thu, 27 Jul 2023 22:06:17 +0100 Subject: charIndex property In-Reply-To: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. Alternative attempt: Put null into word N to -1 of S Delete codeunit (codeunitoffset(null, S) to -1 of S Return the number of chars in S + 1 The problem before was the chars which do not form part of the last chunk and remain after deletion. The above puts in a sentinel char which can be searched for to find where the requested chunk started. Second time lucky? ;) Mark. Sent from my iPhone > On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode wrote: > > On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >>> >>> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >> >> This should work I think: >> >> function charIndexOfWord pWordIndex, pTarget >> delete word pWordIndex to -1 of pTarget >> return the number of characters in pTarget + 1 >> end charIndexOfWord >> >> Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. >> >> The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. >> >> The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). >> > > Mark, > > Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: > > pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] > pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) > > Using [] to quote strings. > delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. > This leaves pTarget as [The quick brown fox jumps over the .] > The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. > > There are some similar issues, being off by or more, with sentences and paragraphs in longer text. > > Thank you very much for chiming in with a good direction to try. > > Paul Dupuis > Researchware > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Thu Jul 27 22:19:30 2023 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 28 Jul 2023 12:19:30 +1000 Subject: revDeleteFolder Message-ID: I just got hit (again - I had forgotten my previous encounter) with the fact that revDeleteFolder is not available in LC server. I have no problem using the workaround from the Common library noted in the bug report that dates from 2014, but it would be nice if the documentation could be updated —after 9 years it *still* says it is included in the server edition. From marksmithhfx at gmail.com Fri Jul 28 06:19:16 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 11:19:16 +0100 Subject: Reorder fields Message-ID: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? Thanks From paul at researchware.com Fri Jul 28 07:54:31 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 28 Jul 2023 07:54:31 -0400 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: <1896a657-8168-53b0-d256-8bf0c19a0e2b@researchware.com> On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote: > Oh those pesky chunks which dont cover the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting. > > Alternative attempt: > > Put null into word N to -1 of S > Delete codeunit (codeunitoffset(null, S) to -1 of S > Return the number of chars in S + 1 > > The problem before was the chars which do not form part of the last chunk and remain after deletion. > > The above puts in a sentinel char which can be searched for to find where the requested chunk started. > > Second time lucky? ;) > > Second time's the charm. That works for all chunk types tested (trueWord, sentence, paragraph)! Thank you! From craig at starfirelighting.com Fri Jul 28 09:36:28 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 09:36:28 -0400 Subject: Reorder fields In-Reply-To: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> Message-ID: <0CA76417-57FB-4224-8FAD-D7FB86B95C4A@starfirelighting.com> Hi. Not sure why the tabbing order seems to be out of whack, but you can always force the issue by trapping the tabKey message in each field, and directing it to the next one of you own choice. Craig > On Jul 28, 2023, at 6:19 AM, Mark Smith via use-livecode wrote: > > How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? > > 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 craig at starfirelighting.com Fri Jul 28 09:50:57 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 09:50:57 -0400 Subject: Reorder fields In-Reply-To: <0CA76417-57FB-4224-8FAD-D7FB86B95C4A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <0CA76417-57FB-4224-8FAD-D7FB86B95C4A@starfirelighting.com> Message-ID: <8A8B6C9B-D642-4B08-B73D-7A181CE288E4@starfirelighting.com> I was sloppy, as usual. Trap the message in the card, and use the target to know where you are and where to go next. Craig > On Jul 28, 2023, at 9:36 AM, Craig Newman via use-livecode wrote: > > Hi. > > Not sure why the tabbing order seems to be out of whack, but you can always force the issue by trapping the tabKey message in each field, and directing it to the next one of you own choice. > > Craig > >> On Jul 28, 2023, at 6:19 AM, Mark Smith via use-livecode wrote: >> >> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >> >> Thanks >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Fri Jul 28 10:00:55 2023 From: paul at researchware.com (Paul Dupuis) Date: Fri, 28 Jul 2023 10:00:55 -0400 Subject: Reorder fields In-Reply-To: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> Message-ID: <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: > How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? > > 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 marksmithhfx at gmail.com Fri Jul 28 10:19:57 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 15:19:57 +0100 Subject: Reorder fields In-Reply-To: <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> Message-ID: Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. Mark > On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: > > You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. > > > On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >> >> Thanks >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Fri Jul 28 11:17:42 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 11:17:42 -0400 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> Message-ID: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? Craig > On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: > > Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. > > Mark > > >> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >> >> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >> >> >> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>> >>> Thanks >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Fri Jul 28 11:17:42 2023 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 28 Jul 2023 11:17:42 -0400 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> Message-ID: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? Craig > On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: > > Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. > > Mark > > >> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >> >> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >> >> >> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>> >>> Thanks >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From marksmithhfx at gmail.com Fri Jul 28 11:50:59 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 16:50:59 +0100 Subject: Reorder fields In-Reply-To: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you select the label or the field on the form it does not select a group, so I never realised the grouping existed). Using the project browser to select each group the order was 8, 14, 11. I used Pauls trick to move grp 11 above 14 and that satisfied the reorder. But, I also tried and successfully used the Layer field in the Inspector to change the group ordering (in this case to 8, 14, 15) and achieved the same effect. It was a bit more complicated because I had to use the PB to select the grp and then open the inspector for that group to change the layer. Très compliqué, non! > On 28 Jul 2023, at 4:17 pm, Craig Newman via use-livecode wrote: > > Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? > > Craig > >> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: >> >> Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. >> >> Mark >> >> >>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >>> >>> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >>> >>> >>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 12:14:32 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 28 Jul 2023 11:14:32 -0500 Subject: Reorder fields In-Reply-To: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: <1899d47be40.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Layering works in the property inspector for me. The clue is that any layer you set moves everything above that layer one position higher. So if I want field b to layer lower than field c, I would set b's layer to what is currently c's layer. That would push c to one layer higher than b. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 28, 2023 10:20:23 AM Craig Newman via use-livecode wrote: > Why does, as Paul suggests, changing the layer order in the Project Browser > work, whereas changing the layer order explicitly does not? We know that > layers cannot be assigned to a particular object class (like fields) but > include all controls at once. Is it possible that the layer order of the > fields only was not properly grokked? > > Craig > >> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode >> wrote: >> >> Thanks Paul. That is one of those super helpful tips that is hard to >> discover on your own. 1 day we need an easily searchable wiki for all this >> acquired wisdom (but for now I have tucked it away for future reference). >> Thanks for replying. >> >> Mark >> >> >>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode >>> wrote: >>> >>> You can change the layer (order) in the Project Browser in the IDE by just >>> dragging the objects up or down the list of objects on the card. >>> >>> >>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) >>>> in positions 9, 15, 12 (as indicated by the Layer field in the Position >>>> tab). Tabbing cause these fields to be visited in the order a, c, b whereas >>>> I would prefer a, b, c. I have tried all manner of editing the Layer field >>>> to make them be in that order with no success, Ive variously tried new >>>> orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect >>>> their order. It always returns to 9, 15, 12. Lock size and position is not >>>> checked. Ive even tried doing this with the Number field in the Advanced >>>> tab, also without success. Ok, I did find a solution but while it was easy >>>> for me, it might not be as easy on a more complicated form. I deleted all 3 >>>> fields. Recreated field A (which was given the starting position of 11) >>>> then copy pasted two more times creating fields 12 and 13. So this >>>> satisfies my reorder interest, but seems to me a rather cumbersome and >>>> unnecessary procedure (if for no other reason than deleting fields also >>>> deletes all of the custom settings on the fields which doubles or triples >>>> the amount of effort involved). Maybe I am missing something more obvious? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 12:27:03 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 28 Jul 2023 11:27:03 -0500 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> You can toggle what gets selected with the "Select Grouped" icon in the top toolbar. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 28, 2023 10:53:08 AM Mark Smith via use-livecode wrote: > Well, this might explain it. The original designer had grouped the labels > and the fields into groups (so label A and field A into grp A, etc). I was > trying to change the order of the fields, (oddly, when you select the label > or the field on the form it does not select a group, so I never realised > the grouping existed). Using the project browser to select each group the > order was 8, 14, 11. I used Pauls trick to move grp 11 above 14 and that > satisfied the reorder. But, I also tried and successfully used the Layer > field in the Inspector to change the group ordering (in this case to 8, 14, > 15) and achieved the same effect. It was a bit more complicated because I > had to use the PB to select the grp and then open the inspector for that > group to change the layer. > > Trs compliqu, non! > > > >> On 28 Jul 2023, at 4:17 pm, Craig Newman via use-livecode >> wrote: >> >> Why does, as Paul suggests, changing the layer order in the Project Browser >> work, whereas changing the layer order explicitly does not? We know that >> layers cannot be assigned to a particular object class (like fields) but >> include all controls at once. Is it possible that the layer order of the >> fields only was not properly grokked? >> >> Craig >> >>> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode >>> wrote: >>> >>> Thanks Paul. That is one of those super helpful tips that is hard to >>> discover on your own. 1 day we need an easily searchable wiki for all this >>> acquired wisdom (but for now I have tucked it away for future reference). >>> Thanks for replying. >>> >>> Mark >>> >>> >>>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode >>>> wrote: >>>> >>>> You can change the layer (order) in the Project Browser in the IDE by just >>>> dragging the objects up or down the list of objects on the card. >>>> >>>> >>>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) >>>>> in positions 9, 15, 12 (as indicated by the Layer field in the Position >>>>> tab). Tabbing cause these fields to be visited in the order a, c, b whereas >>>>> I would prefer a, b, c. I have tried all manner of editing the Layer field >>>>> to make them be in that order with no success, Ive variously tried new >>>>> orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect >>>>> their order. It always returns to 9, 15, 12. Lock size and position is not >>>>> checked. Ive even tried doing this with the Number field in the Advanced >>>>> tab, also without success. Ok, I did find a solution but while it was easy >>>>> for me, it might not be as easy on a more complicated form. I deleted all 3 >>>>> fields. Recreated field A (which was given the starting position of 11) >>>>> then copy pasted two more times creating fields 12 and 13. So this >>>>> satisfies my reorder interest, but seems to me a rather cumbersome and >>>>> unnecessary procedure (if for no other reason than deleting fields also >>>>> deletes all of the custom settings on the fields which doubles or triples >>>>> the amount of effort involved). Maybe I am missing something more obvious? >>>>> >>>>> Thanks >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 28 13:05:13 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 28 Jul 2023 18:05:13 +0100 Subject: Reorder fields In-Reply-To: <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> You hit the nail on the head. Select grouped was not selected so each field / label looked independent (and could be independently selected). But in fact they were grouped. With select grouped off the fields could not be rearranged. Turning it on enabled layering the groups (containing the fields) in the correct order. Because its not obvious the fields are grouped I never think to check that option (this is not my stack but someone else’s. Probably at some point there was a point to grouping them together… maybe during the design phase). It’s all working now. And Pauls suggestion of checking the PB was useful in “seeing” that each fields label and field was grouped (even without the select grouped icon being toggled on). Thanks to all. Mark > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode wrote: > > You can toggle what gets selected with the "Select Grouped" icon in the top toolbar. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode wrote: > >> Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 28 17:12:41 2023 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 28 Jul 2023 17:12:41 -0400 Subject: ICYMI: 2024 app store API tightening Message-ID: Saw this in ZDNet: Certain iOS (and presumably macos) apis will require specific justification to be used, starting 2024: https://www.zdnet.com/article/developers-have-new-apple-app-store-rules-to-follow From bobsneidar at iotecdigital.com Fri Jul 28 17:35:14 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 28 Jul 2023 21:35:14 +0000 Subject: charIndex property In-Reply-To: <1896a657-8168-53b0-d256-8bf0c19a0e2b@researchware.com> References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> <1896a657-8168-53b0-d256-8bf0c19a0e2b@researchware.com> Message-ID: This is the essence on Livecode! This is why we love it! Shouldn’t we rebrand it? How about Lovecode?? ….. Never mind. 😂 Sent from my iPhone > On Jul 28, 2023, at 04:55, Paul Dupuis via use-livecode wrote: > > On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote: >> Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. >> >> Alternative attempt: >> >> Put null into word N to -1 of S >> Delete codeunit (codeunitoffset(null, S) to -1 of S >> Return the number of chars in S + 1 >> >> The problem before was the chars which do not form part of the last chunk and remain after deletion. >> >> The above puts in a sentinel char which can be searched for to find where the requested chunk started. >> >> Second time lucky? ;) >> >> > > Second time's the charm. That works for all chunk types tested (trueWord, sentence, paragraph)! Thank you! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Jul 28 18:20:56 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 28 Jul 2023 12:20:56 -1000 Subject: Reorder fields In-Reply-To: <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> Message-ID: Also check out the relayerGroupedControls property. It probably would have led to even greater confusion in this instance, but it's good to know about it and what it does. From the dictionary: "Specifies whether you can change the layer of controls in a group even if not in group-editing mode." I don't know how it works in the Project Browser, but in Navigator I set it to true before attempting any relayering, so in Navigator by default it's possible to relayer controls in groups, and into and out of groups, by dragging them. On Fri, Jul 28, 2023 at 7:06 AM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > You hit the nail on the head. Select grouped was not selected so each > field / label looked independent (and could be independently selected). But > in fact they were grouped. With select grouped off the fields could not be > rearranged. Turning it on enabled layering the groups (containing the > fields) in the correct order. Because its not obvious the fields are > grouped I never think to check that option (this is not my stack but > someone else’s. Probably at some point there was a point to grouping them > together… maybe during the design phase). It’s all working now. And Pauls > suggestion of checking the PB was useful in “seeing” that each fields label > and field was grouped (even without the select grouped icon being toggled > on). > > Thanks to all. > Mark > > > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > You can toggle what gets selected with the "Select Grouped" icon in the > top toolbar. > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >> Well, this might explain it. The original designer had grouped the > labels and the fields into groups (so label A and field A into grp A, etc). > I was trying to change the order of the fields, (oddly, when you Please > visit this url to subscribe, unsubscribe and manage your subscription > preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 29 03:49:13 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 29 Jul 2023 08:49:13 +0100 Subject: charIndex property In-Reply-To: References: Message-ID: Love it 😂 Sent from my iPhone > On Jul 28, 2023, at 10:36 PM, Bob Sneidar via use-livecode wrote: > > This is the essence on Livecode! This is why we love it! Shouldn’t we rebrand it? How about Lovecode?? ….. > > Never mind. 😂 > > Sent from my iPhone > >>> On Jul 28, 2023, at 04:55, Paul Dupuis via use-livecode wrote: >>> >>> On 7/27/2023 5:06 PM, Mark Waddingham via use-livecode wrote: >>> Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. >>> >>> Alternative attempt: >>> >>> Put null into word N to -1 of S >>> Delete codeunit (codeunitoffset(null, S) to -1 of S >>> Return the number of chars in S + 1 >>> >>> The problem before was the chars which do not form part of the last chunk and remain after deletion. >>> >>> The above puts in a sentinel char which can be searched for to find where the requested chunk started. >>> >>> Second time lucky? ;) >>> >>> >> >> Second time's the charm. That works for all chunk types tested (trueWord, sentence, paragraph)! Thank you! >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 29 09:19:23 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 29 Jul 2023 14:19:23 +0100 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> <1899d5333d8.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4587A321-D50B-4DFD-8DC0-5384D736A513@gmail.com> Message-ID: <9D4AB25B-CBB8-4FD8-A6C7-10AE8718CBC9@gmail.com> Thanks Geoff. Very interesting. That was, of course, my problem. The items were grouped and the relayerGroupedControls property was false. Changing it to true immediately made it possible to relayer the controls. I feel like I’ve just been introduced to huge component of livecode that I never knew existed (and thought was only available in one place in the IDE). There are rules here, and not just a few. First, items won’t relayer if they are grouped and relayingGroupedControls is set to false. If set to true then you can relayer them, but keep in mind a side effect (as I experienced) is it might change the grouping. However, if you toggle "select grouped" in the IDE you’ll visually see what is grouped, and you can relayer those groups if that achieves your purpose. In the case of just changing the tab order you have several options: you can change the relayerGroupedControls to true, you can ungroup the items and change the layer on the positions tab in the properties inspector or you can use the project browser to drag items around to relayer them (as this has the advantage of showing (more clearly) what items are grouped). Terrific information to know. Thank you everyone. Geoff, I’ve never played with Navigator but from the sounds of it you’ve kept it updated. Is it still available? Mark > On 28 Jul 2023, at 11:20 pm, Geoff Canyon wrote: > > Also check out the relayerGroupedControls property. It probably would have led to even greater confusion in this instance, but it's good to know about it and what it does. From the dictionary: "Specifies whether you can change the layer of controls in a group even if not in group-editing mode." > > I don't know how it works in the Project Browser, but in Navigator I set it to true before attempting any relayering, so in Navigator by default it's possible to relayer controls in groups, and into and out of groups, by dragging them. > > On Fri, Jul 28, 2023 at 7:06 AM Mark Smith via use-livecode > wrote: > You hit the nail on the head. Select grouped was not selected so each field / label looked independent (and could be independently selected). But in fact they were grouped. With select grouped off the fields could not be rearranged. Turning it on enabled layering the groups (containing the fields) in the correct order. Because its not obvious the fields are grouped I never think to check that option (this is not my stack but someone else’s. Probably at some point there was a point to grouping them together… maybe during the design phase). It’s all working now. And Pauls suggestion of checking the PB was useful in “seeing” that each fields label and field was grouped (even without the select grouped icon being toggled on). > > Thanks to all. > Mark > > > On 28 Jul 2023, at 5:27 pm, J. Landman Gay via use-livecode > wrote: > > > > You can toggle what gets selected with the "Select Grouped" icon in the top toolbar. > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On July 28, 2023 10:53:08 AM Mark Smith via use-livecode > wrote: > > > >> Well, this might explain it. The original designer had grouped the labels and the fields into groups (so label A and field A into grp A, etc). I was trying to change the order of the fields, (oddly, when you Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mkoob at rogers.com Sat Jul 29 10:27:44 2023 From: mkoob at rogers.com (Martin Koob) Date: Sat, 29 Jul 2023 10:27:44 -0400 Subject: Reorder fields In-Reply-To: <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Hi The tab order will follow the field’s layer from lowest to highest. (Or from highest to lowest if you hold down the SHIFT key while tabbing just like other apps.) So as you said with your original fields they will tab in this order. field “a" - Layer 9 field ”c" - Layer 12 field “b" - Layer 15 Craig you said... > whereas changing the layer order explicitly does not (work) How were you trying to change the layer? I didn’t know that dragging in the project browser works to order the objects. I will have to check that out. The two ways I have used are either with the property inspector or by script. Property Inspector - click the ‘Position’ tab of the property inspector - Change the number in the ‘Layer’ field either directly or by using the arrow keys. In your case I would first select field ‘b’ and then bump up its layer to 10. field “a" - Layer 9 field “b" - Layer 10 field ”c" - Layer 12 Then I would first select field c’ and then bump up its layer to 11. This is to prevent the focus going to object with layer 11 before going to object with later 12. The user will think the tab key did not work and have to tab again. field “a" - Layer 9 field “b" - Layer 10 field ”c" - Layer 11 That of course will reorder tabbing behaviour or overlapping of other objects between layer 9 and 15 which may or may not lead to unwanted results. Sometimes it can get crazy trying to figure out the order that is correct. Here is a script you can use to quickly show the fields’ layers as their values and put the fields names in their tooltips. command showFieldsLayers repeat with tfieldNumber = 1 to the number of fields of this card put "Layer: " & the layer of field tfieldNumber into field tfieldNumber set the tooltip of field tfieldNumber to the name of field tfieldNumber end repeat end showFieldsLayers Set Layer by Script The other way to set the layer of an object is to do it by script in the message box. set the layer of field "A" to 3 Have a good weekend all. Martin Koob > On Jul 28, 2023, at 11:17 AM, Craig Newman via use-livecode wrote: > > Why does, as Paul suggests, changing the layer order in the Project Browser work, whereas changing the layer order explicitly does not? We know that layers cannot be assigned to a particular object class (like fields) but include all controls at once. Is it possible that the layer order of the fields only was not properly grokked? > > Craig > >> On Jul 28, 2023, at 10:19 AM, Mark Smith via use-livecode wrote: >> >> Thanks Paul. That is one of those super helpful tips that is hard to discover on your own. 1 day we need an easily searchable wiki for all this acquired wisdom (but for now I have tucked it away for future reference). Thanks for replying. >> >> Mark >> >> >>> On 28 Jul 2023, at 3:00 pm, Paul Dupuis via use-livecode wrote: >>> >>> You can change the layer (order) in the Project Browser in the IDE by just dragging the objects up or down the list of objects on the card. >>> >>> >>> On 7/28/2023 6:19 AM, Mark Smith via use-livecode wrote: >>>> How do you reorder fields? I have a form (prebuilt) with 3 fields (a,b,c) in positions 9, 15, 12 (as indicated by the Layer field in the Position tab). Tabbing cause these fields to be visited in the order a, c, b whereas I would prefer a, b, c. I have tried all manner of editing the Layer field to make them be in that order with no success, I’ve variously tried new orders: 9,10,11 or 14,15,16 or even 20,21,22 but nothing seems to affect their order. It always returns to 9, 15, 12. Lock size and position is not checked. I’ve even tried doing this with the Number field in the Advanced tab, also without success. Ok, I did find a solution but while it was easy for me, it might not be as easy on a more complicated form. I deleted all 3 fields. Recreated field A (which was given the starting position of 11) then copy pasted two more times creating fields 12 and 13. So this satisfies my reorder interest, but seems to me a rather cumbersome and unnecessary procedure (if for no other reason than deleting fields also deletes all of the “custom” settings on the fields which doubles or triples the amount of effort involved). Maybe I am missing something more obvious? >>>> >>>> Thanks >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jul 29 11:00:35 2023 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 29 Jul 2023 16:00:35 +0100 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode wrote: > > The two ways I have used are either with the property inspector or by script. > > Property Inspector > - click the ‘Position’ tab of the property inspector > - Change the number in the ‘Layer’ field either directly or by using the arrow keys. Thanks Martin, but as noted, "items won’t relayer if they are grouped and “relayingGroupedControls" is set to false. That was exactly the situation I was in. In my case, field A was grouped with label A, etc so attempting to relayer them failed. I didn’t notice they were grouped because Select Grouped was not chosen in the menu bar. With Select Grouped chosen it’s easy to see the label-field grouping, and then to relayer the groups (not the fields inside the groups) if need be. Or, you can use the PB to do this by just dragging the groups around to relayer them. Finally, there’s a property called relayerGroupedControls which will allow you to relayer objects inside a group. If that had of been “true” instead of the default “false” I would have been able to relayer them in the first instance. But you have to be careful with this option as it can also revise the grouping. BTW, I just tried it (grouped the labels and fields, set the relayerGroupedControls option to true, turned off Select Grouped) and I was able to select the individual fields and relayer them using the Layer field in the Property Inspector. Kinda cool but my goodness you really have to know your stuff to make that manoeuvre happen. But also thank you for the opportunity to discuss this further. It helps with the encoding of this new information into my ageing brain 😊 And also, if I got any of it wrong, please correct me. Mark From mkoob at rogers.com Sat Jul 29 16:45:22 2023 From: mkoob at rogers.com (Martin Koob) Date: Sat, 29 Jul 2023 16:45:22 -0400 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Hi MarkwI did not see your later post that the fields were grouped. My scenario was just the most basic case of fields on a card. I guess it would work if all the fields were in 1 group but having fields in different groups certainly complicates things. Cool solution though. I wasn’t aware of the relayerGroupedControls option. Reading the entry in the Dictionary I learned some interesting things about groups and layers. e.g. you can move an object out of a group by setting its layer above the layer of the topmost object in the group or conversely setting it below the bottommost object in the group. Hmmm…. What could you do with that? True the old brain needs a bit of a work out once in a while to keep the neurons running. Thanks for posting your question. Martin > On Jul 29, 2023, at 11:00 AM, Mark Smith wrote: > > On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode > wrote: >> >> The two ways I have used are either with the property inspector or by script. >> >> Property Inspector >> - click the ‘Position’ tab of the property inspector >> - Change the number in the ‘Layer’ field either directly or by using the arrow keys. > > Thanks Martin, but as noted, "items won’t relayer if they are grouped and “relayingGroupedControls" is set to false. That was exactly the situation I was in. In my case, field A was grouped with label A, etc so attempting to relayer them failed. I didn’t notice they were grouped because Select Grouped was not chosen in the menu bar. With Select Grouped chosen it’s easy to see the label-field grouping, and then to relayer the groups (not the fields inside the groups) if need be. Or, you can use the PB to do this by just dragging the groups around to relayer them. Finally, there’s a property called relayerGroupedControls which will allow you to relayer objects inside a group. If that had of been “true” instead of the default “false” I would have been able to relayer them in the first instance. But you have to be careful with this option as it can also revise the grouping. BTW, I just tried it (grouped the labels and fields, set the relayerGroupedControls option to true, turned off Select Grouped) and I was able to select the individual fields and relayer them using the Layer field in the Property Inspector. Kinda cool but my goodness you really have to know your stuff to make that manoeuvre happen. > > But also thank you for the opportunity to discuss this further. It helps with the encoding of this new information into my ageing brain 😊 And also, if I got any of it wrong, please correct me. > > Mark > From gcanyon at gmail.com Sat Jul 29 18:20:48 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 29 Jul 2023 12:20:48 -1000 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: One trick to this is that objects are included into a group if relayerGroupedControls is set to true and the layer of the control is set to the layer above the group. Meaning that if you have this arrangement: stack "Untitled 1" card id 1002 | group id 1005 (1005) | | button "Button" (1006) | | button "Button" (1004) | button "Button" (1003) | button "test" (1007) put the layer of button "test" -- puts 5 set relayergroupedcontrols to false;set the layer of button "test" to 4 This is now the arrangement: stack "Untitled 1" card id 1002 | group id 1005 (1005) | | button "Button" (1006) | | button "Button" (1004) | button "test" (1007) | button "Button" (1003) put the layer of button "test" -- puts 4 Button "test" is immediately above the group, but not in the group set relayergroupedcontrols to true;set the layer of button "test" to 4 Now the arrangement is: stack "Untitled 1" card id 1002 | group id 1005 (1005) | | button "Button" (1006) | | button "Button" (1004) | | button "test" (1007) | button "Button" (1003) put the layer of button "test" -- puts 4 The layer of button "test" didn't change, but now it is in the group -- and the topmost object in the group. I learned this the hard way through much experimentation building Navigator. Getting drag-and-drop relayering right with selection of multiple objects, and discontiguous selections, in and out of groups, is *painful*, and I've done it several times now... On Sat, Jul 29, 2023 at 10:46 AM Martin Koob via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi MarkwI did not see your later post that the fields were grouped. My > scenario was just the most basic case of fields on a card. I guess it > would work if all the fields were in 1 group but having fields in different > groups certainly complicates things. Cool solution though. I wasn’t aware > of the relayerGroupedControls option. Reading the entry in the Dictionary > I learned some interesting things about groups and layers. > e.g. you can move an object out of a group by setting its layer above the > layer of the topmost object in the group or conversely setting it below > the bottommost object in the group. Hmmm…. What could you do with that? > > True the old brain needs a bit of a work out once in a while to keep the > neurons running. Thanks for posting your question. > > Martin > > > On Jul 29, 2023, at 11:00 AM, Mark Smith wrote: > > > > On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode < > use-livecode at lists.runrev.com > > wrote: > >> > >> The two ways I have used are either with the property inspector or by > script. > >> > >> Property Inspector > >> - click the ‘Position’ tab of the property inspector > >> - Change the number in the ‘Layer’ field either directly or by using > the arrow keys. > > > > Thanks Martin, but as noted, "items won’t relayer if they are grouped > and “relayingGroupedControls" is set to false. That was exactly the > situation I was in. In my case, field A was grouped with label A, etc so > attempting to relayer them failed. I didn’t notice they were grouped > because Select Grouped was not chosen in the menu bar. With Select Grouped > chosen it’s easy to see the label-field grouping, and then to relayer the > groups (not the fields inside the groups) if need be. Or, you can use the > PB to do this by just dragging the groups around to relayer them. Finally, > there’s a property called relayerGroupedControls which will allow you to > relayer objects inside a group. If that had of been “true” instead of the > default “false” I would have been able to relayer them in the first > instance. But you have to be careful with this option as it can also revise > the grouping. BTW, I just tried it (grouped the labels and fields, set the > relayerGroupedControls option to true, turned off Select Grouped) and I was > able to select the individual fields and relayer them using the Layer field > in the Property Inspector. Kinda cool but my goodness you really have to > know your stuff to make that manoeuvre happen. > > > > But also thank you for the opportunity to discuss this further. It helps > with the encoding of this new information into my ageing brain 😊 And also, > if I got any of it wrong, please correct me. > > > > 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 tom at makeshyft.com Sun Jul 30 02:42:41 2023 From: tom at makeshyft.com (Tom Glod) Date: Sun, 30 Jul 2023 02:42:41 -0400 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? In-Reply-To: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> References: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> Message-ID: Hmm, I'm going to look into this Matthias, I had not heard of etoken Certs. I wonder if this is the reason for the recent doubling of the price of signing certificates. On Thu, Jul 27, 2023 at 10:49 AM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > is there anyone in the list who has already one of those new code signing > certificates on an eToken or in the cloud and would like to test my new > wrapper for signtool.exe? > > Especially those who are not very familiar with Windows might find this > wrapper helpful. > > I've tested it with my cloud base certificate, but had no chance to get it > tested from one with an eToken certificate. > > So if there is interest, then please let me know. > > 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 jacque at hyperactivesw.com Sun Jul 30 14:08:18 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 30 Jul 2023 13:08:18 -0500 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? In-Reply-To: References: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> Message-ID: <189a7fc9e50.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Yes, prices have gone way up. You now need a physical USB stick with an encrypted certificate for Windows. I understand there is a cloud option too but we weren't offered that. If you go for the USB solution, give yourself some time. We ordered from Sectigo and while they claim you will get the device in 2 or 3 days, they didn't send it for 5 weeks, which required numerous support interactions to determine why the order was lost in the bureaucracy. If that happens to you, get on phone, the chat bot people are evasive and will tell you it's processing and you will receive it in "2 or 3 days." Demand to talk to a supervisor. My client can be very persuasive when she's pissed off. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 30, 2023 1:45:06 AM Tom Glod via use-livecode wrote: > Hmm, I'm going to look into this Matthias, I had not heard of etoken Certs. > I wonder if this is the reason for the recent doubling of the price of > signing certificates. > > On Thu, Jul 27, 2023 at 10:49AM matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi, >> is there anyone in the list who has already one of those new code signing >> certificates on an eToken or in the cloud and would like to test my new >> wrapper for signtool.exe? >> >> Especially those who are not very familiar with Windows might find this >> wrapper helpful. >> >> I've tested it with my cloud base certificate, but had no chance to get it >> tested from one with an eToken certificate. >> >> So if there is interest, then please let me know. >> >> Regards, >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Sun Jul 30 15:23:01 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sun, 30 Jul 2023 19:23:01 +0000 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Also good time to mention revNavigator where the grouping would be immediately obvious and you can drag to reorder. Sent from my iPhone > On Jul 29, 2023, at 15:22, Geoff Canyon via use-livecode wrote: > > One trick to this is that objects are included into a group if > relayerGroupedControls is set to true and the layer of the control is set > to the layer above the group. Meaning that if you have this arrangement: > > stack "Untitled 1" > card id 1002 > | group id 1005 (1005) > | | button "Button" (1006) > | | button "Button" (1004) > | button "Button" (1003) > | button "test" (1007) > > put the layer of button "test" > -- puts 5 > > set relayergroupedcontrols to false;set the layer of button "test" to 4 > > This is now the arrangement: > > stack "Untitled 1" > card id 1002 > | group id 1005 (1005) > | | button "Button" (1006) > | | button "Button" (1004) > | button "test" (1007) > | button "Button" (1003) > > put the layer of button "test" > -- puts 4 > > Button "test" is immediately above the group, but not in the group > > set relayergroupedcontrols to true;set the layer of button "test" to 4 > > Now the arrangement is: > > stack "Untitled 1" > card id 1002 > | group id 1005 (1005) > | | button "Button" (1006) > | | button "Button" (1004) > | | button "test" (1007) > | button "Button" (1003) > > put the layer of button "test" > -- puts 4 > > The layer of button "test" didn't change, but now it is in the group -- and > the topmost object in the group. > > I learned this the hard way through much experimentation building > Navigator. Getting drag-and-drop relayering right with selection of > multiple objects, and discontiguous selections, in and out of groups, is > *painful*, and I've done it several times now... > >> On Sat, Jul 29, 2023 at 10:46 AM Martin Koob via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Hi MarkwI did not see your later post that the fields were grouped. My >> scenario was just the most basic case of fields on a card. I guess it >> would work if all the fields were in 1 group but having fields in different >> groups certainly complicates things. Cool solution though. I wasn’t aware >> of the relayerGroupedControls option. Reading the entry in the Dictionary >> I learned some interesting things about groups and layers. >> e.g. you can move an object out of a group by setting its layer above the >> layer of the topmost object in the group or conversely setting it below >> the bottommost object in the group. Hmmm…. What could you do with that? >> >> True the old brain needs a bit of a work out once in a while to keep the >> neurons running. Thanks for posting your question. >> >> Martin >> >>>> On Jul 29, 2023, at 11:00 AM, Mark Smith wrote: >>> >>> On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode < >> use-livecode at lists.runrev.com > >> wrote: >>>> >>>> The two ways I have used are either with the property inspector or by >> script. >>>> >>>> Property Inspector >>>> - click the ‘Position’ tab of the property inspector >>>> - Change the number in the ‘Layer’ field either directly or by using >> the arrow keys. >>> >>> Thanks Martin, but as noted, "items won’t relayer if they are grouped >> and “relayingGroupedControls" is set to false. That was exactly the >> situation I was in. In my case, field A was grouped with label A, etc so >> attempting to relayer them failed. I didn’t notice they were grouped >> because Select Grouped was not chosen in the menu bar. With Select Grouped >> chosen it’s easy to see the label-field grouping, and then to relayer the >> groups (not the fields inside the groups) if need be. Or, you can use the >> PB to do this by just dragging the groups around to relayer them. Finally, >> there’s a property called relayerGroupedControls which will allow you to >> relayer objects inside a group. If that had of been “true” instead of the >> default “false” I would have been able to relayer them in the first >> instance. But you have to be careful with this option as it can also revise >> the grouping. BTW, I just tried it (grouped the labels and fields, set the >> relayerGroupedControls option to true, turned off Select Grouped) and I was >> able to select the individual fields and relayer them using the Layer field >> in the Property Inspector. Kinda cool but my goodness you really have to >> know your stuff to make that manoeuvre happen. >>> >>> But also thank you for the opportunity to discuss this further. It helps >> with the encoding of this new information into my ageing brain 😊 And also, >> if I got any of it wrong, please correct me. >>> >>> 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 matthias_livecode_150811 at m-r-d.de Sun Jul 30 16:56:37 2023 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 30 Jul 2023 22:56:37 +0200 Subject: Anyone with a new code sign certificate on eToken or in cloud would like to test my signtool.exe wrapper? In-Reply-To: <189a7fc9e50.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5B010330-9FE7-4B24-82DE-9957B20E5216@m-r-d.de> <189a7fc9e50.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <9BA65F49-1577-4C48-83EA-4FB2D5181534@m-r-d.de> > Am 30.07.2023 um 20:08 schrieb J. Landman Gay via use-livecode : > > Yes, prices have gone way up. You now need a physical USB stick with an encrypted certificate for Windows. > I understand there is a cloud option too but we weren't offered that. Not every certificate issuer offers the 'certificate in cloud' (software token) solution. I for example have a Certum certificate. Certum offers for the OV and the EV certificates both the certificate in cloud and the eToken solution. So one can choose. For my OV certificate in the cloud I paid not more than i paid for my old 3-year certificate. I purchased not directly from Certum, but from SSLPoint and paid 329 Eur for a 3-year OV certificate in the cloud. For those who are interested in a Cloud certificate.... Leaderssl.com is currently selling the 3-years Certum OV cloud certificate even for only 300 Euros and the EV for 600 Euros. The cloud based solutions works this way: You have to install a mobile app on your Android or iOS smart phone and also a desktop app on your Windows pc. The mobile app creates a one time password which you need to login with your desktop app into the Certum "Cloud" or however this could be called. As soon and as long you are logged in to the cloud service the certificate is "included" in your certificate store. Signtool.exe and any also other signing tool, e.g. Jarsigner, which is able to sign using a token, can access the certificate then. The eToken solution works similar. You have to install a driver for the eToken on your Windows PC. As soon as signtool tries to access the certificate from the eToken, the driver software asks for the password to access the eToken. Unfortunately osslsigncode for macOS currently does not support tokens, therefore it is not possible to sign Windows executabls on macOS anymore when using those new certificates. Osslsignode for Linux shall support the new tokens, but i haven't tested it yet. Matthias > If you go for the USB solution, give yourself some time. We ordered from Sectigo and while they claim you will get the device in 2 or 3 days, they didn't send it for 5 weeks, which required numerous support interactions to determine why the order was lost in the bureaucracy. If that happens to you, get on phone, the chat bot people are evasive and will tell you it's processing and you will receive it in "2 or 3 days." Demand to talk to a supervisor. > > My client can be very persuasive when she's pissed off. :) > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 30, 2023 1:45:06 AM Tom Glod via use-livecode wrote: > >> Hmm, I'm going to look into this Matthias, I had not heard of etoken Certs. >> I wonder if this is the reason for the recent doubling of the price of >> signing certificates. >> >> On Thu, Jul 27, 2023 at 10:49 AM matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi, >>> is there anyone in the list who has already one of those new code signing >>> certificates on an eToken or in the cloud and would like to test my new >>> wrapper for signtool.exe? >>> >>> Especially those who are not very familiar with Windows might find this >>> wrapper helpful. >>> >>> I've tested it with my cloud base certificate, but had no chance to get it >>> tested from one with an eToken certificate. >>> >>> So if there is interest, then please let me know. >>> >>> Regards, >>> Matthias >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Mon Jul 31 01:00:09 2023 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 30 Jul 2023 22:00:09 -0700 Subject: Reorder fields In-Reply-To: References: <8E57C3E6-E463-45B6-99F7-1428CC38611A@gmail.com> <700e68c0-fa7a-b9f5-c550-c3844aaa69a0@researchware.com> <346BBD4F-1727-4E24-A96A-73A9D04AAE7A@starfirelighting.com> Message-ID: Yeah, the three driving forces behind Navigator originally were: 1. Speed, because the alternatives didn't run so quickly for larger projects on hardware available circa 20 years ago. 2. Compactness, because the alternatives were pretty overwhelming on the monitors people were using back then. 3. And to your point: showing multiple layers clearly, because there were a number of former HyperCard users finding it hard to adapt to an environment with more than one "background". :-) On Sun, Jul 30, 2023 at 12:24 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Also good time to mention revNavigator where the grouping would be > immediately obvious and you can drag to reorder. > > Sent from my iPhone > > > On Jul 29, 2023, at 15:22, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > One trick to this is that objects are included into a group if > > relayerGroupedControls is set to true and the layer of the control is set > > to the layer above the group. Meaning that if you have this arrangement: > > > > stack "Untitled 1" > > card id 1002 > > | group id 1005 (1005) > > | | button "Button" (1006) > > | | button "Button" (1004) > > | button "Button" (1003) > > | button "test" (1007) > > > > put the layer of button "test" > > -- puts 5 > > > > set relayergroupedcontrols to false;set the layer of button "test" to 4 > > > > This is now the arrangement: > > > > stack "Untitled 1" > > card id 1002 > > | group id 1005 (1005) > > | | button "Button" (1006) > > | | button "Button" (1004) > > | button "test" (1007) > > | button "Button" (1003) > > > > put the layer of button "test" > > -- puts 4 > > > > Button "test" is immediately above the group, but not in the group > > > > set relayergroupedcontrols to true;set the layer of button "test" to 4 > > > > Now the arrangement is: > > > > stack "Untitled 1" > > card id 1002 > > | group id 1005 (1005) > > | | button "Button" (1006) > > | | button "Button" (1004) > > | | button "test" (1007) > > | button "Button" (1003) > > > > put the layer of button "test" > > -- puts 4 > > > > The layer of button "test" didn't change, but now it is in the group -- > and > > the topmost object in the group. > > > > I learned this the hard way through much experimentation building > > Navigator. Getting drag-and-drop relayering right with selection of > > multiple objects, and discontiguous selections, in and out of groups, is > > *painful*, and I've done it several times now... > > > >> On Sat, Jul 29, 2023 at 10:46 AM Martin Koob via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> Hi MarkwI did not see your later post that the fields were grouped. My > >> scenario was just the most basic case of fields on a card. I guess it > >> would work if all the fields were in 1 group but having fields in > different > >> groups certainly complicates things. Cool solution though. I wasn’t > aware > >> of the relayerGroupedControls option. Reading the entry in the > Dictionary > >> I learned some interesting things about groups and layers. > >> e.g. you can move an object out of a group by setting its layer above > the > >> layer of the topmost object in the group or conversely setting it below > >> the bottommost object in the group. Hmmm…. What could you do with that? > >> > >> True the old brain needs a bit of a work out once in a while to keep the > >> neurons running. Thanks for posting your question. > >> > >> Martin > >> > >>>> On Jul 29, 2023, at 11:00 AM, Mark Smith > wrote: > >>> > >>> On 29 Jul 2023, at 3:27 pm, Martin Koob via use-livecode < > >> use-livecode at lists.runrev.com > > >> wrote: > >>>> > >>>> The two ways I have used are either with the property inspector or by > >> script. > >>>> > >>>> Property Inspector > >>>> - click the ‘Position’ tab of the property inspector > >>>> - Change the number in the ‘Layer’ field either directly or by using > >> the arrow keys. > >>> > >>> Thanks Martin, but as noted, "items won’t relayer if they are grouped > >> and “relayingGroupedControls" is set to false. That was exactly the > >> situation I was in. In my case, field A was grouped with label A, etc so > >> attempting to relayer them failed. I didn’t notice they were grouped > >> because Select Grouped was not chosen in the menu bar. With Select > Grouped > >> chosen it’s easy to see the label-field grouping, and then to relayer > the > >> groups (not the fields inside the groups) if need be. Or, you can use > the > >> PB to do this by just dragging the groups around to relayer them. > Finally, > >> there’s a property called relayerGroupedControls which will allow you to > >> relayer objects inside a group. If that had of been “true” instead of > the > >> default “false” I would have been able to relayer them in the first > >> instance. But you have to be careful with this option as it can also > revise > >> the grouping. BTW, I just tried it (grouped the labels and fields, set > the > >> relayerGroupedControls option to true, turned off Select Grouped) and I > was > >> able to select the individual fields and relayer them using the Layer > field > >> in the Property Inspector. Kinda cool but my goodness you really have to > >> know your stuff to make that manoeuvre happen. > >>> > >>> But also thank you for the opportunity to discuss this further. It > helps > >> with the encoding of this new information into my ageing brain 😊 And > also, > >> if I got any of it wrong, please correct me. > >>> > >>> 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 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 31 11:44:24 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Jul 2023 15:44:24 +0000 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: I replaced the code in the original function with this code and it won’t compile. Do you mind posting the full working function again? Bob S > On Jul 27, 2023, at 2:06 PM, Mark Waddingham via use-livecode wrote: > > Oh those pesky chunks which don’t ‘cover’ the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting…. > > Alternative attempt: > > Put null into word N to -1 of S > Delete codeunit (codeunitoffset(null, S) to -1 of S > Return the number of chars in S + 1 > > The problem before was the chars which do not form part of the last chunk and remain after deletion. > > The above puts in a sentinel char which can be searched for to find where the requested chunk started. > > Second time lucky? ;) > > Mark. > > Sent from my iPhone > >> On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode wrote: >> >> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>>> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >>>> >>>> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >>> >>> This should work I think: >>> >>> function charIndexOfWord pWordIndex, pTarget >>> delete word pWordIndex to -1 of pTarget >>> return the number of characters in pTarget + 1 >>> end charIndexOfWord >>> >>> Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. >>> >>> The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. >>> >>> The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). >>> >> >> Mark, >> >> Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: >> >> pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] >> pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) >> >> Using [] to quote strings. >> delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. >> This leaves pTarget as [The quick brown fox jumps over the .] >> The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. >> >> There are some similar issues, being off by or more, with sentences and paragraphs in longer text. >> >> Thank you very much for chiming in with a good direction to try. >> >> Paul Dupuis >> Researchware >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Jul 31 11:54:04 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 31 Jul 2023 11:54:04 -0400 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: Bob, Here is a version of Mark's method, for trueWords, sentences, and paragraphs, with the added parameter of pDirection to get the char index of the start of the chunk or the end of the chunk containing the character position pChunkIndex. *private**function* rwCharIndex pText, pChunkType, pChunkIndex, pDirection *-- pText is the full text* *-- pChunkType is once of: words|sentences|paragraphs* *-- pChunkIndex is the integer index in the indicated units. ie. "word",7 is the 7th word* *-- pDirection is one of: first|last meaning either the 1st character of the chunk or the last character* *-- error checking, emty is returned if an error occurs with the parameters* *if* pText isempty*then* *return*empty *if* pChunkType isnotamongtheitemsof"words,sentences,paragraphs"*then* *return*empty *if* pChunkIndex isnotaninteger*then* *return*empty *if* pDirection isnotamongtheitemsof"first,last"*then* *return*empty *local*tL *switch* pChunkType *case* "words" *switch* pDirection *case* "first" *put*nullintotrueWordpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharsinpText + 1) *break* *case* "last" *put*length(trueWordpChunkIndex ofpText) intotL *put*nullintotrueWordpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharactersinpText + tL) *break* *end* *switch* *break* *case* "sentences" *switch* pDirection *case* "first" *put*nullintosentencepChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharsinpText + 1) *break* *case* "last" *put*length(sentencepChunkIndex ofpText) intotL *put*nullintosentencepChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharactersinpText + tL) *break* *end* *switch* *break* *case* "paragraphs" *switch* pDirection *case* "first" *put*nullintoparagraphpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharsinpText + 1) *break* *case* "last" *put*length(paragraphpChunkIndex ofpText) intotL *put*nullintoparagraphpChunkIndex to-1 ofpText *put*codeunitOffset(null,pText) intoN *delete*codeunitN to-1 ofpText *return*(thenumberofcharactersinpText + tL) *break* *end* *switch* *break* *end* *switch* *end*rwCharIndex On 7/31/2023 11:44 AM, Bob Sneidar via use-livecode wrote: > I replaced the code in the original function with this code and it wont compile. > > Do you mind posting the full working function again? > > Bob S > > >> On Jul 27, 2023, at 2:06 PM, Mark Waddingham via use-livecode wrote: >> >> Oh those pesky chunks which dont cover the target string (which is actually all of them except codeunit/point/char come to think of it). I should have run through a few more examples in my head before posting. >> >> Alternative attempt: >> >> Put null into word N to -1 of S >> Delete codeunit (codeunitoffset(null, S) to -1 of S >> Return the number of chars in S + 1 >> >> The problem before was the chars which do not form part of the last chunk and remain after deletion. >> >> The above puts in a sentinel char which can be searched for to find where the requested chunk started. >> >> Second time lucky? ;) >> >> Mark. >> >> Sent from my iPhone >> >>> On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode wrote: >>> >>> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>>>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>>>> If I have some text in a field, I can use the "charIndex" property (see Dictionary) to obtain teh character position of the first character of a chunk. >>>>> >>>>> Does anyone know of a clever way to do the equivalent of the charIndex for an arbitrary chunk expression for a container/variable (i.e. not an actual field object)? >>>> This should work I think: >>>> >>>> function charIndexOfWord pWordIndex, pTarget >>>> delete word pWordIndex to -1 of pTarget >>>> return the number of characters in pTarget + 1 >>>> end charIndexOfWord >>>> >>>> Deletion of chunks works from the first char that makes up the computed range, so you are left with all the characters which sit before it. >>>> >>>> The index of the character immediately before the start of the specified word is the just the number of characters which sit before it; and so the index of the first char of the specified word (which is what charIndex gives you in a field) is that +1. >>>> >>>> The above should work for both +ve and -ve indices, and the obvious changes will make it work for other string chunks (i.e. change 'Word' for ). >>>> >>> Mark, >>> >>> Thank you very much. This was a brilliant approach and I should have thought of it myself. However, it is not quite an accurate substitute for the charIndex property of a field. The following example illustrates the issue: >>> >>> pTarget is [The quick brown fox jumps over the lazy dog. The lazy dog was named "Oz".] >>> pWordIndex is 8 (having been derived from searching for 'lazy', the 8th word) >>> >>> Using [] to quote strings. >>> delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not the period (.) at the end since it is not considered part of word -1. >>> This leaves pTarget as [The quick brown fox jumps over the .] >>> The number of characters in pTarget + 1 is actually not the position of the [l] in [lazy], which is character 36, but the [a] in [azy], character 37, due to the period being left. >>> >>> There are some similar issues, being off by or more, with sentences and paragraphs in longer text. >>> >>> Thank you very much for chiming in with a good direction to try. >>> >>> Paul Dupuis >>> Researchware >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Mon Jul 31 11:56:01 2023 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 31 Jul 2023 15:56:01 +0000 Subject: LC domains for sale Message-ID: <20230731155601.Horde.-K_qhsPryOcwm8pdStpuAxt@hub.4wsys.com> I had taken out these domains some time ago for possible projects, but now I'm planning on having those proposed services become part of the existing livecodejournal.com domain instead.   If anyone here is interested in these domains they're listed at AfterNIC.com, and I'd be happy to negotiate favorable pricing if you have a community-oriented use in mind:   livecodeworld.com learnlivecode.com   --   Richard Gaskin Fourth World System   From paul at researchware.com Mon Jul 31 12:08:08 2023 From: paul at researchware.com (Paul Dupuis) Date: Mon, 31 Jul 2023 12:08:08 -0400 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: I have no idea why pasting placed *'s all over the place! On 7/31/2023 11:54 AM, Paul Dupuis via use-livecode wrote: > Bob, > > Here is a version of Mark's method, for trueWords, sentences, and > paragraphs, with the added parameter of pDirection to get the char > index of the start of the chunk or the end of the chunk containing the > character position pChunkIndex. > > *private**function* rwCharIndex pText, pChunkType, pChunkIndex, > pDirection > > *-- pText is the full text* > > *-- pChunkType is once of: words|sentences|paragraphs* > > *-- pChunkIndex is the integer index in the indicated units. ie. > "word",7 is the 7th word* > > *-- pDirection is one of: first|last meaning either the 1st character > of the chunk or the last character* > > *-- error checking, emty is returned if an error occurs with the > parameters* > > *if* pText isempty*then* *return*empty > > *if* pChunkType isnotamongtheitemsof"words,sentences,paragraphs"*then* > *return*empty > > *if* pChunkIndex isnotaninteger*then* *return*empty > > *if* pDirection isnotamongtheitemsof"first,last"*then* *return*empty > > *local*tL > > *switch* pChunkType > > *case* "words" > > *switch* pDirection > > *case* "first" > > *put*nullintotrueWordpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharsinpText + 1) > > *break* > > *case* "last" > > *put*length(trueWordpChunkIndex ofpText) intotL > > *put*nullintotrueWordpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharactersinpText + tL) > > *break* > > *end* *switch* > > *break* > > *case* "sentences" > > *switch* pDirection > > *case* "first" > > *put*nullintosentencepChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharsinpText + 1) > > *break* > > *case* "last" > > *put*length(sentencepChunkIndex ofpText) intotL > > *put*nullintosentencepChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharactersinpText + tL) > > *break* > > *end* *switch* > > *break* > > *case* "paragraphs" > > *switch* pDirection > > *case* "first" > > *put*nullintoparagraphpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharsinpText + 1) > > *break* > > *case* "last" > > *put*length(paragraphpChunkIndex ofpText) intotL > > *put*nullintoparagraphpChunkIndex to-1 ofpText > > *put*codeunitOffset(null,pText) intoN > > *delete*codeunitN to-1 ofpText > > *return*(thenumberofcharactersinpText + tL) > > *break* > > *end* *switch* > > *break* > > *end* *switch* > > *end*rwCharIndex > > > > > On 7/31/2023 11:44 AM, Bob Sneidar via use-livecode wrote: >> I replaced the code in the original function with this code and it >> wont compile. >> >> Do you mind posting the full working function again? >> >> Bob S >> >> >>> On Jul 27, 2023, at 2:06 PM, Mark Waddingham via use-livecode >>> wrote: >>> >>> Oh those pesky chunks which dont cover the target string (which >>> is actually all of them except codeunit/point/char come to think of >>> it). I should have run through a few more examples in my head before >>> posting. >>> >>> Alternative attempt: >>> >>> Put null into word N to -1 of S >>> Delete codeunit (codeunitoffset(null, S) to -1 of S >>> Return the number of chars in S + 1 >>> >>> The problem before was the chars which do not form part of the last >>> chunk and remain after deletion. >>> >>> The above puts in a sentinel char which can be searched for to find >>> where the requested chunk started. >>> >>> Second time lucky? ;) >>> >>> Mark. >>> >>> Sent from my iPhone >>> >>>> On 27 Jul 2023, at 21:23, Paul Dupuis via use-livecode >>>> wrote: >>>> >>>> On 7/27/2023 4:31 AM, Mark Waddingham via use-livecode wrote: >>>>>> On 2023-07-26 18:02, Paul Dupuis via use-livecode wrote: >>>>>> If I have some text in a field, I can use the "charIndex" >>>>>> property (see Dictionary) to obtain teh character position of the >>>>>> first character of a chunk. >>>>>> >>>>>> Does anyone know of a clever way to do the equivalent of the >>>>>> charIndex for an arbitrary chunk expression for a >>>>>> container/variable (i.e. not an actual field object)? >>>>> This should work I think: >>>>> >>>>>    function charIndexOfWord pWordIndex, pTarget >>>>>       delete word pWordIndex to -1 of pTarget >>>>>       return the number of characters in pTarget + 1 >>>>>    end charIndexOfWord >>>>> >>>>> Deletion of chunks works from the first char that makes up the >>>>> computed range, so you are left with all the characters which sit >>>>> before it. >>>>> >>>>> The index of the character immediately before the start of the >>>>> specified word is the just the number of characters which sit >>>>> before it; and so the index of the first char of the specified >>>>> word (which is what charIndex gives you in a field) is that +1. >>>>> >>>>> The above should work for both +ve and -ve indices, and the >>>>> obvious changes will make it work for other string chunks (i.e. >>>>> change 'Word' for ). >>>>> >>>> Mark, >>>> >>>> Thank you very much. This was a brilliant approach and I should >>>> have thought of it myself. However, it is not quite an accurate >>>> substitute for the charIndex property of a field. The following >>>> example illustrates the issue: >>>> >>>> pTarget is [The quick brown fox jumps over the lazy dog. The lazy >>>> dog was named "Oz".] >>>> pWordIndex is 8 (having been derived from searching for 'lazy', the >>>> 8th word) >>>> >>>> Using [] to quote strings. >>>> delete word 8 to -1 of pTarget -- deletes [lazy] to ["Oz"] but not >>>> the period (.) at the end since it is not considered part of word -1. >>>> This leaves pTarget as [The quick brown fox jumps over the .] >>>> The number of characters in pTarget + 1 is actually not the >>>> position of the [l] in [lazy], which is character 36, but the [a] >>>> in [azy], character 37, due to the period being left. >>>> >>>> There are some similar issues, being off by  or more, with >>>> sentences and paragraphs in longer text. >>>> >>>> Thank you very much for chiming in with a good direction to try. >>>> >>>> Paul Dupuis >>>> Researchware >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 31 12:11:51 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Jul 2023 16:11:51 +0000 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: On Jul 31, 2023, at 8:54 AM, Paul Dupuis via use-livecode wrote: Bob, Here is a version of Mark's method, for trueWords, sentences, and paragraphs, with the added parameter of pDirection to get the char index of the start of the chunk or the end of the chunk containing the character position pChunkIndex. Thanks, but whatever email app you sent from borked the code, putting asterisks before and after every keyword and running other words together. I always paste/copy my code in a generic text editor before sending to the list. At any rate, I cleaned it up and here is the code. Not sure why you made it a private function but I removed the keyword PRIVATE so it could be used anywhere. Thanks Mark for this effort. I think it should become part of the Master Library. Bob S function rwCharIndex pText, pChunkType, pChunkIndex, pDirection -- pText is the full text -- pChunkType is once of: words|sentences|paragraphs -- pChunkIndex is the integer index in the indicated units. ie. "word",7 is the 7th word -- pDirection is one of: first|last meaning either the 1st character of the chunk or the last character -- error checking, empty is returned if an error occurs with the parameters if pText is empty then return empty if pChunkType is not among the items of "words,sentences,paragraphs" then return empty if pChunkIndex is not an integer then return empty if pDirection is not among the items of "first,last" then return empty local tL switch pChunkType case "words" switch pDirection case "first" put null into trueWord pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of chars in pText + 1) break case "last" put length(trueWord pChunkIndex of pText) into tL put null into trueWord pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of characters in pText + tL) break end switch break case "sentences" switch pDirection case "first" put null into sentence pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of chars in pText + 1) break case "last" put length(sentence pChunkIndex of pText) into tL put null into sentence pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of characters in pText + tL) break end switch break case "paragraphs" switch pDirection case "first" put null into paragraph pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of chars in pText + 1) break case "last" put length(paragraph pChunkIndex of pText) into tL put null into paragraph pChunkIndex to-1 of pText put codeunitOffset(null,pText) into N delete codeunit N to-1 of pText return (the number of characters in pText + tL) break end switch break end switch end rwCharIndex From bobsneidar at iotecdigital.com Mon Jul 31 12:31:13 2023 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 31 Jul 2023 16:31:13 +0000 Subject: charIndex property In-Reply-To: References: <1f48d9cc-10a4-ae2c-11f7-e6474af5b876@researchware.com> Message-ID: <0E3C0707-3417-4DD7-B617-6A2234F3B933@iotecdigital.com> Are you using Thunderbird for an email client? Or are you copying from the forum? This was talked about years ago. For some reason different apps format clipboard text differently, and this is an artifact of one of those apps. That is why I paste, then re-copy code in a text editor like TextEdit or Sublime Text. If I don’t, then the lines are double spaced and it looks like crap and is hard to read. :-) Bob S On Jul 31, 2023, at 9:08 AM, Paul Dupuis via use-livecode wrote: I have no idea why pasting placed *'s all over the place! From dsc at swcp.com Mon Jul 31 20:48:27 2023 From: dsc at swcp.com (Dar Scott) Date: Mon, 31 Jul 2023 18:48:27 -0600 Subject: Managing windows in the IDE on Mac Message-ID: <9B368B43-B56B-43AE-A1D7-AF825538B07F@swcp.com> It has been a while. Hi, all. I’m getting back into LiveCode. I’m using 9.6.9 on Mac Ventura. I’m having a lot of trouble with the windows in the IDE. The backdrop doesn’t always work. The stack I’m working on keeps disappearing. I can check Float above everything, but that is not what I need and it can become a problem when I want to look at something else. The Project Browser stays behind everything and then disappears when I click on it. Dar Dar Scott  +1.505.433.1024 | darzLAB.com | DarScott at darzLAB.com From jacque at hyperactivesw.com Mon Jul 31 23:56:27 2023 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 31 Jul 2023 22:56:27 -0500 Subject: Managing windows in the IDE on Mac In-Reply-To: <9B368B43-B56B-43AE-A1D7-AF825538B07F@swcp.com> References: <9B368B43-B56B-43AE-A1D7-AF825538B07F@swcp.com> Message-ID: <189af3d71f8.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Hey Dar! So nice to see you here again. The backdrop problem is a known bug on Ventura. Sometimes you can click where the window ought to be and it comes to the front, but basically windowing is broken. The only fix I know of for now is to not use a backdrop. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 31, 2023 7:50:52 PM Dar Scott via use-livecode wrote: > It has been a while. Hi, all. Im getting back into LiveCode. > > Im using 9.6.9 on Mac Ventura. > > Im having a lot of trouble with the windows in the IDE. The backdrop > doesnt always work. The stack Im working on keeps disappearing. I can > check Float above everything, but that is not what I need and it can become > a problem when I want to look at something else. The Project Browser stays > behind everything and then disappears when I click on it. > > Dar > > > > > Dar Scott > > > > +1.505.433.1024 | darzLAB.com | > DarScott at darzLAB.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