OS 9 vrs OS X
OS 9 vrs OS X
- Subject: OS 9 vrs OS X
- From: Jim Brandt <email@hidden>
- Date: Thu, 24 Jan 2002 06:56:31 -0600
I have several scripts that work under OS 9.2 but fail under OS X.
The first script is:
tell application "Finder"
set sourceFolder to alias "Macintosh HD:To_Be_Sent:"
set theList to (every item of sourceFolder whose file type is not
in {"fold"})
if (count of the theList) = 0 then
display dialog "Nothing to move"
error number -128
end if
open sourceFolder
move theList to folder "Macintosh HD:To_Be_Sent: Sent:"
end tell
This script moves all files from folder "Macintosh HD:To_Be_Sent:" to
folder "Macintosh HD:To_Be_Sent:Sent:".
It works great under OS 9.2.
When launched from OS X, it gives the error:
A script error occurred. Can't make every item of alias
"Macintosh HD:To_Be_Sent:" whose not 32 into a alias.
Anyone with suggestions on how to make this work under OS X?
Can someone explain to me the meaning of the "whose not 32" in the
error message?
Jim Brandt