Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get text from file after open for access



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.