I am trying to script the latest version of SD7 running on Catalina to open complied scripts and save them as applications. I have tried many versions of code without success. Below is the last sample of code that I tried without success.
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
local docName, newFile, thePath
set thePath to "Macintosh HD:Users:jholden1:desktop:listRoutines.scpt"
set appPath to "Macintosh HD:Users:jholden1:desktop"
set theApp to "Macintosh HD:Users:jholden1:desktop:listRoutines.App"
set newApp to a reference to file theApp
tell application id "com.latenightsw.ScriptDebugger7" -- Script Debugger.app
activate
set thedoc to open thePath
tell thedoc
save thedoc in file newApp as script application with show startup screen without run only
--save as script application with show startup screen without run only
close with saving
end tell
end tell
How can I accomplish this?