Search found 419 matches

by Jellicle
Fri Jan 21, 2022 7:57 am
Forum: Talking LiveCode
Topic: Filtering question
Replies: 19
Views: 25648

Re: Filtering question


Hi, Jellicle. Here's a technique that runs over twenty times as fast as the nested-repeat technique (as coded by SWEdeAndy):
function filterWordsWithChars pWords, pChars
repeat for each char tChar in pChars
filter pWords with "*" & tChar & "*"
end repeat
return pWords
end filterWordsWithChars ...
by Jellicle
Wed Jan 19, 2022 9:35 pm
Forum: Talking LiveCode
Topic: Filtering question
Replies: 19
Views: 25648

Re: Filtering question

ClipArtGuy wrote: Wed Jan 19, 2022 7:18 pm
The community installers are still up here:

https://community.livecode.com

And once those are gone, you can find them on archive.org by searching "livecode,inc"
Wow, thanks!

g
by Jellicle
Wed Jan 19, 2022 12:47 am
Forum: Talking LiveCode
Topic: Filtering question
Replies: 19
Views: 25648

Re: Filtering question

SWEdeAndy wrote: Tue Jan 18, 2022 2:14 pm Here's a slightly modified version of my first function, which should work in any version of LC:
Yes, that's roughly the method I came up with myself, but on a list with 20,000 or more lines...slow...

I can't find an installable version of 9.5 or higher :(

No, not a Wordle solver!
by Jellicle
Tue Jan 18, 2022 11:50 am
Forum: Talking LiveCode
Topic: Filtering question
Replies: 19
Views: 25648

Re: Filtering question

Thanks!

I'm getting an error - I'm on the community version of LiveCode (9.0.2) so the form of the filter command you are using may not be available for me. The error is in this line:

filter lines of tData where checkLine(each) into tDest

The error messages says the compiler was expecting "with ...
by Jellicle
Tue Jan 18, 2022 5:06 am
Forum: Talking LiveCode
Topic: Filtering question
Replies: 19
Views: 25648

Filtering question

I have a list of words, one to a line. I want to filter that list to include only those that contain every letter in a string. So if my string = "aefg" I want to find only those words in my list that contain those characters (in any order).

How do I that? Is the filter command my best option ...
by Jellicle
Sat Jan 20, 2018 11:59 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Downloading pdfs
Replies: 8
Views: 12143

Re: Downloading pdfs

AndyP wrote: Fri Jan 19, 2018 12:27 pm A variation on the previous method
Your script worked perfectly! This forum saved my bacon years ago, and again today :)

Thanks Andy, Klaus!

Gerry
by Jellicle
Fri Jan 19, 2018 5:06 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Downloading pdfs
Replies: 8
Views: 12143

Re: Downloading pdfs

Hi again

I tried again with a known, valid .pdf. The following returns "can't open file":

put specialfolderpath("desktop") & "/" into tTargetFolder
put "http://www.africau.edu/images/default/sample.pdf" into tSourceFolder
put url(tSourceFolder) into url("binfile:" & tTargetfolder)
answer the ...
by Jellicle
Fri Jan 19, 2018 1:23 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Downloading pdfs
Replies: 8
Views: 12143

Re: Downloading pdfs

Ok, seems the server is funky in the way it's handling the pdfs. When you go to https://websever.com/1 or https://websever.com/1.pdf in a browser, a pdf loads. But when I run your code, it creates an empty pdf. The error I get when I try to open it in Preview is "The file “2.pdf” could not be opened ...
by Jellicle
Thu Jan 18, 2018 10:46 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Downloading pdfs
Replies: 8
Views: 12143

Re: Downloading pdfs

Klaus wrote: Thu Jan 18, 2018 1:20 pm HI Gerry,

welcome back! :D
Thanks, but it's not for long :)

And thanks for your help. It's amazing what you forget in such a short time :)

Gerry
by Jellicle
Thu Jan 18, 2018 11:32 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Downloading pdfs
Replies: 8
Views: 12143

Downloading pdfs

I used to be a LiveCode developer but I've been away from the platform for a few years.

I have 524 pdf files on a web server, at http://webserver.com/1 to http://webserver.com/524. I want a script that will download them all to a folder on my desktop (one at a time is fine, and it doesn't have to ...
by Jellicle
Wed Feb 25, 2015 11:16 am
Forum: iOS Deployment
Topic: Issues with 64-bit iOS (LC 6.7.2 RC 2 and LC 7.0.2 rc 2)
Replies: 17
Views: 19274

Re: Issues with 64-bit iOS (LC 6.7.2 RC 2 and LC 7.0.2 rc 2)

LCNeil wrote:as we will have a new release available soon
Neil, can you give us an update on this?

Gerry
by Jellicle
Sat Feb 21, 2015 3:11 am
Forum: iOS Deployment
Topic: Issues with 64-bit iOS (LC 6.7.2 RC 2 and LC 7.0.2 rc 2)
Replies: 17
Views: 19274

Re: Issues with 64-bit iOS (LC 6.7.2 RC 2 and LC 7.0.2 rc 2)

iOS 7 and iOS 8 both have support from some non-retina devices (ipad min and ipad2), so restricting iOS version will not give full control over whether the device is retina or not.

I should have been clearer: retina small screen devices. My app can't run on iPhone 3, 3GS or older iPod touch ...
by Jellicle
Fri Feb 20, 2015 1:02 pm
Forum: iOS Deployment
Topic: Issues with 64-bit iOS (LC 6.7.2 RC 2 and LC 7.0.2 rc 2)
Replies: 17
Views: 19274

Re: Issues with 64-bit iOS (LC 6.7.2 RC 2 and LC 7.0.2 rc 2)

Neil

What if I need to restrict my app to retina devices? 6.1 compatible apps can run on non-retina devices.

It's late February. Apple required 64-bit binaries from 1 February. How much longer will we have to wait? I'm lucky that with my current project I'm not losing money, just my reputation ...
by Jellicle
Mon Feb 16, 2015 7:15 am
Forum: iOS Deployment
Topic: Issues with 64-bit iOS (LC 6.7.2 RC 2 and LC 7.0.2 rc 2)
Replies: 17
Views: 19274

Re: Issues with 64-bit iOS (LC 6.7.2 RC 2 and LC 7.0.2 rc 2)

That mentions nothing about 6.7.2 rc 2. Many of us are not on the 7.x series yet.

Gerry