Forum: Poser Python Scripting


Subject: Starting the Mac OS finder with python

Bastep opened this issue on Oct 13, 2023 ยท 4 posts


Bastep posted Fri, 13 October 2023 at 4:37 PM

I am currently writing a tool to change the textures of figures and props at once. I start the Windows Explorer at a certain place. Depending on the operating system, the Mac OS Finder should also be able to start at this point. But I don't know anything about the Mac OS, nor do I have access to a Mac computer.
Can someone help me?
With kind regards

The code for the Windows Explorer in shortened form

import subprocess
import platform


command = 'explorer /select,"{}"'.format(self.__File)
    if platform.system() == 'Windows':
        subprocess.Popen(command)