Fractions

Grimm, Kenneth kgrimm at sastandardtimes.com
Wed Nov 15 14:30:32 CST 2006


Or even easier, select some text that has the font Futura Heavy assigned to
it and then in the specifications palette, see how Futura Heavy is reported
there.

Like Helvetica Black is "LB Helv Black" on one machine, "Helvetica LB" on
another, "LB-Helv-Black", etc.

However it is in the specifications palette, that's what to put into the
script.

HTH,  Ken


On 11/14/06 10:04 AM, "Peter Stremic" <peterpica at comcast.net> wrote:

> Thanks Ken; I know zilch about scripting.
> 
> When I put this script in the script editor and compiled, I got an
> error message:
> 
> "Syntax Error
> Expected expression but found end of line"
> 
> ????
> 
> 
> On Nov 14, 2006, at 10:53 AM, Grimm, Kenneth wrote:
> 
>> on fractionize(okayString, numerator, denominator, slash, selStart,
>> theflow)
>>     tell application "MultiAd Creator Pro"
>>         select character (selStart + (length of numerator) + 1) of
>> theflow
>>         set text selection of document 1 to slashMark
>>         select character (selStart + (length of numerator) + 1) of
>> theflow
>>         set style of text selection of document 1 to {off styles:
>> {inferior,
>> superior}}
>> 
>>         select text from character (selStart + 1) to character
>> (selStart +
>> (length of numerator)) of theflow
>>         set style of text selection of document 1 to {on
>> styles:superior,
>> off styles:inferior}
>>         -- This is the line added to change the font
>>         set font of text selection of document 1 to "Futura Heavy"
>> 
>>         select text from character (selStart + (length of
>> numerator) + 2) to
>> character (selStart + (length of numerator) + (length of
>> denominator) + 1)
>> of theflow
>>         set style of text selection of document 1 to {on
>> styles:inferior,
>> off styles:superior}
>>         -- This is the line added to change the font
>>         set font of text selection of document 1 to "Futura Heavy"
>>     end tell
>> end fractionize
> 
> _______________________________________________
> Creator mailing list
> Creator at wacondatrader.com
> http://wacondatrader.com/mailman/listinfo/creator
> 
> To officially report a bug in Creator, go here:
> http://www.creatorsoftware.com/support/contact_us/report_a_problem/
> 
> Searchable Archive: http://feick.webhop.net/lists/html/creatorlist/
> 
> Multi-Ad's Creator website can be found at:
> http://www.creatorsoftware.com



More information about the Creator mailing list