You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
setthe current view of container window to icon view
43
+
set toolbar visible of container window tofalse
44
+
set statusbar visible of container window tofalse
45
+
setthe bounds of container window to {100, 100, 646, 493}
46
+
setviewOptionstothe icon view options of container window
47
+
set arrangement of viewOptions tonot arranged
48
+
set icon size of viewOptions to128
49
+
settext size of viewOptions to14
50
+
set background pictureof viewOptions tofile"bg.tiff"ofitem".background"
51
+
41
52
-- Set the position of the icons
42
53
setfileListtoeveryitemofit
43
54
repeatwithiin fileList
@@ -46,23 +57,14 @@ on run argv
46
57
setthe position of i to {410, 177}
47
58
else ifthenameof i ends with".app"then
48
59
setthe position of i to {137, 191}
60
+
else
61
+
setthe position of i to {700, 700}
49
62
end if
50
63
end repeat
51
64
52
65
-- Close and re-open the window to force refresh
53
-
close
54
-
open
55
-
56
-
-- Configure the Finder window's appearance
57
-
setthe current view of container window to icon view
58
-
set toolbar visible of container window tofalse
59
-
set statusbar visible of container window tofalse
60
-
setthe bounds of container window to {100, 100, 646, 493}
61
-
setviewOptionstothe icon view options of container window
62
-
set arrangement of viewOptions tonot arranged
63
-
set icon size of viewOptions to128
64
-
settext size of viewOptions to14
65
-
set background pictureof viewOptions tofile"bg.tiff"ofitem".background"
66
+
--close
67
+
--open
66
68
67
69
-- According to http://joemaller.com/659/setting-icon-position-and-window-size-on-disk-images/, Finder sometimes does not save the size and position of a window until it detects user interaction on either the window's resizing handle or its zoom button. Simulate two clicks on the zoom button to trigger the save.
0 commit comments