AppleScript App to start a Slideshow in Finder
I figured it out and wrote a simple script, that does this: 1) opens the selected folder in Finder 2) selects all files in that folder 3) starts slideshow. Can be saved as an App and then put in the toolbar of Finder. Works on Big Sur/M1, however you have to allow Script Editor and this App 'Accessibility' and 'Automation' in System Preferences/Security&amp;Privacy.
Any improvements are highly welcome! Especially I couldn't figure out how to make the Script close the selected/opened Folder again and go one level up again. Key code for that would be &quot;key code 126 using {command down}&quot; (for COMMAND+ARROW UP); however, don't know how to integrate that into the script so that it actually works.
tell application &quot;Finder&quot;
    activate
    tell application &quot;System Events&quot;
        tell process &quot;Finder&quot;
            key code 31 using {command down}
        end tell
    end tell
    
    activate
    tell application &quot;System Events&quot;
        tell process &quot;Finder&quot;
            key code 0 using {command down}
        end tell
    end tell
    
    activate
    tell application &quot;System Events&quot;
        tell process &quot;Finder&quot;
            key code 49 using {option down}
        end tell
    end tell
end tell