LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reference file in os x .app folder

I'm looking to reference a file inside the OS X .app folder.  I have a path constant inside a vi, and after building a .app, I would like this path to point inside the .app folder (kind of like the OS X @executable_path or @loader_path).  Is this possible?  In other words, I would like to pile everything (all outside references) into the .app folder, to make it drag and drop installable.

 

Thank  you!!!

0 Kudos
Message 1 of 4
(3,025 Views)
Any ideas?
0 Kudos
Message 2 of 4
(3,012 Views)

If I understand what you asking, I would take a look at the Current VI's Path VI located in the Functions palette under Programming >> File I/O >> File Constants.  This would return the entire file path which should be something like "...somefolder:myapp.app:thisVI.vi" which you could then use to reference other files in the .app.  This article shows another method that you may be able to use (note: it is geared towards Windows, but should still apply).

 

Cheers, 

Brian A.
National Instruments
Applications Engineer
Message 3 of 4
(2,981 Views)

 

Yes!  Perfect article for OS X people who like to bundle all they can.

 

Thank you!

 

0 Kudos
Message 4 of 4
(2,971 Views)