Re: "An error of type -619 has occured" SOLVED THANKS ALL
Re: "An error of type -619 has occured" SOLVED THANKS ALL
- Subject: Re: "An error of type -619 has occured" SOLVED THANKS ALL
- From: "kannan balu" <email@hidden>
- Date: Fri, 12 Oct 2001 11:04:49 +0530
Hi ALL,
Now my script works without any error. Thanks for those who helped me to solve
this problem. I also thank particularly Bill Briggs & Nigel Garvey for giving
their valuable suggestions.
The Corrected Script is :
---------------------------------------------------------------------------
tell application "kk"
activate
-- I am using sigma addition
type text "c" holding down command
set the messageText to the clipboard as string
end tell
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
----- Original Message -----