ウィンドウサイズを調整するスクリプト
osascript \
-e 'tell application "Xcode"' \
-e 'set bounds of front window to {1, 1, 1280, 800}' \
-e 'end tell'連番でSVGファイルを生成
引数に生成したいファイルの数を指定すると、フォルダ名を参考にSVGファイルを生成する。
フォルダ名が「1-1」であれば「fig1-1-1.drawio.svg」といった感じ。
#!/bin/bash
i=0
N=$1
while [ $((i+=1)) -le $N ]
do
touch "fig${PWD##*/}-${i}.drawio.svg"
donePowerScript版(Windows)
$i=1
$N=$Args[0]
$str_path = (Convert-Path .)
$str_path = $str_path.split("\")
$str_path = $str_path[$str_path.Length-1]
while ($i -le $N)
{
New-Item "fig${str_path}-${i}.drawio.svg"
$i = $i + 1
}