1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00
falkonOfficial/mac/create_dmg.scpt

37 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

tell application "Finder"
tell disk "Falkon"
open
# Set some defaults
set current view of container window to icon view
# Turn some things off
set statusbar visible of container window to false
set toolbar visible of container window to false
# Size metrics { x, y, w, h }
set the bounds of container window to {40, 40, 520, 520}
# Abstract an object
set theViewOptions to the icon view options of container window
# Turn some more things off
set arrangement of theViewOptions to not arranged
# Set background image in HFS+ format referenced from image bundle
set background picture of theViewOptions to file ".background:dmg-background.png"
# Align the icons to the background mask
set icon size of theViewOptions to 64
set position of item "Falkon" of container window to {55, 390}
set position of item "Applications" of container window to {390, 390}
# Since this is a dynamic template modifier script tell Finder not to do any registration of applications
update without registering applications
delay 5
close
end tell
end tell