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 > AppleScript help

AppleScript help
Thread Tools
Addicted to MacNN
Join Date: Aug 2000
Location: Retired
Status: Offline
Reply With Quote
Jan 15, 2003, 04:06 PM
 
Hi

how would I go about creating an AppleScript that displays two buttons. When you push one, it goes to one url, the second button opens a second url. Help!
Power Macintosh Dual G4
SGI Indigo2 6.5.21f
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Jan 15, 2003, 08:16 PM
 
set theReply to display dialog "Hello World" buttons {"Foo", "Bar"} default button 1

if (button returned of theReply) is "foo" then
open location "http://www.foo.com"
end if

if (button returned of theReply) is "bar" then
open location "http://www.bar.com"
end if


all the interestingly quirky classes and events are in the "Standard Additions".

Look for it by choosing "Open Dictionary" in Script Editor.


also this is quite an interesting event:

choose URL showing {Web servers, File servers} without editable URL
     
Addicted to MacNN
Join Date: Aug 2000
Location: Retired
Status: Offline
Reply With Quote
Jan 15, 2003, 08:49 PM
 
Thank you!!!!!!
Power Macintosh Dual G4
SGI Indigo2 6.5.21f
     
   
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 02:03 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