mirror of
https://github.com/yannbertrand/macos-defaults
synced 2024-11-14 23:57:07 +00:00
⚡ Reduce capture size
This commit is contained in:
parent
de015953ae
commit
1c12043fb2
4 changed files with 2 additions and 2 deletions
Binary file not shown.
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 9.4 KiB |
|
@ -16,7 +16,7 @@ module.exports = {
|
|||
await runner
|
||||
.setDefault('com.apple.TextEdit', 'RichText', '-bool false', '0')
|
||||
.openApp('TextEdit', fileName)
|
||||
.moveAndResizeApp('TextEdit', 0, 0, 744, 451)
|
||||
.moveAndResizeApp('TextEdit', 0, 0, 740, 400)
|
||||
.captureApp('TextEdit', `${outputPath}/false.png`)
|
||||
.deleteDefault('com.apple.TextEdit', 'RichText')
|
||||
.killApp('TextEdit')
|
||||
|
|
|
@ -19,7 +19,7 @@ module.exports = {
|
|||
await runner
|
||||
.setDefault('com.apple.TextEdit', 'RichText', '-bool true', '1', '')
|
||||
.openApp('TextEdit', filename)
|
||||
.moveAndResizeApp('TextEdit', 0, 0, 744, 451)
|
||||
.moveAndResizeApp('TextEdit', 0, 0, 740, 400)
|
||||
.captureApp('TextEdit', `${outputPath}/true.png`)
|
||||
.deleteDefault('com.apple.TextEdit', 'RichText')
|
||||
.killApp('TextEdit')
|
||||
|
|
Loading…
Reference in a new issue