• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Persistent window bounds on disk image Finder windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Persistent window bounds on disk image Finder windows


  • Subject: Persistent window bounds on disk image Finder windows
  • From: Christopher Sean Morrison <email@hidden>
  • Date: Wed, 15 Jun 2005 18:28:19 -0400

Hello,

I have been working on a small snippet of applescript code that 'should' set several parameters of a .dmg's Finder window automatically. However, it doesn't for some unknown reason. The applescript is actually part of a larger script that automatically composes a .dmg for software installation that for all intensive purposes works great with the exception of the final window sizing and placement. Does anyone have any suggestions or clue-by-four's on what I might be able to do to automatically coerce the window's size to persist?

Searching through the list archives, I ran across the recent thread on "Finder ignores windowBounds and location" on the Carbon-dev list and this sounds like this may be the same problem. So, it may ultimately be a relatively old bug or limitation of the .DS_Store design. Regardless, I'm still hoping that there is some hack, trick, or other magical incantation that I might be able to chant to make the window behave through the script.

The script is BSD licensed and available through the BRL-CAD software package (for brevity, here's a URL instead of the applescript source via this e-mail), viewable on-line here: http://cvs.sourceforge.net/ viewcvs.py/brlcad/brlcad/sh/make_dmg.sh?view=markup

Basically, there are two osascript sections in the make_dmg.sh file that should set the window's parameters. All of the parameters 'seem' to actually persist except for bounds/position (including the background, icon size). Depending on exactly when I set the parameters and whether or not I perform the final hdiutil convert operation to create the read-only disk image seems to determine whether the values persist correctly.

Any ideas? For what it's worth, I'm not really interested in carrying around a pre-set empty dmg or sample .DS_Store since the script's purpose is to be general and completely automatic and carrying around that baggage isn't really suitably maintainable in the long term. Setting the background manually is already annoying, though that particular deficiency (of automatically setting a Finder window background via applescript) is fixed in 10.4. Thanks in advance for any ideas...

Cheers!
Sean

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: How Do I Tell System Events to do Keystroke Num-3
  • Next by Date: Inventory script
  • Previous by thread: Re: How Do I Tell System Events to do Keystroke Num-3
  • Next by thread: Inventory script
  • Index(es):
    • Date
    • Thread