Re: AppleScript Droplet seems to receive strange file list
Re: AppleScript Droplet seems to receive strange file list
- Subject: Re: AppleScript Droplet seems to receive strange file list
- From: Shane Stanley <email@hidden>
- Date: Sat, 18 Feb 2017 12:07:59 +1100
On 18 Feb 2017, at 11:29 am, Takaaki Naganoya <email@hidden> wrote:
>
> Shane, I confirmed your point by this script, too.
>
> And the most important point is…the difference between the number of dropped files and the total length of “fileList” are different. Some items are ignored. It is a quite serious incident, I think.
>
> Now, AppleScript droplet does not work correctly, isn’t it?
The behavior with quarantined files has been around for quite a while, and it's not something AppleScript applets have any control over.
When you drag-and-drop files in the Finder, the applet responds to the Apple events sent to it, and these contain a list of files. The problem here is that multiple events are being sent, with the files split between them. If items are being ignored because they're still quarantined, it's all happening before the applet is involved.
The same thing would happen if you dragged them over any sort of application's icon (assuming it accepted the relevant type of items). I doubt we'll ever see any change in this behavior, so I think you just have to be aware that files downloaded or received by email might have quarantine issues.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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