Automatorの変数をAppleScript内で使う

Quick Edit Pencil
Automatorで設定した変数をAppleScript内で変数名を指定することはできない
なので、AppleScriptでinputの値を変数に格納する
on run {input, parameters} set val1 to item 1 of input set val2 to item 2 of input set cnt to (count of input) end run
参考サイト AutomatorでAppleScriptに値を渡す http://ameblo.jp/softwaredeveloper/entry-11988473204.html AppleScriptのサンプル
on run {input, parameters} set pictFol to path to pictures folder from user domain as text --ピクチャフォルダのパスを取得 set searchCha to item 1 of input --Automatorで受け渡された変数値(ファイル名)を取得 set the clipboard to searchCha --クリップボードにコピー return input end run

このブログの人気の投稿

書字方向 横書方向変換スクリプト 左書きから右書きへ(コピペ用途)

PowerShellのGetDetailsOf メソッドでプロパティの詳細情報のID番号と項目名を列挙します

PowerShellで複数ファイルのプロパティを取得する方法(準備編)

簡単 YouTube動画をダウンロード、音声のみ保存する方法 2019

DOMノードオブジェクトを文字列に変換する

AppleScript 改行 コード 置換

Blender: 辺の長さを数値で指定するアドオン

PowerShellでJPG画像のリサイズとウォーターマーク画像との合成を同時に行う

VMWare Playerでホストとゲスト間でクリップボードが共有できない時の対処法