• 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
Still trying to learn list subtleties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Still trying to learn list subtleties


  • Subject: Still trying to learn list subtleties
  • From: Robert Poland <email@hidden>
  • Date: Sat, 26 May 2012 11:01:50 -0600

Hi,

Looking for busy work…

In this script clip I don't see the need for the long "if then" but I'm at a loss on how to deal with "the choice" as a variable. Or maybe I need to be choosing a variable???

set blueGray to {"8000", "8000", "10000"}
set black to {"0", "0", "0"}
set white to {"65535", "65535", "65535"}
set red to {"65535", "0", "0"}
set manual to "Choose Color"
set theColorList to {"Black", "blueGray", "White", "Red", "Manual"}

tell application "GraphicConverter"
activate
set {theChoice} to choose from list theColorList default items "blueGray" with title "Color Selection"
display dialog theChoice
set theChoice to {theChoice}
set background color to theChoice
end tell

(* if theChoice = "bluegray" then
set theChoice to blueGray
else if theChoice = "Black" then
set theChoice to black
else if theChoice = "White" then
set theChoice to white
else if theChoice = "Red" then
set theChoice to red
else if theChoice = "Manual" then
set theChoice to choose color
else
set theChoice to blueGray -- default
end if *)

TIA,

Robert Poland - Fort Collins, CO



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Still trying to learn list subtleties
      • From: Christopher Stone <email@hidden>
    • Re: Still trying to learn list subtleties
      • From: Luther Fuller <email@hidden>
    • Re: Still trying to learn list subtleties
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: Checking for return or enter in an Excel document
  • Next by Date: Re: Still trying to learn list subtleties
  • Previous by thread: Re: Filtering certain calendars
  • Next by thread: Re: Still trying to learn list subtleties
  • Index(es):
    • Date
    • Thread