Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Hi Klaus, Okay, the first version does the same thing as the others. No icon file size zero bytes. I tried answer specialfolderpath("engine”) and the dialog was empty again. But Klaus you are really GOOD!! --This code works! Klaus Major provided it. put specialfolderpath("desktop") & "

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Thanks Klaus, I will give it a try and then get back with the details. JB > On Sep 20, 2019, at 10:45 AM, Klaus major-k via use-livecode > wrote: > > Hi JB, > >> Am 20.09.2019 um 19:31 schrieb JB via use-livecode >> : >> >> Thank you for the info. >> >> I am using a earlier version and s

Re: Access Resource Files

2019-09-20 Thread Klaus major-k via use-livecode
Hi JB, > Am 20.09.2019 um 19:31 schrieb JB via use-livecode > : > > Thank you for the info. > > I am using a earlier version and specialfolderpath("resources”) is not > available ah, yes, I saw that specialfolderpath() codes have been introduced in LC 1.1 but did no know that the RESOURCES fol

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Thank you for the info. I am using a earlier version and specialfolderpath("resources”) is not available but specialfolderpath(“desktop”) and others are available. I don’t think it is possible without specific code written by those who made the app bundle. Things like NSBundle etc seem to be buil

Re: Access Resource Files

2019-09-20 Thread Niggemann, Bernd via use-livecode
answer specialfolderpath("resources") ... in the standalone and check if that is the folder you manually copied the file(s) to! specialfolderpath("resources") was introduced in LC 6.7.5 (from the dictionary) Kind regards Bernd ___ use-livecode m

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Thanks again for your help! JB > On Sep 20, 2019, at 3:29 AM, Klaus major-k via use-livecode > wrote: > > > >> Am 20.09.2019 um 12:24 schrieb JB via use-livecode >> : >> >> The MacOs folder is there and the file gets added >> to it automatically. As for what version I am using >> it is Re

Re: Access Resource Files

2019-09-20 Thread Klaus major-k via use-livecode
> Am 20.09.2019 um 12:24 schrieb JB via use-livecode > : > > The MacOs folder is there and the file gets added > to it automatically. As for what version I am using > it is Revolution Enterprise 4.5.0. I needed to use > some things in the Enterprise version that are > only in a commercial ve

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
The MacOs folder is there and the file gets added to it automatically. As for what version I am using it is Revolution Enterprise 4.5.0. I needed to use some things in the Enterprise version that are only in a commercial version of LiveCode. When I get some more money I will upgrade to LiveCode

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
It only worked correctly that one time and now it is back to no icon zero bytes. JB > On Sep 20, 2019, at 3:02 AM, Klaus major-k via use-livecode > wrote: > > Hi JB, > >> Am 20.09.2019 um 11:54 schrieb JB via use-livecode >> : >> >> I used your code as it was and changed the name of the fi

Re: Access Resource Files

2019-09-20 Thread Klaus major-k via use-livecode
Hi JB > Am 20.09.2019 um 12:10 schrieb JB via use-livecode > : > > Now this is interesting! > > I added the code snipped you just gave me and put > it above your other code. > > When I clicked the button it worked like a charm as > far as copying the file to the desktop. That is great! > > B

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Now this is interesting! I added the code snipped you just gave me and put it above your other code. When I clicked the button it worked like a charm as far as copying the file to the desktop. That is great! But for some reason the answer dialog appeared like it should but it was empty. How di

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Hi Klaus, Okay, I tried it again. This time I added the file using Copy Files in the StandAlone Settings. After creating the standAlone the file was there in the macOs folder not the Resources folder but that is fine with me and the file was a copy of the original. I used your code as it is in

Re: Access Resource Files

2019-09-20 Thread Klaus major-k via use-livecode
Hi JB, > Am 20.09.2019 um 11:54 schrieb JB via use-livecode > : > > I used your code as it was and changed the name of the file > to match your code. > > I did not use Copy files and added it on my own after it > was built. as I wrote: ... IF you copy your files to the correct folder inside

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
I used your code as it was and changed the name of the file to match your code. I did not use Copy files and added it on my own after it was built. I will try adding it to Copy files and see if that makes a difference. Thanks again! JB > On Sep 20, 2019, at 2:52 AM, Klaus major-k via use-livec

Re: Access Resource Files

2019-09-20 Thread Klaus major-k via use-livecode
Hi JB, > Am 20.09.2019 um 11:45 schrieb JB via use-livecode > : > > Hi Klaus, > > That worked but the file that appeared on the desktop had > no icon like was there before and the size is zero K. hm, I have been working this way since the old Metacard days, so no idea what's wrong. Did you us

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
Hi Klaus, That worked but the file that appeared on the desktop had no icon like was there before and the size is zero K. JB > On Sep 20, 2019, at 2:30 AM, Klaus major-k via use-livecode > wrote: > > Hi JB, > >> Am 20.09.2019 um 11:11 schrieb JB via use-livecode >> : >> >> Hi Klaus, >> >

Re: Access Resource Files

2019-09-20 Thread Klaus major-k via use-livecode
Hi JB, > Am 20.09.2019 um 11:11 schrieb JB via use-livecode > : > > Hi Klaus, > > Thanks for the info! A file path alone does not work for me. > Here is what I have tried. > In the Stack Script; > global dirName > on openStack > put the defaultFolder into dirName > end openStack > —From a bu

Re: Access Resource Files

2019-09-20 Thread JB via use-livecode
m 10:34 schrieb JB via use-livecode >> : >> >> 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

Re: Access Resource Files

2019-09-20 Thread Klaus major-k via use-livecode
Hi JB, > Am 20.09.2019 um 10:34 schrieb JB via use-livecode > : > > 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 var

Access Resource Files

2019-09-20 Thread JB via use-livecode
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