However, it would be much better if you could perform the operation by other means -- using menus for example. If you can use menus, then the KM Select or Show a Menu Item action would be the way to go.
For more info, please post the app (and its version), and screen shots of the region of the screen that shows where you need to drop the files. Also, find out if you can copy the file, then click on the target area in the app and do a paste. This would be much easier to script.
Well, that's a challenge. Here's an untested idea. It is not complete, and may (probably) contain design flaws. It is intended just as a guide to help you develop the actual workflow/macro. Please feel free to ask questions about anything you don't understand, or believe is wrong.
Setup (do once)
set FinderHeight (use the KM Set Variable to Text action) to the height of each Finder Item. (you can use the macOS screen capture tool to measure this).
set dropZoneVert to comma separated list of the vertical distance from the LogicProX top left window to the middle of each drop zone.
This should be in this format: 100,200,300,400,500,600,700,800
set dropZoneHoriz to horizontal distance from Window TL to a point well within the drop zone (should be the same for all DZ)
Select manually with the mouse the first Finder Item, and Trigger the below macro.
set NumItems to number of Finder files to drop (could get from AppleScript or may KM filter action)
Set mousePos to current Mouse position using MOUSEX function and MOUSEY function.
You did a good job -- very close.
Here's my revised macro, tested using Finder and an Evernote Window with just 3 files. It seems to work fine.
I changed/added the Actions in yellow.
I made dups of the Actions in magenta and change the values for my test case.
I'd suggest that you test with only a few files (like 3) and a few Drop Zones (like 3) to see how it works.
Let us know if this works for your and/or if you have more questions.
I just realized a flaw in my design.
Inside of the For Each I on the number of files, you need another For Each on the number of drops zones.
I’m away from my Mac right now, but when I get back I’ll fix it.
OK, here's my revised macro that fixes that flaw, but it still is just an example.
I have also automated getting the LogicPro window frame coordinates.
It is now much more complicated, and thus more opportunities for design flaws and bugs.
Please TEST thoroughly on a few files before you use in production.
As always, please feel free to post questions, issues, suggestions about this macro.
MACRO: Drag finder items to location in logic pro [Example]
Hi there, I just wanted to follow up. The 'Get Window Frame action seemed to not be working properly, so I simply set it that variable to 0,0 and put the window up against the top always in the same spot and things seem to work!