Re: [PD] run ruby script from [shell]?

2010-06-30 Thread Hans-Christoph Steiner
I had good luck with [motex/system]. I made this little object to control iTunes from Pd using applescript..hc

itunes-help.pd
Description: Binary data


itunes.pd
Description: Binary data
On Jun 28, 2010, at 8:27 PM, Ben Baker-Smith wrote:I had the same problem, on Mac OS X with Pd-extended 0.41.4I ran some tests and it seems that relative paths in [shell] just don't work like they do with the rest of pd. For example, if you have a pd patch in the same folder as ruby_script.rb, you can't run it simply by using a "ruby ruby_script.rb" message, you have to do "ruby /full/path/to/ruby_script.rb" (as opposed to, say, media files or abstractions in the same folder as your patch). Both [motex/system] and [ggee/shell] work on my macbook.(thanks for the list, Hans. I didn't know there were two [popen] objects)Ben Baker-Smith --http://bitsynthesis.com There are four options to try, let us know which works best for you:flatspace/popenmoonlib/popen motex/systemggee/shell.hcOn Jun 28, 2010, at 6:55 PM, Jon wrote: hi i'm trying to execute a ruby script from the shell object by sending it the message "ruby /path/to/script.rb arguments" but i get nothing.  the script works fine from the command line, with the exact same arguments. is there an alternative? i'm on osx, latest stable pd extended thank you ___ Pd-list@iem.atmailing list UNSUBSCRIBE and account-management -http://lists.puredata.info/listinfo/pd-list  I have the audacity to believe that peoples everywhere can have three meals a day for their bodies, education and culture for their minds, and dignity, equality and freedom for their spirits.  - Martin Luther King, Jr. ___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] run ruby script from [shell]?

2010-06-30 Thread Ben Baker-Smith
I like that. I never thought of using applescript with Pd, thanks for
sharing.


Ben Baker-Smith
--
http://bitsynthesis.com


On Wed, Jun 30, 2010 at 10:22 PM, Hans-Christoph Steiner h...@at.or.atwrote:


 I had good luck with [motex/system].  I made this little object to control
 iTunes from Pd using applescript.

 .hc



 On Jun 28, 2010, at 8:27 PM, Ben Baker-Smith wrote:

 I had the same problem, on Mac OS X with Pd-extended 0.41.4

 I ran some tests and it seems that relative paths in [shell] just don't
 work like they do with the rest of pd. For example, if you have a pd patch
 in the same folder as ruby_script.rb, you can't run it simply by using a
 ruby ruby_script.rb message, you have to do ruby
 /full/path/to/ruby_script.rb (as opposed to, say, media files or
 abstractions in the same folder as your patch).

 Both [motex/system] and [ggee/shell] work on my macbook.
 (thanks for the list, Hans. I didn't know there were two [popen] objects)


 Ben Baker-Smith
 --
 http://bitsynthesis.com



 There are four options to try, let us know which works best for you:

 flatspace/popen
 moonlib/popen
 motex/system
 ggee/shell

 .hc

 On Jun 28, 2010, at 6:55 PM, Jon wrote:

  hi
  i'm trying to execute a ruby script from the shell object by sending
  it the message ruby /path/to/script.rb arguments but i get nothing.
  the script works fine from the command line, with the exact same
  arguments. is there an alternative?
  i'm on osx, latest stable pd extended
  thank you
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





 

 I have the audacity to believe that peoples everywhere can have three meals
 a day for their bodies, education and culture for their minds, and dignity,
 equality and freedom for their spirits.  - Martin Luther King, Jr.




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] run ruby script from [shell]?

2010-06-29 Thread Bernardo Barros
2010/6/28 Jon potaxpo...@gmail.com:
 i'm trying to execute a ruby script from the shell object by sending
 it the message ruby /path/to/script.rb arguments but i get nothing.
 the script works fine from the command line, with the exact same
 arguments. is there an alternative?

And does it work if you put it inside a simple bash script?

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] run ruby script from [shell]?

2010-06-28 Thread Jon
hi
i'm trying to execute a ruby script from the shell object by sending
it the message ruby /path/to/script.rb arguments but i get nothing.
the script works fine from the command line, with the exact same
arguments. is there an alternative?
i'm on osx, latest stable pd extended
thank you

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] run ruby script from [shell]?

2010-06-28 Thread Hans-Christoph Steiner


There are four options to try, let us know which works best for you:

flatspace/popen
moonlib/popen
motex/system
ggee/shell

.hc

On Jun 28, 2010, at 6:55 PM, Jon wrote:


hi
i'm trying to execute a ruby script from the shell object by sending
it the message ruby /path/to/script.rb arguments but i get nothing.
the script works fine from the command line, with the exact same
arguments. is there an alternative?
i'm on osx, latest stable pd extended
thank you

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list








Free software means you control what your computer does. Non-free  
software means someone else controls that, and to some extent controls  
you. - Richard M. Stallman




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list