• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Internet Connect Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Internet Connect Script


  • Subject: RE: Internet Connect Script
  • From: "Alatorre, Michael" <email@hidden>
  • Date: Thu, 26 Sep 2002 11:40:58 -0700

>We have two valid phone numbers for dial-in. Can someone suggest a way
that
> can set up a drop-down list where the user can select one of the two phone
>numbers, and then continue to enter their username and password? I've
>looked at AppleScript Studio, but frankly, can't make head or tail of it,
>and it seems to be overkill for such a simple script.

How's this:

set thelist to {"1234567", "7654321"}
set theNumber to (choose from list thelist) as string

or if you don't wish to display the phone number to the user:

set thelist to {"Dial-in 1", "Dial-in 2"}
set theChoice to (choose from list thelist) as string
if theChoice = "Dial-in 1" then
set theNumber to "1234567"
else
set theNumber to "7654321"
end if

Hope this helps.

Michael Alatorre (mailto:email@hidden)
EIS Liaison Analyst
Cedars-Sinai Health System (http://www.cedars-sinai.edu/)
Medical Affairs: 310.423.6237 310.423.0448 (fax)

"Don't speak unless you can improve on the silence." -- Spanish Proverb
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: String to multiple-item list coercion
  • Next by Date: compiler stupidity [was Re: Interesting... AppleScript X ??]
  • Previous by thread: Internet Connect Script
  • Next by thread: Web Services with AS and Perl
  • Index(es):
    • Date
    • Thread