• 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
DialogDirector - default item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DialogDirector - default item


  • Subject: DialogDirector - default item
  • From: "Romulus Barabas" <email@hidden>
  • Date: Thu, 21 Feb 2002 21:52:28 -0500

Is there any way to change the default button while in the interactive mode? I tried setting the default item of a dialog box to a different button as soon as the entries meet certain condition (I want it to change from "Check" to "Done"). I'm not getting an error mesage, but nothing hapens either. The only way I found for achieving that is by deleting and recreating the dialog. And this is really frustrating since you can't "dd get" all you can "dd set", e.g. you can't get the font of an item. Try this:

dd install
set d to dd make dialog {size:[200, 210], style:movable dialog, contents:[,
{class:push button, name:"Done", bounds:[60, 182, 115, 200]}, ,
{class:push button, name:"Check", bounds:[130, 182, 185, 200]}, ,
{class:text field, bounds:[60, 90, 115, 106], value:""} ,
], default item:2}
repeat
set i to dd interact with user
if i = 1 then exit repeat
if i = 2 and (dd get value of item 3 of d) is "OK" then dd set default item of d to 1
end repeat
dd uninstall


Romy

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: DialogDirector - default item
      • From: JollyRoger <email@hidden>
  • Prev by Date: Re: Type F10 as a user
  • Next by Date: Re: End of column in Excel
  • Previous by thread: Re: Changing an image in Adobe Indesign 1.5
  • Next by thread: Re: DialogDirector - default item
  • Index(es):
    • Date
    • Thread