This causes SD to hang and it has to be restarted.
It doesn’t cause SE to hang, but it might as well. The script indicates it’s running, but it doesn’t time out and it can’t be stopped and it cmmd-. won’t trigger an error.
use AppleScript version "2.5" use scripting additions use script "FileManagerLib" set appFolder to (path to "apps") --'s POSIX path & "CoreTypes.bundle/Contents/Resources/" set appFileNames to objects of appFolder ¬ searching subfolders true ¬ include invisible items false ¬ include folders false ¬ include files true ¬ result type files list