Hey Phil
I haven’t tried these with Script Debugger 6 yet, but knock yourself out.
-Chris
--------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2016/02/01 13:10
# dMod: 2016/07/13 03:51
# Appl: Script Debugger
# Task: Get AppleScript Formats (font & style).
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Script_Debugger, @Formats
--------------------------------------------------------------------------------
set asFontPropList to {}
tell application "Script Debugger"
set asFontPropNameList to name of AppleScript formats
repeat with i in asFontPropNameList
tell AppleScript format i
set end of asFontPropList to {name, font, size, its color}
end tell
end repeat
end tell
asFontPropList
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2016/02/01 13:11
# dMod: 2016/07/13 03:52
# Appl: Script Debugger
# Task: Restore AppleScript Formats (font & style).
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Script_Debugger, @Restore, @Format
--------------------------------------------------------------------------------
set asFontPrefRec to {{"New text (uncompiled)", "Menlo-Regular", 14, {32767, 0, 32767}}, {"Operators, etc. (+ & ,)", "Verdana", 14, {0, 0, 0}}, {"Language keywords", "Verdana-Bold", 14, {12272, 12272, 12272}}, {"Application keywords", "Verdana", 14, {0, 0, 65535}}, {"Comments", "Menlo-Regular", 14, {0, 0, 0}}, {"Values (numbers, data)", "Verdana", 14, {0, 0, 0}}, {"Variables and subroutine names", "Verdana", 14, {16383, 32767, 0}}, {"Strings", "Menlo-Regular", 14, {0, 0, 0}}, {"Command names", "Verdana-Bold", 14, {0, 0, 65535}}, {"Parameter names", "Verdana", 14, {0, 0, 65535}}, {"Classes", "Verdana-Italic", 14, {0, 0, 65535}}, {"Properties", "Verdana", 14, {27745, 1206, 54284}}, {"Enumerated values", "Verdana-Italic", 14, {27745, 1206, 54284}}, {"Addition Command names", "Verdana-Bold", 14, {0, 5672, 45210}}, {"Addition Parameter names", "Verdana", 14, {0, 5672, 45210}}, {"Addition Classes", "Verdana-Italic", 14, {0, 5672, 45210}}, {"Addition Properties", "Verdana", 14, {17401, 5415, 45324}}, {"Addition Enumerated values", "Verdana-Italic", 14, {17401, 5415, 45324}}}
tell application "Script Debugger"
repeat with i in asFontPrefRec
set {_name, _font, _size, _color} to contents of i
tell AppleScript format _name
set its font to _font
set its size to _size
set its color to _color
end tell
end repeat
end tell
--------------------------------------------------------------------------------