class_docstr: The default viewer on macOS using ``Preview.app``.
class_docstr_tok: ["The","default","viewer","on","macOS","using","``","Preview.app","``","."]
code: def get_command(self, file, **options):
      # on darwin open returns immediately resulting in the temp
      # file removal while app is opening
      command = "open -a Preview.app"
      command = (
          f"({command} {quote(file)}; sleep 20; rm -f {quote(file)})&"
      )
      return command
  
imports: import os
  import shutil
  import subprocess
  import sys
  from shlex import quote
  from .None import Image
label_desc: Use image node_id 1 for calling the MacViewer obj's underlying member method code with example usage: obj.get_command(file) and returns: command