RE: Tex-edit problem !
RE: Tex-edit problem !
- Subject: RE: Tex-edit problem !
- From: Joe Kelly <email@hidden>
- Date: Tue, 18 Dec 2001 11:00:26 -0800
Would placing the concat in parens work I wonder?
open (prefixPath & numGiornata & postfixPath)
>
-----Original Message-----
>
From: Mr Tea [mailto:email@hidden]
>
Sent: Tuesday, December 18, 2001 8:36 AM
>
To: AS List
>
Subject: Re: Tex-edit problem !
>
>
>
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 ]
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.