#!/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, 912, 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 {420, 125}
                set position of item "LICENSE.txt" of container window to {420, 225}
                -- set position of item "History.txt" of container window to {420, 325}
                close
            end tell
        end tell
    ' | osascript
}
