is it possible to run a workflow from within an AppleScript completly in background without opening the Dock icon or at least without a temporary document window?
I know about the Droplets, but it seems I can’t run them from AppleScript so that my script can wait until the processing is finished. Launching the Droplet also seems way slower than executing workflow files within the already opened Retrobatch.app.
I just tweaked my “3D car to 2D sprite” rendering workflow to run from the shell, and will now do the same with the RetroBatch post-processing aspect of it.
OK, what RB is doing is just asking the file system to return the values in folders, and no sorting is being done after that. (APFs doesn’t have a sorting order when just saying “hey, what are the files in the dir”).
I’ll have to come up with a default I suppose, which should probably be case insensitive alphabetical.
Though now, of course, I realise that I am using reverse ordering.
So it would be cool if I could pass a list of files somehow? So I can control the ordering on the command-line and pipe it to RB? Or some other solution.
my workaround: generate/write my files out in reverse order
Prior to the update I just made, you could pass files individually and it’d go in the order you gave. But when it loaded up folders, those wouldn’t have any seemingly order to them. Maybe I should only do the sorting for folders?
Alright, a reply to myself. I’ve changed it so that only items loaded from a folder are sorted. Otherwise, everything should be processed in the order they are given to the shell command. Grab the latest build here: Latest Builds from Flying Meat
I did end up reversing the order of my file generation, as /folder/*.PNG and /folder/ had the same result for me. Maybe there’s another way but it didn’t occur to me so that was that - it’s working for me and I’m happy. Cheers