Hi I want to open a Adobe Premiere Pro file, for doing simple text replacement stuff.
Now I have to open it in Bbedit, to get it as a readable xml file… frome here I select all, copy and then paste into a text edit document and save as .txt file. This I can use in Xojo, no problem… but how can I read the file directly… Now when I open I get:
Why not open it with an XMLDocument and work with that?
You could even open it with a textinputstream,
use readall to get it into a string
then use replace() to swap out text.
And in fact, going further, here is the classID of the second child of the first node:
dim f as FolderItem
f= specialfolder.documents.child("Testprojectone")
dim xm as new XmlDocument
xm.LoadXml(f)
// textarea1.text = xm.ToString
dim xmnods as XmlNodeList
dim oneNode as XmlNode
dim classid as string
xmnods = xm.XQL("//ProjectViewStates")
if xmnods.Length > 0 then
onenode = xm.FirstChild
onenode = onenode.FirstChild //just has a project
onenode = onenode.NextSibling //next one has a ClassID
classid = onenode.GetAttribute("ClassID") //Lets see what it is
msgbox classid //and display it
end if
We all saw a zip file and unpacked it.
The file it contained is a perfectly normal text file, holding XML.
If you just changed the extension to txt, it wouldnt work.
Worse… if you do it on Windows, you may THINK you have changed the extension to .txt
but if it is set to hide extensions, all you will have achieved is to name the file
.zip.txt
(We thought you knew that.)
The main reason it took a while for anyone to check whether you had actually unzipped the file is that the data you showed started with
ãÌ}ko‹8≤ËÁ…Ø0¸È\ ≤˘î
That wasn’t the start of the file.
It actually starts with PK, which is a dead giveaway for a PKZip file.
I always have my windows set to show file extensions.
That is very strange. I had the original .prproj file. I zipped it for you all to test.
But when I unpack that, I get the .prproj file back, and not a xml file ?
Really strange.
I had to manually rename that .prproj file to a .zip and then unpack that one. then I got a xml file.
If I unzip your zip directly I get a file that is 104KB without extension.
If I unzip your zip file using The Unarchiver I get a file that is 11KB with prproj extension.