Re: Mac OSX Wants to Open All my Text Files in Terminal?
LaunchServices and file association under Leopard is hopelessly broken. Every time I reboot my machine, I have to manually reset all my text file associations to use BBEdit. And, yes, I have a script, and, yes, I reset LaunchServices every now and then, and, yes, this works for a few reboot cycles, but, no, it doesn't stick, and, yes, I'm thoroughly sick to death of it. This is a known issue, and Apple has so far refused to fix it; the fix went into Snow Leopard, but has not been back-ported. File a bug report; maybe with enough complaints they'll eventually decide it's worth fixing. -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Need Help with Forumlating Grep Pattern.
Hi. I have data from a OUTLOOK export that's been corrupted. It appears that Outlook is putting extraneous data from the NOTES field into the TITLE field of the export, which ends up column shifting the resulting records that follow the first record. Look at the sample data below: its column shifted the following: Low Normal Web Page Down to the next line, and anything in the notes field gets stuffed into the Title field, where there should be nothing at all. How would I fix this with Grep ? == Columns == Title First Name Middle Name Last Name Suffix Company Department Job Title Business Street Business Street 2 Business Street 3 Business CityBusiness State Business Postal CodeBusiness Country/Region Home Street Home Street 2 Home Street 3 Home City Home State Home Postal Code Home Country/Region Other StreetOther Street 2 Other Street 3 Other City Other State Other Postal Code Other Country/ Region Assistant's Phone Business FaxBusiness Phone Business Phone 2 CallbackCar Phone Company Main Phone Home Fax Home Phone Home Phone 2ISDNMobile PhoneOther Fax Other Phone Pager Primary Phone Radio Phone TTY/TDD Phone Telex Account Anniversary Assistant's Name Billing Information BirthdayBusiness Address PO Box Categories ChildrenDirectory ServerE-mail Address E-mail Type E-mail Display NameE-mail 2 AddressE-mail 2 Type E-mail 2 Display Name E-mail 3 Address E-mail 3 Type E-mail 3 Display Name Gender Government ID Number Hobby Home Address PO Box InitialsInternet Free Busy Keywords LanguageLocationManager's Name Mileage Notes Office Location Organizational ID NumberOther Address PO BoxPriorityPrivate Profession Referred By Sensitivity Spouse User 1User 2User 3 User 4Web Page === Sample Data === JoanFinkThe Dance Center135 Lexington AvenueNew YorkNY 10128 212)415 - Amy K. - JF 0/0/00 0/0/00 jf...@x.org SMTP Unspecified Edward assistant 427-6119 562-0176 Low Normal http://www.x.org Maure AronWorld Music/Crash Arts Executive Director 720 Lindist Avenue Los Angeles CA 90007 617/679. 617)876- 0/0/00 0/0/00 ma...@x.org SMTPUnspecified Jeff Masone Jack Hirsch, came from ICAA, since Oct 08 Low Normal http://www.xxx.org -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Grep Help.
Hi. I have data from a OUTLOOK export that's been corrupted. It appears that Outlook is putting extraneous data from the NOTES field into the TITLE field of the export, which ends up column shifting the resulting records that follow the first record. Look at the sample data below: its column shifted the following: Low Normal Web Page Down to the next line, and anything in the notes field gets stuffed into the Title field, where there should be nothing at all. How would I fix this with Grep ? == Columns == Title First Name Middle Name Last Name Suffix Company Department Job Title Business Street Business Street 2 Business Street 3 Business City Business State Business Postal Code Business Country/Region Home Street Home Street 2 Home Street 3 Home City Home State Home Postal CodeHome Country/Region Other StreetOther Street 2Other Street 3Other City Other State Other Postal Code Other Country/RegionAssistant's Phone Business FaxBusiness Phone Business Phone 2 Callback Car Phone Company Main Phone Home FaxHome Phone Home Phone 2 ISDNMobile PhoneOther Fax Other Phone Pager Primary Phone Radio Phone TTY/TDD Phone Telex Account Anniversary Assistant's NameBilling Information BirthdayBusiness Address PO Box Categories ChildrenDirectory ServerE-mail Address E-mail Type E-mail Display Name E-mail 2 AddressE-mail 2 Type E-mail 2 Display Name E-mail 3 AddressE-mail 3 Type E-mail 3 Display Name Gender Government ID NumberHobby Home Address PO Box InitialsInternet Free Busy KeywordsLanguage LocationManager's Name Mileage Notes Office Location Organizational ID NumberOther Address PO BoxPriorityPrivate Profession Referred By Sensitivity Spouse User 1User 2User 3User 4Web Page === Sample Data === JoanFinkThe Dance Center135 Lexington AvenueNew YorkNY 10128 212)415 - Amy K. - JF 0/0/00 0/0/00 jf...@x.org SMTP Unspecified Edward assistant 427-6119 562-0176 Low Normal http://www.x.org Maure AronWorld Music/Crash Arts Executive Director 720 Lindist Avenue Los Angeles CA 90007 617/679. 617)876- 0/0/00 0/0/00 ma...@x.org SMTPUnspecified Jeff Masone Jack Hirsch, came from ICAA, since Oct 08 Low Normal http://www.xxx.org -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Grep Help.
On 2010-09-09, m i l e s wrote: Hi. I have data from a OUTLOOK export that's been corrupted. It appears that Outlook is putting extraneous data from the NOTES field into the TITLE field of the export, which ends up column shifting the resulting records that follow the first record. Look at the sample data below: its column shifted the following: Low Normal Web Page Down to the next line, and anything in the notes field gets stuffed into the Title field, where there should be nothing at all. How would I fix this with Grep ? It's difficult to see the problem because email has broken your lines up. A few things to try: 1. First, If you can go back to Outlook and re-do the export, pay attention to any options for line breaks, encoding, etc. Also, when there, see if this record has anything odd in it, such as extraneous quote marks, paragraph returns, etc. 2. Open the exported file in BBEdit with various encodings (see File menu Re-Open with Encoding. Might reveal something. 3. Viewing the file in BBEdit, choose Show Invisibles, and look for strange characters (sometimes shown as red upside-down question marks), etc). If they seem to be located near the problems, you might get somewhere by searching for them and deleting or replacing with something that doesn't force a new line. HTH -- Just guessing - Bruce _bruce__van_allen__santa_cruz_ca_ -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit
Re: Grep Help.
At 11:09 -0700 9/9/10, Bruce Van Allen wrote: On 2010-09-09, m i l e s wrote: I have data from a OUTLOOK export that's been corrupted. It appears that Outlook is putting extraneous data from the NOTES field into the TITLE field of the export, which ends up column shifting the resulting records that follow the first record. Look at the sample data below: its column shifted the following: Low Normal Web Page Down to the next line, and anything in the notes field gets stuffed into the Title field, where there should be nothing at all. How would I fix this with Grep ? It's difficult to see the problem because email has broken your lines up. A few things to try, snipped by DPM Another thing to try: Select the lines you posted, or a more original source, and paste them into a spreadsheet. Excel, for instance, recognizes the tabs and will place items in columns across the page. BBEdit offers no way to do that. When I did that I found missing tabs with 135 Lexington Avenue coming under Job Title instead of Business Street. It's as if someone was adjusting the tabs so that the format would look right in his text-oriented display. Converting tabs to spaces could do that and create a terrible mess. Using Excel's insert cells command it's possible to line some things up with what BBEdit would think are inserted tabs but you'd be guessing based on content and that's hard to automate. With a lot more items you might see usable patterns with the real column structure offered by a spreadsheet. The Jack Hirsch item seems totally unrelated to the headings. It appears on a row by itself. The other items have nothing in the Title, column 1. With all of those columns, mostly blank, you have a pretty good example of what xml files are for. -- -- Give me liberty or give me Obamacare -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit