CaseyJ
December 22, 2020, 9:56pm
1
Is there anyway to use launch() but have the app be minimized when it loads so it doesn’t cover the Processing sketch?
RFullum
December 22, 2020, 10:18pm
2
if you’re on a mac launch() uses the “open” command. You might be able to use the -g flag before the path.
lauch("-g /Path/to/file/or/app");
from the open man page:
-g Do not bring the application to the foreground.
edit: I just tested. Adding the flag on mac doesn’t work.
CaseyJ
December 22, 2020, 10:29pm
3
That is creative and I salute the effort!
CaseyJ
December 22, 2020, 10:55pm
4
For what it is worth I tried to launch() the sketch itself once it was running to kind of put it back on top per se. This did not work either.
RFullum
December 23, 2020, 12:11am
5
That too is quite clever!
I got curious and looked at the launch() command on processing’s github to see if there was a way to pass flags within the arguments but i didn’t have the mental fortitude this time of night nor the knowledge of java to follow what’s going on in there.
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Processing project - http://processing.org
Copyright (c) 2004-13 Ben Fry and Casey Reas
Copyright (c) 2001-04 Massachusetts Institute of Technology
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
This file has been truncated. show original