• 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
Move Files to Trash on a mac OS X remote drive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Move Files to Trash on a mac OS X remote drive?


  • Subject: Move Files to Trash on a mac OS X remote drive?
  • From: "Bryan Chang" <email@hidden>
  • Date: Tue, 01 May 2001 22:05:39 -0700

Hi All,

We've found a very tricky AppleScript problem When trying to migrate our
AppleShare IP server to Mac OS X, hope can get some advise from the list:

We have files stored on a remote server (Mac OS X) and the script is running
a Mac OS 9.1 machine (with AppleScript 1.6 update), the script is somewhat
like this:

tell application "Finder"
mount volume "afp://account:email@hidden/drive_name/"
...
...
delete folder "xyz" of disk "boot"
end tell

Once the script is executed, Script Editor will throw an error message
saying: "Finder got an error: You cannot move "xyz" to the "Trash", Cannot
move an item to the trash becasue it must be deleted immediately and script
may not delete items without confirmation."

The same script runs fine when the remote server is running AppleShare IP
server, but now this script is totally broken because of this (safety?)
feature.

Also if I put the "ignoring application responses" block around the script
above, Script Editor won't display the error message anymore, but Finder
will then display a confirmation dialogbox.

Any ideas? :)

Wen-Yu


  • Prev by Date: Move Files to Trash on a mac OS X remote drive?
  • Next by Date: Scripting Apple's Burn CD program...
  • Previous by thread: Move Files to Trash on a mac OS X remote drive?
  • Next by thread: Scripting Apple's Burn CD program...
  • Index(es):
    • Date
    • Thread