[AppleScript Basic]Dock関連の値を取得する
tell application "System Events"
tell application process "Dock"
properties
set {dockWidth, dockHeight} to the size of list 1
set thePID to unix id
end tell
tell dock preferences
properties
set theScreenEdge to screen edge as text
set theAutohide to autohide as boolean
set theMagnification to magnification as boolean
set theAnimate to animate as boolean
set theMinimizeEffect to minimize effect as text
set theMagnificationSize to magnification size as number
end tell
end tell
| 固定リンク
「AppleScript」カテゴリの記事
- 濁音 半濁音 置換用レコード(2023.08.21)
- [AppleScript]キーノートの書類サイズを指定して作成(2022.01.09)
- [awk]行頭のスペースを削除する(subで置き換え)(2021.11.16)
- [SpotLight]選択範囲でSpotLight検索(2021.11.03)
- [AppleScript]リソースフォーク(カスタムアイコン)削除(2021.10.12)