osx: Fix AppleScript script under High Sierra.
Some of the old script broke with this new OS release.
This commit is contained in:
parent
9690b06aaa
commit
dd45fd9652
1 changed files with 14 additions and 6 deletions
|
|
@ -29,17 +29,25 @@ on run argv
|
||||||
--activate
|
--activate
|
||||||
open dmgFile
|
open dmgFile
|
||||||
delay 1
|
delay 1
|
||||||
set win to the front Finder window
|
|
||||||
set theDisk to disk diskName
|
set theDisk to disk diskName
|
||||||
set the target of win to theDisk
|
open POSIX file "/"
|
||||||
|
|
||||||
-- window options:
|
-- window options:
|
||||||
|
|
||||||
set bgfile to file "background.png" of theDisk
|
set bgfile to file "background.png" of theDisk
|
||||||
set the bounds of win to {200, 200, 717, 545}
|
set win to the front Finder window
|
||||||
set icon size of icon view options of win to 96
|
tell win
|
||||||
set background picture of icon view options of win to bgfile
|
set target to theDisk
|
||||||
set toolbar visible of win to false
|
set current view to icon view
|
||||||
|
set sidebar width to 0
|
||||||
|
set toolbar visible to false
|
||||||
|
set statusbar visible to false
|
||||||
|
set bounds to {200, 200, 717, 545}
|
||||||
|
end tell
|
||||||
|
tell icon view options of win
|
||||||
|
set icon size to 96
|
||||||
|
set background picture to bgfile
|
||||||
|
end tell
|
||||||
|
|
||||||
-- hide background file:
|
-- hide background file:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue