Good old Pashua will not survive when Apple ditches Rosetta in next OS. So I am rewriting all dialogue boxes. When scripting InDesign and putting my scripts in the Script Panel I have this:
a) If saved as an App I am allowed to paste text into the text field of the script
b) If saved as a script I am NOT allowed to paste into the text field.
Using the “Simple Sample” script from the Dialog Toolkit as example (as below)
I have seen some beachballing on Tahoe when saving as an app, so I was planning to save as script.
Is there a trick for this? Is it ACC? (Or should I use InDesigns dialogs instead?)
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
use script "Dialog Toolkit Plus" version "1.1.0"
set theMessage to "How many buttons would you like? There's no real limit except for practical and aesthetic considerations." & return & "Of course, I hope you'll never really think about using something as ugly as this!" & return & return & "Choose your heart out!"
set {theField, theTop} to create field "" placeholder text "Enter your text here" left inset 0 bottom 0 field width 650 extra height 60 with accepts linebreak and tab
set {buttonName, suppressedState, controlsResults} to display enhanced alert "Many Buttons" message theMessage as informational alert buttons {"OK", "Five", "Four", "Three", "Two", "One", "Cancel"} giving up after 0 acc view width 650 acc view height theTop acc view controls {theField} without suppression