Hi all,
I almost finished a script to produce a monthly flyer in Quark. Only have problems to change the color which is chosen by the user.
In the Quarktemplate there is a color spec named ˜MonthColor’ (Maandkleur), this one has to be changed depending on the month. (So january is PMS 021 Orange, February PMS 032 Red etc.)
This is what I have so far. The user can choos for a month, but how to get the color back?
(Anyway, probably this can be done better and neater then I did…)
Thanks in advance,
kjeld
--Name of color spec (Monthcolor) in QuarkXpress
set basicMonthColor to "Maandkleur"
--Corresponding PantoneColor for each Month
set the MonthColorlist to {{"januari", "PANTONE Orange 021 C"}, {"februari", "PANTONE Red 032 C"}, {"maart", "PANTONE Process Cyan C"}, {"april", "PANTONE 354 C"}, {"mei", "PANTONE Process Magenta C"}, {"juni", "PANTONE Orange 021 C"}, {"juli", "PANTONE Orange 021 C"}, {"augustus", "PANTONE Orange 021 C"}, {"september", "PANTONE Red 032 C"}, {"oktober", "PANTONE Process Cyan C"}, {"november", "PANTONE 354 C"}, {"december", "PANTONE Process Magenta C"}} as list
set Monthlist to {{item 1 of item 1 of MonthColorlist}, {item 1 of item 2 of MonthColorlist}, {item 1 of item 3 of MonthColorlist}, {item 1 of item 4 of MonthColorlist}, {item 1 of item 5 of MonthColorlist}, {item 1 of item 6 of MonthColorlist}, {item 1 of item 7 of MonthColorlist}, {item 1 of item 8 of MonthColorlist}, {item 1 of item 9 of MonthColorlist}, {item 1 of item 10 of MonthColorlist}, {item 1 of item 11 of MonthColorlist}, {item 1 of item 12 of MonthColorlist}}
--Userchoice: which month to produce
set userChoice to (choose from list Monthlist with prompt "Which month to make?" without multiple selections allowed)
[EDIT]
You can find the final script with Quark template in the scriptbuilders section.
Or take a look in the Code Exchange section