Opening the AMC GUI and a specific project from the command line

Added by Matthew Leingang about 1 month ago

I do a lot of command-line work, including automating some of the AMC processes. But sometimes the GUI is the best interface. I was looking for a way to open up the AMC GUI from the command line, and skip the step of picking the project from the dialog to open it.

According to the man page for auto-multiple-choice (1), auto-multiple-choice project should open the GUI and the project named project. While I could get the GUI to open with this usage, and the application window showed the name of the project I wanted to open, it didn't have any of the project data in it.

The only way I could get it to work was, after digging into the source of auto-multiple-choice and AMC-gui.pl, call

auto-multiple-choice gui -p project

And that's good enough for me. I'm just wondering if the documentation is out of date or I'm doing it wrong.


Replies (2)

RE: Opening the AMC GUI and a specific project from the command line - Added by Alexis Bienvenüe about 1 month ago

auto-multiple-choice project should open the GUI and the project named project

This works for me, but project should be the name of the project only, not the full path of the project directory.
If you want to specify the full path, you must use auto-multiple-choice gui -p project_directory_path

RE: Opening the AMC GUI and a specific project from the command line - Added by Matthew Leingang about 1 month ago

Ah, I think I understand now. If you call

auto-multiple-choice projectname

at the command line, AMC will look in the global user setting projects directory for a project named projectname.

My projects directory has several subdirectories wherein the projects live, so the command above wasn't finding any project at the top level with that name. (I know that project subdirectories aren't really supported, but it's the best for my system. On the other hand, it means I have to constantly change the projects directory to one of the subdirectories.)

I discovered that auto-multiple-choice subdir/projectname will find it. So project is a kind of path; just relative to the projects directory.

Most of the time I'm working in a specific project's directory when I'm on the command line, so

auto-multiple-choice gui -p projectdir
is the more useful command to me. But I'm glad to know the correct usage.

(1-2/2)