• 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
Re: difficulties with read file applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: difficulties with read file applescript


  • Subject: Re: difficulties with read file applescript
  • From: Matthew Smith <email@hidden>
  • Date: Thu, 17 Dec 2009 20:33:17 +1100

If you want the formatting you won't be able to use open for access. You have to open the file in an app like TextEdit via AppleScript and access the content in the app. Unless someone else knows a way of doing it.

Matthew

On 17/12/2009, at 20:20 , TSK Gmail wrote:

Dear Matthew,

Thanks for the reply, with txt file the read works but My problem is  that i require the Rich Text Format. I did try .doc but all of these end up with lots of codes and not just the text.

Is there any way i can resolve this, any other call funtion then read?

thanks in advance for the help

Srikanth Kamath

On 17-Dec-2009, at 1:54 AM, Matthew Smith wrote:

You didn't select a text file. You selected and rtf file. It contains a lot of codes as part of the text that tells the app how the text should be formatted.

If you are using TextEdit to create your file you can set the file to be plain text. This can be done by selecting Make Plain Text from the Format menu.

Matthew
Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
  • Follow-Ups:
    • Re: difficulties with read file applescript
      • From: Thomas Fischer <email@hidden>
References: 
 >difficulties with read file applescript (From: TSK Gmail <email@hidden>)
 >Re: difficulties with read file applescript (From: Matthew Smith <email@hidden>)
 >Re: difficulties with read file applescript (From: TSK Gmail <email@hidden>)

  • Prev by Date: Re: difficulties with read file applescript
  • Next by Date: do shell script and full path to unix command
  • Previous by thread: Re: difficulties with read file applescript
  • Next by thread: Re: difficulties with read file applescript
  • Index(es):
    • Date
    • Thread