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: Wed, 12 Oct 2011 00:28:20 -0700
Yup. A run script hack it is:
...
tell me to set vResult to item 1 of (choose from list vUnitsTextList ¬
with prompt "Set measurement units for current document to:" ¬
default items {pHorizontalUnits as text} ¬
without multiple selections allowed and empty selection allowed)
set vEnumResult to run script ("tell application \"" & vAppName & "\" to return " & vResult)
...
------------------
On 10/12/11 at 4:50 PM +1100, Shane Stanley wrote in a message entitled
"Re: INDESIGN: Coercing a String to a Constant":
>On 12/10/2011, at 3:35 PM, Rick Gordon wrote:
>
>> There must be a better way, no?
>
>No. You can't create enumerations from strings, short of "run script" hacks.
--
___________________________________________________
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