&tag(AppleScript);

目次[edit]

参考情報[edit]

Tips[edit]

ターミナルから実行する[edit]

サンプル[edit]

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

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

トラブルシューティング[edit]

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

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


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS