rrgui

Launch mac finder window with specified path


Is there a way to launch a mac finder window from the RGUI command line? I'm going through a bunch of files and it would be helpful to see the folder instead of having to use list.files()


Solution

  • To open up the Finder from the RGUI command line, the direct solution is to use:

    system("open /System/Library/CoreServices/Finder.app/")
    

    EDIT: For a specified path, system("open ~/Desktop") would open the Finder at the user's desktop, for example, because in MacOSX the default application to open any directory is the Finder.