I just posted this in the FastScripts forum, but I’m thinking it might be worthwhile getting confirmation that others see this too. I’m not quite sure where the problem arises.
I have what is probably an overly complex script for what it's designed to do (which is check if certain files have been updated in the background by Apple). However, I'm seeing something strange when I run (or try to run it) in FastScripts that I don't see when I run it in either Script Editor or Script Debugger 6.
When I run this in SE or SD, the tabs all line up as intended, but when I run this from FastScripts, the tab spaces are misaligned in the display dialog. It seems that specifically sometimes when the tab after the value 'v' is v\t, FastScripts includes more space for the \t than either SE or SD.
The weird thing is I can’t reproduce this tab spacing discrepancy in other scripts run from FastScripts. Can anyone confirm that they see the same discrepancy, and if so, does anyone know why it might occur?
TIA
Phil
…
Hello Phil
Got the same behavior here running 10.11.5 in French.
As the Copy feature apply to dialog windows, I grabbed the dialog contents in both cases (Script Editor, FastScripts). The passed text is exactly the same.
My guess was that the problem is related to the decimal point in the string "12.0".
To make tests I built a script which displays the predefined dialog so that I may edit the string's content.It display two dialogs. Once with "12.0" and once with "12_0" What a surprise, when ran from Fastscripts both dialogs are perfect.
I had an other idea : maybe the rule used by Display Dialog is related to the frontmost application. When ran from the Editor, the display dialog instruction is encapsulated in a tell application "Script Editor" block. I tried with a tell application "Finder" block and got the same correct dialog.
So, back to your script, I encapsulated the display dialog in a tell application "Finder" block and BINGO, the dialog was correctly displayed.
I leave as an exercice the identification of the frontmost application when the script is called from FastScripts.
Yvan KOENIG running El Capitan 10.11.5 in French (VALLAURIS, France) mercredi 22 juin 2016 12:06:31
|