• 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
clipboard contents into textfile.........
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: clipboard contents into textfile.........
      • From: wemedge <email@hidden>
  • Prev by Date: Re: Need to call a 'hard reboot' function
  • Next by Date: Re: Project Builder & AppleScript
  • Previous by thread: FaceSpan in general - What's not in the manual
  • Next by thread: Re: clipboard contents into textfile.........
  • Index(es):
    • Date
    • Thread