MacNN Forums (
-   Classic Macs and Mac OS (
-   -   Apple script (

phobos Mar 30, 2001 01:17 AM
Apple script
I'm making an apple script which uses dialog boxes.How can I change the "OK" and "Cancel" options in the dialog boxes to my options????Is it possible with applescript?Also how can I assign certain things in the OK and Cancel buttons???An example would be appreciated cause I am a beginner in Applescript?
Many thanks

[This message has been edited by phobos (edited 03-30-2001).]
AppleScript Mar 30, 2001 01:21 AM
display dialog (your string) buttons {(list of up to 3 buttons, as strings)}

Did you even know that there was an AppleScript on these forums?

phobos Mar 30, 2001 01:30 AM
OK "applescript" one more time please....
I wrote
display dialog ".........." and then
buttons "..." "..."
It said it wanted end of line in the " position.
caifara Mar 30, 2001 09:39 AM
an example with some more options

display dialog "write message here" with buttons {"no way", "okido"} default button "okido" default answer ""

use 'default answer' for input

All times are GMT -4. The time now is 02:29 PM.

Copyright © 2005-2007 MacNN. All rights reserved.
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

Content Relevant URLs by vBSEO 3.3.2