• 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: Shane Stanley <email@hidden>
  • Date: Fri, 24 Jun 2016 13:26:45 +1000

On 23 Jun 2016, at 7:38 PM, Phil Stokes <email@hidden> wrote:

I’m aware of Shane’s libraries, and in fact have been looking for an excuse to use the Myriad Tables Lib for a while,  but unless you actually need table functions (sorting, selection and checkboxes, for example), I feel it’s a bit too much overhead in this particular script just to accomplish a static display of tabbed columns.

It is extra overhead, but not a lot. A little over 500KB in script size, but not much code. Apart from the use statement, I put this quick and (very) dirty code at the end of your script:

set theData to {}
set saveTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {tab & tab & tab & tab & tab, tab & tab & tab & tab, tab & tab & tab, tab & tab}
set displayString to text items of displayString
set AppleScript's text item delimiters to {tab}
set displayString to displayString as text
set displayString to paragraphs of displayString
set theHeads to text items of item 1 of displayString
repeat with i from 4 to count of displayString
set end of theData to text items of item i of displayString
end repeat
set AppleScript's text item delimiters to saveTID
display table with data theData with title _title with prompt "Hear ye" column headings theHeads initially selected rows {} with empty selection allowed

Nearly all the work is getting rid of the extra tabs you've had to write code to add in.

-- 
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

  • Follow-Ups:
    • Re: FastScripts and script editor discrepancies
      • From: Christopher Stone <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>)

  • Prev by Date: Re: Problem Reading Clipboard with Evernote URLs
  • Next by Date: RE: Swift
  • Previous by thread: Re: FastScripts and script editor discrepancies
  • Next by thread: Re: FastScripts and script editor discrepancies
  • Index(es):
    • Date
    • Thread