Mailing Lists: Apple Mailing Lists

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

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.).

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!

Woo!

-D

_______________________________________________
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


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.