get text from file after open for access
get text from file after open for access
- Subject: get text from file after open for access
- From: Christian Vinaa <email@hidden>
- Date: Sun, 13 Feb 2005 19:56:52 +0100
i found this snip on the internet;
***
set myPrefsFile to (choose file)
open for access myPrefsFile
set prefsContents to read myPrefsFile using delimiter {return} as text
close access myPrefsFile
set txtvar1 to item 1 of prefsContents
***
the problem is that the text it returns is 'coded'
as if opened by fx. BBedit
i.e. there is a lotta code in the start of the text returned
i am trying to isolate a specific paragraph way down in the text and
so far I've narrowed it down to 'just' having to ask for paragraph
(x+1) if I in plain text would want paragraph x
i can live with that so long as I can be certain that all the
'code' up front as paragraph 1 stay in 1 paragraph
but
is there a way to get the text as it appears in fx. AppleWorks / TextEdit ?
--
Christian Vinaa
email@hidden
...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden