Re: FastScripts and script editor discrepancies
Re: FastScripts and script editor discrepancies
- Subject: Re: FastScripts and script editor discrepancies
- From: Shane Stanley <email@hidden>
- Date: Wed, 22 Jun 2016 23:34:26 +1000
On 22 Jun 2016, at 9:52 PM, Shane Stanley <email@hidden> wrote:
>
> I don't know *why*, but I know what: the FastScripts dialog is using monospaced numerals, and the other one isn't.
So there's a reference from WWDC 2015 about this, but I think it's a little more involved. Here's my guess.
In 10.11, Apple introduced new ways for specifying a system font. As well as being able to choose a range of weights, rather than just regular and bold, an app can also choose to use monospaced digits. If it doesn't choose the latter, it still gets the original style.
But if an application was linked against an SDK earlier than 10.11, when there was no choice, they now get the monospaced version anyway when running under 10.11. And "display dialog" presumably inherits the host's behavior.
So I suspect FastScripts is linked against an older SDK, hence the monospaced defaults, but the behavior is not inherited when the host has been linked against 10.11, as with Script Editor/Script Debugger/Finder/etc.
The easy way to check is to run a script like this:
display dialog "2121212"
In Script Debugger, choose Script -> Default Target to try different host apps. In Script Editor, you can use the "tell" popup menu, although that only displays apps you've added to its library.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden