Search found 469 matches

by Simon Knight
Sat Jun 15, 2019 7:43 am
Forum: Talking LiveCode
Topic: Finding the first space in a line of text
Replies: 10
Views: 1232

Re: Finding the first space in a line of text

to a file path You may have to deal with more than spaces, have you tried URLEncode ? The following may be of use as a starting point, note that %20 is a space character : function EncodeFilePath pFilePath put the URLEncode of pFilePath into tURLEdncodeFilePath replace "+" with "%20" in tURLEdncode...
by Simon Knight
Tue Jun 11, 2019 4:36 pm
Forum: Mac OS
Topic: mdFind sensitive to search terms
Replies: 0
Views: 317

mdFind sensitive to search terms

Hi, I have been experimenting with using mdfind to find files (what else!) and have discovered that mdfind is quite picky on the search terms used. I am searching several drives that hold media and for unknown reasons some of these audio files have odd names. Specifically some of the names include t...
by Simon Knight
Tue Jun 11, 2019 4:23 pm
Forum: Mac OS
Topic: MDFind not 'seeing' one of the attached drives
Replies: 19
Views: 1747

Re: MDFind not 'seeing' one of the attached drives

Guess what ?

Approximately forty eight hours after I forced spotlight to re-index the drive in question spotlight started including the drive in its searches.
by Simon Knight
Sat Jun 08, 2019 9:15 pm
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 1246

Re: Fastest method of comparing two lists.

No problem - enjoy the weather and avoid the black fly.

I've just noticed that my app has problems listing files in my home folder and below. I'm investigating but probably best to just use it with external drives for the time being.

Simon
by Simon Knight
Sat Jun 08, 2019 1:34 pm
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 1246

Re: Fastest method of comparing two lists.

Here is an updated version that allows the user to choose where copies of the files selected in the list are saved.
by Simon Knight
Sat Jun 08, 2019 9:18 am
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 1246

Re: Fastest method of comparing two lists.

Hi Kelly, Yes of course but please note that my application only checks file names so it will not detect if the same name is used for different media. It works for me because I know that in the past I have copied whole folder structures of media files to new disks with the intention of sorting thing...
by Simon Knight
Sat Jun 08, 2019 7:01 am
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 1246

Re: Fastest method of comparing two lists.

Hi Richard, Thanks for the heads-up, I have just spent the past hour researching rsync and can see that there are hours of fun to be had trying to get the excludes and includes right. Thankfully I have spotted the --dry-run command, otherwise it would be a little like poking a sleeping tiger with a ...
by Simon Knight
Fri Jun 07, 2019 10:19 pm
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 1246

Re: Fastest method of comparing two lists.

This is a good exercise, but is rsync an option? The exercise has been interesting and highlights the importance of using the most efficient data structure. Most of the time that means using arrays which are so much faster than lists. Its the first time I have used a binary chop and its speed is al...
by Simon Knight
Fri Jun 07, 2019 8:43 pm
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 1246

Re: Fastest method of comparing two lists.

I rejected using the difference command as it was giving different results when compared to the previous version. I decided to have a closer look at the split command. The problem is that I need to be able to sort the data by filename alone ignoring the path and I could not see a way of getting the ...
by Simon Knight
Fri Jun 07, 2019 2:35 pm
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 1246

Re: Fastest method of comparing two lists.

Hi here are the results when using "Difference" command is a mighty 0.4 seconds. (0.002 seconds versus 0.404). I was unable to find a way of using split without looping the long lists twice each which would take tens of seconds. Run on : Friday, June 7, 2019. At : 13:40:47 Application file name : Me...
by Simon Knight
Fri Jun 07, 2019 7:46 am
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 1246

Re: Fastest method of comparing two lists.

Dick, Could there be a file name that's used for two different files? Why this is possible it is unlikely in my case. In the past I have tried to manually consolidate media files stored on a collection of disks as well as removing items from iTunes. These files have been copied into new folder struc...
by Simon Knight
Thu Jun 06, 2019 10:15 pm
Forum: Mac OS
Topic: MDFind not 'seeing' one of the attached drives
Replies: 19
Views: 1747

Re: MDFind not 'seeing' one of the attached drives

Phew I'll stop sweating now.... :oops: The good news is that my refactored app that uses arrays to store the lists of files has reduced the 36 minutes of the original down to 66 seconds. The majority of the time is being taken by reading the discs which takes 62 seconds. It shows that arrays are fast.
by Simon Knight
Thu Jun 06, 2019 7:58 pm
Forum: Mac OS
Topic: MDFind not 'seeing' one of the attached drives
Replies: 19
Views: 1747

Re: MDFind not 'seeing' one of the attached drives

speeds are something like 50-70 GB/s. I hate to disagree but I doubt that you are getting 50-70 GB/s. I think USB 3 has a limit of 5Gbit per second which is 640 MByte/sec. I'm not talking of thumb drives, I'm using USB external mechanical hard drives. My newest 4TB USB 3 drive (7200 r.p.m) tests at...
by Simon Knight
Thu Jun 06, 2019 4:10 pm
Forum: Mac OS
Topic: MDFind not 'seeing' one of the attached drives
Replies: 19
Views: 1747

Re: MDFind not 'seeing' one of the attached drives

Now you have me worried: I am doing a test: Copy a 22Gbyte file from a USB 2 drive onto a USB 3 drive using the Finder. The copy reports that it will take 11 minutes and so far that appears to be true (its not finished yet) There are 1000 Gbyte in a Tbyte so 1000/22 = 45 copies of this file. 45 * 11...
by Simon Knight
Thu Jun 06, 2019 4:00 pm
Forum: Talking LiveCode
Topic: Fastest method of comparing two lists.
Replies: 16
Views: 1246

Fastest method of comparing two lists.

Hi, I am in the process of consolidating media files that are on various external drives onto one new large drive. Now many of the files are duplicated across the source drives and I want to ensure that I only have one copy of any given file on the destination drive. I have created an application th...

Go to advanced search