Discussion:
XojoScript
Jean-Luc Arnaud
2018-03-26 09:08:48 UTC
Permalink
Hi all,

Where could I find a king of XojoScript User's Guide, or any information
source about XojoScript?

TIA
--
Jean-Luc Arnaud
Jean-Luc Arnaud
2018-03-26 09:13:15 UTC
Permalink
Hi all,

Where could I find a king of XojoScript User's Guide, or any information
source about XojoScript?

TIA

----

Oups, sorry, please read BuildScript instead XojoScript.
thanks
--
Jean-Luc Arnaud
Jean-Pierre DOUCET
2018-03-26 09:20:52 UTC
Permalink
see for example :
http://developer.xojo.com/xojoscript
and the webinar :
http://developer.xojo.com/webinar-xojoscript
or the Mark Zeedar last xDev March/April 2018 : "Scripting stock prices" as a well documented exemple.
Post by Jean-Luc Arnaud
Hi all,
Where could I find a king of XojoScript User's Guide, or any information source about XojoScript?
TIA
--
Jean-Luc Arnaud
JPD
Jean-Luc Arnaud
2018-03-26 10:52:14 UTC
Permalink
Many thanks, Jean-Pierre.

I was actually looking for IDE Scripting information (I wrote my message
to quickly...). However your info will be very useful. Thanks!

I'm trying to code for a build step copying some files/folder after App
build, based on 32 or 64 bits build.

Here is my script:

If CurrentbuildTarget=19 Then
  RunScript("CopyFile_DriveCleanup64")
  RunScript("CopyFiles_KeyCopy64")
ElseIf CurrentBuildTarget=3 Then
  RunScript("CopyFile_DriveCleanup32")
  RunScript("CopyFiles_KeyCopy32")
End If

CopyFile_DriveCleanup32 (64) and CopyFiles_KeyCopy32 (64) are CopyFiles
scripts, tested and working.

This script does not work. Would you know why, by chance?

Jean-Luc Arnaud
Post by Jean-Pierre DOUCET
http://developer.xojo.com/xojoscript
http://developer.xojo.com/webinar-xojoscript
or the Mark Zeedar last xDev March/April 2018 : "Scripting stock
prices" as a well documented exemple.
Post by Jean-Luc Arnaud
Hi all,
Where could I find a king of XojoScript User's Guide, or any
information source about XojoScript?
TIA
--
Jean-Luc Arnaud
JPD
Jean-Pierre DOUCET
2018-03-26 11:43:53 UTC
Permalink
May be add ".xojo_script" after the name of your external script and it will work (providing that your script is in the Scripts folder, either next to the IDE or next to your project file)
Post by Jean-Luc Arnaud
Many thanks, Jean-Pierre.
I was actually looking for IDE Scripting information (I wrote my message to quickly...). However your info will be very useful. Thanks!
I'm trying to code for a build step copying some files/folder after App build, based on 32 or 64 bits build.
If CurrentbuildTarget=19 Then
RunScript("CopyFile_DriveCleanup64")
RunScript("CopyFiles_KeyCopy64")
ElseIf CurrentBuildTarget=3 Then
RunScript("CopyFile_DriveCleanup32")
RunScript("CopyFiles_KeyCopy32")
End If
CopyFile_DriveCleanup32 (64) and CopyFiles_KeyCopy32 (64) are CopyFiles scripts, tested and working.
This script does not work. Would you know why, by chance?
Jean-Luc Arnaud
http://developer.xojo.com/xojoscript <http://developer.xojo.com/xojoscript>
http://developer.xojo.com/webinar-xojoscript <http://developer.xojo.com/webinar-xojoscript>
or the Mark Zeedar last xDev March/April 2018 : "Scripting stock prices" as a well documented exemple.
Post by Jean-Luc Arnaud
Hi all,
Where could I find a king of XojoScript User's Guide, or any information source about XojoScript?
TIA
--
Jean-Luc Arnaud
JPD
Jean-Luc Arnaud
2018-03-26 14:19:27 UTC
Permalink
Unfortunately, does not work because CopyFile_DriveCleanup32 (64) and
CopyFiles_KeyCopy32 (64) are CopyFiles Build Steps, not real scripts.

I achieve my goal using DoShellCommand and a cp shell command. But I'm
sure there is (at least I think there should be) a way using CopyFiles
Build Steps.

Thanks for helping.

Jean-Luc Arnaud
Post by Jean-Pierre DOUCET
May be add ".xojo_script" after the name of your external script and
it will work (providing that your script is inthe Scripts folder,
either next to the IDE or next to your project file)
Post by Jean-Luc Arnaud
Many thanks, Jean-Pierre.
I was actually looking for IDE Scripting information (I wrote my
message to quickly...). However your info will be very useful. Thanks!
I'm trying to code for a build step copying some files/folder after
App build, based on 32 or 64 bits build.
If CurrentbuildTarget=19 Then
  RunScript("CopyFile_DriveCleanup64")
  RunScript("CopyFiles_KeyCopy64")
ElseIf CurrentBuildTarget=3 Then
  RunScript("CopyFile_DriveCleanup32")
  RunScript("CopyFiles_KeyCopy32")
End If
CopyFile_DriveCleanup32 (64) and CopyFiles_KeyCopy32 (64) are
CopyFiles scripts, tested and working.
This script does not work. Would you know why, by chance?
Jean-Luc Arnaud
Post by Jean-Pierre DOUCET
http://developer.xojo.com/xojoscript
http://developer.xojo.com/webinar-xojoscript
or the Mark Zeedar last xDev March/April 2018 : "Scripting stock
prices" as a well documented exemple.
Post by Jean-Luc Arnaud
Hi all,
Where could I find a king of XojoScript User's Guide, or any
information source about XojoScript?
TIA
--
Jean-Luc Arnaud
JPD
Loading...