File: Osascript_GUI.sh

package info (click to toggle)
mediaconch 25.04-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,828 kB
  • sloc: ansic: 126,293; cpp: 39,636; javascript: 34,300; xml: 2,950; sh: 2,121; makefile: 200; python: 183
file content (24 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

osascript_Function () {
    echo '
        tell application "Finder"
            tell disk "'${APPNAME}'"
                open
                set current view of container window to icon view
                set toolbar visible of container window to false
                set the bounds of container window to {400, 100, 932, 612}
                set viewOptions to the icon view options of container window
                set arrangement of viewOptions to not arranged
                set icon size of viewOptions to 72
                set background picture of viewOptions to file ".background:Logo_White.icns"
                set position of item "'${APPNAME}'.app" of container window to {125, 175}
                set position of item "Applications" of container window to {275, 200}
                set position of item "ReadMe.txt" of container window to {450, 125}
                set position of item "License.html" of container window to {450, 225}
                set position of item "History.txt" of container window to {450, 325}
                close
            end tell
        end tell
    ' | osascript
}