2
2

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】最初からMacのフルスクリーンモードでアプリを起動する

Posted at

MacBook Air 11インチで解像度が小さいので、 AppleScript を使って、Macのアプリを最初からフルスクリーンで起動させるアプリケーションを作りました。

Code

Calender.app をフルスクリーンで起動するスクリプト

AppleScript

tell application "Calendar"
	activate
	tell application "System Events"
		tell process "Calendar"
			click menu item "Enter Full Screen" of menu 1 of menu bar item "View" of menu bar 1
		end tell
	end tell
end tell

中の Calendar のところを適宜起動したいアプリケーション名にすると、そのアプリ用のスクリプトに書き換えることができます。
なお初起動の際アクセシビリティの設定が必要になります。

2
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?