[Mac OS X TeX] Using CMacTeX with TeXShop

Troy Goodson Troy.D.Goodson at jpl.nasa.gov
Thu Nov 15 01:39:59 CET 2001



<x-flowed iso-8859-1>At 3:03 PM +0100 11/14/01, Michel Bovani wrote:
>Le 14/11/01 à 14:26 +0100 Maarten Sneep a écrit :
>
>>(* translate the unix path to a mac path. If someone has a better idea,
>>    please let me know *)
>
>
>	set original_delimits to AppleScript's text item delimiters
>	set AppleScript's text item delimiters to "/"
>	set theList to text items of unix_path
>	set AppleScript's text item delimiters to ":"
>	set mac_path to theList as text
>	set AppleScript's text item delimiters to original_delimits

The algorithm given above will transform "hello:goodbye/folder" into
"hello:goodbye:folder" which isn't what you want.  You simply need to
find all "/"'s then find all ":"'s, then replace ":" with "/" and
vice versa.

-----------------------------------------------------------------
To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
This list is not moderated, and I am not responsible for
messages posted by third parties.
-----------------------------------------------------------------

</x-flowed>




More information about the macostex-archives mailing list