Re: newbie question
Re: newbie question
- Subject: Re: newbie question
- From: Jan Pieter Kunst <email@hidden>
- Date: Wed, 13 Jun 2001 23:28:31 +0200
Lawrence M. Borland, M.D. (email@hidden) schreef op 13-06-2001 22:24 :
>
After 2 days of "reading the AppleSript and Clarisworks dictionary and
>
Goodman's AppleScript Handbook V2, I have the following but it does NOT
>
place the contents of the result window (of Script Editor) into the Finder
>
CLIPBOARD. I have tried a variety of terms but usually they return an error
>
that the clipboard cannot be set to <<script>>, etc.I realize that there
>
are also some redundancies (such as get path to "Clarisworks" that I would
>
not necessarily need.
>
>
Q1 Copying to FINDER clipboard should be SO.... simple. What am I missing.
I'm an Applescript newbie myself, and I had this same problem a while ago.
It turned out that I had to phrase it like this:
tell me to activate
set the clipboard to ...
where "me" is the script itself.
In your case, I'm not sure if using the clipboard is the best way to
accomplish what you are trying to do. How about something like this
(pseudo-code, this doesn't actually work):
set fileList to to the name of every file ...
tell application "ClarisWorks"
activate
set text of active window to fileList
In other words, pass the text to Clarisworks in a variable, not through the
clipboard.
JP
References: | |
| >newbie question (From: "Lawrence M. Borland, M.D." <email@hidden>) |