Hi,
Is there any way I could open the file without specifying the prefix path? In one of my scripts when I type Open(filename.jmp) it works, but doesn't when I try and open it from a window in the follwing example, any idea as to why? I keep getting the error with a \ in front of the file name for some reason? If I specify the full path for the file it works, but I need it to work when only the file name is provided.
OKScript = Expr(
win1 << CloseWindow;
lf = ListF << GetItems;
If( N Items( lf ) < 1,
Warning( "ERROR: You need to select at least one file" );
Throw();
);
For( i = 1, i <= N Items( lf ), i++,
print(lf[i]);
dt=Open(lf[i]);
);
);
);