Myriad Tables Error

I’m repurposing a frequently-used script that works fine with Myriad Tables. I run the original script by way of FastScripts without issue.

The new script works fine when run from Script Debugger but intermittently returns the following when run by FastScripts:

Error Number: -1708. SMSTableDialogController doesn’t understand the “alloc” message.

What would cause the error message when run by FastScripts but not when run by Script Debugger? The handlers that display the Myriad Tables’ dialog in the original and new scripts are identical. I did find one thread where this error was mentioned, but the circumstances were different. Thanks.

That just means the underlying framework hasn’t been loaded. There’s no explanation other than that it’s a bug in AppleScript, unfortunately.

1 Like

I’m getting something similar when calling Myriad Tables via a script running in a Service. The Service calls a script which loads another script which uses Myriad Tables:

The action “Run AppleScript” encountered an error: "The bundle “SMSTableDialogBuilder” couldn’t be loaded.

The Service has Full Disk Access and Accessability permissions.

It is consistently an issue in macOS 12, Monterey. For some reason, it has become an issue 14, Sonoma only recently. But, seems to not be an issue in 13, Ventura.

Cheers.

UPDATE: This is now an issue in macOS Ventura and Monterey. Seems to be permissions related but don’t know what permissions are needed.

It’s probably an issue with osascript’s permissions. I’m not sure how you fix it in that situation.

Shane, many thanks. Yes, osascript permissions will be involved especially as it’s called by a script running in an Automator workflow. It’s been quite odd: over the months since first providing the function, it has sometimes worked and sometimes not on various versions of macOS.

I tell users that I’ve left the function available in case it works but, be ready for an error.

Cheers.