コンテンツへスキップ
Dev-Dev

Dev-Dev

開発覚書

おうち性教育はじめますおうち性教育はじめます2子育てベスト100だいじ だいじ どーこだ?医者が飲まない薬私が見た未来 完全版
  • HOME
  • にゃんこ大戦争
  • メガニケ
  • Privacy Policy

投稿者: dev

【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

2020年2月25日 dev Apple Script, Python, Shell
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

Python から Shell 経由で Apple Script のコードを使う。 Pythonファイル(test.py) import subprocess if __name__ == '__main__&

Continue reading

【Shell】Python に引数を渡して戻り値を取得する方法

2020年2月25日 dev Python, Shell
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

Python に引数を渡して戻り値を取得する Shell コマンド test1=$(python test.py 123) echo $test1 test.py import sys arg1 = "&quo

Continue reading

【Shell】Macの画面に通知ダイアログを出す方法

2020年2月23日 dev Apple Script, Shell
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

AppleScript 経由で Shellからでも通知ダイアログを出せる。 #!/bin/sh /usr/bin/osascript -e 'display notification "hogehog

Continue reading

【Google Photos】アルバムIDが2つある?

2020年2月21日 dev Google Photos
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

Google Photos API を使って取得したアルバムIDを BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB とすると、 https://photos.google.com/lr/album/BB

Continue reading

【Shell】ExifToolで画像のメタ情報を修正してみた

2020年2月21日 dev Exif
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

画像のメタ情報 Exif の中身を編集できるツール【ExifTool】を試してみた。 exiftool コマンドで、以下の項目は修正できた。 /usr/local/bin/exiftool -alldates=&quot

Continue reading

【Python】path.glob で複数の拡張子を検索する方法(大文字小文字の区別付き)

2020年2月21日 dev Python
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

Pyrhon で、path.glob を使って、ファイルを拡張子でフィルタリングしたい時は、 from pathlib import Path path = Path(image_dir) images = sorted

Continue reading

【Shell】パイプでつなげた while 内の変数を外で使いたい場合

2020年2月20日 dev Shell
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

find コマンドを使ってファイル検索をしてから、パイプの後に while を使うと、 cd "【指定のフォルダ】" list1='' find . -type f -maxdep

Continue reading

【Python】Automator のクイックアクション からの 「Google Photos API を使用した画像の自動アップロード」

2020年2月20日 dev Automator, Google Photos, Python
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

こちらのサイトを参考にして、 Python を使って、Google Photos に画像をアップロードするプログラム(google_photos_upload.py)を書いておく。 Google Cloud API から

Continue reading

【Python】日本語文字を使った時のエラー

2020年2月20日 dev Python
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

Pythonのコードの中で日本語を使うとエラーが出た。 アクション“シェルスクリプトを実行”でエラーが起きました: “ File "○○○.py", line 19 SyntaxError: Non-

Continue reading

【Automator】メニューバーのギアアイコンを消す方法

2020年2月20日 dev Automator, Shell
【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

Automator のプログラムを実行させたとき、 別のプログラムを走らせると、ギアアイコンがクルクル回ったままになる時がある。

Continue reading

投稿ナビゲーション

«前の記事 1 … 81 82 83 84 85 … 122 次の記事»

Google 検索

サイト内 検索

WordPress Theme: Tortuga by ThemeZee.