cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
johnmoore
Level IV

Correct argument to limit open() to jmpaddin files

The JMP syntax reference says that  open() can be limited to different file types.

 

File Type An optional string that specifies the type of file that you are opening (for
example, "text", "journal", "sas", "script", "png", and "jmp"). This can be useful if your file
does not have a file extension, the file extension of the file does not match the contents of
the file, or you want to import a JSL BLOB. If you do not specify this string, the file opens
in the default program for the file extension.

 

Does anyone know the correct argument to limit this to add-in files?

 

Many thanks,

 

John

1 REPLY 1
txnelson
Super User

Re: Correct argument to limit open() to jmpaddin files

Adding the File Type as an argument on the Open() function does not "limit" the type of files to be displayed.  It is used to indicate what type of file is being referenced if there is not a file extension on the referenced file.

There also appears to be only a specific range of values it can have, and "jmpaddin" does not appear to be one of them.

 

If you want to limit users to being able to select only .addins I suggest that you use a Pick File() function to select the file to be opened, and then pass the result of the Pick File() and pass it to the Open() function

Jim