Thanks Gerald, Yes, I had a similar experience -- other text editors fail to see the XML of the PPro project where BBEdit reads it fluently.
I realize that somehow this post originally went into the wrong conversation so re-posted here <https://groups.google.com/g/bbedit/c/GqermdmoXFI>. > On Feb 20, 2023, at 12:36, Byers Media <[email protected]> wrote: > > Greetings Media Mouth. > I took one of my prproj files and opened it with BBedit (14.6.4) and saw the > XML data. > > When I open it up in text edit, it displays random characters. > I tried to open the prproj file and a duplicated file changed the ext to XML > file in visual studio code but it is random characters. > > Interestingly enough, I took that XML extension and changed it to .gz, and > then uncompressed it and that file opened up in text edit with the XML data. > All 12000 lines, just like the prproj files, opened in bbedit. > > Both end it </PremiereData> > > Granted, my file is not corrupt. > > I changed the unzipped file that opened in text edit extension to prproj > double clicked to open it up in premiere pro. and it opened, plays, and saves. > > I am not sure I helped out. But I do understand your question about BBedit > and compressed files. > > > On Mon, Feb 20, 2023 at 12:07 PM Media Mouth <[email protected] > <mailto:[email protected]>> wrote: >> NOTE: The main goal here is to diagnose and fix a corrupt XML file. >> >> I've got an XML file that is compressed. The extension is neither XML nor a >> compression. It's a .prproj (Adobe Premiere Pro) project file. >> .prproj is .xml content using a .prproj extension and compressed, I believe, >> using .gz compression. >> >> If I change the extension from .prproj to .xml and open in BBEdit directly, >> it opens showing standard XML contents, albeit truncated before it ends. >> That truncation originally gave the impression the file was corrupted by >> Adobe during a save which didn't complete. >> If that's true, so be it -- there's nothing we can do. >> BUT the subsequent steps thickened the plot a bit... >> >> If I change the original file's extension to .gz and attempt to gunzip it, >> the attempt fails. >> The same happens when attempting to decompress using the Mac OS app 'The >> Unarchiver' -- an error, BUT the app it will allow you to continue, and on a >> second attempt does somewhat successfully decompress the file. This attempt >> results in a large, truncated XML file, almost the same as the BBEdit >> version, but not quite the same. Wasn't expecting that different end point. >> >> >> So a number of questions: >> - Out of curiosity, what is BBEdit really doing when it detects the >> compression in the XML file. Which decompression technique? Is it using an >> auto-detect technique? Or something along the lines of gunzip? >> >> - If gunzip, why was a Terminal attempt at decompressing the same file (with >> a .gz extension) using gunzip unsuccessful? >> >> - If I make a change to the BBEdit-opened compressed XML file and save it, >> the resulting file size is still compressed, as if BBEdit opened and >> compressed XML and therefore saves it compressed. There's no indication I'm >> aware of in BBEdit that the XML is compressed, so I'm not 100% sure of that, >> but if I copy/paste/save the contents into a new BBEdit file, save as XML, >> those same contents are 20X the size. Is BBEdit quietly saving XML as >> compressed. If so, is it indicated anywhere? >> >> - Why would BBEdit and The Unarchiver.app decompress semi-successfully but >> to different end points? Which leads to... >> >> ...The main question: What's the possibility the problem is NOT that Adobe >> failed midway through a save, and the problem is really some kind of >> compression hiccup -- that all the data's there, but we have to resolve the >> decompression hiccup and patch up the XML to recover the our original >> project file? >> >> >> -- >> This is the BBEdit Talk public discussion group. If you have a feature >> request or need technical support, please email "[email protected] >> <mailto:[email protected]>" rather than posting here. Follow @bbedit on >> Twitter: <https://twitter.com/bbedit> >> --- >> You received this message because you are subscribed to the Google Groups >> "BBEdit Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] >> <mailto:bbedit%[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/bbedit/507D702F-983E-482F-8273-38B99DC70015%40gmail.com. > > > <https://thatsbyers.com/?utm_source=GmailFooter&utm_medium=ThatsByers&utm_campaign=EmailSignature> > 11773 Slow Poke Lane, Grass Valley, California 95945 > Byers is committed to protecting your health and safety with a Virtual > Consultation. <https://thatsbyers.com/virtual-consultation> > Reviews on Google > <https://www.google.com/search?hl=en-US&gl=us&q=Byers,+11773+Slow+Poke+Ln,+Grass+Valley,+CA+95945&ludocid=11748852054921487165&lsig=AB86z5XcBI1O6r_L8QktB46n23GB#lrd=0x809b705409fd6757:0xa30c4eb22436a33d,3> > • Give Us Feedback > <https://thatsbyers.com/about/reviews?utm_source=GmailFooter&utm_medium=signaReviewsture&utm_campaign=EmailSignature> > We are here to help you Stay Safe! > <https://thatsbyers.com/lpmicro/noslider/?utm_source=EmailFooter> > > -- > This is the BBEdit Talk public discussion group. If you have a feature > request or need technical support, please email "[email protected]" > rather than posting here. Follow @bbedit on Twitter: > <https://twitter.com/bbedit> > --- > You received this message because you are subscribed to the Google Groups > "BBEdit Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/CAJMCtK3aYJffs5R1%2Br4KMvGMEfU%2B_SvbF28Jig2-mdnw30zqvQ%40mail.gmail.com > > <https://groups.google.com/d/msgid/bbedit/CAJMCtK3aYJffs5R1%2Br4KMvGMEfU%2B_SvbF28Jig2-mdnw30zqvQ%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/FE17C0BC-7C07-4387-BA6F-0D6278F6AB3D%40gmail.com.
