jim at visitrieve.com
Mon Feb 22 07:47:06 CST 2010
> thanks for your answer. Maybe you know also how I can get the
> standalone name from the standalone settings?
> Then i could create acommon script and do not have to adjust it
> according to the standalone name.
I am not sure I understand because building a standalone is a "manual"
process and the standalone settings are in the stack you built the
standalone for. But, if you just want to know the name of the last
standalone you built and using the example I gave below then...
Again set the defaultFolder to *MyRevPrograms*. This time use the *detailed
folders* function to return into a variable all directories under
MyRevPrograms. Sort the variable descending by item 4 (the Julian creation
date and time of the folder) in the variable.
Now line 1 of the variable will contain something like:
*MyLastProgramName12* in item 1 of the line. Strip off the trailing numbers
of the directory name in item 1 of line 1 and you will have the standalone
name of the last standalone you built.
Aloha from Hawaii,
> Am 22.02.2010 um 13:49 schrieb "Jim Bufalini" <jim at visitrieve.com>:
> > Mathias,
> > You wrote:
> >> Dear all,
> >> i need to process the standalone files after they were created. So
> >> thought i could use 'on standalonesaved pFolder'. But pFolder only
> >> contains the target path, which was selected in the standalone build
> >> process.
> >> I am working under Windows. Under Windows the standalone is not
> >> created
> >> in that target folder directly. The standalone builder creates an
> >> additional folder in this target folder. If i create the standalone
> >> multiple times, the name of this automatic created folder is
> >> consecutively.
> >> Is there any way to process the files in this automatic created
> >> folder
> >> by script?
> > As you note, the standalone builder creates a directory under the
> > directory
> > you select and appends a number each time you build. Also, depending
> > on if
> > you are building for just Windows or other OSs, the EXE file you are
> > looking
> > for could be directly under this numbered directory or in a "Windows"
> > subdirectory. So...
> > Let's say the directory you select to save in is called
> > MyRevPrograms and
> > the name of the standalone is MyProgram. Set the defaulFolder to
> > MyRevPrograms. Use the *folders* function to return a list of
> > folders under
> > MyRevPrograms into a variable. Use the *filter* command to filter the
> > variable with only folders with the name "MyProgram*" (note the
> > asteric).
> > Sort the variable descending. Line 1 of the variable will now
> > contain the
> > last build directory name. Append this directory (with a slash in
> > front) to
> > the defaultFolder.
> > If you built for multiple OSs then you would have to append /Windows
> > to
> > this. This is where your EXE and stacks you included in the last
> > build will
> > be. So you should end up with something like:
> > C:/MyRevPrograms/MyProgram8/Windows/
> > Aloha from Hawaii,
> > Jim Bufalini
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode