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

Dev-Dev

開発覚書

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

投稿者: dev

【Apple Script】引数で文字列を受け取るときは注意!

2020年2月28日 dev Apple Script, Automator
【Apple Script】引数で文字列を受け取るときは注意!

Apple Script の 起動時に、文字列の引数を受け取る場合、 以下のように書くと、文字列として認識しない場合があった。

Continue reading

【Shell】sort コマンド

2020年2月28日 dev Shell
【Apple Script】引数で文字列を受け取るときは注意!

フォルダ一覧を取得する際に、 sort を付けなかったら、並びがバラバラだったので、 並び替えのコマンドを追加。 set file_path to "【フォルダパス】" set list_str to

Continue reading

【正規表現】特定のタグを抽出する

2020年2月28日 dev Javascript, 正規表現
【Apple Script】引数で文字列を受け取るときは注意!

・特定のタグを抽出 /<article(.*?)<\/article>/gsim 「*?」を使うと一番近いものにマッチしてくれる。 Javascript の フラグの例: フラグ 説明 g グローバルサ

Continue reading

【Apple Script】右クリックからGoogle翻訳する

2020年2月27日 dev Apple Script, Automator
【Apple Script】引数で文字列を受け取るときは注意!

Google翻訳をしたい時に、毎回ブラウザを開いて検索するのが面倒だったので、 翻訳したい英文テキストを選択して、右クリックからすぐにGoogle翻訳できるようにしてみた。 右クリックで使用するのは、以前にも使った「クイ

Continue reading

【Python】別のpyファイルの関数を呼ぶ

2020年2月26日 dev Python
【Apple Script】引数で文字列を受け取るときは注意!

com / test.py def test1(arg1): return "test = " + arg1 呼び出し元 from com import test rtn = test.test1(&

Continue reading

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

2020年2月25日 dev Apple Script, Python, Shell
【Apple Script】引数で文字列を受け取るときは注意!

Shell に引数を渡して戻り値を取得する Apple Script のコード set arg1 to "123" set test2 to do shell script " test1=

Continue reading

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

2020年2月25日 dev Apple Script, 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
【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
【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
【Apple Script】引数で文字列を受け取るときは注意!

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

Continue reading

投稿ナビゲーション

«前の記事 1 … 99 100 101 102 103 … 141 次の記事»

Google 検索

サイト内 検索

WordPress Theme: Tortuga by ThemeZee.