home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-17 | 553 b | 10 lines | [TEXT/ToyS] |
- on run
- tell application "Finder" to set p to ["Finder"] & name of processes
- set dItems to [¬
- {class:push button, bounds:[190, 265, 250, 285], name:"OK", enabled:4}, ¬
- {class:push button, bounds:[110, 265, 170, 285], name:"Cancel"}, ¬
- {class:static text, bounds:[10, 10, 250, 26], contents:"Choose an application:"}, ¬
- {class:list box, bounds:[20, 40, 240, 240], contents:p}]
- set d to dd auto dialog {size:[260, 295], contents:dItems, timeout after:60} with greyscale
- if item 1 of d then activate application (item (item 4 of d) of p)
- end run