• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OS 9 vrs OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: RE: Applet by Function Key needs previous frontmost
  • Next by Date: Re: Manipulating Postscript File
  • Previous by thread: Run bug between 1.37 and 1.6
  • Next by thread: Type -110 Errors?
  • Index(es):
    • Date
    • Thread