clipboard contents into textfile.........
clipboard contents into textfile.........
- Subject: clipboard contents into textfile.........
- From: "kannan balu" <email@hidden>
- Date: Thu, 11 Oct 2001 15:34:57 +0530
Hi All,
I need to retrieve the clipboard content into AS and save it into a text file.
When I do so An error of type -619 has occurs. Can any one know how to rectify
this problem.
The Script is :
on run
set the messageText to (the clipboard) as text
set fileTarget to "Macintosh HD:newfile" as text
writeData(messageText,fileTarget)
try
set theFileReference to open for access file fileTarget with write
permission
set eof theFileReference to 0
write messageText to theFileReference
close access theFileReference
on error errMsg number errNum
try
close access theFileReference
end try
error errMsg number errNum
end try
end writeData
-Kannan Get more from the Web. FREE MSN Explorer download :
http://explorer.msn.com