newbie question
newbie question
- Subject: newbie question
- From: "Lawrence M. Borland, M.D." <email@hidden>
- Date: Wed, 13 Jun 2001 13:24:46 -0700
Hello,
As a listener to this list, I have just ventured into actually trying my
hand at AppleScripting.
For a project, I envisioned one with several steps
(1) process the images from my digital camera with Graphic Converter
(2) move the images to a selected folder on my www server
(3) generate a subset list of the images in the selected folder
(4) copy this subset list to another application (eg ClarisWorks) either to
print
Thought I would work on (3) and (4) first
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.
Q2 I could not figure out how to choose a WP (word processing document)
automatically if I were to just launch "ClarisWorks"
tell application "Finder"
activate
set theDate to (current date)
set theDate to (theDate - 3 * days)
set fileList to the name of every file of (choose folder with prompt "Is
this it?" as text) whose modification date > theDate
>>>>>copy result to the clipboard<<<<
get path to application "ClarisWorks" as string
set ClarisPath to result
open file "new home jpgs" of folder "Documents" of startup disk
tell application "ClarisWorks"
activate
paste
end tell
end tell
thanks for any assistance,
larry borland
u. of pittsburgh
***********************************************************
*Most people HAVE to use a PC. I GET to use a Macintosh!"*
***********************************************************
PGP Public Key
http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0x5A5A4C04