Python から Shell 経由で Apple Script のコードを使う。 Pythonファイル(test.py) import subprocess if __name__ == '__main__&
投稿者: dev
【Shell】Python に引数を渡して戻り値を取得する方法
Python に引数を渡して戻り値を取得する Shell コマンド test1=$(python test.py 123) echo $test1 test.py import sys arg1 = "&quo
【Shell】Macの画面に通知ダイアログを出す方法
AppleScript 経由で Shellからでも通知ダイアログを出せる。 #!/bin/sh /usr/bin/osascript -e 'display notification "hogehog
【Google Photos】アルバムIDが2つある?
Google Photos API を使って取得したアルバムIDを BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB とすると、 https://photos.google.com/lr/album/BB
【Shell】ExifToolで画像のメタ情報を修正してみた
画像のメタ情報 Exif の中身を編集できるツール【ExifTool】を試してみた。 exiftool コマンドで、以下の項目は修正できた。 /usr/local/bin/exiftool -alldates="
【Python】path.glob で複数の拡張子を検索する方法(大文字小文字の区別付き)
Pyrhon で、path.glob を使って、ファイルを拡張子でフィルタリングしたい時は、 from pathlib import Path path = Path(image_dir) images = sorted
【Python】Automator のクイックアクション からの 「Google Photos API を使用した画像の自動アップロード」
こちらのサイトを参考にして、 Python を使って、Google Photos に画像をアップロードするプログラム(google_photos_upload.py)を書いておく。 Google Cloud API から
【Python】日本語文字を使った時のエラー
Pythonのコードの中で日本語を使うとエラーが出た。 アクション“シェルスクリプトを実行”でエラーが起きました: “ File "○○○.py", line 19 SyntaxError: Non-





