OK… I’m a noob, and I know I’m going to get flamed… but I need a bit of help.
I’ve prototyped an application script in AppleScript, and it works pretty well. What I don’t like about it is the user interface. Without offering up nearly 2,000 lines of script… the basic idea is that the script interrogates the system to determine a list of possible actions that could be taken and stores the options as a series of dynamic variables with some text formatting for easy comprehension by the user. These are then displayed in a simple display dialog:
set MenuItem1 to “[1] option thing one”
set MenuItem2 to “[2] option thing two”
set MenuItem3 to “[3] option thing three”
set MenuItem4 to “[4] option thing four”
… etc. etc.
display dialog "The following things to do were found:
" & MenuItem1 & MenuItem2 & MenuItem3 & MenuItem4 & …etc.etc. &
"
Only one thing should be done at a time." with title appname & " " & appver default answer “1” buttons {“Do It”, “Un-Do It”, “Quit”} cancel button “Quit” default button 1
ok… now my problem. The interface is just displayed text and a textbox. I need to make this into a pup-up box, but in order to have more than two buttons I need to do this in Xcode (which is ok, as I’d also like to lock the code up and allow for it to be minimized, etc. etc.). … but for the life of me I can’t figure out how to create a pop-up in interface builder that displays the variables created by the script… and I can’t predict and write in every possible menu label combination to perform a match against. … so I’m very stuck.
Who has the magic I’m missing? Is there a simple way to do this in AppleScript Studio context?