How insert/ write a word or string into a new Text-Edit Pl. doc?

--3/ 
tell application "Tex-Edit Plus"
	
	make new document
	window 1 of application "Tex-Edit Plus"
	set bounds of window 1 of application "Tex-Edit Plus" to {1384, 712, 2405, 865}
--	set MyText to "my text"
	make text 
end tell

How can I insert, or write a word or string (like "3/ " ) automatically into a newly created Tex-Edit Plus document?

/
with best regards,
Omar K Neusser
Stockholm, Sweden

(Cannot find anyth in the dictionary, where it has insert command from file etc. also from selection.)

Hej Omar:

Have you checked the AppleScript Archive for Tex-Edit? It looks pretty old, but there are nearly 200 scripts you can download there.

For Apple’s TextEdit, this script will create a new document with pre-determined text:

tell application "TextEdit" to make new document with properties {text:"3/ "}

Perhaps similar syntax will work with Tex-Edit.

Lycka til,

Hi.

This works in an old copy (v4.9.9) of Tex-Edit Plus that I have:


tell application "Tex-Edit Plus"
	set newDoc to (make new document)
	make new line at newDoc with data "3/" -- or 'make new character', or 'make new word', or 'make new paragraph'.
end tell

Various forms of the ‘at’ parameter work as well, such as ‘at end of newDoc’ or ‘at end of text of newDoc’.

Hey Omar,


tell application "Tex-Edit Plus"
	make new document with properties {bounds:{207, 44, 1112, 1196}, contents:"DEFAULT TEXT"}
end tell


Chris


{ MacBookPro6,1 · 2.66 GHz Intel Core i7 · 8GB RAM · OSX 10.11.2 }
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯