mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
* Correct JS requestConfig call * Update requestWriteConfig to new API format * Add hyperion-light and bare-minimum preset scenarios * Refactor Python * Windows add bcrypt until mbedtls is fixed (https://github.com/Mbed-TLS/mbedtls/pull/9554) * Corrections * Use ScreenCaptureKit under macOS 15 and above * ReSigning macOS package * Python 3.11.10 test * Revert "Python 3.11.10 test" This reverts commit ee921e4f1284fe3d984d9422b24a1c56c6916c21. * Handle defined exits from python scripts * Update change.log * CodeQL findings --------- Co-authored-by: Paulchen-Panther <16664240+Paulchen-Panther@users.noreply.github.com>
57 lines
2.1 KiB
AppleScript
57 lines
2.1 KiB
AppleScript
on run argv
|
|
set image_name to item 1 of argv
|
|
tell application "Finder"
|
|
tell disk image_name
|
|
|
|
-- wait for the image to finish mounting
|
|
set open_attempts to 0
|
|
repeat while open_attempts < 4
|
|
try
|
|
open
|
|
delay 1
|
|
set open_attempts to 5
|
|
close
|
|
on error errStr number errorNumber
|
|
set open_attempts to open_attempts + 1
|
|
delay 10
|
|
end try
|
|
end repeat
|
|
delay 5
|
|
|
|
-- open the image the first time and save a DS_Store with just
|
|
-- background and icon setup
|
|
open
|
|
set current view of container window to icon view
|
|
set theViewOptions to the icon view options of container window
|
|
set background picture of theViewOptions to file ".background:background.png"
|
|
set arrangement of theViewOptions to not arranged
|
|
set icon size of theViewOptions to 100
|
|
delay 5
|
|
close
|
|
|
|
-- next setup the position of the app and Applications symlink
|
|
-- plus hide all the window decoration
|
|
open
|
|
tell container window
|
|
set sidebar width to 0
|
|
set toolbar visible to false
|
|
set statusbar visible to false
|
|
set the bounds to {300, 100, 1000, 548}
|
|
set position of item "Hyperion.app" to {260, 230}
|
|
set extension hidden of item "Hyperion.app" to true
|
|
set position of item "Applications" to {590, 228}
|
|
|
|
-- Move these out of the way for users with Finder configured to show all files
|
|
set position of item ".background" to {800, 280}
|
|
set position of item ".fseventsd" to {800, 280}
|
|
set position of item ".VolumeIcon.icns" to {800, 280}
|
|
end tell
|
|
delay 1
|
|
close
|
|
|
|
end tell
|
|
|
|
delay 1
|
|
end tell
|
|
end run
|