RE: How to copy to clipboard
RE: How to copy to clipboard
- Subject: RE: How to copy to clipboard
- From: "Goodman, Steve" <email@hidden>
- Date: Fri, 27 Apr 2001 10:57:38 -0500
>
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?
using OS 9.04 and AS 1.4 Standard Additions has the "set the clipboard to"
keywords. I believe that before Standard Additions, Jon's Commands carried
that particular keyword.
try this:
-- ---------------------------------------------------------
-- Preprocessed by Convert Script 1.0d4
-- ---------------------------------------------------------
set MyName to ""
tell application "File Sharing"
set MyName to computer name
quit
end tell
set the clipboard to MyName
-- ---------------------------------------------------------
>
Steve Goodman
>
Six|12 - THE LTC GROUP
>
>
......."Duct tape is like the force, it has a light side and a dark side
>
and
>
it holds the universe together."------Unknown
>
>
>
>
----------
>
From: Roberto Targa
>
Sent: Friday, April 27, 2001 10:22 AM
>
To: email@hidden
>
Subject: How to copy to clipboard
>
>
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
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users