How to make drops on mac osx using a machine?

I read a few lessons about creating drops with an apple script or using an automaton. First, I need to know if these drops only work with the drag n drop file action or if you can perform the action in the current directory. If the last answer is yes, how can I do this with a gun? This was a common question.

In my case. I need a droplet in the finder toolbar when I click on it to search for all files with specific extensions and go to the trash. I try using automator, but I can not stop the action to select files in the current directory, I just found a common find. Since I can be in any other possible directory, I need to know how to do this. It’s not a problem writing some applications, I don’t know, but I can find out :)

+3
source share
1 answer

To create a droplet using Automator, you select an application when Automator asks what you want to create.

The description given by the application when selecting the application is as follows:

Applications are standalone workflows. Any files or folders that fell on the application will be used as input to the workflow.

I think this means that only the stream file / directory will be transferred to the workflow. I tested it and I can confirm that it works this way.

+4
source

Source: https://habr.com/ru/post/1751065/


All Articles