author | herrick |
Mon, 14 Oct 2019 14:33:01 -0400 | |
branch | JDK-8200758-branch |
changeset 58583 | b54f1adbf153 |
parent 58306 | 42c7f9800e30 |
permissions | -rw-r--r-- |
58306 | 1 |
tell application "Finder" |
2 |
tell disk "DEPLOY_ACTUAL_VOLUME_NAME" |
|
3 |
open |
|
4 |
set current view of container window to icon view |
|
5 |
set toolbar visible of container window to false |
|
6 |
set statusbar visible of container window to false |
|
7 |
||
8 |
-- size of window should match size of background |
|
9 |
set the bounds of container window to {400, 100, 917, 380} |
|
10 |
||
11 |
set theViewOptions to the icon view options of container window |
|
12 |
set arrangement of theViewOptions to not arranged |
|
13 |
set icon size of theViewOptions to 128 |
|
14 |
set background picture of theViewOptions to file ".background:background.png" |
|
15 |
||
16 |
-- Create alias for install location |
|
17 |
make new alias file at container window to DEPLOY_INSTALL_LOCATION with properties {name:"DEPLOY_INSTALL_NAME"} |
|
57038 | 18 |
|
58306 | 19 |
set allTheFiles to the name of every item of container window |
20 |
repeat with theFile in allTheFiles |
|
21 |
set theFilePath to POSIX Path of theFile |
|
22 |
if theFilePath is "/DEPLOY_APPLICATION_NAME.app" |
|
23 |
-- Position application location |
|
58583
b54f1adbf153
8231857: App and Application folder icons are not aligned correctly
herrick
parents:
58306
diff
changeset
|
24 |
set position of item theFile of container window to {120, 130} |
58306 | 25 |
else if theFilePath is "/DEPLOY_INSTALL_NAME" |
26 |
-- Position install location |
|
58583
b54f1adbf153
8231857: App and Application folder icons are not aligned correctly
herrick
parents:
58306
diff
changeset
|
27 |
set position of item theFile of container window to {390, 130} |
58306 | 28 |
else |
29 |
-- Move all other files far enough to be not visible if user has "show hidden files" option set |
|
58583
b54f1adbf153
8231857: App and Application folder icons are not aligned correctly
herrick
parents:
58306
diff
changeset
|
30 |
set position of item theFile of container window to {1000, 130} |
58306 | 31 |
end |
32 |
end repeat |
|
33 |
||
34 |
update without registering applications |
|
35 |
delay 5 |
|
36 |
close |
|
37 |
end tell |
|
38 |
end tell |