• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FastScripts and script editor discrepancies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FastScripts and script editor discrepancies


  • Subject: Re: FastScripts and script editor discrepancies
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 22 Jun 2016 12:06:36 +0200


Le 22 juin 2016 à 10:46, 2551phil <email@hidden> a écrit :

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





 _______________________________________________
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

  • Follow-Ups:
    • Re: FastScripts and script editor discrepancies
      • From: Phil Stokes <email@hidden>
References: 
 >Re: Script Libraries (From: Jim Underwood <email@hidden>)
 >Re: Script Libraries (From: Shane Stanley <email@hidden>)
 >Re: Script Libraries (From: Jim Underwood <email@hidden>)
 >Re: Script Libraries (From: Shane Stanley <email@hidden>)
 >Re: Script Libraries (From: Jim Underwood <email@hidden>)
 >Re: Script Libraries (From: Shane Stanley <email@hidden>)
 >Re: Script Libraries (From: Jim Underwood <email@hidden>)
 >FastScripts and script editor discrepancies (From: 2551phil <email@hidden>)

  • Prev by Date: Re: Mail script puzzlement
  • Next by Date: Re: FastScripts and script editor discrepancies
  • Previous by thread: FastScripts and script editor discrepancies
  • Next by thread: Re: FastScripts and script editor discrepancies
  • Index(es):
    • Date
    • Thread