
I've got a stack that references a folder of .au audio files (named "audiofilesfolder") in the same parent folder as the stack itself. I'm using the BYU defaultFolder routine in the stack script to switch the defaultFolder location to the parent folder:
on openStack
set the itemDelimiter to "/"
get the effective fileName of this stack
set the defaultFolder to item 1 to -2 of it
--answer the defaultFolder
end openStack
It all works fine until I make a standalone application for Mac OS X. I can't seem to get the audio files to be included with the app. A folder with the correct name is included in the Package Contents of the app, inside the MacOS folder, but it's always empty. I can manually copy the audio files into this audio folder, and then everything works correctly in the app. But I'm wondering how to configure things so that the audio files are automatically copied into the audio files folder inside the MacOS folder in Package Contents.
I assume the issue is with the way I'm configuring the Copy Files tab of the Standalone Application Settings. I've got it set to:
1. "Non-stack files in the application: audiofilesfolder/*
2. Copy Referenced Files = selected
3. Destination Folder: audiofilesfolder
I've tried every permutation I can think of with no joy. Any suggestions? Thanks!