#!/bin/sh## Sequel Aceで指定した接続を開く# 引数にはSequelProの「お気に入り」の行番号を示すインデックスが入る#functionrun_sequel_pro() {localapp='Sequel Ace'
osascript -- - "$@"<< EOFon run argvtell application "${app}" activate delay 0.5 tell application "System Events" tell process "${app}" set frontmost to true delay 0.5 repeat with i from 1 to (count argv) keystroke "t" using {command down} tell window "${app}" delay 0.5 tell outline 1 of scroll area 1 of splitter group 1 of window "${app}" of application process "${app}" of application "System Events" # row 1は「クイック接続」、row 2は「お気に入り」の行なので実質一番上はrow 3となる set _row_index to (item i of argv as number) + 2 select row _row_index end tell tell scroll area 2 of splitter group 1 of window "${app}" of application process "${app}" of application "System Events" click button "Connect" end tell end tell end repeat end tell end tellend tellend runEOF}functionmain() {localfavorites=$(plutil -convert json ~/Library/Containers/com.sequel-ace.sequel-ace/Data/Library/Application\ Support/Sequel\ Ace/Data/Favorites.plist -o - | jq -r '."Favorites Root".Children[].name')localtargets=($(echo"${favorites}"| fzf))localrows=()for target in${targets[@]};doecho$targetlocalrow=$(echo"${favorites}"|grep -n ${target}| cut -d ':' -f 1)rows=(${rows[@]}$row)done[${#rows[@]}-eq0]&&return130
run_sequel_pro ${rows[@]}>/dev/null
}
main
tell outline 1 of scroll area 1 of splitter group 1 of group 2 of window "Sequel Pro" of application process "Sequel Pro" of application "System Events"
Sequel Aceではgroup 2 ofがなくなっていた。
- tell outline 1 of scroll area 1 of splitter group 1 of group 2 of window "Sequel Pro" of application process "Sequel Pro" of application "System Events"+ tell outline 1 of scroll area 1 of splitter group 1 of window "Sequel Ace" of application process "Sequel Ace" of application "System Events"
name:'Get Commit Summary'description:'Get commits from previrous tag to new tag'inputs:ref:description:'new tag'required:truedefault:'please set ${{ github.ref }}'outputs:summary:description:'commit summary'runs:using:'node12'main:'dist/index.js'
name:'Get Commit Summary'description:'Get commits from previrous tag to new tag'inputs:ref:description:'new tag'required:truedefault:'please set ${{ github.ref }}'outputs:commit_summary:description:'commit summary'runs:using:'docker'image:'Dockerfile'args:- ${{ inputs.ref }}