Re: commands in a string..
Re: commands in a string..
- Subject: Re: commands in a string..
- From: vectormation <email@hidden>
- Date: Thu, 15 Mar 2001 01:45:52 -0500
set tPrompt to "What can I do to help Apple?"
set tList to {"Cancel", "OK"}
set tButton to {"OK"}
set tAnswer to "Buy More Macs from the Apple Store!"
doDialog(tPrompt, tList, tButton, tAnswer)
doDialog(tPrompt, tList, tButton, "")
on doDialog(aPrompt, bList, dButton, dAnswer)
if (dAnswer /= "") then
display dialog aPrompt buttons bList default button dButton default
answer dAnswer
else
display dialog aPrompt buttons bList default button dButton
end if
end doDialog
~Phi
>
I'm trying to make a dynamically generated dialog box.. but i've
>
ended up with the properties for the display dialog in a string (long
>
story.. it needs a repeat loop to generate.. i'm sure there's an
>
easier way but i'm still relatively new to this)..
>
>
anyway.. just out of curiousity.. I'm wondering if there's a way to
>
basically say...
>
>
>
>
set StupidStringName to "\"pointless question?\" buttons {"Cancel",
>
"OK"} default button 2 default answer \"\""
>
>
display dialog StupidStringName
>
>
>
or something of that nature...
>
>
any thoughts?
>
>
timmie... trying to come to grips with this...
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users