Re: recycleURLs doesn't enable Put Back or Undo in Finder
Re: recycleURLs doesn't enable Put Back or Undo in Finder
- Subject: Re: recycleURLs doesn't enable Put Back or Undo in Finder
- From: Jerry Krinock <email@hidden>
- Date: Mon, 19 Jan 2015 08:34:37 -0800
> On 2015 Jan 18, at 23:34, Steve Mills <email@hidden> wrote:
>
> Is there any way to ensure that NSWorkspace recycleURLs:completionHandler: will let the user go to the Finder and Put Back or Undo? I'm very surprised that it doesn't work right.
True, the documentation says that -[NSWorkspace recycleURLs:completionHandler] acts "in the same manner as the Finder”, but they didn’t say “exactly”.
The way to get it to work exactly like Finder is to AppleScript the Finder. This also gives you an additional “bonus” - the trash-can sound effect :)
See code in my method -[NSFileManager(SomeMore)trashPath:scriptFinder:error_p:] which is in here:
http://github.com/jerrykrinock/CategoriesObjC/blob/For_BkmkMgrs_Ver_2/NSFileManager+SomeMore.m
Look at line 294 etc.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden