Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crashy tip



I just nearly shot myself in the foot: saved my qtz file with some bunk Javascript. I hit Play in the viewer, crash, then found that QC always launches with the viewer playing--so no way to fix the file so it won't crash so I can fix the file (so it won't crash, etc.).

simply edit the preferences of the app so that only the editor is shown when opening a file


I suppose I could have tweaked the Javascript in a hex editor so it wouldn't parse, but I ran across the plutil function which turns the binary plist format used for qtz files into xml:

    plutil -convert xml1 bad.qtz -o good.qtz

I searched for the bad code, commented it out, and it launches in QC. Even as XML!

you can also open .qtz files with the Plist Editor application - note that those kinds of XML manipulations are totally unsupported - you have been warned!



________________________________________________________ Pierre-Olivier Latour email@hidden Quartz Composer Architect Graphics & Imaging Team

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Crashy tip (From: Dave Hayden <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.