I made a Windows installer for my alternate-tuning sequencer, so that folks can just install and then run a batch file to use my program, without having to open Pd separately. The tuning folks seem to like it :) I'm trying to do the same thing for OSX now. I don't want much; I figured I'd just load the externals I'm using into the Extra folder in the Pd-0.39-2.app I already have, and when they open my patch the necessary objects will be found. I actually have pd_darwin files with the names of all the objects themselves, so, if I understand correctly, I should be able to just open the patch and it will search for whatever.pd_darwin in the Extra folder.
But for some reason [active] and [tot] aren't loading right. I get a message saying:
active ... couldn't create link error 0 dyld: /Users/chuckk/Documents/Pd-0.39-2.app/Contents/Resources/Scripts/../bin/pd multiple definitions of symbol _hammergui_bindfocus
then two messages referencing the tot.pd_darwin definition of symbol _hammergui_bindfocus and the active.pd_darwin definition of the same thing.
Am I going about this wrong? I looked up OSX shell files online, and it seems they always have to be called from a terminal. I'd sooner explain how to open Pd and load my patch than to explain how to find a terminal window and type in the shell file name.
-Chuckk
On Wed, 6 Sep 2006, Chuckk Hubbard wrote:
Am I going about this wrong? I looked up OSX shell files online, and it seems they always have to be called from a terminal. I'd sooner explain how to open Pd and load my patch than to explain how to find a terminal window and type in the shell file name.
The quick solution for that is to make a OSX icon that launches Pd in a terminal and give that to your users.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
On 9/6/06, Mathieu Bouchard matju@artengine.ca wrote:
On Wed, 6 Sep 2006, Chuckk Hubbard wrote:
Am I going about this wrong? I looked up OSX shell files online, and it seems they always have to be called from a terminal. I'd sooner explain how to open Pd and load my patch than to explain how to find a terminal window and type in the shell file name.
The quick solution for that is to make a OSX icon that launches Pd in a terminal and give that to your users.
Just append .command to the shell script and set the executable bit and the icon will run the script when double clicked.
On 9/6/06, chris clepper cgclepper@gmail.com wrote:
On 9/6/06, Mathieu Bouchard matju@artengine.ca wrote:
On Wed, 6 Sep 2006, Chuckk Hubbard wrote:
Am I going about this wrong? I looked up OSX shell files online, and it seems they always have to be called from a terminal. I'd sooner explain how to open Pd and load my patch than to explain how to find a terminal window and type in the shell file name.
The quick solution for that is to make a OSX icon that launches Pd in a terminal and give that to your users.
Just append .command to the shell script and set the executable bit and the icon will run the script when double clicked.
What's the executable bit? Thanks. This looks like it might work. -Chuckk
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
What's the executable bit? Thanks. This looks like it might work.
chmod +x mycommand.command
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
On 9/6/06, chris clepper cgclepper@gmail.com wrote:
What's the executable bit?
Nevermind, I found this, and did it, and I can run a .command file to change to the Pd directory and list the contents, and I see "Pd" in the readout. If I add the line: Pd
after changing to that directory, it says: Pd: command not found
Any ideas why?
-Chuckk
Just use the full path when starting Pd.
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
On 9/6/06, chris clepper cgclepper@gmail.com wrote:
What's the executable bit?
Nevermind, I found this, and did it, and I can run a .command file to change to the Pd directory and list the contents, and I see "Pd" in the readout. If I add the line: Pd
after changing to that directory, it says: Pd: command not found
Any ideas why?
-Chuckk
-- "Far and away the best prize that life has to offer is the chance to work hard at work worth doing." -Theodore Roosevelt
Thanks. I want to have a .command file that, when my user double-clicks it, will open Pd with whatever flags I tell it, with everything in a folder that my user can put anywhere.
From what I can tell, there is no way to pass a path to the command
line relative to the folder from which it is called. pwd gives me /Users/student, which only has a symbolic link to the Documents folder, meaning I have to switch to /Users/Shared to run Pd, and I don't know what kind of user names or folders my user will have. "./" goes from the home directory of the current user, not the directory of the .command file.
The Pd command also doesn't respond to my flags from within this .command file, nor will the open command allow me to use any.
(I'm not just bogging down the list, btw, I've been searching high and low for answers to this online.)
Thanks for your help! -Chuckk
On 9/7/06, chris clepper cgclepper@gmail.com wrote:
Just use the full path when starting Pd.
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
On 9/7/06, Chuckk Hubbard <badmuthahubbard@gmail.com > wrote:
On 9/6/06, chris clepper cgclepper@gmail.com wrote:
What's the executable bit?
Nevermind, I found this, and did it, and I can run a .command file to change to the Pd directory and list the contents, and I see "Pd" in the readout. If I add the line: Pd
after changing to that directory, it says: Pd: command not found
Any ideas why?
-Chuckk
-- "Far and away the best prize that life has to offer is the chance to work hard at work worth doing." -Theodore Roosevelt
hi,
what chris meant with the full path is running the pd executable and
not opening the pd.app application package which is rather an
obfuscated folder. this is what the open command in the shell does.
so type
/Applications/Pd-0.39.2-extended-test4.app/Contents/Resources/bin/pd - your -flags -here
instead of
open /Applications/Pd-0.39.2-extended-test4.app
you might need the tcl/tk installed to make that work.
m.
Am 08.09.2006 um 06:24 schrieb Chuckk Hubbard:
Thanks. I want to have a .command file that, when my user double-clicks it, will open Pd with whatever flags I tell it, with everything in a folder that my user can put anywhere.
From what I can tell, there is no way to pass a path to the command
line relative to the folder from which it is called. pwd gives me /Users/student, which only has a symbolic link to the Documents folder, meaning I have to switch to /Users/Shared to run Pd, and I don't know what kind of user names or folders my user will have. "./" goes from the home directory of the current user, not the directory of the .command file.
The Pd command also doesn't respond to my flags from within this .command file, nor will the open command allow me to use any.
(I'm not just bogging down the list, btw, I've been searching high and low for answers to this online.)
Thanks for your help! -Chuckk
On 9/7/06, chris clepper cgclepper@gmail.com wrote:
Just use the full path when starting Pd.
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
On 9/7/06, Chuckk Hubbard <badmuthahubbard@gmail.com > wrote:
On 9/6/06, chris clepper cgclepper@gmail.com wrote:
What's the executable bit?
Nevermind, I found this, and did it, and I can run a .command
file to
change to the Pd directory and list the contents, and I see "Pd" in the readout. If I add the line: Pd
after changing to that directory, it says: Pd: command not found
Any ideas why?
-Chuckk
-- "Far and away the best prize that life has to offer is the
chance to
work hard at work worth doing." -Theodore Roosevelt
-- "Far and away the best prize that life has to offer is the chance to work hard at work worth doing." -Theodore Roosevelt
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
I've been using the executable. I found it on my own before the explanations I got here. Since the commandline won't run the .app anyway, I've been using the executable.
What I'm asking is a) how to set the folder relative to where the commandline is called from, and b) how to send Pd flags to Pd. Simply typing them after the Pd command does not work.
-Chuckk
On 9/8/06, Max Neupert abonnements@revolwear.com wrote:
hi,
what chris meant with the full path is running the pd executable and not opening the pd.app application package which is rather an obfuscated folder. this is what the open command in the shell does.
so type
/Applications/Pd-0.39.2-extended-test4.app/Contents/Resources/bin/pd - your -flags -here
instead of
open /Applications/Pd-0.39.2-extended-test4.app
you might need the tcl/tk installed to make that work.
m.
Am 08.09.2006 um 06:24 schrieb Chuckk Hubbard:
Thanks. I want to have a .command file that, when my user double-clicks it, will open Pd with whatever flags I tell it, with everything in a folder that my user can put anywhere.
From what I can tell, there is no way to pass a path to the command
line relative to the folder from which it is called. pwd gives me /Users/student, which only has a symbolic link to the Documents folder, meaning I have to switch to /Users/Shared to run Pd, and I don't know what kind of user names or folders my user will have. "./" goes from the home directory of the current user, not the directory of the .command file.
The Pd command also doesn't respond to my flags from within this .command file, nor will the open command allow me to use any.
(I'm not just bogging down the list, btw, I've been searching high and low for answers to this online.)
Thanks for your help! -Chuckk
On 9/7/06, chris clepper cgclepper@gmail.com wrote:
Just use the full path when starting Pd.
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
On 9/7/06, Chuckk Hubbard <badmuthahubbard@gmail.com > wrote:
On 9/6/06, chris clepper cgclepper@gmail.com wrote:
What's the executable bit?
Nevermind, I found this, and did it, and I can run a .command
file to
change to the Pd directory and list the contents, and I see "Pd" in the readout. If I add the line: Pd
after changing to that directory, it says: Pd: command not found
Any ideas why?
-Chuckk
-- "Far and away the best prize that life has to offer is the
chance to
work hard at work worth doing." -Theodore Roosevelt
-- "Far and away the best prize that life has to offer is the chance to work hard at work worth doing." -Theodore Roosevelt
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Am 08.09.2006 um 15:43 schrieb Chuckk Hubbard:
What I'm asking is a) how to set the folder relative to where the commandline is called from, and b) how to send Pd flags to Pd. Simply typing them after the Pd command does not work.
well, it does work here.
-Chuckk
On 9/8/06, Max Neupert abonnements@revolwear.com wrote:
hi,
what chris meant with the full path is running the pd executable and not opening the pd.app application package which is rather an obfuscated folder. this is what the open command in the shell does.
so type
/Applications/Pd-0.39.2-extended-test4.app/Contents/Resources/bin/ pd - your -flags -here
instead of
open /Applications/Pd-0.39.2-extended-test4.app
you might need the tcl/tk installed to make that work.
m.
Am 08.09.2006 um 06:24 schrieb Chuckk Hubbard:
Thanks. I want to have a .command file that, when my user double-clicks it, will open Pd with whatever flags I tell it, with everything in a folder that my user can put anywhere.
From what I can tell, there is no way to pass a path to the
command
line relative to the folder from which it is called. pwd gives me /Users/student, which only has a symbolic link to the Documents folder, meaning I have to switch to /Users/Shared to run Pd, and I don't know what kind of user names or folders my user will
have. "./"
goes from the home directory of the current user, not the
directory of
the .command file.
The Pd command also doesn't respond to my flags from within this .command file, nor will the open command allow me to use any.
(I'm not just bogging down the list, btw, I've been searching
high and
low for answers to this online.)
Thanks for your help! -Chuckk
On 9/7/06, chris clepper cgclepper@gmail.com wrote:
Just use the full path when starting Pd.
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
On 9/7/06, Chuckk Hubbard <badmuthahubbard@gmail.com > wrote:
On 9/6/06, chris clepper cgclepper@gmail.com wrote:
What's the executable bit?
Nevermind, I found this, and did it, and I can run a .command
file to
change to the Pd directory and list the contents, and I see
"Pd" in
the readout. If I add the line: Pd
after changing to that directory, it says: Pd: command not found
Any ideas why?
-Chuckk
-- "Far and away the best prize that life has to offer is the
chance to
work hard at work worth doing." -Theodore Roosevelt
-- "Far and away the best prize that life has to offer is the
chance to
work hard at work worth doing." -Theodore Roosevelt
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- "Far and away the best prize that life has to offer is the chance to work hard at work worth doing." -Theodore Roosevelt
Interesting; would you mind posting the contents of a .command file that works for you to open Pd with flags? Thanks.
I try this: ############ #! /bin/sh
../Shared/Documents/CSHJr/JIsequencershare/Pd-0.39-2.app/Contents/MacOS/Pd -font 36 ############
Last login: Fri Sep 8 13:44:16 on ttyp1 Welcome to Darwin! /Users/Shared/Documents/CSHJr/JIsequencershare/JI.command; exit AC-T1212-M13:~ student$ /Users/Shared/Documents/CSHJr/JIsequencershare/JI.command; exit retrying connect... retrying connect... retrying connect... retrying connect... retrying connect... retrying connect... retrying connect... retrying connect... retrying connect... connecting stream socket: Invalid argument (22) logout [Process completed] =============
On 9/8/06, Max Neupert abonnements@revolwear.com wrote:
Am 08.09.2006 um 15:43 schrieb Chuckk Hubbard:
What I'm asking is a) how to set the folder relative to where the commandline is called from, and b) how to send Pd flags to Pd. Simply typing them after the Pd command does not work.
well, it does work here.
-Chuckk
On 9/8/06, Max Neupert abonnements@revolwear.com wrote:
hi,
what chris meant with the full path is running the pd executable and not opening the pd.app application package which is rather an obfuscated folder. this is what the open command in the shell does.
so type
/Applications/Pd-0.39.2-extended-test4.app/Contents/Resources/bin/ pd - your -flags -here
instead of
open /Applications/Pd-0.39.2-extended-test4.app
you might need the tcl/tk installed to make that work.
m.
Am 08.09.2006 um 06:24 schrieb Chuckk Hubbard:
Thanks. I want to have a .command file that, when my user double-clicks it, will open Pd with whatever flags I tell it, with everything in a folder that my user can put anywhere.
From what I can tell, there is no way to pass a path to the
command
line relative to the folder from which it is called. pwd gives me /Users/student, which only has a symbolic link to the Documents folder, meaning I have to switch to /Users/Shared to run Pd, and I don't know what kind of user names or folders my user will
have. "./"
goes from the home directory of the current user, not the
directory of
the .command file.
The Pd command also doesn't respond to my flags from within this .command file, nor will the open command allow me to use any.
(I'm not just bogging down the list, btw, I've been searching
high and
low for answers to this online.)
Thanks for your help! -Chuckk
On 9/7/06, chris clepper cgclepper@gmail.com wrote:
Just use the full path when starting Pd.
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
On 9/7/06, Chuckk Hubbard <badmuthahubbard@gmail.com > wrote: > On 9/6/06, chris clepper cgclepper@gmail.com wrote: > > What's the executable bit?
Nevermind, I found this, and did it, and I can run a .command
file to
change to the Pd directory and list the contents, and I see
"Pd" in
the readout. If I add the line: Pd
after changing to that directory, it says: Pd: command not found
Any ideas why?
-Chuckk
-- "Far and away the best prize that life has to offer is the
chance to
work hard at work worth doing." -Theodore Roosevelt
-- "Far and away the best prize that life has to offer is the
chance to
work hard at work worth doing." -Theodore Roosevelt
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
-- "Far and away the best prize that life has to offer is the chance to work hard at work worth doing." -Theodore Roosevelt
On 9/8/06, Max Neupert abonnements@revolwear.com wrote:
so type
/Applications/Pd-0.39.2-extended-test4.app/Contents/Resources/bin/pd - your -flags -here
OH. lol I was using /what-have-you/Pd-0.39-2.app/Contents/MacOS/Pd Which was what others suggested. Using /Resources/bin/pd does take my flags. Now that part works, thanks! I do get an odd printout in the terminal:
AC-T1212-M13:~ student$ /Users/Shared/Documents/CSHJr/JIsequencershare/JI.command; exit invalid command name ".x1654a20.c" invalid command name ".x1654a20.c" invalid command name ".x1654a20.c" invalid command name ".x1654a20.c" invalid command name ".x1654a20.c" invalid command name ".x1654a20.c" invalid command name ".x1654a20.c" invalid command name ".x1654a20.c" etc etc.
But it runs, so I don't much care.
And my next question is whether it is possible to tell the commandline where the script is coming from. With "sh JI.sh", it knows because I have to already be in that folder to call it; but clicking on "JI.command" in Finder does not pass the path to JI.command to the terminal window it opens.
-Chuckk
On 9/7/06, Chuckk Hubbard badmuthahubbard@gmail.com wrote:
after changing to that directory, it says: Pd: command not found
Any ideas why?
Nevermind yet again, I found the open command. I still can't get OSX to open Pd with flags, but I'll refrain from asking just yet...
On Thu, 7 Sep 2006, Chuckk Hubbard wrote:
after changing to that directory, it says: Pd: command not found Any ideas why?
try this:
./Pd
this is because, if there is no slash in the command name, Bash will look at every directory in the colon-separated list called $PATH. Usually, "." isn't in that list, and you have to add it yourself.
In DOS it's the other way around, the shell searches "." no matter whether you like it or not, and you can't change its order of priority.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
This is the first time I've read a satisfactory explanation of that feature! Thanks.
~Kyle
On 9/7/06, Mathieu Bouchard matju@artengine.ca wrote:
try this:
./Pd
this is because, if there is no slash in the command name, Bash will look at every directory in the colon-separated list called $PATH. Usually, "." isn't in that list, and you have to add it yourself.
In DOS it's the other way around, the shell searches "." no matter whether you like it or not, and you can't change its order of priority.
On 9/6/06, Mathieu Bouchard matju@artengine.ca wrote:
On Wed, 6 Sep 2006, Chuckk Hubbard wrote:
Am I going about this wrong? I looked up OSX shell files online, and it seems they always have to be called from a terminal. I'd sooner explain how to open Pd and load my patch than to explain how to find a terminal window and type in the shell file name.
The quick solution for that is to make a OSX icon that launches Pd in a terminal and give that to your users.
I can't figure out how to launch Pd from the OSX command line. It's in an .app file, but the name of that file does nothing.
On Wed, 6 Sep 2006, Chuckk Hubbard wrote:
On 9/6/06, Mathieu Bouchard matju@artengine.ca wrote:
On Wed, 6 Sep 2006, Chuckk Hubbard wrote:
Am I going about this wrong? I looked up OSX shell files online, and it seems they always have to be called from a terminal. I'd sooner explain how to open Pd and load my patch than to explain how to find a terminal window and type in the shell file name.
The quick solution for that is to make a OSX icon that launches Pd in a terminal and give that to your users.
I can't figure out how to launch Pd from the OSX command line. It's in an .app file, but the name of that file does nothing.
in OSX, a .app is a folder. In the Finder you can Ctrl+Click and do "Show Package Contents". Then inside that there's a folder called "Contents" (don't ask me why there's that extra level...), inside of which there's a folder "MacOS", inside of which there is the file "pd" which is a real OSX executable (in Mach-O format), which you can click on to start "pd" in a terminal. This also allows to start pd several times, unlike clicking on a .app folder.
Similarly you can open a terminal and just do:
Pd.app/Contents/MacOS/pd
I say this from memory, this might be slightly off.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
Hi Chuckk,
Chuckk Hubbard wrote:
I can't figure out how to launch Pd from the OSX command line. It's in an .app file, but the name of that file does nothing.
For HC's 0.38.4 extended installer, for example, it would look like this:
/Applications/Pd-0.38.4-extended-RC8.app/Contents/MacOS/Pd
best, d.