• 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 items to Trash - how to get "will get deleted immediately" warning shown?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Move items to Trash - how to get "will get deleted immediately" warning shown?


  • Subject: Move items to Trash - how to get "will get deleted immediately" warning shown?
  • From: Thomas Tempelmann <email@hidden>
  • Date: Mon, 29 Dec 2008 22:09:20 +0100
  • Thread-topic: Move items to Trash - how to get "will get deleted immediately" warning shown?

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?


 _______________________________________________
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

  • Follow-Ups:
    • Re: Move items to Trash - how to get "will get deleted immediately" warning shown?
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Select photos whose name is in list of names?
  • Next by Date: Re: Move items to Trash - how to get "will get deleted immediately" warning shown?
  • Previous by thread: Re: Transmit Help Needed
  • Next by thread: Re: Move items to Trash - how to get "will get deleted immediately" warning shown?
  • Index(es):
    • Date
    • Thread