

Also, when you use the `open` command to open an app it goes through Gatekeeper, so I got a message saying I couldn't run it when I had that enabled. Seems to act the same as my updated version of the workflow, at least for me. Some files still randomly exhibit the sandboxing error (but I can usually re-copy a file to get it working again). The only thing is I'm wondering if you have to right click on the actual ".app" instead the workflow folder to open it once manually just to tell Gatekeeper that it's ok to run the app.

So far it's working fine for me, so if this is a good fix I'll post the workflow. However, take a look at see if it solves it for you. I also set it to show a notification, but that doesn't show up for some reason, so I put a notification in Alfred.Ĭuriosity got the best of me, so I poked around on this, but I'm not really a Mac programmer. Anyway, I created a little app that simply takes files from the command line and copies them to the clipboard and then exits. I'm guessing it's something in the way the application is loaded. Can you try it and let me know if it works for you? I found that the error disappeared when I copied files using a regular ".app" instead of a command line program. Maybe sometime I'll look at it again and see if I notice anything. I looked at their source code quickly and nothing stuck out to me immediately that would reveal the problem. Just for fun, I started Quicksilver up and it copies files to the clipboard correctly every time whether one or many.

Oddly the Applescript workflow copies the file to the clipboard correctly every time, but I can't find a way to copy multiple files to the clipboard so it's limited in it's usefulness. If you're not seeing the problem anywhere then it may be a bizarre bug and it appears to be in the OSX framework since it affected my Obj C code and your Ruby code.

I then copied the file using another Alfred extension that I wrote using Applescript and you can see when I pasted it that it's the full file. The first file was copied using your Alfred extension and you can see it's zero bytes. Here's a screenshot showing what happens. The strange thing is, as I said, I wrote a little objective-c program that puts files on the clipboard and it has the same problem I just can't nail down the pattern.
