Re: Move items to Trash - how to get "will get deleted immediately" warning shown?
Re: Move items to Trash - how to get "will get deleted immediately" warning shown?
- Subject: Re: Move items to Trash - how to get "will get deleted immediately" warning shown?
- From: Axel Luttgens <email@hidden>
- Date: Tue, 30 Dec 2008 11:16:24 +0100
Le 29 déc. 08 à 22:09, Thomas Tempelmann a écrit :
I've written a small tool that shows lists of files
(http://apps.tempel.org/FindAnyFile/).
I want it to support moving files to the Trash.
To get this working so that the move can be undone in the Finder
using its
Undo command, I like to ask the Finder to move the files to the trash.
Hence, I'm sending it a "move" command with "insh", "trsh" and the
files as
arguments. And that works fine.
Problem is that some disks do not have a sustainable Trash and then
the move
operation deletes the files immediately, without warning.
When I trash those files in the Finder, the Finder will bring up a
confirmation dialog telling my that they'll get deleted immediately.
I like to do this in my app, too. Either I need to know what rules
apply as
to when the Finder decides (or knows) that the files will be deleted
so that
I can bring up my own warning, or I need to know if I can pass another
argument to the Applescript command that makes the Finder show this
dialog.
Any suggestions?
Hello Thomas,
Wouldn't Finder's command "delete" just reproduce the behavior shown
by the Finder in the GUI?
By directly moving items to the trash, it is very likely that you're
short-circuiting that behavior.
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden