Re: Search question

2012-01-31 Thread Bob Sneidar
merge("[[artist]][[policeman]]") = "A brush with the law" Sorry I had to. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/

Re: Search question

2012-01-30 Thread Mike Bonner
Huh. I knew I liked merge but didn't know why until now. put merge("[[kitty1]][[kitty2]]") into tCatfight On Mon, Jan 30, 2012 at 11:46 PM, Ken Corey wrote: > On 31/01/2012 01:02, Marty Knapp wrote: > >> Thanks to those who responded to this. I was doing something similar to >> Dan's idea, but

Re: Search question

2012-01-30 Thread Ken Corey
On 31/01/2012 01:20, Bob Sneidar wrote: The last time I got into regex, I forgot how to pee. Took two days to get it back. Remind me not to be in the same room when you tackle Objective-C...:^) -Ken ___ use-livecode mailing list use-livecode@lists.

Re: Search question

2012-01-30 Thread Ken Corey
On 31/01/2012 01:02, Marty Knapp wrote: Thanks to those who responded to this. I was doing something similar to Dan's idea, but wondered if there was a way to use lineOffset or something else. I'll take a look at all the suggestions and continue on. I wish I could wrap my brain around regex - it

Re: Search question

2012-01-30 Thread Bob Sneidar
The last time I got into regex, I forgot how to pee. Took two days to get it back. Bob On Jan 30, 2012, at 5:02 PM, Marty Knapp wrote: > Thanks to those who responded to this. I was doing something similar to Dan's > idea, but wondered if there was a way to use lineOffset or something else.

Re: Search question

2012-01-30 Thread Marty Knapp
Thanks to those who responded to this. I was doing something similar to Dan's idea, but wondered if there was a way to use lineOffset or something else. I'll take a look at all the suggestions and continue on. I wish I could wrap my brain around regex - it all looks like a cat walked across my

Re: Search question

2012-01-30 Thread Mike Bonner
oops. Change the merge line to this for partial matches filter tmyList with (merge("*[[line 1 of tMerge]]*[[tab]]*[[line 2 of tMerge]]*[[tab]]*[[line 3 of tMerge]]*[[tab]]*[[line 4 of tMerge]]*")) On Mon, Jan 30, 2012 at 10:57 AM, Mike Bonner wrote: > Or with filter > > I setup a stack with

Re: Search question

2012-01-30 Thread Mike Bonner
Or with filter I setup a stack with a list field and 4 search fields, 1 search field for each column, and added a search button. --Search button code on mouseUp put field "mylist" into tMyList repeat with i = 1 to 4 if field ("field" & i) is empty then put "*" into line i of

Re: Search question

2012-01-30 Thread Ken Corey
How about this: --8<- repeat for each line myLine in myList if matchText(myLine, \ "([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)$", \ myVar1, myVar2, myVar3, myVar4) then if myVar1="foo" and myVar3="bar" and myVar4="baz" then -- take some action here

Re: Search question

2012-01-30 Thread Dan Friedman
Marty, I don't know if it's the fastest way, but here's one way to do it. Pass with function your tab-delimited list and what you are looking to find in fields 1,3 and 4 and it will return a list of the lines numbers that match. Hope it helps... function getTheMatches tList,findThis set th

Search question

2012-01-30 Thread Marty Knapp
Let's say I have a tab delimited list with 4 items and I want to find a match to my search string, except I don't care what item 2 is - it could be a number, a word or be empty, but I want to find the occurrences where items 1, 3 & 4 match. What's the fastest way to do that? Thanks, Marty Kna

Re: OS X Finder Search Question

2011-09-26 Thread Howard Bornstein
I use EasyFind (although I'm sure there are others) [ http://www.macupdate.com/app/mac/11076/easyfind]. It's slow, but it's thorough. On Sun, Sep 25, 2011 at 9:33 PM, Pete wrote: > Hi Howard - what 3rd party tool do you use? > Pete > Molly's Revenge > > > > > On S

Re: OS X Finder Search Question

2011-09-26 Thread Richmond Mathewson
On 09/26/2011 07:43 PM, Bob Sneidar wrote: Apple doesn't assume you are an idiot. They assume a lot of people in general are idiots. And they are right. Here and there I encounter people who try to fix their computer themselves. I just did a wipe and reinstall for one guy whose system was acti

Re: OS X Finder Search Question

2011-09-26 Thread Bob Sneidar
Apple doesn't assume you are an idiot. They assume a lot of people in general are idiots. And they are right. Here and there I encounter people who try to fix their computer themselves. I just did a wipe and reinstall for one guy whose system was acting up, and 3 days later he was back because 2

Re: OS X Finder Search Question

2011-09-25 Thread Pete
Thanks you Gerry, that worked. I guess my problem is that I don't regard the LIbrary folder as a system folder - it's where I install some of my application's files per Apple's guidelines. Plus it seems that I can't list all files with a particular filename in one search, on ein system files and

Re: OS X Finder Search Question

2011-09-25 Thread Gerry Orkin
It's easy to search for System and System-related files and folders (like the Library folder and it's sub-folders) in OS X Lion and Snow Leopard (and perhaps earlier): In the Finder press Command-F to open a search window. From the "Kind" pop-up menu, choose "Other…". Find

Re: OS X Finder Search Question

2011-09-25 Thread Pete
Hear, hear. Let's face it, if Microsoft had pulled this crap 20 years ago, we'd all have been up in arms about it but now Apple gets away with it for some reason. It's because of Apple's attitude that I use a Android phone, a Google browser, and (maybe) and Android tablet. Not that Google isn't

Re: OS X Finder Search Question

2011-09-25 Thread Pete
Hi Howard - what 3rd party tool do you use? Pete Molly's Revenge On Sun, Sep 25, 2011 at 6:43 PM, Howard Bornstein wrote: > I have never found the Spotlight search to be complete. When I absolutely > have to find a file, I use a third-party search tool because Sp

Re: OS X Finder Search Question

2011-09-25 Thread Pete
Ah well, yet another example of Apple's imperious attitude to anyone who uses their computers - we're all idiots who couldn't possibly need to do that! Over the years, I've gone back and forth between Windows and OS X and I'm getting to the point where I'm ready to trey Windows again. Pete Molly's

Re: OS X Finder Search Question

2011-09-25 Thread stephen barncard
I'm getting pretty sick of Apple assuming I'm an idiot and 'protecting me'. Lion is the epitome of this ethic. They are 'fixing' a lot of crap that doesn't need fixing. I love 64 bit performance but at what price? For someone that had a Mac on his desk in 1983 and an Apple II plus in 1980, this i

Re: OS X Finder Search Question

2011-09-25 Thread J. Landman Gay
On 9/25/11 7:20 PM, Pete wrote: Thanks Mark. IS that the Privacy tab of the Spotlight Preferences? If so, I don ;t see anything there that would exclude that folder, unless there's some global option somewhere that excludes all system files? Apple doesn't believe you should need to find any s

Re: OS X Finder Search Question

2011-09-25 Thread Howard Bornstein
I have never found the Spotlight search to be complete. When I absolutely have to find a file, I use a third-party search tool because Spotlight is so unreliable. -- Regards, Howard Bornstein --- www.designeq.com On Sun, Sep 25, 2011 at 5:20 PM, Pete wrote: > Thanks Mark.

Re: OS X Finder Search Question

2011-09-25 Thread Pete
Thanks Mark. IS that the Privacy tab of the Spotlight Preferences? If so, I don ;t see anything there that would exclude that folder, unless there's some global option somewhere that excludes all system files? Pete Molly's Revenge On Sun, Sep 25, 2011 at 3:42 PM

Re: OS X Finder Search Question

2011-09-25 Thread Mark Schonewille
Hi Pete, One reason could be that system files have been excluded from indexing in the Spotlight preferences. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 See

OS X Finder Search Question

2011-09-25 Thread Pete
I'm using the search bar at the top of a Finder window to find all files with a given name. The search is on "This Mac" and I just search file names, not contents. There's at least one file that deosn't show up in the results for some reason. It is located in folder ~/Library/Application Support