デスクトップ上のアイテムを選択し、ショートカットを入力して、選択したアイテムをメッセージ アプリで新しいメッセージに添付できるようにしたいと考えています。システム設定/キーボード/キーボードショートカット/Finder.appの下のアプリケーションショートカットで「共有>メッセージ」と入力して作成しようとしましたが、機能しませんでした。automator で作成した「選択した新しいメール」へのショートカットがありますが、メッセージはそこにありません。また、Better Touch Tool を使用してスワイプ ジェスチャで実行できるように、Applescript またはターミナル コマンドを検索してみました。Apple の上級顧問と話をしたところ、彼はそれを行う方法もフォーラムに投稿する方法もわからないと言いました。
このアクションのショートカットを作成する方法を知っている人がいたら教えてください。
更新:これを /System/Library/PrivateFrameworks/ShareKit.Framework/Versions/A/Plugins/Message s.sharingservice/Contents/MacOS からコピーしました
この行を automator で .service にできるかどうかを誰かが知っている場合は、その方法/変更方法を教えてください。
ありがとう
/System/Library/PrivateFrameworks/ShareKit.framework/Versions/A/PlugIns/Messages .sharingservice/Contents/MacOS/Messages ; 出口; NAME-Mac: ~ NAME$ /System/Library/PrivateFrameworks/ShareKit.framework/Versions/A/PlugIns/Message s.sharingservice/Contents/MacOS/Messages ; 出口; -bash: /System/Library/PrivateFrameworks/ShareKit.framework/Versions/A/PlugIns/Message s.sharingservice/Contents/MacOS/Messages
--
delay 0.218623 timeoutSeconds を 2.000000 に設定 uiScript を「アプリケーション プロセス \"Finder\" のスクロール エリア 1 のグループ 1 のイメージ \"Test File\" をクリックする」に設定 my doWithTimeout( uiScript, timeoutSeconds )
-- メッセージ遅延 0.263641 timeoutSeconds を 2.000000 に設定 uiScript を「アプリケーション プロセス \"Finder\" のスクロール エリア 1 のグループ 1 のメニュー 1 のメニュー アイテム \"Share\" のメニュー アイテム \"Message\" をクリックする」に設定します" 私の doWithTimeout( uiScript, timeoutSeconds )
doWithTimeout(uiScript, timeoutSeconds) で endDate を (現在の日付) + timeoutSeconds に設定 繰り返し試行 スクリプトを実行 "tell application \"System Events\" " & uiScript & " end tell" exit エラーで繰り返す errorMessage if ((current date) > endDate ) その後、エラー「できません」 & uiScript end if end try end repeat end doWithTimeout