Move Files to Trash on a mac OS X remote drive?
Move Files to Trash on a mac OS X remote drive?
- Subject: Move Files to Trash on a mac OS X remote drive?
- From: "Wen-Yu Chang" <email@hidden>
- Date: Tue, 01 May 2001 20:56:16 -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 advise?
Wen-Yu