LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

argument in MAC application

Hello,

 

I try to autmatically open a file with my application under Mac OS X. I use the application argument.

In my build specification I used "Pass all command line arguments to application"

 

But the property app.args don't return argument, exept the app path, even if I try to open the file with Command line in the terminal.

 

How I can solve this?

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 1 of 3
(2,292 Views)

Hello SimonD

 

Could you tell me which version of LabVIEW you are using ?

 

I suggest you to check an example, the one that you will find in this location : "labview\examples\viserver\cmdline.llb"

 

Regards,

0 Kudos
Message 2 of 3
(2,260 Views)

I use LV2011 pro SP1.

 

I try this exemple but I dont try to create a command line just to intercept argument create by the OS when it call my app. I want to associate my custom extension to my app (it's done) and then we I open a file, it's automatically open in my app (so I need to have the path of this file, which should be the second argument).

But I just have the first argument

Cordialement,

Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect
0 Kudos
Message 3 of 3
(2,251 Views)