RE: INDESIGN: Coercing a String to a Constant
RE: INDESIGN: Coercing a String to a Constant
- Subject: RE: INDESIGN: Coercing a String to a Constant
- From: Rick Gordon <email@hidden>
- Date: Tue, 11 Oct 2011 21:46:38 -0700
For instance, if I get the result "inches" from my choose from list, and then say:
set horizontal measurement units to vResult --the chosen string
...I get the error:
Adobe InDesign CS5 got an error:
Invalid value for set property 'horizontal measurement units'.
Expected points/picas/inches/inches decimal/millimeters/centimeters/
ciceros/custom/agates/U/bai/mils/pixels/q/ha/american points, but received "inches".
------------------
On 10/11/11 at 9:35 PM -0700, Rick Gordon wrote in a message entitled
"INDESIGN: Coercing a String to a Constant":
>How might I go about choosing a measurement unit value (e.g., picas or inches) from a choose from list result and coerce it in a way to set a value of a measurement unit property.
>
>I know I can work around with matched lists like {points, picas, inches} and {"1. points", "2. picas", "3. inches"}, and then use the first word of the result as an index for the list of constants, but it's so clunky. There must be a better way, no?
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
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