Embedding a .plist file in a Quartz Builder project

usefuldesign.au's picture

I saved a file to ~/Desktop using the Kineme Structure To File patch and can reload it using Kineme Structure From File patch. What I would like to do is embed the file in a Quartz Builder created application and then load it when the application is run.

What would a suitable relative filepath be to a file that is embedded inside the app by QB?

The file path by showing package contents is: QB_Made_This.app/Contents/Resources/Structure.plist app/Contents/Resources/Structure.plist

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

usefuldesign.au's picture
Re: Embedding a .plist file in a Quartz Builder project

Oops, existing filepath is:

~/Desktop/QB_Made_This.app/Contents/Resources/Structure.plist

gtoledo3's picture
Re: Embedding a .plist file in a Quartz Builder project

When loading a file like that via QB and some patch hosted by a qtz, you're probably looking for this - " ./ " appended in front of the file, and the rest of the path depends on whether or not it's in it's own folder or hanging out in the contents, a separate Resources folder, or ...

usefuldesign.au's picture
Re: Embedding a .plist file in a Quartz Builder project

Out of desperation I tried just using the file name with no relative or absolute references and that works. :-) so just tpye the name of the file into the Filepath Input eg "rubbish.plist" and your QB app will find and load the plist.

Here's a little demo .qtz file. Run it to generate the plist on your desktop then add the file as a resource in QB. Then run the app from any Directory on your mac and should restore the file and display the data.

Requires Kineme File Tools and Kineme Data Tools.

PreviewAttachmentSize
Read plist from inside a bundle.qtz38.04 KB
Read.app_.zip484.1 KB