• 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
How to copy to clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to copy to clipboard


  • Subject: How to copy to clipboard
  • From: Roberto Targa <email@hidden>
  • Date: Fri, 27 Apr 2001 16:22:33 +0100

Hi scripters,
I need to copy the computer name to the clipboard and use following script:

set MyName to ""
tell application "File Sharing"
set MyName to computer name
quit
end tell
copy myName to the clipboard

The variable has the exact computer name but I get a syntax error such as :
"Can't set "Macintosh HD" to "

Where am I wrong?

TIA

Roberto Targa


  • Follow-Ups:
    • Re: How to copy to clipboard
      • From: Paul Berkowitz <email@hidden>
    • Re: How to copy to clipboard
      • From: Pier Kuipers <email@hidden>
References: 
 >Mac OS X Finder Opening a file (From: Glenn Kowalski <email@hidden>)

  • Prev by Date: Re: How best to extract digits from a string?
  • Next by Date: Re: How to copy to clipboard
  • Previous by thread: Mac OS X Finder Opening a file
  • Next by thread: Re: How to copy to clipboard
  • Index(es):
    • Date
    • Thread