How to sync rime macos via command line and one-click sync with raycast shortcut key

Supplement

How to sync rime macOS via command line

Just execute directly in the terminal

$ /Library/Input\ Methods/Squirrel.app/Contents/MacOS/Squirrel --sync

One-click sync via raycast shortcut

Create a script command in raycast, then set a shortcut key

#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title rime sync
# @raycast.mode silent

# Optional parameters:
# @raycast.icon 🤖

# Documentation:
# @raycast.author whitewatercn

echo "Syncing Rime input method..."

/Library/Input\ Methods/Squirrel.app/Contents/MacOS/Squirrel --sync

image

Reference

1 Like