difficulties with read file applescript
difficulties with read file applescript
- Subject: difficulties with read file applescript
- From: TSK Gmail <email@hidden>
- Date: Thu, 17 Dec 2009 01:33:46 -0700
Hi,
I am a newbie to MAC and just learning the AppleScripts.. I have a strange problems
While using the following script i get the following output
"{\\rtf1\\ansi\\ansicpg1252\\cocoartf1038\\cocoasubrtf250 {\\fonttbl\\f0\\fswiss\\fcharset0 Helvetica;} {\\colortbl;\\red255\\green255\\blue255;}
\\ regards}"
--- the script ---
set theFile to choose file with prompt "Select a text file:" set theFileReference to open for access theFile set theFileContents to read theFileReference return theFileContents close access theFileReference
----- end script ----
and selecting a simple testPage.rtf file with the following data
this is a test page
regards
What am i doing wrong, how do i just get the below and not the ouput?
this is a test page
regards
Srikanth Kamath |
_______________________________________________
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