I guess I figured it out.

From the scripts in <pd>/mac/ I found that <app>/Contents/MacOS/Pd is
actually a wish binary, which starts <app>/Contents/Resources/tcl/pd-
gui.tcl, which in turn starts the pd binary in
<app>/Contents/Resources/bin/pd. 

So what I do now is to edit the appropriate line in pd-gui.tcl
(currently 781) and specify the desired start options there:

  exec -- $pd_exec -guiport $::port -open ../patches/mypatch.pd &

Seems to work.

BTW, I'm amazed how easy it is to build a Pd.app on macOS. Nice work,
Dan!

Roman

On Mit, 2017-12-13 at 13:41 +0100, Roman Haefeli wrote:
> On Mit, 2017-12-13 at 13:39 +0100, Antoine Rousseau wrote:
> > 
> > you could just add "-open {your_path}" into prefs?
> I actually would prefer such a simple approach, but how can I include
> the prefs file into the app? 
> 
> Roman
> 

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Pd-dev mailing list
[email protected]
https://lists.puredata.info/listinfo/pd-dev

Reply via email to