This came up with a previous SD version. I just got this message with SD7.
Myriad Tables Lib is not compatible with this version of Script Debugger. You can cancel, or you can enter row numbers, separated by commas, to simulate showing the dialog and selecting those columns
use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use scripting additions
if id of current application begins with "com.latenightsw." and (my respondsToSelector:"yieldToSDMainThread") as boolean is false then
considering numeric strings
set versionOfSD to version as text
set isOKVersionOfSD to (versionOfSD > "6.0.4")
end considering
if not isOKVersionOfSD then display dialog "No luck"
end if
Nothing. The first if ends it. I added an “else” to confirm, and I get a beep.
use framework "Foundation"
use scripting additions
if id of current application begins with "com.latenightsw." and (my respondsToSelector:"yieldToSDMainThread") as boolean is false then
considering numeric strings
set versionOfSD to version as text
set isOKVersionOfSD to (versionOfSD > "6.0.4")
end considering
if not isOKVersionOfSD then display dialog "No luck"
else
beep
end if
OK. So that’s the exact code that tests for compatibility within the library, except that the display dialog bit is actually a call to a handler that displays the full dialog you mentioned above.
Could you have another version of the library installed? Or was it an applet that accidentally launched an older version of Script Debugger?
Here’s a tip I use for testing, and it might be useful for others: go into Preferences and assign a different background color. It makes it easier to tell at a glance what version you’re running in.
After relaunch I could open and run MT scripts from the SD7 script window.
But, trying to run an MT script from the scripts menu generates the dialog.
It is possible that the first time I saw the dialog came from running the script from the script menu. I tried to run the script, nothing happened, so I tried editing and running a version in clippings. While doing that I saw the dialog, but it may have been a delayed reaction from running the script from the script menu or it may have just been part of SD7’s temporary instability.
Either way, after relaunch I get that MT version dialog 100% of the time running MT scripts from Script Menu and not at all when running the same script from a window.
OK. For some time now scripts run from the Scripts menu are run as a separate process, the same as those from Apple’s Scripts menu. It’s possible, if you’re targeting SD by name rather than ID, that the script runner is deciding to target an earlier version of SD.
Can you check no other version is running? Can you try the above snippet from the Scripts menu?
Ran the following from the scripts menu several times. Each time the Alert I added at the end displayed.
use framework "Foundation"
use scripting additions
if id of current application begins with "com.latenightsw." and (my respondsToSelector:"yieldToSDMainThread") as boolean is false then
considering numeric strings
set versionOfSD to version as text
set isOKVersionOfSD to (versionOfSD > "6.0.4")
end considering
if not isOKVersionOfSD then display dialog "No luck"
else
tell application "Finder" to display alert "Luck"
end if