Hi all, I'm pulling my hair out on this one, maybe someone can help.
This question is more about terminal commands in general, I think, but it applies to a macro I'm working on in KM with Execute Shell Script.
I am using Maestral (the great lightweight dropbox client for mac), and trying to use Execute Shell Script in Keyboard Maestro to generate and capture share links.
Here is the shell script I'm running, which mostly works fine:
/usr/local/bin/maestral sharelink list '10_42_21.pdf'
The result is the shared links for that file, but since it's formatted in a table view, the column containing the link is truncated with:
It’s possible this problem has been fixed in the most recent update to Maestral: GitHub commit message.
The first thing I would do is update Maestral and see if the problem goes away. If it doesn’t, there might be some ways to fool it into thinking it has a wide terminal.
It looks like that file with the change was commited to the repo just 2 days ago, but the latest release is from 13 days ago. Do you think I need to wait until the dev makes another release, or can I download the files as a zip and run the code? I'm asking just because although I know the basics of GitHub, I'm not an expert, so maybe the answer is obvious.
Just luck. I went to GitHub to see if there were complaints about the width of output, and saw that the most recent change was about your problem.
I assume there are instructions for installing Maestral after you download the current update, but that’s probably more complicated than @tjluoma’s solution.
That did the trick, thanks so much! I spent literally all day trying to figure this out. I didn’t realize you could just add a prefix like that to a command. Lots more to learn about terminal I guess!