2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AppleScriptでシステム環境設定の句読点の種類を設定

2
Posted at

システム環境設定 > キーボード > 入力ソース > 句読点の種類

句読点の選択

『 。と 、 』 に設定してありますので必要に応じでコメントアウトを調整してください

  • click menu item 1 『 。と 、 』
  • click menu item 2 『 。と , 』
  • click menu item 3 『 .と 、 』
  • click menu item 4 『 . と , 』

システム環境設定 > セキュリティとプライバシー > プライバシー > アクセシビリティ
で制御を許可する必要があるかもしれません

tell application "System Preferences"
	activate
	
	--キーボード
	set current pane to pane id "com.apple.preference.keyboard"
	
	tell application "System Events"
		tell process "System Preferences"
			tell window 1
				--入力ソース
				click radio button 4 of tab group 1
				
				--句読点の種類
				click pop up button 4 of scroll area 2 of tab group 1
				
				--句読点の選択
				
				-- 。と 、
				click menu item 1 of menu 1 of pop up button 4 of scroll area 2 of tab group 1
				
				-- 。と ,
				--click menu item 2 of menu 1 of pop up button 4 of scroll area 2 of tab group 1
				
				-- .と 、
				--click menu item 3 of menu 1 of pop up button 4 of scroll area 2 of tab group 1
				
				-- . と ,
				--click menu item 4 of menu 1 of pop up button 4 of scroll area 2 of tab group 1
				
				
			end tell
			
		end tell
	end tell
	
	
end tell
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?