[AppleScript]workspaces-edge-delay
--------設定
set theWorkspacesFloatOnCom to "defaults write com.apple.dock workspaces-edge-delay -float 0;killall Dock" as string
set theWorkspacesFloatOffCom to "defaults write com.apple.dock workspaces-edge-delay -float 1;killall Dock" as string
tell application "Finder"
activate
---ダイアログを出す
display alert "ワークスペース間のウィンドウの移動の方法" buttons {"スクロールする", "スクロールしない", "キャンセル"} default button 1 cancel button 3 as informational
if button returned of the result is "スクロールする" then
---button 1 スクロールするの時の処理
set theRhex to do shell script theWorkspacesFloatOnCom
else if button returned of the result is "スクロールしない" then
---button 2 ヘッドフォンの時の処理
set theRhex to do shell script theWorkspacesFloatOffCom
end if
end tell
| 固定リンク
「AppleScript」カテゴリの記事
- 濁音 半濁音 置換用レコード(2023.08.21)
- [AppleScript]キーノートの書類サイズを指定して作成(2022.01.09)
- [awk]行頭のスペースを削除する(subで置き換え)(2021.11.16)
- [SpotLight]選択範囲でSpotLight検索(2021.11.03)
- [AppleScript]リソースフォーク(カスタムアイコン)削除(2021.10.12)