use AppleScript version “2.4” – Yosemite (10.10) or later
use scripting additions
use PrefLib : script “PrefsLib3”
use FileMgrLib : script “FileManagerLib” version “2.2.1”

ScriptDebugger v7.0.4 will not compile unless I remove the version.Can’t get script “FileManagerLib” whose version ≥ “2.2.1”.

And if I remove the version and save as an app. It will launch and quit without running.

Pasting the code into Script Editor, it will compile, but crash when run-abort() called*** error for object 0x7f950188f800: incorrect checksum for freed object - object was probably modified after being freed.