In fact I use a macro file "test.mcr" with a system call to the bash script "tecp.sh"
(see below) I just figured out that it was not possible to use this, because environment
variables are set on tecplot start-up, and fixed as is unless tecplot is restarted.
Very annoying. Is there is some macro command to update environment variables
without restarting?
--------------------------------------test.mcr
#!MC 1120
# Created by Tecplot 360 build 11.2-0-563
$!System "cp ~/bin/tecp.sh ."
$!System ". ./tecp.sh"
$!System "rm ./tecp.sh"
$!READDATASET '"|$TCR|/|$LST|"'
READDATAOPTION = REPLACE
RESETSTYLE = NO
INCLUDETEXT = NO
INCLUDEGEOM = NO
INCLUDECUSTOMLABELS = NO
VARLOADMODE = BYNAME
ASSIGNSTRANDIDS = YES
$!PICK SETMOUSEMODE
MOUSEMODE = SELECT
$!ACTIVEFIELDMAPS += [|NUMZONES|]
--------------------------------------tecp.sh
#!/bin/bash
export TCR=$PWD
touch temp.txt
ls *.plt > temp.txt
export LST=$(tail temp.txt | sed -n '8p')
rm temp.txt