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 > Software - Troubleshooting and Discussion > Developer Center > hide buttons in applescript dialog?

hide buttons in applescript dialog?
Thread Tools
Dedicated MacNNer
Join Date: Apr 2004
Status: Offline
Reply With Quote
Jun 10, 2004, 03:18 PM
 
I've got an applescript dialog something like this:
Code:
display dialog "change made. relaunching finder..." giving up after 1
the idea is to tell the user, but not to get any input from them, and not the let them think that I need any input from them either...

I want to get rid of the buttons on the dialog. is there a good way to do so?
     
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Jun 10, 2004, 09:33 PM
 
Not sure of the answer, but how do you plan to get rid of the dialogue without user input?
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jun 11, 2004, 07:12 AM
 
Originally posted by Brass:
Not sure of the answer, but how do you plan to get rid of the dialogue without user input?
That's what the "giving up" argument does -- the dialog dismisses itself after the specified number of seconds.

Also, I don't think AppleScript provides a way to display a dialog with no buttons. I'm not an expert, but I don't think there is one. I'd just make a dialog with a single "OK" button as is standard for informational panels like this.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Jun 12, 2004, 09:15 AM
 
You can add the 24U Appearance OSAX from 24U Software. Take a look at the variety of interface options it gives you.

Craig
     
JNI
Forum Regular
Join Date: Oct 2002
Location: Left Coast
Status: Offline
Reply With Quote
Jun 12, 2004, 11:00 AM
 
You can't get a dialog with no buttons, but you can define only one button. What I've seen done for cases like this is to create a single button dialog with a bullet (option-8) for the button title. That is a hint to users that pressing the button is 'meaningless'. Like this:

display dialog "foo" buttons {"•"} giving up after 1
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Jun 12, 2004, 06:22 PM
 
While it might not work in your case, AppleScript Studio can do this sort of thing.
     
   
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 -5. The time now is 06:35 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2