Tag: AppleScript

目次

参考情報

Tips

ターミナルから実行する

サンプル

最前面で選択されているテキストを取得する

set frontmostApp to path to frontmost application
tell application "Finder"
	set appName to displayed name of frontmostApp
end tell

activate application appName
tell application "System Events"
	tell application process appName
		keystroke "c" using command down
	end tell
end tell

tell application appName
	set theText to the clipboard as string
end tell

トラブルシューティング

奇妙なEnd of Lineシンタックスエラーが発生する

Applescript “Expected end of line but found propertyのエラー

AeroFSFinderExtension.osaがどうのこうのといわれる


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-04-11 (月) 15:28:15