Re: Closing a tab in a browser widget

2025-02-11 Thread Tom Glod via use-livecode
Hi jbv, there are no tabs that i know of in our browser widget, each tab would be its own widget .. you can delete or hide the widget to achieve this effect. On Tue, Feb 11, 2025 at 9:42 AM jbv via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi list, > > Is it poss

Closing a tab in a browser widget

2025-02-11 Thread jbv via use-livecode
Hi list, Is it possible to close a tab of a website displayed inside a browser widget ? I am on Mac and I know this can be done using AppleScript, but is there an LC-only solution ? Thank you in advance. jbv ___ use-livecode mailing list use-livecode

Re: Best way to base64encode a jpeg file ?

2025-02-06 Thread Monte Goulding via use-livecode
Whoops that should be: function urlSafeBase64 pData local tEncoded put base64Encode(pData) into tEncoded // The engine’s base64Encode function formats the result as required for // base 64 Content-Transfer-Encoding as discussed in RFC 4648 // section 3.1 and has linefeeds at 76 charac

Re: Best way to base64encode a jpeg file ?

2025-02-06 Thread Monte Goulding via use-livecode
> On 7 Feb 2025, at 9:54 AM, Bob Sneidar via use-livecode > wrote: > > Hi Monte. > > Are you saying a base64encode string CAN contain the characters you listed? > I’m talking about dash, underscore and equal. Or is that reference saying > that plus and minus (d

Re: Best way to base64encode a jpeg file ?

2025-02-06 Thread Bob Sneidar via use-livecode
Hi Monte. Are you saying a base64encode string CAN contain the characters you listed? I’m talking about dash, underscore and equal. Or is that reference saying that plus and minus (dash) are interchangeable, along with the slash and underscore respectively? Bob S > On Feb 6, 2025, at 1

Re: Best way to base64encode a jpeg file ?

2025-02-06 Thread Monte Goulding via use-livecode
Hi Bob > On 7 Feb 2025, at 3:28 AM, Bob Sneidar via use-livecode > wrote: > > I don’t see any of those characters on base64encoded strings. They definitely can be int there. Se RFC 4648 section 4 and 5 encoding tables for reference. https://datatracker.ietf.org/doc/html/rfc4648#section-5 C

Re: Best way to base64encode a jpeg file ?

2025-02-06 Thread Bob Sneidar via use-livecode
onte Goulding via use-livecode > Sent: Wednesday, February 05, 2025 4:36 AM > To: How to use LiveCode > Cc: Monte Goulding > Subject: Re: Best way to base64encode a jpeg file ? > > Hi jbv > >> Here is my code for base64 encoding : >> put URL ("file:"

Re: Best way to base64encode a jpeg file ?

2025-02-06 Thread Bob Sneidar via use-livecode
Well then that is now a function in my conversions library: function urlSafeBase64 pData replace return with empty in pData replace "+" with "-" in pData replace "/" with "_" in pData replace "=" with empty in pData return pData en

Re: Best way to base64encode a jpeg file ?

2025-02-06 Thread jbv via use-livecode
Hi Monte, It works ! Thank you very much ! jbv Le 2025-02-05 04:35, Monte Goulding via use-livecode a écrit : Hi jbv Here is my code for base64 encoding : put URL ("file:" & "myfile.jpg") into timagedata Use `binfile:` here instead of `file:` so the engine do

Re: Best way to base64encode a jpeg file ?

2025-02-05 Thread Bob Sneidar via use-livecode
I’m curious whether or not this solution worked… Bob S > On Feb 5, 2025, at 1:35 AM, Monte Goulding via use-livecode > wrote: > > Hi jbv > >> Here is my code for base64 encoding : >> put URL ("file:" & "myfile.jpg") into timagedata > > Use `binfile:` here instead of `file:` so the engine do

RE: Best way to base64encode a jpeg file ?

2025-02-05 Thread Ralph DiMola via use-livecode
essage- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Monte Goulding via use-livecode Sent: Wednesday, February 05, 2025 4:36 AM To: How to use LiveCode Cc: Monte Goulding Subject: Re: Best way to base64encode a jpeg file ? Hi jbv > Here is my code for ba

Re: Best way to base64encode a jpeg file ?

2025-02-05 Thread Monte Goulding via use-livecode
Hi jbv > Here is my code for base64 encoding : > put URL ("file:" & "myfile.jpg") into timagedata Use `binfile:` here instead of `file:` so the engine doesn’t treat the data as native text and fiddle with it > put base64encode(timagedata) into tBase64Image > replace return with "" in tBase64

Re: Best way to base64encode a jpeg file ?

2025-02-05 Thread jbv via use-livecode
,{_BASE64_}"}} instead of {"type" : "image_url", "image_url" : {"url": "data:image/jpeg;base64 {_BASE64_}"}} I found the tip in an obscure blog post from early 2023. Even the latest ChatGPT-4o3 missed the point. 2- I still have a problem

Re: Best way to base64encode a jpeg file ?

2025-02-04 Thread Mark Talluto via use-livecode
Further to Richard’s suggestions, please provide a link to the docs for the service. We can check out the API and see precisely what is going on. Best regards, Mark Talluto appli.io <https://appli.io/> livecloud.io <https://livecloud.io/> nursenotes.net <https:/

Re: Best way to base64encode a jpeg file ?

2025-02-04 Thread Richard Gaskin via use-livecode
You're already reading the file as binary, and you're already encoding it with Base64. You've addressed the basics well. But we see the issue lies in a murkier place. Without the complete relevant code and the API spec, anything offered here would be just a guess. So let&#

Re: Best way to base64encode a jpeg file ?

2025-02-04 Thread jbv via use-livecode
I am stuck. No matter what I try, I always get the same error : "url" field must be a base64 encoded image So I'm back to my very first question : how to base64encode a jpeg file in LC to be used in a regular multimodal json curl request... Le 2025-02-03 19:00, Richard Gaskin v

Re: Best way to base64encode a jpeg file ?

2025-02-03 Thread Richard Gaskin via use-livecode
jbv wrote: > Le 2025-02-02 21:10, Richard Gaskin via use-livecode a écrit : >> jbv wrote: >> >>> I need to base64encode a serie of jpeg files to include >>> the code in a curl request. >>> What is the best way to do that ? >> >> Depends.

Re: Best way to base64encode a jpeg file ?

2025-02-03 Thread jbv via use-livecode
Le 2025-02-03 11:07, Bob Sneidar via use-livecode a écrit : I heard that the base64encode puts a carriage return at a certain interval of characters (not sure how many). Bob S Yes, that's true, but even when I removed the returns it didn&#

Re: Best way to base64encode a jpeg file ?

2025-02-03 Thread Bob Sneidar via use-livecode
I heard that the base64encode puts a carriage return at a certain interval of characters (not sure how many). Bob S > On Feb 3, 2025, at 12:25 AM, jbv via use-livecode > wrote: > > Le 2025-02-02 21:10, Richard Gaskin via use-livecode a écrit : >> jbv wrote: >>&g

Re: Best way to base64encode a jpeg file ?

2025-02-03 Thread jbv via use-livecode
Le 2025-02-02 21:10, Richard Gaskin via use-livecode a écrit : jbv wrote: I need to base64encode a serie of jpeg files to include the code in a curl request. What is the best way to do that ? Depends. What's on the receiving end, and what options does it support? Actually, my que

Re: Best way to base64encode a jpeg file ?

2025-02-02 Thread Richard Gaskin via use-livecode
jbv wrote: > I need to base64encode a serie of jpeg files to include > the code in a curl request. > What is the best way to do that ? Depends. What's on the receiving end, and what options does it support? -- Richard Gaskin FourthWorld.com _

Re: Best way to base64encode a jpeg file ?

2025-02-02 Thread Alex Tweedly via use-livecode
Why not just something like repeat for each line L in tFilePathNames     put url ("binfile:" & L) into tmp     put base64encode(tmp) after tWhatever end repeat Alex. On 02/02/2025 19:14, jbv via use-livecode wrote: Hi list, I need to base64encode a serie of jpeg files to in

Best way to base64encode a jpeg file ?

2025-02-02 Thread jbv via use-livecode
Hi list, I need to base64encode a serie of jpeg files to include the code in a curl request. What is the best way to do that ? Do I need to import each file into an image control and base64encode the "text" of the image ? Thank you, jbv _

Re: Problem with the shell command with a local server

2024-12-31 Thread Bob Sneidar via use-livecode
Have you tried getting rid of the line breaks between the curly brackets? Bob S On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode wrote: -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' ___ us

Re: Problem with the shell command with a local server

2024-12-30 Thread jbv via use-livecode
Thank you Mark, the following modification did the trick : curl http://127.0.0.1:1234/v1/embeddings \ -s \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some te

Re: Problem with the shell command with a local server

2024-12-30 Thread Bob Sneidar via use-livecode
Have you tried getting rid of the line breaks between the curly brackets? Bob S On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode wrote: -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' ___ us

Re: Problem with the shell command with a local server

2024-12-30 Thread jbv via use-livecode
Actually it's not so simple, as the line is randomly corrupted and almost doesn't look twice the same. I already tried to clean up the json before using JsonImport, but it's almost impossible to use a general rule. I would prefer to find a way to prevent this to happen, since it do

Re: Problem with the shell command with a local server

2024-12-30 Thread Bob Sneidar via use-livecode
If you are parsing in LC, you can get the first word of each line. Now if the text returned actually contains a line break in the second line that is producing the erroneous third line, you may have to test the range of each line. Bob S > On Dec 30, 2024, at 8:13 AM, jbv via use-livec

Re: Problem with the shell command with a local server

2024-12-30 Thread Bob Sneidar via use-livecode
It looks like a continuation of the second line actually. Bob S > On Dec 30, 2024, at 8:13 AM, jbv via use-livecode > wrote: > > Hi list, > > Long story short : I am using LM Studio as a local server to send requests to > an LLM model. > I use the shell comman

Problem with the shell command on a local server

2024-12-30 Thread jbv via use-livecode
Hi list, Long story short : I am using LM Studio as a local server to send requests to an LLM model. I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. The request looks like that : curl http://127.0.0.1:1234/v1/embeddings \ -H "Content-Type: application/json&qu

Problem with the shell command with a local server

2024-12-30 Thread jbv via use-livecode
Hi list, Long story short : I am using LM Studio as a local server to send requests to an LLM model. I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. The request looks like that : curl http://127.0.0.1:1234/v1/embeddings \ -H "Content-Type: application/json&qu

Re: Your scripts as a flowchart

2024-12-04 Thread Andreas Bergendal via use-livecode
, updating the stack now without a creating new release (gosh, 4 people already downloaded it!). Thanks for that quick feedback, Bob! > 4 dec. 2024 kl. 21:41 skrev Bob Sneidar via use-livecode > : > > I get Syntax Error in Text when attempting a flow chart. It’s a large > proje

Re: Your scripts as a flowchart

2024-12-04 Thread Bob Sneidar via use-livecode
I get Syntax Error in Text when attempting a flow chart. It’s a large project. Bob S > On Dec 4, 2024, at 11:53 AM, Andreas Bergendal via use-livecode > wrote: > > Since the list is not very busy these days, I don’t feel too spammy posting a > minor update announcement aga

Re: Your scripts as a flowchart

2024-12-04 Thread Andreas Bergendal via use-livecode
Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. Setting the httpHeaders to "Content-Type: text/plain"

Re: Your scripts as a flowchart

2024-11-22 Thread Andreas Bergendal via use-livecode
A new WIS_ScriptDependencies update: v1.2.0 (22 Nov 2024) Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13

Re: Bring a stack to front when it is already open

2024-10-31 Thread Craig Newman via use-livecode
now. > > Bob S > > >> On Oct 28, 2024, at 4:45 PM, Richard Gaskin via use-livecode >> wrote: >> >> Bob wrote: >> >>> This may seem simple, but for some reason it’s not working. I have a >>> Views function that can open multiple wi

Re: How to determine if a text file is UTF8 ?

2024-10-30 Thread Ben Rubinstein via use-livecode
a use-livecode wrote: Hi list, How to determine if a text file is UTF8 or just plain ASCII ? In other words, how to know if one should use   open file myfile.txt for UTF8 read or   open file myfile.txt for read If it is really plain ASCII then it doesn't matter - UTF8 is a strict supers

Re: How to determine if a text file is UTF8 ?

2024-10-29 Thread jbv via use-livecode
Thank you all for your answers, and especially Mark for posting some code that I will try immediately. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Bring a stack to front when it is already open

2024-10-29 Thread Bob Sneidar via use-livecode
Okay, that’s odd. It IS working now. Bob S > On Oct 28, 2024, at 4:45 PM, Richard Gaskin via use-livecode > wrote: > > Bob wrote: > >> This may seem simple, but for some reason it’s not working. I have a >> Views function that can open multiple windows in one cli

Re: How to determine if a text file is UTF8 ?

2024-10-29 Thread Mark Waddingham via use-livecode
On 2024-10-29 08:53, jbv via use-livecode wrote: Hi list, How to determine if a text file is UTF8 or just plain ASCII ? In other words, how to know if one should use open file myfile.txt for UTF8 read or open file myfile.txt for read If it is really plain ASCII then it doesn't m

Re: How to determine if a text file is UTF8 ?

2024-10-29 Thread Bob Sneidar via use-livecode
I suppose you could also use textDecode(, “UTF-8”) to convert the text to that format. Bob S > On Oct 29, 2024, at 8:17 AM, Bob Sneidar via use-livecode > wrote: > > There is a Wikipedia article on this. Turns out it is not straightforward. > There can be a Byte Order Mar

Re: How to determine if a text file is UTF8 ?

2024-10-29 Thread Bob Sneidar via use-livecode
4, at 8:17 AM, Bob Sneidar via use-livecode >> wrote: >> >> There is a Wikipedia article on this. Turns out it is not straightforward. >> There can be a Byte Order Mark that the file begins with but not all vendors >> use it. And I do not think you can make the de

Re: How to determine if a text file is UTF8 ?

2024-10-29 Thread Bob Sneidar via use-livecode
There is a Wikipedia article on this. Turns out it is not straightforward. There can be a Byte Order Mark that the file begins with but not all vendors use it. And I do not think you can make the determination simply by examining the contents of the file. Byte-order mark[edit] If the Unicode

How to determine if a text file is UTF8 ?

2024-10-29 Thread jbv via use-livecode
Hi list, How to determine if a text file is UTF8 or just plain ASCII ? In other words, how to know if one should use open file myfile.txt for UTF8 read or open file myfile.txt for read Thank you. jbv ___ use-livecode mailing list use-livecode

Re: Bring a stack to front when it is already open

2024-10-28 Thread Richard Gaskin via use-livecode
Bob wrote: > This may seem simple, but for some reason it’s not working. I have a > Views function that can open multiple windows in one click, but > sometimes stacks can be obscured by others, so I have a Modules Menu > where you can select a stack and it will open it. > > Th

Re: Bring a stack to front when it is already open

2024-10-28 Thread Bob Sneidar via use-livecode
Thanks Phil. I suspected it might be a workaround, but it just seemed odd to me that with all the window commands and functions, there was no way to do this with a single command. Bob S > On Oct 26, 2024, at 12:58 PM, Phil Davis via use-livecode > wrote: > > Oops - sorry abou

Re: Bring a stack to front when it is already open

2024-10-26 Thread Phil Davis via use-livecode
This may answer your need but isn't very elegant:    *put*thestyleofstack"untitled 1"intox    *set*thestyleofstack"untitled 1"to*palette*    *set*thestyleofstack"untitled 1"tox Phil Davis On 10/25/24 9:38 AM, Bob Sneidar via use-livecode wrote: This may seem

Re: Bring a stack to front when it is already open

2024-10-26 Thread Phil Davis via use-livecode
This may seem simple, but for some reason it’s not working. I have a Views function that can open multiple windows in one click, but sometimes stacks can be obscured by others, so I have a Modules Menu where you can select a stack and it will open it. The problem is, Open Stack and Go Card x Of

Bring a stack to front when it is already open

2024-10-25 Thread Bob Sneidar via use-livecode
This may seem simple, but for some reason it’s not working. I have a Views function that can open multiple windows in one click, but sometimes stacks can be obscured by others, so I have a Modules Menu where you can select a stack and it will open it. The problem is, Open Stack and Go Card x

Re: Clipping a group by script

2024-10-12 Thread Klaus major-k via use-livecode
Hi Tom, > Am 12.10.2024 um 21:11 schrieb Tom Glod via use-livecode > : > > Klaus, > > its > > set the layerClipRect ... "layerClipRect"? To be honest I never heard this before, so thanks a bunch! :-D > On Sat, Oct 12, 2024 at 2:16 PM Klaus majo

Re: Clipping a group by script

2024-10-12 Thread Tom Glod via use-livecode
t;>> > >>>> On Oct 11, 2024, at 9:24 AM, Craig Newman via use-livecode < > use-livecode@lists.runrev.com> wrote: > >>>> > >>>> Bob. > >>>> I do not know why Klaus wants to truncate his groups, but I suspect > it has nothing

Re: Clipping a group by script

2024-10-12 Thread Klaus major-k via use-livecode
; On Oct 11, 2024, at 9:24 AM, Craig Newman via use-livecode >>>> wrote: >>>> >>>> Bob. >>>> I do not know why Klaus wants to truncate his groups, but I suspect it has >>>> nothing to do with fitting them onto the card. >>>>

Re: Clipping a group by script

2024-10-12 Thread Randy Hengst via use-livecode
, thanks > Craig! > >> Bob S >> >>> On Oct 11, 2024, at 9:24 AM, Craig Newman via use-livecode >>> wrote: >>> >>> Bob. >>> I do not know why Klaus wants to truncate his groups, but I suspect it has >>> nothing to do w

Re: Clipping a group by script

2024-10-11 Thread Klaus major-k via use-livecode
ect it has >> nothing to do with fitting them onto the card. >> >> Craig >> >>> On Oct 11, 2024, at 11:44 AM, Bob Sneidar via use-livecode >>> wrote: >>> >>> Hmmm… I wrote a handler to determine the rect of all the visible objects on

Re: Clipping a group by script

2024-10-11 Thread Bob Sneidar via use-livecode
1, 2024, at 11:44 AM, Bob Sneidar via use-livecode >> wrote: >> >> Hmmm… I wrote a handler to determine the rect of all the visible objects on >> a card so I can set the stack rect to that plus margins. It involved getting >> the left, top, right and bottom as sep

Re: Clipping a group by script

2024-10-11 Thread Klaus major-k via use-livecode
Exactly. > Craig > >> On Oct 11, 2024, at 11:44 AM, Bob Sneidar via use-livecode >> wrote: >> >> Hmmm… I wrote a handler to determine the rect of all the visible objects on >> a card so I can set the stack rect to that plus margins. It involved getting >

Re: Clipping a group by script

2024-10-11 Thread Craig Newman via use-livecode
Bob. I do not know why Klaus wants to truncate his groups, but I suspect it has nothing to do with fitting them onto the card. Craig > On Oct 11, 2024, at 11:44 AM, Bob Sneidar via use-livecode > wrote: > > Hmmm… I wrote a handler to determine the rect of all the visible objects

Re: Clipping a group by script

2024-10-11 Thread Bob Sneidar via use-livecode
Hmmm… I wrote a handler to determine the rect of all the visible objects on a card so I can set the stack rect to that plus margins. It involved getting the left, top, right and bottom as seperate values, of every visible object, then determining the min and max of each set of values as needed

Re: Clipping a group by script

2024-10-11 Thread Craig Newman via use-livecode
Klaus. Answered in the forum: Klaus. If I make a group and set its height property to a value smaller than the original, the top of the group stays put, and the bottom is truncated, so that is half the battle. If I then play with the scroll of the group, I can control the visible portion

Re: Clipping a group by script

2024-10-11 Thread Klaus major-k via use-livecode
Hi Craig, > Am 11.10.2024 um 15:58 schrieb Craig Newman via use-livecode > : > > Klaus. > > Answered in the forum: thank you, already answered to your answer. :-) > Klaus. > > If I make a group and set its height property to a value smaller than the > origin

Clipping a group by script

2024-10-11 Thread Klaus major-k via use-livecode
Hi friends, I want to clip a group by script but cannot get it to work!? See this image, it shows what i want to achieve: <https://major-k.de/temp/group_clipping.png> I want the content of the group to be clipped at the top and bottom. No problem when resizing manually but no dice by scr

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

2024-08-25 Thread Curry Kenworthy via use-livecode
jbv: > Is there a quick way to check if a group contains a specific control, > something like : if there is a fld "xyz" in grp "abc" of this cd > I tried many things but it always generates an error. Here is an easy and elegant way - almost what you started wit

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

2024-08-24 Thread Dick Kriesel via use-livecode
.com > >> On Aug 23, 2024, at 8:05 AM, Paul Dupuis via use-livecode >> wrote: >> >> On 8/23/2024 7:45 AM, Klaus major-k via use-livecode wrote: >>> Hi jbv, >>> >>>>> Am 23.08.2024 um 13:27 schrieb jbv via use-livecode >>&

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

2024-08-23 Thread Brian Milby via use-livecode
2024, at 8:05 AM, Paul Dupuis via use-livecode > wrote: > > On 8/23/2024 7:45 AM, Klaus major-k via use-livecode wrote: >> Hi jbv, >> >>>> Am 23.08.2024 um 13:27 schrieb jbv via use-livecode >>>> : >>> >>> Hi list, >>>

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

2024-08-23 Thread Paul Dupuis via use-livecode
On 8/23/2024 7:45 AM, Klaus major-k via use-livecode wrote: Hi jbv, Am 23.08.2024 um 13:27 schrieb jbv via use-livecode : Hi list, Is there a quick way to check if a group contains a specific control, something like : if there is a fld "xyz" in grp "abc" of this cd I t

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

2024-08-23 Thread Klaus major-k via use-livecode
Hi jbv, > Am 23.08.2024 um 13:27 schrieb jbv via use-livecode > : > > Hi list, > > Is there a quick way to check if a group contains a specific control, > something like : > if there is a fld "xyz" in grp "abc" of this cd > I tried many things

How to check if a group contains a specific control ?

2024-08-23 Thread jbv via use-livecode
Hi list, Is there a quick way to check if a group contains a specific control, something like : if there is a fld "xyz" in grp "abc" of this cd I tried many things but it always generates an error. So far, the only way I can think of is to maintain a custom prop for eac

A friendly reminder to read the new EULA - common privacy/security expectations

2024-08-17 Thread Curry Kenworthy via use-livecode
he EULA will also be modernized, to fit common privacy/security expectations in today's world! So, a friendly reminder - read the new EULA beforehand. (Any purchase of LC Create applies these terms to LC Classic too.) Not a problem for some, depending on your own situation; I'm glad! But 3rd

Re: Extracting test scores from a PDF

2024-08-17 Thread Paul Dupuis via use-livecode
On 8/17/2024 12:24 PM, Charles Szasz via use-livecode wrote: I came a web app that can extract test scores from a PDF and insert them into an app. Can LC do the same thing? I assume you mean can a programmer write an app in Livecode to extract test scores from a PDF and do something with

Extracting test scores from a PDF

2024-08-17 Thread Charles Szasz via use-livecode
I came a web app that can extract test scores from a PDF and insert them into an app. Can LC do the same thing? Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage

Re: A Windows weirdness

2024-08-14 Thread Mark Waddingham via use-livecode
On 2024-08-13 21:24, Ben Rubinstein via use-livecode wrote: It turned out that the issue was that I was reading the data as put URL format("binfile://%s", tPath) into tData this was working, but now returned "can't open file". Changing the statement to put URL format("binfile:%

Re: A Windows weirdness

2024-08-13 Thread Paul Dupuis via use-livecode
it to allow for both style of Windows paths to be handled properly. Windows backslash \ gets converted to a / in most LC file paths (for example, the result of a open or save file dialog Perhaps the IT did something to require only UNC paths and the // after the binfile had it look for a server r

A Windows weirdness

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

Re: Difficulty making a Mac app that works on another laptop

2024-08-13 Thread Colin Holgate via use-livecode
I tried a standalone app on another computer, and sure enough got the message about it not being able to open. But, the usual work around of right-click, Open, does work. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re : Difficulty making a Mac app that works on another laptop

2024-08-13 Thread Georges Malamoud via use-livecode
Hello It is a standard issue on Mac. Apple protects their systems for non officially code signed apps. There are some procedures to circumvent this with your app - if you are an Apple official developer (like me) you have to include a developer certificate in you app instructions here https

Re: Difficulty making a Mac app that works on another laptop

2024-08-13 Thread Matthias Rebbe via use-livecode
He also said, that building the app on his colleagues Livecode installation creates an app that can be opened on his colleagues computer. And i wanted to know if that app can also be opened on the OP‘s computer. Von meinem iPad gesendet > Am 13.08.2024 um 16:02 schrieb Craig Newman via use-li

Re: Difficulty making a Mac app that works on another laptop

2024-08-13 Thread Simon Knight via use-livecode
Hi, Does the built application icon look as it should?' Are the laptops all using the same chip set e.g. powerpc, intel or Arm? Are the build settings correct? Can you view package contents? S > On 13 Aug 2024, at 13:32, Alex Morrison via use-livecode > wrote: > > Hi

Re: Difficulty making a Mac app that works on another laptop

2024-08-13 Thread Craig Newman via use-livecode
Matthias: "Does the app, which was created on your colleagues computer run on your Mac?” The OP said he developed the app on his own machine. Craig > On Aug 13, 2024, at 9:34 AM, Matthias Rebbe via use-livecode > wrote: > > Does the app, which was created on your colleagues computer run on y

Re: Difficulty making a Mac app that works on another laptop

2024-08-13 Thread Matthias Rebbe via use-livecode
eb Alex Morrison via use-livecode > : > > Hi there, > > I’m a LiveCode licensee with a Mac runtime license trying to make a desktop > app that I can distribute to a few other people. > > I’ve adjusted all the obvious settings and made an app. The resulting app > works

Difficulty making a Mac app that works on another laptop

2024-08-13 Thread Alex Morrison via use-livecode
Hi there, I’m a LiveCode licensee with a Mac runtime license trying to make a desktop app that I can distribute to a few other people. I’ve adjusted all the obvious settings and made an app. The resulting app works fine on my own laptop, no problem. But when I send it to another laptop it

Re: Cell colorization in a table in Livecode...

2024-08-07 Thread Bob Sneidar via use-livecode
Bob S On Aug 7, 2024, at 11:17 AM, Bob Sneidar wrote: On Aug 7, 2024, at 10:47 AM, Paul Dupuis via use-livecode wrote: Now, our current problem is that there does not appear to be any tricks to having variable cell background colors in a Polygrid. Row colors: yes Alternate Row colors

Re: Cell colorization in a table in Livecode...

2024-08-07 Thread Bob Sneidar via use-livecode
On Aug 7, 2024, at 10:47 AM, Paul Dupuis via use-livecode wrote: Now, our current problem is that there does not appear to be any tricks to having variable cell background colors in a Polygrid. Row colors: yes Alternate Row colors: Yes, Highlight color: Yes, possibly even highlighting

Cell colorization in a table in Livecode...

2024-08-07 Thread Paul Dupuis via use-livecode
My second color question of the day. We current have a analytical view in our app which shows a table of frequencies. The number of rows and columns are driven by user data and can becomes a large number (I've heard all the arguments that users should not ever view tables of hundreds of

[ANN] A new version of TinyDictionary

2024-07-16 Thread Niggemann, Bernd via use-livecode
A new version of TinyDictionary has been uploaded to Livecodeshare https://livecodeshare.runrev.com/stack/825/TinyDictionary or download it from within the IDE from "Sample Stacks" Kind regards Bernd ___ use-livecode mailing list us

Re: Different borders for a group

2024-06-13 Thread Craig Newman via use-livecode
Hi. The borderWidth is a property of the entire border. You will have to add your own one by one. Hey, at least that allows you to change colors and other things as well. Craig > On Jun 13, 2024, at 4:28 AM, jbv via use-livecode > wrote: > > Hi list, > > Is there a way

Different borders for a group

2024-06-13 Thread jbv via use-livecode
Hi list, Is there a way to have different border widths and colors for the top and the bottom of a group ? Or should I include graphic lines inside the group ? Thank you in advance. jbv ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Return Total of a Given Repeated Number in a List

2024-05-25 Thread Alex Tweedly via use-livecode
On 25/05/2024 16:13, Mike Kerner via use-livecode wrote: (to alex's question) * quicken date shortcuts quicken has/had these very nifty ways of handling date inputs, to make entry faster. if you enter a numeral, like 26, it means that date of this month. similarly, month/date e.g. 5/25

Re: Return Total of a Given Repeated Number in a List

2024-05-25 Thread Mike Kerner via use-livecode
(to alex's question) > * quicken date shortcuts quicken has/had these very nifty ways of handling date inputs, to make entry faster. if you enter a numeral, like 26, it means that date of this month. similarly, month/date e.g. 5/25 is 5/25 of this year. "T" is today "+"

Re: Return Total of a Given Repeated Number in a List

2024-05-24 Thread Roger Guay via use-livecode
>> >>> On May 23, 2024, at 7:07 PM, Roger Guay via use-livecode >>> wrote: >>> >>> >>> Hi all, >>> >>> Please, what’s the easiest way to return the total number of a given >>> repeated number in a li

Re: Return Total of a Given Repeated Number in a List

2024-05-24 Thread Bob Sneidar via use-livecode
ems of tList > > Bob S > > >> On May 23, 2024, at 7:07 PM, Roger Guay via use-livecode >> wrote: >> >> >> Hi all, >> >> Please, what’s the easiest way to return the total number of a given >> repeated number in a list of numbers? IOW, how

Re: Return Total of a Given Repeated Number in a List

2024-05-24 Thread Bob Sneidar via use-livecode
Filter items of tList with 2;put the number of items of tList Bob S > On May 23, 2024, at 7:07 PM, Roger Guay via use-livecode > wrote: > > > Hi all, > > Please, what’s the easiest way to return the total number of a given repeated > number in a list of numbers?

Re: Return Total of a Given Repeated Number in a List

2024-05-24 Thread Alex Tweedly via use-livecode
On 24/05/2024 13:35, Mike Kerner via use-livecode wrote: i LOVE all of these solutions. chunking is so great. in every language i use, there are two things i always implement: * chunking Yes. * quicken date shortcuts Alex. ___ use-livecod

Re: Return Total of a Given Repeated Number in a List

2024-05-24 Thread Mike Kerner via use-livecode
t is this: > > function countOccurrences pString >repeat for each item tItem in pString > add 1 to tFrequencyArray[tItem] >end repeat > >return tFrequencyArray > end countOccurrences > > To get the number of 2’s, just extract tFrequencyArray[2] etc. >

Re: Return Total of a Given Repeated Number in a List

2024-05-23 Thread Andreas Bergendal via use-livecode
get a frequency list (array) of ALL the items in one go. The bonus advantage is that you also get a list of unique values, by getting the keys of tFrequencyArray. So it also serves as a duplicate-clearing function, which is sometimes handy. /Andreas > 24 maj 2024 kl. 07:08 skrev Roger G

Re: Return Total of a Given Repeated Number in a List

2024-05-23 Thread Roger Guay via use-livecode
comma & tSearchingFor *then* *add* 1 to tNum > > On Thu, May 23, 2024 at 10:08 PM Roger Guay via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> >> Hi all, >> >> Please, what’s the easiest way to return the total number of a give

Re: Return Total of a Given Repeated Number in a List

2024-05-23 Thread Terry Judd via use-livecode
Guay Subject: Return Total of a Given Repeated Number in a List Hi all, Please, what’s the easiest way to return the total number of a given repeated number in a list of numbers? IOW, how many times is 2 repeated in a list containing 1,2,3,2,4,2,5,2,8 etc. Appreciate your help. Thanks, Roger

Re: Return Total of a Given Repeated Number in a List

2024-05-23 Thread Mike Kerner via use-livecode
d* 1 to tNum *if* tSearchString ends with comma & tSearchingFor *then* *add* 1 to tNum On Thu, May 23, 2024 at 10:08 PM Roger Guay via use-livecode < use-livecode@lists.runrev.com> wrote: > > Hi all, > > Please, what’s the easiest way to return the total number of a given >

Return Total of a Given Repeated Number in a List

2024-05-23 Thread Roger Guay via use-livecode
Hi all, Please, what’s the easiest way to return the total number of a given repeated number in a list of numbers? IOW, how many times is 2 repeated in a list containing 1,2,3,2,4,2,5,2,8 etc. Appreciate your help. Thanks, Roger ___ use-livecode

Re: How to edit a How To Lesson?

2024-02-11 Thread kee nethery via use-livecode
ver your password? > > I had to reset my password to log in but it didn’t appear to grant me any > additional access to my lesson. Will try the screensteps download. Thanks, > Kee > > >> >>> Am 11.02.2024 um 23:04 schrieb kee nethery via use-livecode >>> : &g

Re: How to edit a How To Lesson?

2024-02-11 Thread kee nethery via use-livecode
ppear to grant me any additional access to my lesson. Will try the screensteps download. Thanks, Kee > >> Am 11.02.2024 um 23:04 schrieb kee nethery via use-livecode >> : >> >> I seem to have forgotten how to edit my LiveCode lesson. >> >

  1   2   3   4   5   6   7   8   9   10   >