Hi all - I am building a standalone application using PD extended 0.43.4 on OS X, and I'm having trouble locating a file from within the 'app'.
In my patch I read a .txt file to [textfile]. My text file lives in the same directory as the patch.. so I don't need to give a path whilst using PD, but things go wrong when inside the app. I have a config.txt file that needs to be read from within the application directory itself.
I've used [getdir] to pass the patch directory to [textfile], but it turns out this won't do as [getdir] looks at the local directory of the patch that is bundled inside the application package (e.g. My_standalone.app/Contents/Resources/extra/app-auto-load/my_patch.pd), and not the directory where the application itself resides.
Is there a way to get the path of the application itself so I can pass this on to [textfile]?
Many thanks in advance,
Ben