Aristos Queue Posted December 17, 2014 Report Share Posted December 17, 2014 I'm looking for a G VI or sequence of VIs that I can use to highlight a file in the OS environment that works on all platforms. I've got mechanisms for opening a window for the directory -- that works fine. But I can't find any way to actually highlight a specific file within the directory. Any ideas? Quote Link to comment
egraham Posted December 17, 2014 Report Share Posted December 17, 2014 At JKI we have a tool we use internally to do this, but I haven't looked at the code under the hood and can't confirm it works cross plat form. It does work correctly on Windows, though. Quote Link to comment
Darren Posted December 17, 2014 Report Share Posted December 17, 2014 This Quick Drop shortcut shows how to do it on Windows (you use the "/select" parameter), but I'd like to know if there's a way to do it on Mac/Linux: https://decibel.ni.com/content/docs/DOC-22461 Quote Link to comment
Darin Posted December 17, 2014 Report Share Posted December 17, 2014 I prefer the windows shell function to the command line call myself, but Windows is easy either way. Linux is simple, once you know the default file browser (Nautilus, Dolphin, ....). This is easily found by querying xdg-mime. Then it is a simple system exec call to launch the file browser. Mac requires Applescript. Simply use system exec and the osascript command to tell Finder to select the file. In LV14 you may even be able to skip system exec and use the call Applescript function. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.