Access Resource Files

Klaus major-k klaus at major-k.de
Fri Sep 20 04:46:12 EDT 2019


Hi JB,

> Am 20.09.2019 um 10:34 schrieb JB via use-livecode <use-livecode at lists.runrev.com>:
> 
> Does anyone know of a way to access resource files
> in the StandAlone .app bundle?
> 
> Let’s say I want to include a jpg file in my .app bundle
> & then copy that file to the desktop at various times.
> 
> From what I understand if you write a external to copy
> source file to destination file it will work unless they
> are in the .app bundle.
> 
> I do not want to include a file saved in a different url.
> This will be a file located in the .app bundle and then
> saved to the desktop or a user chosen location that
> is not in a bundle.
> 
> My guess is it cannot be done but I would love it if
> someone proved me wrong.
> 
> JB

everything you add to your standalone via:
Standalone Application Settings -> Copy files
can be found in the standalone in:
specialfolderpath("resources") & "/your wonderful pic.jpg"

If that is what you mean.

That specialfolderpath() does also work in the IDE!
In that case it returns the path to the folder containing the current stack.


Best

Klaus

--
Klaus Major
https://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list