Re: Tex-edit problem !
Re: Tex-edit problem !
- Subject: Re: Tex-edit problem !
- From: Mr Tea <email@hidden>
- Date: Tue, 18 Dec 2001 16:35:53 +0000
This from rhyme - dated 18/12/01 02:09 pm:
>
somebody halp me ? please !
Hope this halps:
In your script you must make the path containing your 'numero' variable
before you pass it to Tex-edit, like this....
set numero to "inserisci il numero della giornata"
set form to display dialog "Che giornata vuoi aggiornare ?" default answer
numero
set numGiornata to text returned of form
set thefile to "Macintosh HD:Desktop
Folder:FantaKapNew:flash:Sit.fkap.01-02:risultati:" & numGiornata &
":Partita1.txt"
tell application "Tex-Edit Plus"
open thefile
end tell
Note: any lines that butt up to the left margin and do not start with the
words 'set', 'tell', or 'end' have been wrapped. Remove extra carriage
returns before running.
Note also that you do not need to put the variable in brackets when you
concatenate it with the rest of the path string, and that you do not need to
use the term 'file' when telling tex-edit to open a document.
In your original script, tex-edit thought you were asking it to open several
items, including the variable, and became confused.
Mr Tea
--
Brew of the day: [ ibid ]