Michael Aivaliotis Posted April 22, 2013 Report Share Posted April 22, 2013 Need a solution for LabVIEW on the Mac. I'm looking for a way to list all running Mac apps. Then I want to pick one of them and issue a quit message and have it exit gracefully. Does anyone know how to do this on the Mac? Quote Link to comment
ChS Posted May 2, 2013 Report Share Posted May 2, 2013 There are many ways. The Apple event way, the PSN way and the System Exec way. The latest one it probably the simplest and faster: to get all your processes in the format PID TTY TIME CMD ps -xc Get the PID of your process (first number in the line) Then do a kill -9 PID This will terminate your application abruptly! ---- You can also send a quit event to the selected application, do it using "vi.lib:Platform:AppleEvents.llb:AESend Quit Application" You'll need the application ID using "vi.lib:Platform:Targeting.llb:Get Target ID" 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.