- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
JMP Alert: File not Found
Hi,
I'm creating the following script for a journal:
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]);
);
);
);
lf holds the list of file names that the user selected from a directory. I keep getting a 'JMP Alert: file not found ' error each time I click the okay button when I have selected the file.
Any help would be appreciated.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JMP Alert: File not Found
What prints in the log for the file name? Does it need a prefix path?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JMP Alert: File not Found
What prints in the log for the file name? Does it need a prefix path?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JMP Alert: File not Found
The following error message is printed:
\Test 1 Measurements Mock Up.jmp was not found.
And this is printed in the log:
"Test 1 Measurements Mock Up.jmp"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JMP Alert: File not Found
Sorry, my mistake. I realised that I didn't specify the full path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JMP Alert: File not Found
Hi,
Going back to this, is there any way I could open the file without specifying the prefix path. In another one of my scripts when I type Open(filename.jmp) it works, but doesn't with this example, any idea as to why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JMP Alert: File not Found
If it works without a full path, it is because JMP's default directory is where the files are. I'm not very familiar with how the default directory works, but might have something to do with the directory your script was loaded from.