Hi JB,

> Am 20.09.2019 um 10:34 schrieb JB via use-livecode 
> <use-livecode@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
kl...@major-k.de


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to