• 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
get text from file after open for access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: scripting safari and menu items
  • Next by Date: xml file created from directory structure
  • Previous by thread: Re: scripting safari and menu items
  • Next by thread: xml file created from directory structure
  • Index(es):
    • Date
    • Thread