• 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: commands in a string..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: commands in a string..
  • Next by Date: Re: commands in a string..
  • Previous by thread: Re: Need to translate IP addresses from hex value to dotted > quad?
  • Next by thread: tell remote machine without password-dialog
  • Index(es):
    • Date
    • Thread