How to make file references to text
How to make file references to text
- Subject: How to make file references to text
- From: email@hidden
- Date: Tue, 16 Oct 2001 13:27:28 +0200
Hi all
How to make file references to text?
(Tried to find the solution to this in the AppleScriptLanguageGuide and the
web archive for this list without any success . If someone here can
help me I will appreciate it! )
Here the code
on open these_items
tell application "Finder"
set filePath to alias "Sive Lindmark:Users:sive:Desktop:Working
with!!!!!!:Drop sicomp.se:Output"
tell application "Tex-Edit Plus"
open file filePath
tell window "Output"
select last insertion point
end tell
end tell
end tell
repeat with i from 1 to the count of these_items
set the this_item to item i of these_items
copy this_item as text to selection
end repeat
end open
and the error message Can't set selection to "Sive
Lindmark:Users:sive:Desktop:Working with!!!!!!:Drop sicomp.se:testfile.rtf"
The tesfile.rtf is the file I dropped at this appscript.
Sive
[demime 0.98b removed an attachment of type TEXT/RICHTEXT which had a name of ALTERNATIVE.RTX]