Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > Apple script

Apple script
Thread Tools
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status: Offline
Reply With Quote
Mar 30, 2001, 02:17 AM
 
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).]
     
Forum Regular
Join Date: Feb 2001
Status: Offline
Reply With Quote
Mar 30, 2001, 02: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?

(14)
     
phobos  (op)
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status: Offline
Reply With Quote
Mar 30, 2001, 02: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.
     
Forum Regular
Join Date: Jan 2001
Location: Bruges, Belgium
Status: Offline
Reply With Quote
Mar 30, 2001, 10: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

-c
-c
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 01:53 AM.
All contents of these forums © 1995-2014 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2014, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2