zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #04674
mac: upon launch have zim come to the foreground
-
To:
zim-wiki@xxxxxxxxxxxxxxxxxxx
-
From:
Joseph Reagle <joseph.2011@xxxxxxxxxx>
-
Date:
Tue, 1 May 2018 08:14:33 -0400
-
Autocrypt:
addr=joseph.2011@xxxxxxxxxx; prefer-encrypt=mutual; keydata= xsFNBFbZ014BEADD0VTXKp+8wRb28EQbMfmbscTZTkI5gZrzq6WEwluvD1tu/KLIvUNs35mq VOjnYYmqeTMqSmzksO/LixKvayfkitL9+h9YdFgBaWiGuSuPQevQICS7qZVb6+oWClzAXbs2 cztD83I3CUYTHQw5YU2+ZA3CfUb0j2SF0dS6K2uQfN4GlwRafZLZwYAh5wD3koqnp3KwQCvG kouVwlWOWQS5PEZBCicRMqTZSv8KnLh8lENCL/rpzjwYwJxv5kg1xJZvDiHY/S/ikavzJJ1w U2dxkGE6fUs12vyC0PcgMtr5949Vs7jr9UHhNAZ8bXAG3MKln4yXGOrhv2FZ9I9dHRsj1N5W 0aIZGQNG+JxqPSGyI7yPE/Sa0dQqM8hmcLyFTKNDMpqJcOj4b9ljZBHoqSRs7anZ9pWHjkD2 FKV4Mhf/NWk4GLipGoGGByYGlwHVS9J+F8EKwxIuBUzH6JBjJPZglTdHth6rax7kDGuPruia y4c1jacX2SswhK66CAMkSjWTwShh7mKDGFA9/ABbASQ1VzKifdV4KfAH8ZKjjauvFbaC4diW TsZz10eDjS0qY0VWEz7Lek4zF6AVlZNSeota9UTPmJfKHMfGxeBTdZ9uiwpHDDKSsebZIm+H fWDj5as0BMQF17/9GKPoszUJZ4fEEbW7vnqYh4JEXTimOd5xDQARAQABzSFKb3NlcGggUmVh Z2xlIDxqb3NlcGhAcmVhZ2xlLm9yZz7CwZQEEwEKAD4CGwMFCwkIBwMFFQoJCAsFFgIDAQAC HgECF4AWIQRfUjzQ0Od+yoKnOxmB0w18CvmevwUCWeZ8xQUJBs8QZwAKCRCB0w18Cvmev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5eB36OrFti7u40gNMMz4pIFEbr0m4QnL4
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
When I launch zim on MacOS its window doesn't come to the foreground. I have to select the window before I can start typing.
This is a hack, but it works with a tiny bit of patience:
```
#!/bin/bash
python2 $HOME/bin/zim-0.68/zim.py -D -V --geometry 900x1000-0-0 --standalone &
# run every half second since I don't know how long zim will take to appear
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains "Zim"'
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains "Zim"'
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains "Zim"'
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains "Zim"'
```