• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tex-edit problem !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 ]


References: 
 >Tex-edit problem ! (From: rhyme <email@hidden>)

  • Prev by Date: Looking for a possible AppleScript solution to check serial numbe rs...
  • Next by Date: Re: Looking for a possible AppleScript solution to check serial numbe rs...
  • Previous by thread: Tex-edit problem !
  • Next by thread: Re: Tex-edit problem !
  • Index(es):
    • Date
    • Thread