Page 1 of 1

revCopyFolder__Standalone?

Posted: Mon Jul 12, 2021 4:29 pm
by stam
Hi all,
quick question - I'm finally close to releasing a first version of an app; this requires certain files/folders which i've packaged in specialFolderPath("resources") with the intention of copying to the user's Documents (a presumed writeable location) on first run.
It's simple enough to use revCopyFolder and this works well in the IDE

However in script editor's autocomplete i also get this command: revCopyFolder__Standalone pSrcFolder, pDestFolder
I was unable to find any documentation or mention of this anywhere - is this critical for standalones, does anyone know? Seems odd...

Re: revCopyFolder__Standalone?

Posted: Mon Jul 12, 2021 7:09 pm
by andresdt
It seems to me that this command is only for the IDE. So you should ignore it and keep using revCopyFolder :D

Re: revCopyFolder__Standalone?

Posted: Mon Jul 12, 2021 11:01 pm
by jmburnod
Hi,
You may use revCopyFolder in a standalone but you have to call it after startup process
From LC dictionary:
During the first part of the application's startup process, before this message is sent, the revCopyFolder command is not yet available. This may affect attempts to use this command in startup, preOpenStack, openStack, or preOpenCardhandlers in the main stack.
Best regards
Jean-Marc

Re: revCopyFolder__Standalone?

Posted: Tue Jul 13, 2021 8:19 am
by stam
jmburnod wrote:
Mon Jul 12, 2021 11:01 pm
You may use revCopyFolder in a standalone but you have to call it after startup process
Thank you! I probably got away with it without realising, as was using this in the openCard handler... but will keep this in mind!
Stam