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で複数ファイルのプロパティを取得する方法(準備編)

Windows 10で、Explorerのナビゲーション ウィンドウの表示/非表示を、キーボードショートカットで切り替える方法

二号線を東へ

perl URL取得

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

ヤバい!JAPANNEXT WQHD対応 27型ワイド液晶ディスプレイ「JN-IPS2716WQHD」を注文してみた!!!

Windows10: 外付けUSキーボードの配列設定と日本語切り替え、IME左右Altキーでストレスフリー