Hi List
I was wondering if anyone knew how I could open a file (like a word doc or html) which then launches it's respective software pro gramme (word of web browser) by sending a bang message?
What I am trying to do is open a local html page that contains a java applet(processing) that communicates via osc with the patch. Sorry if this sound complicated but thanks for the advice!
Thank you
alan brooker ha scritto:
Hi List
I was wondering if anyone knew how I could open a file (like a word doc or html) which then launches it's respective software pro gramme (word of web browser) by sending a bang message?
if you are on linux is simple:
|firefox yourdocument.html( | [shell]
-- Lazzaro
Thanks Im on OSX Im afraid-any advice for macs?
On 6/24/09, CICCOLIX ciccolix@tiscalinet.it wrote:
alan brooker ha scritto:
Hi List
I was wondering if anyone knew how I could open a file (like a word doc or html) which then launches it's respective software pro gramme (word of web browser) by sending a bang message?
if you are on linux is simple:
|firefox yourdocument.html( | [shell]
-- Lazzaro
[shell] works on OSX as well. You'll need to figure out the path to your software application and the path to your file that you want to open, and construct a message to send to [shell] as Lazzaro described below. Check the help file for more details. Command line doesn't have automatic file associations like you are used to from the point and click world.
best, Derek
alan brooker wrote:
Thanks Im on OSX Im afraid-any advice for macs?
On 6/24/09, CICCOLIX ciccolix@tiscalinet.it wrote:
alan brooker ha scritto:
Hi List
I was wondering if anyone knew how I could open a file (like a word doc or html) which then launches it's respective software pro gramme (word of web browser) by sending a bang message?
if you are on linux is simple:
|firefox yourdocument.html( | [shell]
Actually OSX can open files with the default app with command "open"...
|open /path/to/file.html( | [shell]
if you need some specific browser (like Plainview, for example) that is not the default one you should use something like:
|open /path/to/file.html -a Plainview.app( | [shell]
If you want to run only the .jar, you may prefer to run
|java -jar applet.jar( | [shell]
josé
padovani wrote:
Actually OSX can open files with the default app with command "open"...
Learn something new every day!!!!
D.
yes I did it! however I exported my processing applet as an application and then did
[open -a application] | [shell]
Now im going to export the folder as an applcation with in PD
Thanks all!
On 6/24/09, Derek Holzer derek@umatic.nl wrote:
padovani wrote:
Actually OSX can open files with the default app with command "open"...
Learn something new every day!!!!
D.
-- ::: derek holzer ::: http://blog.myspace.com/macumbista ::: http://www.vimeo.com/macumbista ::: ---Oblique Strategy # 26: "Change ambiguities to specifics"