Re: Troubling MacOS 9.1 / AS / SHERLOCK 2 dilemma: *CAN* I go forward or must I go back?
Re: Troubling MacOS 9.1 / AS / SHERLOCK 2 dilemma: *CAN* I go forward or must I go back?
- Subject: Re: Troubling MacOS 9.1 / AS / SHERLOCK 2 dilemma: *CAN* I go forward or must I go back?
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 15 Sep 2001 12:57:24 -0700
On 9/15/01 11:40 AM, "Bill Christens-Barry" <email@hidden> wrote:
>
My next approach has been to try to catch a file name duplication
>
error, and avoid searching altogether. This works pretty well,
>
although 9.1 on my Pismo seems to gag on the "renameFile",
>
"copyFile", and "deleteFile" commands from Jon's Commands that is
>
essential to my whole strategy (although I've seen these work on
>
other 9.1 machines).
>
>
All of the above efforts work perfectly on my old clone running Mac
>
OS 8.6 and AS 1.4.3).
>
>
I'm more or less fuming at all of this, and wondering: do things get
>
any better in MacOS 9.2.1? This is must do work that I have to
>
conquer in a hurry. Should I be thinking about going back to an
>
earlier MacOS, maybe 9.0.2? Should I try an earlier version of AS?
>
Does MacOS 9.2.1 fix Sherlock 2's AS implementation, to wit, have
>
they overcome its use of indexing or fixation on search by content?
First of all, it's not exactly a bug. It's simply that Sherlock scripting
has only been implemented for Find by Content. That's pretty clear from the
Dictionary. And if Sherlock can't index Windows-formatted disks, you'll have
to forget Sherlock. Just forget Sherlock.
Your technique of error-trapping a possibly existing file of the name you
want is the correct one, assuming AppleScript can understand the
folder-structure on the Windows-formatted disk. Can it? Or does it just find
the disk and that's all?. If the file you've want to copy is called
"Important" and is
alias "Macintosh HD:Some Folder:Important"
certainly you should try
try
get alias "Windows-Formatted Disk:Important"
--change name routine
end try
There's no reason why Jon's renameFile shouldn't work while still on the
Mac. Do you have any folders in your Scripting Additions folder? If so, they
will prevent osaxen being found (since OS 9.1 or maybe 9.0.4, I forget).
Remove all folders from the Scripting Additions folder and put back just the
osax files - with no folders at all in there. Get rid completely of old
"Dialects" folder if it's still in there from OS 8.6 (it shouldn't be, but
you never know). Reboot or compile a script.
As to moving Mac files to a Windows-formatted disk, I don't know about that
either. It's quite possible that can't be done by applescript either. I have
no understanding of what might be needed in terms of file structure for that
to be successful. Try every method, Jon's copyFile, Akua's AkuaCopy, and the
Finder. But I wouldn't guarantee this will work. If you know it does work,
that's great. Worst come to worst, move or copy all the renamed and
un-renamed files you need to a new folder on the Mac, then select all the
files in the folder and drag them over manually later.
--
Paul Berkowitz