Apnea Board Forum - CPAP | Sleep Apnea
How to Make FlashPAP On A Mac “Exit and run Sleep Tracking Software” such as OSCAR - Printable Version

+- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums)
+-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area)
+--- Forum: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum)
+--- Thread: How to Make FlashPAP On A Mac “Exit and run Sleep Tracking Software” such as OSCAR (/Thread-How-to-Make-FlashPAP-On-A-Mac-%E2%80%9CExit-and-run-Sleep-Tracking-Software%E2%80%9D-such-as-OSCAR)



How to Make FlashPAP On A Mac “Exit and run Sleep Tracking Software” such as OSCAR - RayBee - 11-04-2020

This has been a little bug on Mac computers for as long as I can remember - the “Exit and run Sleep Tracking Software” does not launch OSCAR. Well, I discovered a fix, and it works great!

Step 1
  1. Open a Finder window and navigate to your Applications folder.
  2. Control + Click (right-click equivalent) on the OSCAR App.
  3. Click “Show Package Contents” in the popup window.
  4. Click “Contents”.
  5. Click “MacOS”.
  6. Control + Click (right-click equivalent) on OSCAR.
  7. Click “Make Alias” in the popup window.
  8. Rename it if you wish, or not. (I did not rename the alias.)
  9. Move the Alias to your Applications folder.
  10. Close the Finder window.
Step 2
  1. Open FlashPAP.
  2. Click the ellipsis “…” button to the right of the “Exit and run Sleep Tracking Software” button.
  3. Navigate to the Alias you created above.
  4. Click “Open”.
    (Subsequent clicks on the ellipsis “…” button will take you to the package contents “OSCAR”, not the Alias in your Applications folder.)
Open FlashPAP.
Import your data as normal.
Click the “Exit and run Sleep Tracking Software”.
Be amazed and enjoy!  Thumbs-up-2 

Ray


RE: How to Make FlashPAP On A Mac “Exit and run Sleep Tracking Software” such as OSCAR - Crimson Nape - 11-04-2020

I don't know if this might help on a Mac, I created an executable bash script (auto.sh) for my Linux boxes that automates the data download and starts OSCAR after it terminates FlashPAP.

Here is the code:
Code:
#!/bin/bash
cd ~/FlashPAP
java --module-path /usr/share/openjfx/lib --add-modules ALL-MODULE-PATH -jar FlashPAP.jar user=A10 exit=yes
/usr/bin/OSCAR



RE: How to Make FlashPAP On A Mac “Exit and run Sleep Tracking Software” such as OSCAR - Jeff8356 - 11-04-2020

Several way to go here.  Easiest for me was to Use FlashPAP.app then make an executable shell script like such: to open OSCAR
Called openoscar.sh and add the following code to it:
Code:
#!/bin/sh
# This will open OSCAR.app fom inside FlashPAP.
open /Applications/OSCAR.app


Dont forget to make openoscar.sh executable from the command line:

Code:
chmod 755 openpscar.sh
 
Mac's use "Jar Launcher.app to open *.jar files, so just double click FlashPAP,jar and Flashpap will open.  Then click on the 3 dots next to "Exit and run sleep tracking software" and and add the location of openoscar.sh.  then OSCAR.app will be run when you click tab in FlashPAP.  Quick and easy!

If I tought about it for more than a few seconds I could probably come upwith something nicer, but this works easy on Mac.   No need to track down the binary file in the package if you use the "open" command.

Running the binary from in the OSCAR.app may bring a Terminal window opening with it too,  Open is the official way to start an app from the command line and will run the app like you had double clicked it.


RE: How to Make FlashPAP On A Mac “Exit and run Sleep Tracking Software” such as OSCAR - jaswilliams - 11-05-2020

I use a similar cmd file on my windows laptop to manage flashpap imports and OSCAR I have a virtual SD card I use for the data so I can use Resscan if I want to