[OS X TeX] decimal numbers in Applescript

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Tue Nov 30 12:57:40 EST 2004


My efforts of writing a little Applescript application that can rival 
Textures flash mode - in conjunction with an excellent pdf viewer like 
TeXniscope - have been successful. The script checks the file in 
question in a regular interval, the default is 0.5 sec, which is fine 
on my machine, but might be a little bit too fast on others. Therefore, 
this parameter should be user adjustable by entering a different value 
in a preference file.

My guess now is that I don't have to worry about the particular number 
format. If the user enters the number, or the decimal number, according 
to his system formats, then the Applescript application will understand 
it, even if it has been created on a system using different formats.

Could someone, more knowledgeable than me, please confirm or deny.

Claus

On 30.11.2004, at 18:30, Axel E.Retif wrote:

> On Nov 30, 2004, at 11:21 AM, Claus Gerhardt wrote:
>
>> Could someone with an American number format in the OS, please check, 
>> if the result of the Applescript command
>>
>> set x to "0,5" as number
>> x
>>
>> gives x=0.5
>
> No: AppleScript Error
> Can't make "0,5" into a number
>
>
> Axel
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list