• 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 X] move file to folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OS X] move file to folder


  • Subject: [OS X] move file to folder
  • From: Timothy Bates <email@hidden>
  • Date: Fri, 11 Jan 2002 17:56:46 +1100

I am writing a script to put items away intelligently (install .saver files
into the screen saver folder etc)

If I abstract out this bit, that is not working, perhaps someone can
explain:

tell application "Finder"
move file "MouseZoom:MouseZoom.prefPane" to folder
"Cortex:Users:tim:Library:PreferencePanes:"
-->Finder got an error: An error of type -8067 has occurred.
end tell


No idea what type -8067 is.

If I say
Reveal file "MouseZoom:MouseZoom.prefPane"

Or reveal folder "Cortex:Users:tim:Library:PreferencePanes:"

It works just fine.

If I manually move the file, it copies (no permissions difficulties). So
what is up?

If I use "duplicate" or copy instead of move, I just get a differenct opaque
error number ("-15267 " )

Cheers,
Tim


  • Follow-Ups:
    • Error Code DB
      • From: bryan <email@hidden>
  • Prev by Date: Re: running applscripts from a cron file
  • Next by Date: Re: Tell OS X Application...
  • Previous by thread: Re: Dialing via a modem
  • Next by thread: Error Code DB
  • Index(es):
    • Date
    • Thread