File: create_dmg.scpt

package info (click to toggle)
falkon 25.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,344 kB
  • sloc: cpp: 66,939; javascript: 21,781; sh: 578; xml: 564; python: 496; sql: 75; makefile: 26
file content (36 lines) | stat: -rw-r--r-- 1,174 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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