• 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
"Copy to Clipboard" in AppleWorks 5 (WAS: Re: New Appleworks 5 documents)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Copy to Clipboard" in AppleWorks 5 (WAS: Re: New Appleworks 5 documents)


  • Subject: "Copy to Clipboard" in AppleWorks 5 (WAS: Re: New Appleworks 5 documents)
  • From: "Greg Back" <email@hidden>
  • Date: Thu, 02 Aug 2001 12:37:59 -0400

Richard-
Thanks for the help. I was finally able to create the new file, save it,
etc.

All-
Now I'm trying to introduce some user interaction by giving the user a
choice of what to do with the modified text. I can do the "Don't Save" or
the "Save to disk" fine, but the Copy to Clipboard is still confusing me.
Here's the portion of the script (again, finalText and newName are both
string variables):

tell application "AppleWorks"
set newDoc to make new document at front with properties {name:newName,
document kind:WP}
set text body of newDoc to finalText
display dialog "What should I do with the new file?" buttons {"Save to
Disk", "Don't Save", "Copy to Clipboard"} default button 1
set userchoice to button returned of result
if userchoice is "Don't Save" then
close newDoc saving no
else if userchoice is "Copy to Clipboard" then
copy finalText to clipboard --this line doesn't work
else
save newDoc in ((path to desktop as string) & newName)
end if
end tell

I also tried "copy to clipboard finalText" and "copy finalText" instead of
that line

Any suggestions??

TIA

Greg


  • Prev by Date: Re: App Supplied Coercion?
  • Next by Date: Re: AppleScript seems to be Unique...
  • Previous by thread: Re: Getting front app
  • Next by thread: I figured it out!! (Was: Copy to Clipboard)
  • Index(es):
    • Date
    • Thread