tomroyal.com

How To: Push Mag+ MIB files via Automator

automator

At work at Apptitude Media, we make interactive digital magazines, brochures and the like using the Magplus system – both for ourselves, and for clients.

One of the final stages of any project is to send the finished MIB content file to a device for testing – it’s an action we perform several times each day. And there are a few ways to do it, the most convenient of which is the Simple MIB Pusher.

But here’s an even quicker way, if you’re on a Mac.

Open Automator, and create a new Service. Call it something like “Send to iPad”. Set it to receive selected files or folders from Finder.

Drag on the “Run Shell Script” command. Paste the following:

while read f
do
curl -X POST -F "file=@$f" http://192.168.1.240:50000
done

.. substituting your device’s IP address in for 192.168.1.240. Save the workflow. You can now send any MIB to your device in one click from the Finder context menu.

All © 2019 Tom Royal. Theme available here.