Making OS 9 scripts work in OS 10 - problems
Making OS 9 scripts work in OS 10 - problems
- Subject: Making OS 9 scripts work in OS 10 - problems
- From: Rob Stavis <email@hidden>
- Date: Sun, 28 Dec 2003 00:40:05 -0500
I'm still on the novice end of the AS learning curve, but I was able to make
a number of functional scripts in OS 9 for moving, renaming, and copying
files to a server. These scripts are used in conjunction with our Helix
Neonatal ICU documentation system for attaching photos to computer-generated
e-mails that we send to parents every day. The key to making this work is an
interface that allows the nurse to drop the photos into a folder which opens
from the baby's database record. The baby's ID info is sent to a file and
used to rename the photo-file's name and tag it so it goes as an attachment
with the correct e-mail -- it won't do to send the wrong photos to parents!
My OS 9 scripts handled all this.
We moved the photo-handling computer to an OS X box which allows us to use
iPhoto -- a big plus-- so now I'm trying to makes these scripts run on that
machine. The computer runs 10.2.6 with AS 1.9.1, and my test environment is
10.3.1 with AS 10.9.2 -- I'm finding identical issues in both settings.
I spent a long time learning that to make a new folder, I had to make new
+class cfol;. At least now I can make new folders.
Now, I'm hung up trying to deal with the disk "Macintosh HD". The Finder
will no longer "select disk "Macintosh HD" but it can handle select
"Macintosh HD" (without the word "disk"). The Finder can't get the
properties of the disk and is unable to consider the disk "whose local
volume is false." System Events can get the properties of <<disk "Macintosh
HD">>, but it doesn't know anything about "...whose local volume is false."
I need to mount a server disk "Macintosh HD" which is named the same as the
local disk. I used to tell Finder:
Set remote_disk to disk "Macintosh HD" whose local volume is false as alias
...but I'm now stuck on this. Also, I'm having trouble moving a folder from
the local volume to the server. I can move the folder, but if it exists,
there's an error message, and "replacing yes" which worked fine in the OS 9
version won't compile.
I see in the dictionary that the sort command isn't now available, so that
explains why that function isn't working, but the rest of the stuff seems so
basic. I just spent $40 on Matt Neuburg's "Definitive Guide" hoping to find
definitive guidance, but I'm still in the dark. I have the feeling that a
file somewhere is missing, since AS seems to be only partly functional. Can
someone shed some light on all this?
Many thanks,
Rob Stavis
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.