Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-20 Thread Steve Mills
On Jan 20, 2015, at 13:29:30, Quincey Morris wrote: > > On Jan 20, 2015, at 11:13 , Steve Mills wrote: >> >> I can go to Finder and Undo or Put Back exactly like I should be able to do > > "… I can go to Finder and Undo or Put Back exactly like I perversely want to > be able to do …” > > Th

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-20 Thread Quincey Morris
On Jan 20, 2015, at 11:13 , Steve Mills wrote: > > I can go to Finder and Undo or Put Back exactly like I should be able to do "… I can go to Finder and Undo or Put Back exactly like I perversely want to be able to do …” There. I fixed your typo for you. ;) _

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-20 Thread Steve Mills
I figured it out. I was watching the session video Secure Automation Techniques in OS X when Chris Nebel got to the part about sending Apple Events from one app to another. His example uses com.apple.security.temporary-exception.apple-events instead of com.apple.security.scripting-targets. From

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-20 Thread Steve Mills
On Jan 20, 2015, at 08:14:56, Jerry Krinock wrote: > > > To clarify Steve’s question: Is there any way to compile the following as an > NSAppleScript and execute it from a *sandboxed* app? > > with timeout 15 seconds > tell application "Finder" > delete POSIX file “/path/to/whatever" >

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-20 Thread Jerry Krinock
> On 2015 Jan 19, at 23:23, Steve Mills wrote: > > Now if anyone has any ideas on how to get the AppleScript solution mentioned > earlier in this thread to work, I'd be most appreciative. To clarify Steve’s question: Is there any way to compile the following as an NSAppleScript and execute i

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Steve Mills
On Jan 19, 2015, at 15:25:42, Kyle Sluder wrote: > >> >> On Jan 19, 2015, at 11:52 AM, Steve Mills wrote: >> >> My main point was that Put Back doesn't get enabled when you use >> recycleURLs. *THAT* is the part that sucks. I'm not focusing on whether or >> not Undo gets enabled in the Finde

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Kyle Sluder
> On Jan 19, 2015, at 11:52 AM, Steve Mills wrote: > > My main point was that Put Back doesn't get enabled when you use recycleURLs. > *THAT* is the part that sucks. I'm not focusing on whether or not Undo gets > enabled in the Finder. I was thinking it should, since it does when you trash >

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Steve Mills
> On Jan 19, 2015, at 13:42:18, Kyle Sluder wrote: > > I understand where you're coming from, but this is not how apps behave > on the Mac. If deleting something in your app altered the Undo stack in > Finder, it would also wipe Finder's Redo stack, causing data loss. > > So I agree with Greg:

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Kyle Sluder
On Mon, Jan 19, 2015, at 01:22 PM, Steve Mills wrote: > On Jan 19, 2015, at 13:06:02, Greg Parker wrote: > > > > Are you sure you want the Finder's Undo command to undo an action taken > > inside your app? That sounds like a very strange user experience. > > Yes. Finder is the app that *I* thi

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Steve Mills
On Jan 19, 2015, at 13:06:02, Greg Parker wrote: > > Are you sure you want the Finder's Undo command to undo an action taken > inside your app? That sounds like a very strange user experience. Yes. Finder is the app that *I* think of when it comes to file management. It "owns" the trash. When

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Greg Parker
> On Jan 18, 2015, at 11:34 PM, Steve Mills 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. Not even NSFileManager's > trashItemAtURL:resultingItem

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Steve Mills
On Jan 19, 2015, at 12:15:18, Steve Mills wrote: > > I was thinking of doing it with AppleScript. Thanks. Perhaps Apple expects > the application calling recycleURLs will keep track of the returned urls and > put them on its own undo stack. That seems kinda goofy. > > And in case anyone else r

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Steve Mills
> On Jan 19, 2015, at 10:34:37, Jerry Krinock wrote: > > > > 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 Fin

Re: recycleURLs doesn't enable Put Back or Undo in Finder

2015-01-19 Thread Jerry Krinock
> On 2015 Jan 18, at 23:34, Steve Mills 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