|
Embedding a .plist file in a Quartz Builder projectI 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:
|
Oops, existing filepath is:
~/Desktop/QB_Made_This.app/Contents/Resources/Structure.plist
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 ...
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.