Re: setting dmg window layout and position
Re: setting dmg window layout and position
- Subject: Re: setting dmg window layout and position
- From: Richard Mayer <email@hidden>
- Date: Thu, 10 May 2007 15:25:42 +0200
Ah finally... thank you Luther!!!
Haven't tried yet, but the fact you know about this "bug" and casually
desrcibe a workaround instills me with confidence. :-)
I've known for months now, from research, that this is a bug, but
haven't once found an actual answer to the problem. Even serarched the
archives and posted here couple of weeks a go, without a successful
answer - fear i provided TOO much info though which detracted from the
actual problem ;-)
Can't wait to try it out... gonna be building 200-300 dmg's soon; a job
that simply *has* to be scripted (or go insane ;-)
Cheers,
Rich
Luther Fuller schrieb:
That problem! That's an old bug that has never been fixed. Here's the
workaround ...
set toolbar visible of window of folderRef to true -- +
set sidebar width of window of folderRef to 0 -- +
{hOffset - 14, vOffset, hOffset + winWidth + 5, vOffset +
winHeight + 36} -- *
-- {hOffset, vOffset, hOffset + winWidth, vOffset + winHeight}
set bounds of window of folderRef to the result
set toolbar visible of window of folderRef to false -- +
Add the lines marked by "-- +". The line marked by "-- *" is used
instead of the line below to correct for the change in bounds in the
last line.
On May 10, 2007, at 7:24 AM, Richard Mayer wrote:
Yes, you're spot on. And I already have a script but it doesn't work:
The window postion doesn't get saved.
How do you do it then?
Luther Fuller schrieb:
First, I create a read-write dmg (using an AppleScript), then I
customize the layout, screen position and background picture, then I
convert it to read-only (using an AppleScript). I have a feeling you
want to script the middle step?
On May 10, 2007, at 6:37 AM, Richard Mayer wrote:
Has anybody ever succesfully set the layout and (more poignantly)
the screen position of a dmg volume using AS?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden