Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-12 Thread Klaus major-k via use-livecode
Hi Hermann,

> Am 10.08.2019 um 19:32 schrieb hh via use-livecode 
> :
> 
>> Klaus M. wrote:
>> yes, success, at least partly, now I get a SHELL error -> ... access denied
>> Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so
>> everyone should be able to access it, before I put it into a custom property
>> of my stack. What can I do to make it run? Anything I am overseeing? 
> This works for me:
> set the myp of this stack to url ("binfile:"))
> 
> Then
> put the temporaryfolder & "/"&  into f1
> replace "//" with "/"in f1 -- avoid platform bugs
> put the myp of this stack into url ("binfile:")
> put shell("chmod 777 ") into nirwana

quick feddback: I now use this way and it works great! :-)


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


Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread Klaus major-k via use-livecode
Hi Hermann,

> Am 10.08.2019 um 19:56 schrieb hh via use-livecode 
> :
> 
>> But does that mean that my previous "chmod" does not stick?
> Yes, on every unix system. From security reasons.

ah, thank you, didn't know this.

> The Carbon question should better be answered by a team member.

Hopefully someone will chime in (next week :-)


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


Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
> But does that mean that my previous "chmod" does not stick?

Yes, on every unix system. From security reasons.

The Carbon question should better be answered by a team member.

___
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


Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread Klaus major-k via use-livecode
Hallo Hermann,

> Am 10.08.2019 um 19:32 schrieb hh via use-livecode 
> :
> 
>> Klaus M. wrote:
>> yes, success, at least partly, now I get a SHELL error -> ... access denied
>> Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so
>> everyone should be able to access it, before I put it into a custom property
>> of my stack. What can I do to make it run? Anything I am overseeing? 
> 
> This works for me:
> set the myp of this stack to compress(url ("binfile:" shellfile>))
> Then
> put the temporaryfolder & "/"&  into f1
> replace "//" with "/"in f1 -- avoid platform bugs
> put decompress(the myp of this stack) into url ("binfile:")
> put shell("chmod 777 ") into nirwana

thank you, will try this.
But does that mean that my previous "chmod" does not stick?

I noticed in the macOS file preview that the SHELL stuff contains something 
like this:
...
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
Once again without missing spaces.

> Klaus M. wrote:
> yes, success, at least partly, now I get a SHELL error -> ... access denied
> Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so
> everyone should be able to access it, before I put it into a custom property
> of my stack. What can I do to make it run? Anything I am overseeing? 

This works for me:

set the myp of this stack to compress(url ("binfile:"))

Then

put the temporary folder & "/"&  into f1
replace "//" with "/" in f1 -- avoid platform bugs
put decompress(the myp of this stack) into url ("binfile:")
put shell("chmod 777 ") into nirwana


___
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


Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
> Klaus M. wrote:
> yes, success, at least partly, now I get a SHELL error -> ... access denied
> Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so
> everyone should be able to access it, before I put it into a custom property
> of my stack. What can I do to make it run? Anything I am overseeing? 

This works for me:

set the myp of this stack to compress(url ("binfile:"))

Then

put the temporaryfolder & "/"&  into f1
replace "//" with "/"in f1 -- avoid platform bugs
put decompress(the myp of this stack) into url ("binfile:")
put shell("chmod 777 ") into nirwana


___
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


Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread J. Landman Gay via use-livecode
The specialFolderPath "engine" maps to the resources folder but it sounds 
like the mapping doesn't go the other way. Maybe using "engine" to find all 
resources might work? Just guessing.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 10, 2019 10:41:46 AM Klaus major-k via use-livecode 
 wrote:



Hi Brian,

Am 10.08.2019 um 04:43 schrieb Brian Milby via use-livecode 
:


Some files are moved to a different location based on type.  I can’t recall 
the details and would need to look at the source.  It is related to binary 
code though.  Stuff is copied first and then moved on a second pass.  That 
would explain the presence of the empty folders.


don't you think that it may be a good idea to somehow DOCUMENT this fact! :-(
So other developers won't get upset by this!


Thanks,
Brian


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





___
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

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread Brian Milby via use-livecode
The function is revRedirectMacOSResources
in ide-support/revsaveasstandalone.livecodescript (repo path).
The code doesn't explicitly state the reason, but I think it has to do with
where executable content needs to be inside an app bundle.
You may be better off using the engine path for executable content.

This code has been there for a long time though.  It was in there when the
livecodescript file was originally split out in Jan 2015.

On Sat, Aug 10, 2019 at 11:40 AM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Brian,
>
> > Am 10.08.2019 um 04:43 schrieb Brian Milby via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Some files are moved to a different location based on type.  I can’t
> recall the details and would need to look at the source.  It is related to
> binary code though.  Stuff is copied first and then moved on a second
> pass.  That would explain the presence of the empty folders.
>
> don't you think that it may be a good idea to somehow DOCUMENT this fact!
> :-(
> So other developers won't get upset by this!
>
> > Thanks,
> > Brian
>
> 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
___
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

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread Klaus major-k via use-livecode
Hi Brian,

> Am 10.08.2019 um 04:43 schrieb Brian Milby via use-livecode 
> :
> 
> Some files are moved to a different location based on type.  I can’t recall 
> the details and would need to look at the source.  It is related to binary 
> code though.  Stuff is copied first and then moved on a second pass.  That 
> would explain the presence of the empty folders.

don't you think that it may be a good idea to somehow DOCUMENT this fact! :-(
So other developers won't get upset by this!

> Thanks,
> Brian

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

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread Paul Dupuis via use-livecode

On 8/10/2019 5:03 AM, Klaus major-k via use-livecode wrote:

thank you, yes, I imagined something like this.
But what does get moved and why, and what can I do to make my app run?


We use a "on standaloneSaved pDestFolder" handler and then use 
revCopyFolder or revCopyFile (or whichever other of the rev file/folder 
command is appropriate) to move stuff from where it gets put to where we 
want it.


We've done this for some time both to insulate ourselves against Apple's 
habit of changing where stuff goes and regression errors in LiveCode's 
engine.



___
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


Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread Klaus major-k via use-livecode
Hallo Hermann,

> Am 10.08.2019 um 12:45 schrieb Klaus major-k via use-livecode 
> :
> 
> Hallo Hermann,
> 
>> Am 10.08.2019 um 12:30 schrieb hh via use-livecode 
>> :
>> 
>>> Klaus M. wrote:
>>> and what can I do to make my app run?
>> 
>> Did you already try to put the compiled things on startup
>> from custom props into the temporary folder?
>> I never had problems with running compiled shell scripts
>> from there.
> 
> that is the next point on my testing list, thank you. :-)

yes, success, at least partly, now I get a SHELL error -> ... access denied

Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so 
everyone 
should be able to access it, before I put it into a custom property of my stack.

What can I do to make it run?
Anything I am overseeing?


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


Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread Klaus major-k via use-livecode
Hallo Hermann,

> Am 10.08.2019 um 12:30 schrieb hh via use-livecode 
> :
> 
>> Klaus M. wrote:
>> and what can I do to make my app run?
> 
> Did you already try to put the compiled things on startup
> from custom props into the temporary folder?
> I never had problems with running compiled shell scripts
> from there.

that is the next point on my testing list, thank you. :-)


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


Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
> Klaus M. wrote:
> and what can I do to make my app run?

Did you already try to put the compiled things on startup
from custom props into the temporary folder?
I never had problems with running compiled shell scripts
from there.

___
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


Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread Klaus major-k via use-livecode
Hi Brian,

> Am 10.08.2019 um 04:43 schrieb Brian Milby via use-livecode 
> :
> 
> Some files are moved to a different location based on type.  I can’t recall 
> the details and would need to look at the source.  It is related to binary 
> code though.  Stuff is copied first and then moved on a second pass.  That 
> would explain the presence of the empty folders.

thank you, yes, I imagined something like this.
But what does get moved and why, and what can I do to make my app run?

> Thanks,
> Brian
> On Aug 9, 2019, 4:47 PM -0400, Klaus major-k via use-livecode 
> , wrote:
>> Maybe noone got the point of my posting?
>> 
>> The point is, that I add files and folder to the standalone via the "Copy 
>> files" tab
>> in the "Standalone Application Settings", however some of these files are 
>> missing
>> in the final runtime. However instead they can be found in -> 
>> specialfolderpath("engine")
>> 
>> What is happening here and why does LC not copy everything to the RESOURCES 
>> folder?
>> 
>>> Am 09.08.2019 um 15:22 schrieb Klaus major-k via use-livecode 
>>> :
>>> 
>>> Hi friends,
>>> 
>>> I am currently making an existing app "64Bit safe" for a customer with LC 
>>> 9.5
>>> on macOS 10.14.6.
>>> 
>>> In this app there are some "compiled shell scripts" (? I guess, have no 
>>> infor about this)
>>> which changes the keyboard layout (chinese and back) to german depending of 
>>> the target
>>> fields in LC.
>>> 
>>> Structure (three files and two folders):
>>> ## File
>>> extSetInputMethod
>>> 
>>> ## Folders
>>> x86-64/extSetInputMethod
>>> x86-32/extSetInputMethod
>>> 
>>> I guess the first one checks the current architecture and then calls the 
>>> correct version for this.
>>> Whatever, this works fine in the customers older apps.
>>> 
>>> So I added all this via the "Copy files" tab in the "Standalone Application 
>>> Settings"
>>> However these files were NOT in specialfolderpath("resources") in the 
>>> runtime?
>>> 
>>> In the runtime I find this:
>>> the_actual_app.app
>>> -> /Resources
>>> -> /Resources/Externals ## empty, no externals used in app
>>> -> /Resources/x86-64 ## EMPTY!?
>>> -> /Resources/x86-32 ## EMPTY!?
>>> 
>>> File -> extSetInputMethod = missing and the two latter folders are EMPTY!?
>>> Where on earth are the contents of the other folders?
>>> 
>>> But I find this in:
>>> the_actual_app
>>> -> /MacOS
>>> -> /MacOS/extInputMethod ## the missing file! see above
>>> -> /MacOS/x86-64/extInputMethod ## the missing file
>>> -> /MacOS/x86-32/extInputMethod ## the missing file
>>> ...
>>> 
>>> So calling the shell apps in -> specialfolderpath("resources") does of 
>>> course not work!?
>>> If I copy them manually to the correct folder in the runtime, they stop 
>>> working.
>>> So all in all this is a real showstopper! :-/

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

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-09 Thread Brian Milby via use-livecode
Some files are moved to a different location based on type.  I can’t recall the 
details and would need to look at the source.  It is related to binary code 
though.  Stuff is copied first and then moved on a second pass.  That would 
explain the presence of the empty folders.

Thanks,
Brian
On Aug 9, 2019, 4:47 PM -0400, Klaus major-k via use-livecode 
, wrote:
> Maybe noone got the point of my posting?
>
> The point is, that I add files and folder to the standalone via the "Copy 
> files" tab
> in the "Standalone Application Settings", however some of these files are 
> missing
> in the final runtime. However instead they can be found in -> 
> specialfolderpath("engine")
>
> What is happening here and why does LC not copy everything to the RESOURCES 
> folder?
>
> > Am 09.08.2019 um 15:22 schrieb Klaus major-k via use-livecode 
> > :
> >
> > Hi friends,
> >
> > I am currently making an existing app "64Bit safe" for a customer with LC 
> > 9.5
> > on macOS 10.14.6.
> >
> > In this app there are some "compiled shell scripts" (? I guess, have no 
> > infor about this)
> > which changes the keyboard layout (chinese and back) to german depending of 
> > the target
> > fields in LC.
> >
> > Structure (three files and two folders):
> > ## File
> > extSetInputMethod
> >
> > ## Folders
> > x86-64/extSetInputMethod
> > x86-32/extSetInputMethod
> >
> > I guess the first one checks the current architecture and then calls the 
> > correct version for this.
> > Whatever, this works fine in the customers older apps.
> >
> > So I added all this via the "Copy files" tab in the "Standalone Application 
> > Settings"
> > However these files were NOT in specialfolderpath("resources") in the 
> > runtime?
> >
> > In the runtime I find this:
> > the_actual_app.app
> > -> /Resources
> > -> /Resources/Externals ## empty, no externals used in app
> > -> /Resources/x86-64 ## EMPTY!?
> > -> /Resources/x86-32 ## EMPTY!?
> >
> > File -> extSetInputMethod = missing and the two latter folders are EMPTY!?
> > Where on earth are the contents of the other folders?
> >
> > But I find this in:
> > the_actual_app
> > -> /MacOS
> > -> /MacOS/extInputMethod ## the missing file! see above
> > -> /MacOS/x86-64/extInputMethod ## the missing file
> > -> /MacOS/x86-32/extInputMethod ## the missing file
> > ...
> >
> > So calling the shell apps in -> specialfolderpath("resources") does of 
> > course not work!?
> > If I copy them manually to the correct folder in the runtime, they stop 
> > working.
> > So all in all this is a real showstopper! :-/
> >
> > Am I overlooking something?
> > Is this correct behaviour of LC?
> > What can I do?
>
> --
> 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
___
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

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-09 Thread Klaus major-k via use-livecode
Maybe noone got the point of my posting?

The point is, that I add files and folder to the standalone via the "Copy 
files" tab
in the "Standalone Application Settings", however some of these files are 
missing 
in the final runtime. However instead they can be found in -> 
specialfolderpath("engine")

What is happening here and why does LC not copy everything to the RESOURCES 
folder?

> Am 09.08.2019 um 15:22 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
> I am currently making an existing app "64Bit safe" for a customer with LC 9.5 
> on macOS 10.14.6.
> 
> In this app there are some "compiled shell scripts" (? I guess, have no infor 
> about this)
> which changes the keyboard layout (chinese and back) to german depending of 
> the target 
> fields in LC.
> 
> Structure (three files and two folders):
> ## File
> extSetInputMethod
> 
> ## Folders
> x86-64/extSetInputMethod
> x86-32/extSetInputMethod
> 
> I guess the first one checks the current architecture and then calls the 
> correct version for this.
> Whatever, this works fine in the customers older apps.
> 
> So I added all this via the "Copy files" tab in the "Standalone Application 
> Settings"
> However these files were NOT in specialfolderpath("resources") in the runtime?
> 
> In the runtime I find this:
> the_actual_app.app
> -> /Resources
> -> /Resources/Externals ## empty, no externals used in app
> -> /Resources/x86-64 ## EMPTY!?
> -> /Resources/x86-32 ## EMPTY!?
> 
> File -> extSetInputMethod = missing and the two latter folders are EMPTY!?
> Where on earth are the contents of the other folders?
> 
> But I find this in:
> the_actual_app
> -> /MacOS
> -> /MacOS/extInputMethod ## the missing file! see above
> -> /MacOS/x86-64/extInputMethod  ## the missing file
> -> /MacOS/x86-32/extInputMethod  ## the missing file
> ...
> 
> So calling the shell apps in -> specialfolderpath("resources") does of course 
> not work!?
> If I copy them manually to the correct folder in the runtime, they stop 
> working.
> So all in all this is a real showstopper! :-/
> 
> Am I overlooking something?
> Is this correct behaviour of LC?
> What can I do?

--
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


"copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-09 Thread Klaus major-k via use-livecode
Hi friends,

I am currently making an existing app "64Bit safe" for a customer with LC 9.5 
on macOS 10.14.6.

In this app there are some "compiled shell scripts" (? I guess, have no infor 
about this)
which changes the keyboard layout (chinese and back) to german depending of the 
target 
fields in LC.

Structure (three files and two folders):
## File
extSetInputMethod

## Folders
x86-64/extSetInputMethod
x86-32/extSetInputMethod

I guess the first one checks the current architecture and then calls the 
correct version for this.
Whatever, this works fine in the customers older apps.

So I added all this via the "Copy files" tab in the "Standalone Application 
Settings"
However these files were NOT in specialfolderpath("resources") in the runtime?

In the runtime I find this:
the_actual_app.app
-> /Resources
-> /Resources/Externals ## empty, no externals used in app
-> /Resources/x86-64 ## EMPTY!?
-> /Resources/x86-32 ## EMPTY!?

File -> extSetInputMethod = missing and the two latter folders are EMPTY!?
Where on earth are the contents of the other folders?

But I find this in:
the_actual_app
-> /MacOS
-> /MacOS/extInputMethod ## the missing file! see above
-> /MacOS/x86-64/extInputMethod  ## the missing file
-> /MacOS/x86-32/extInputMethod  ## the missing file
...

So calling the shell apps in -> specialfolderpath("resources") does of course 
not work!?
If I copy them manually to the correct folder in the runtime, they stop working.
So all in all this is a real showstopper! :-/

Am I overlooking something?
Is this correct behaviour of LC?
What can I do?

Thanks for any hints!


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