-
Notifications
You must be signed in to change notification settings - Fork 2
/
Osascript_CLI.sh
executable file
·23 lines (22 loc) · 1.04 KB
/
Osascript_CLI.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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, 950, 600}
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_lower}'.pkg" of container window to {125, 175}
-- 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
}