• 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
Need help/lesson with lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help/lesson with lists


  • Subject: Need help/lesson with lists
  • From: Robert Poland <email@hidden>
  • Date: Sat, 19 May 2012 10:18:07 -0600

Hi,

Since GraphicConverter doesn't have a scriptable color wheel I kludged the following.

Seems overly complicated to me. 

Any suggestions?


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


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


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
end if


-- display dialog theChoice as text
show tools
tell window 1 -- Tools window
set background color to theChoice
delay 0.2 -- need time
end tell
end tell


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

  • Prev by Date: Re: alias inside script bundle?
  • Next by Date: Re: [ANN]Scripting Helper Update
  • Previous by thread: Re: Choose color with script
  • Next by thread: why this error code
  • Index(es):
    • Date
    • Thread