• 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: 2551phil <email@hidden>
  • Date: Sat, 25 Jun 2016 22:17:17 +0700

Thanks for all the suggestions. I finally got round to sorting this out today. Here’s what I found:

1. Wrap display dialog in a tell block:
I was hoping this would work, as it was the most concise solution. Unfortunately, neither Finder nor System Events made any difference. I still saw the tabbing error when run in FastScripts.

2. User Myriad Tables Lib:
This worked, but aside from my worries about the overhead, there were several drawbacks to this:

a. There’s no way to modify the table to eliminate the ‘Cancel’ button.
The ‘Cancel’ button is redundant since in my script the “OK” button’s job is to dismiss that table, not accept an edit or change.

b. There’s no way to have the headers but turn off sorting.
Not being able to turn off the sorting messes up the display if it’s accidentally clicked, and there doesn’t seem to be a way to recover the original format other than end the script and run it again.

c. I need to be able to distribute the script as a transparent, uncompiled plain text file, not a compiled bundle. 

3. Use Shane’s showMessage handler:
I just plumped the handler straight into the script. Fortunately, after making some minor adjustments, I was able to make this work in both script editors and from FastScripts. I can now get the static text display without tabbing errors. 

Thanks to everyone, and especially Shane for the funky showMessage handler. I love it that we can throw Cocoa API calls into vanilla AppleScript these days!


Best


Phil


 _______________________________________________
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: Shane Stanley <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>)
 >Re: FastScripts and script editor discrepancies (From: Shane Stanley <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Shane Stanley <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Phil Stokes <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Shane Stanley <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Christopher Stone <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Shane Stanley <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Jim Underwood <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Phil Stokes <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Shane Stanley <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: [OT] RE: Swift [rant, etc]
  • Next by Date: Re: [OT] RE: Swift [rant, etc]
  • Previous by thread: Re: FastScripts and script editor discrepancies
  • Next by thread: Re: FastScripts and script editor discrepancies
  • Index(es):
    • Date
    • Thread