Re: find by content with Mac OS
--- Message: 2 Date: Thu, 09 Jun 2011 14:11:19 -0700 From: Richard Gaskin ambassa...@fourthworld.com To: use-livecode@lists.runrev.com Subject: Re: find by content with Mac OS Message-ID: 4df136f7.3050...@fourthworld.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Timothy Miller wrote: My feeble brain seems to suggest that Mac OS find-by-content will not find text in an ordinary field in a LiveCode stack (not to mention a button or script). I just tried it. OTOH, I don't have much confidence in my feeble brain. Am I right? If so, is there any way to enable such a feature? IIRC (I turned off Spotlight years ago; got tired of the constant disk thrashing), LiveCode scripts are automatically indexed by Spotlight, but not field content. Is there something I am missing? Spotlight doesn't appear to index my scripts and I have everything checked in the Mac OS Spotlight Preferences. Jim Hurley I have no idea why that's how it is; seems a bit backwards to me, but maybe there's a reason for it. Anyone know offhand if there's an RQCC request for indexing fields w/Spotlight? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
On Jun 10, 2011, at 3:43 AM, James Hurley wrote Is there something I am missing? Spotlight doesn't appear to index my scripts and I have everything checked in the Mac OS Spotlight Preferences. All versions of Rev and LC do not make the scripts or field data available for spotlight indexing. You need to code something that writes your scripts to one or more '.txt' files that would include the stack name, etc Of course, since you are writing you own info export, you could add some good meta data, such as field names or project title, custom property contents, image names, etc. You could even export a jpg screen shot, then... a short Applescript could write to the Finder comments of the stack file and jpg file, and comments get spotlight indexed for all apps. This means you could use Spotlight, QuickView, Coverflow to scan your projects in the Finder. I don't know the limits for Finder comment lines or chars. Hope this helps Jim Ault Las Vegas ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
You must have Spotlight indexing turned off. It works for me in ALL of the apps you suggested that it does not. Alternately, you may have a corrupted Spotlight index. You can google how to remedy that. Bob On Jun 9, 2011, at 6:04 PM, Timothy Miller wrote: Thanks Jim and others. I have worked out ways to search my LC stacks quickly and conveniently (more or less) for the things I need. I can always use the find function in Stickies. I can search my email messages in Mail. This is the usual procedure. I always had the vague idea that find-by-content in Mac OS, was available as a last resort if I couldn't find something important. Today I was searching for some notes I made several months ago. I couldn't remember whether I had saved the notes in a LC stack, in stickies, in an email I sent to myself, or whatever. I thought find-by-content would help me find the notes. I knew they contained some rare or unique words. It didn't help. I can't fault other developers if Apple itself doesn't enable find-by-content in its own applications. Come to think of it, find by content probably doesn't work for bookmarks in Safari. Nor does it work for events in iCal. Nor any content in Address Book, nor email messages in Mail -- not sender nor recipient nor address nor content. Funny, I always assumed it did all of these things, but never thought much about it. snip ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
It does not. What you want to use is that little magnifying glass in the upper right of your screen in the menu bar. Command-F in the Finder only searches for the contents of files, but not I think Address Book files and such. Still using this method, I am not seeing any of my stacks after searching for openStack. Apparently scripts are NOT indexed. Bob On Jun 9, 2011, at 7:15 PM, Timothy Miller wrote: Hi Stephen, As far as I know, Command-F and Spotlight invokes the same functionality. ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
I may have found a solution for this but to test it I need to know what the file type is (not the filename extension) of a LiveCode stack. Anyone? Bob On Jun 9, 2011, at 6:04 PM, Timothy Miller wrote: Thanks Jim and others. I have worked out ways to search my LC stacks quickly and conveniently (more or less) for the things I need. I can always use the find function in Stickies. I can search my email messages in Mail. This is the usual procedure. ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
one way to see filetypes is the detailed files. another way is to go into the ressource fork yourself with the resfile: specifier for URL: put url (resfile: the effective filename of this stack) On 10 Jun 2011, at 19:48, Bob Sneidar wrote: I may have found a solution for this but to test it I need to know what the file type is (not the filename extension) of a LiveCode stack. Anyone? Bob On Jun 9, 2011, at 6:04 PM, Timothy Miller wrote: Thanks Jim and others. I have worked out ways to search my LC stacks quickly and conveniently (more or less) for the things I need. I can always use the find function in Stickies. I can search my email messages in Mail. This is the usual procedure. ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
Bob, On Jun 10, 2011, at 11:48 AM, Bob Sneidar wrote: I may have found a solution for this but to test it I need to know what the file type is (not the filename extension) of a LiveCode stack. Anyone? Are you referring to the Mac file type code? It's RSTK. The creator signature for LiveCode/Rev is Revo. Don't know if these are even available in Mac OS 10.5. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
Well the solutions presented in blogs i have seen are not panning out. Oddly, zip files containing Livecode stacks ARE being found by Spotlight, but not the stacks themselves. I think this will require the Livecode people to create a valid mdimporter file for livecode stacks. Bob On Jun 10, 2011, at 11:10 AM, Devin Asay wrote: Bob, On Jun 10, 2011, at 11:48 AM, Bob Sneidar wrote: I may have found a solution for this but to test it I need to know what the file type is (not the filename extension) of a LiveCode stack. Anyone? Are you referring to the Mac file type code? It's RSTK. The creator signature for LiveCode/Rev is Revo. Don't know if these are even available in Mac OS 10.5. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
I forced Spotlight to re-index. Now it finds-by-content all of the stuff in Apple applications it couldn't previously find. Sorry about the confusion. For most purposes, exporting LC data to a text file so Spotlight could find it by content would be far more trouble than it was worth. Certainly so in my case. How hard is it, really, to write some kind of extension or plug-in so that find by content works for LC -- fields, scripts, or whatever? Cheers, Tim On Jun 10, 2011, at 4:48 AM, Jim Ault wrote: On Jun 10, 2011, at 3:43 AM, James Hurley wrote Is there something I am missing? Spotlight doesn't appear to index my scripts and I have everything checked in the Mac OS Spotlight Preferences. All versions of Rev and LC do not make the scripts or field data available for spotlight indexing. You need to code something that writes your scripts to one or more '.txt' files that would include the stack name, etc Of course, since you are writing you own info export, you could add some good meta data, such as field names or project title, custom property contents, image names, etc. You could even export a jpg screen shot, then... a short Applescript could write to the Finder comments of the stack file and jpg file, and comments get spotlight indexed for all apps. This means you could use Spotlight, QuickView, Coverflow to scan your projects in the Finder. I don't know the limits for Finder comment lines or chars. Hope this helps Jim Ault Las Vegas ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
- Message: 4 Date: Fri, 10 Jun 2011 10:32:45 -0700 From: Bob Sneidar b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: find by content with Mac OS Message-ID: d5d8a1a4-b064-42ef-ad61-dcd6d5cec...@twft.com Content-Type: text/plain; charset=us-ascii It does not. What you want to use is that little magnifying glass in the upper right of your screen in the menu bar. Command-F in the Finder only searches for the contents of files, but not I think Address Book files and such. Still using this method, I am not seeing any of my stacks after searching for openStack. Apparently scripts are NOT indexed. Bob On Jun 9, 2011, at 7:15 PM, Timothy Miller wrote: Hi Stephen, As far as I know, Command-F and Spotlight invokes the same functionality. Bob, I think that Command F displays the same window that Show all reveals in Spotlight. It allows you to show either Contents or File names. Jim ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
The two methods produce 2 different results for me. Bob On Jun 10, 2011, at 12:55 PM, James Hurley wrote: - Message: 4 Date: Fri, 10 Jun 2011 10:32:45 -0700 From: Bob Sneidar b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: find by content with Mac OS Message-ID: d5d8a1a4-b064-42ef-ad61-dcd6d5cec...@twft.com Content-Type: text/plain; charset=us-ascii It does not. What you want to use is that little magnifying glass in the upper right of your screen in the menu bar. Command-F in the Finder only searches for the contents of files, but not I think Address Book files and such. Still using this method, I am not seeing any of my stacks after searching for openStack. Apparently scripts are NOT indexed. Bob On Jun 9, 2011, at 7:15 PM, Timothy Miller wrote: Hi Stephen, As far as I know, Command-F and Spotlight invokes the same functionality. Bob, I think that Command F displays the same window that Show all reveals in Spotlight. It allows you to show either Contents or File names. Jim ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
On 06/09/2011 11:47 PM, Timothy Miller wrote: My feeble brain seems to suggest that Mac OS find-by-content will not find text in an ordinary field in a LiveCode stack (not to mention a button or script). I just tried it. OTOH, I don't have much confidence in my feeble brain. Am I right? If so, is there any way to enable such a feature? Off-topic, it also appears that find-by-content doesn't find text in Stickies, either. I always assumed it would, but never bothered to check, until today. Why would one want to search the content of Stickies notes: Mum coming for coffee this afternoon? Both items are inconvenient. Normally, I expect more of Apple, and Apple usually delivers. Hmmm. I wonder how many engineers are working at Apple assigned to doing find-by-content for Livecode stacks, when, face-the-facts, Livecode does not, yet, enjoy the reach that many other progging environments do. Surely Apple's priorities, like most other people, are with the things that loom large on their horizon. Until Livecode looms large, it will be pushed aside by bigger fish. Cheers, Tim ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
Timothy Miller wrote: My feeble brain seems to suggest that Mac OS find-by-content will not find text in an ordinary field in a LiveCode stack (not to mention a button or script). I just tried it. OTOH, I don't have much confidence in my feeble brain. Am I right? If so, is there any way to enable such a feature? IIRC (I turned off Spotlight years ago; got tired of the constant disk thrashing), LiveCode scripts are automatically indexed by Spotlight, but not field content. I have no idea why that's how it is; seems a bit backwards to me, but maybe there's a reason for it. Anyone know offhand if there's an RQCC request for indexing fields w/Spotlight? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
On Jun 9, 2011, at 1:47 PM, Timothy Miller wrote: My feeble brain seems to suggest that Mac OS find-by-content will not find text in an ordinary field in a LiveCode stack (not to mention a button or script). I just tried it. OTOH, I don't have much confidence in my feeble brain. Am I right? If so, is there any way to enable such a feature? Off-topic, it also appears that find-by-content doesn't find text in Stickies, either. I always assumed it would, but never bothered to check, until today. Both items are inconvenient. Normally, I expect more of Apple, and Apple usually delivers. Usually the vendor has to adjust their app to make spotlight indexing 'Allowed' and 'visible'. Some vendors have created plugins and made them available for download. Google spotlight nabble revolution to get a better take on the issue. For OSX QuickView, their are plugins for expanding the formats, eg. '.php' files The best solution for now is to have an LC script export to a text file all the info you would like to have Spotlight available. Hope this helps Jim Ault Las Vegas ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
Thanks Jim and others. I have worked out ways to search my LC stacks quickly and conveniently (more or less) for the things I need. I can always use the find function in Stickies. I can search my email messages in Mail. This is the usual procedure. I always had the vague idea that find-by-content in Mac OS, was available as a last resort if I couldn't find something important. Today I was searching for some notes I made several months ago. I couldn't remember whether I had saved the notes in a LC stack, in stickies, in an email I sent to myself, or whatever. I thought find-by-content would help me find the notes. I knew they contained some rare or unique words. It didn't help. I can't fault other developers if Apple itself doesn't enable find-by-content in its own applications. Come to think of it, find by content probably doesn't work for bookmarks in Safari. Nor does it work for events in iCal. Nor any content in Address Book, nor email messages in Mail -- not sender nor recipient nor address nor content. Funny, I always assumed it did all of these things, but never thought much about it. On the other hand, if Apple and other developers can easily enable find-by-content, but don't, this seems inconsiderate all around. If Apple doesn't want to bother supporting its own feature, and doesn't want to encourage developers to support its feature, maybe Apple should eliminate find by content. At minimum, Apple should take more care to notify users that find by content only searches a small subset of all the files on their hard disks, or even their documents folders. Regarding LC scripts, it appears these are not indexed, either. There are plenty of unique strings in my LC scripts. They are not turning up. At one time, find-by-content was supposed to be a thrilling new feature in some Apple OS rollout. Maybe OS 7? I long ago abandoned the naive daydream that computers will make my life more convenient. Every new feature introduces new complications. So, I'm over it. Tim On Jun 9, 2011, at 3:12 PM, Jim Ault wrote: Usually the vendor has to adjust their app to make spotlight indexing 'Allowed' and 'visible'. Some vendors have created plugins and made them available for download. Google spotlight nabble revolution to get a better take on the issue. For OSX QuickView, their are plugins for expanding the formats, eg. '.php' files The best solution for now is to have an LC script export to a text file all the info you would like to have Spotlight available. Hope this helps Jim Ault Las Vegas ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
You haven't used Spotlight? If it's set up right and you use good searching approach, it works quite well. On 9 June 2011 18:04, Timothy Miller gand...@doctortimothymiller.comwrote: Thanks Jim and others. I have worked out ways to search my LC stacks quickly and conveniently (more or less) for the things I need. I can always use the find function in Stickies. I can search my email messages in Mail. This is the usual procedure. I always had the vague idea that find-by-content in Mac OS, was available as a last resort if I couldn't find something important. Today I was searching for some notes I made several months ago. I couldn't remember whether I had saved the notes in a LC stack, in stickies, in an email I sent to myself, or whatever. I thought find-by-content would help me find the notes. I knew they contained some rare or unique words. It didn't help. I can't fault other developers if Apple itself doesn't enable find-by-content in its own applications. Come to think of it, find by content probably doesn't work for bookmarks in Safari. Nor does it work for events in iCal. Nor any content in Address Book, nor email messages in Mail -- not sender nor recipient nor address nor content. Funny, I always assumed it did all of these things, but never thought much about it. On the other hand, if Apple and other developers can easily enable find-by-content, but don't, this seems inconsiderate all around. If Apple doesn't want to bother supporting its own feature, and doesn't want to encourage developers to support its feature, maybe Apple should eliminate find by content. At minimum, Apple should take more care to notify users that find by content only searches a small subset of all the files on their hard disks, or even their documents folders. Regarding LC scripts, it appears these are not indexed, either. There are plenty of unique strings in my LC scripts. They are not turning up. At one time, find-by-content was supposed to be a thrilling new feature in some Apple OS rollout. Maybe OS 7? I long ago abandoned the naive daydream that computers will make my life more convenient. Every new feature introduces new complications. So, I'm over it. Tim On Jun 9, 2011, at 3:12 PM, Jim Ault wrote: Usually the vendor has to adjust their app to make spotlight indexing 'Allowed' and 'visible'. Some vendors have created plugins and made them available for download. Google spotlight nabble revolution to get a better take on the issue. For OSX QuickView, their are plugins for expanding the formats, eg. '.php' files The best solution for now is to have an LC script export to a text file all the info you would like to have Spotlight available. Hope this helps Jim Ault Las Vegas ___ 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/mailman/listinfo/use-livecode -- Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ 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/mailman/listinfo/use-livecode
Re: find by content with Mac OS
Hi Stephen, As far as I know, Command-F and Spotlight invokes the same functionality. In my previous message, I mentioned that find by content is not finding content in Safari Bookmarks, my saved email messages in Mail, and so on. This, I discovered by trial and error, and I assumed it was a feature, i.e., intended by Apple. OTOH, I'm aware of many complaints that Spotlight fails to index things it is supposed to index. Also, recall that I wrote: I don't have much confidence in my feeble brain. At the moment, this conversation is going sideways and I'm wasting everybody's time. Sorry about that. I'll force Spotlight to re-index and see what happens. Apparently the list agrees that LC fields don't get indexed in find-by-content, and there's no simple answer for that. That is useful information, mildly frustrating. Cheers, Tim On Jun 9, 2011, at 6:13 PM, stephen barncard wrote: You haven't used Spotlight? If it's set up right and you use good searching approach, it works quite well. On 9 June 2011 18:04, Timothy Miller gand...@doctortimothymiller.comwrote: Thanks Jim and others. I have worked out ways to search my LC stacks quickly and conveniently (more or less) for the things I need. I can always use the find function in Stickies. I can search my email messages in Mail. This is the usual procedure. ___ 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/mailman/listinfo/use-livecode