キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
言語を選択 翻訳バーを非表示
Sburel
Level IV

check whther a project is already open

Hello,

 

I have a script which is part of an add-in. When the script is launched, it triggers the creation of a project (project=new project (...)). However, when I'm debugging the script, I typically run it with a project already open and use the code project=this project().

 

I would like to make the script smarter so that if a project(s) is already open then it run automatically into the open project (or ask which project to run it into, or give the option to create a new script). if no project is open then it would first create a project.

 

Sugestions?

 

Thanks

 

 

2件の返信2
jthi
Super User

Re: check whther a project is already open

Get Project List() might be what you are looking for. You can check if there are any projects open for example by checking the list returned from Get Project List() with N Items().

 

Example from scripting index

Names Default To Here(1);
New Project();
Open("$SAMPLE_PROJECTS/Big Class.jmpprj");
                             
Print(Get Project List() << Get Window Title());
-Jarmo
Sburel
Level IV

Re: check whther a project is already open

Thanks for the tip. I'll give it a go

おすすめの記事