Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Old 11-19-2009, 05:15 AM   #1
poenn
Triple-A Player
 
Join Date: May 2002
Location: Germany
Posts: 83
Auto-opening Finder windows with some Volumes

Hi everyone,

I was wondering how does OS X know that it's supposed to open a Finder window with some Volumes? This is usually seen with dmgs or the Mac OS X Install DVD. I tried to look for hidden files via Terminal, but that left me clueless.

The problem is that I have cloned my Install DVD to a partition on my external FW HD (for faster access), but it's annoying that everytime I plug in the HD the Finder opens a window with that partition. I understand that it's supposed to be that way and since it's a clone of the DVD it acts the same way. But how can I disable it? How is this handled by the OS?

Thanks
poenn
poenn is offline   Reply With Quote
Old 11-19-2009, 08:03 AM   #2
anika123
All Star
 
Join Date: Sep 2006
Posts: 860
I think you would have to turn off the 'show these items on the desktop' from the Finder preferences. This setting is listed under the General tab.

On second thought I am not sure that would work for the OS DVD. Hmmm, good question.
__________________
Snow Leopard 10.6, MacBookPro1,1

Last edited by anika123; 11-19-2009 at 08:07 AM.
anika123 is offline   Reply With Quote
Old 11-19-2009, 10:43 AM   #3
tw
Hall of Famer
 
Join Date: Apr 2007
Posts: 4,263
I'm pretty sure that a list of windows to open are stored in the Finder preference file, which is (of course) not modifiable on a DVD.
__________________
Philosophy is a battle against the bewitchment of our intelligence by means of language. -LW-
tw is offline   Reply With Quote
Old 11-19-2009, 02:45 PM   #4
anika123
All Star
 
Join Date: Sep 2006
Posts: 860
So I guess this is the same as when dmg's just fly open. There is some setting in the dmg that tells Finder to open a window instead of just opening and sitting in the Finder Sidebar.
__________________
Snow Leopard 10.6, MacBookPro1,1
anika123 is offline   Reply With Quote
Old 11-19-2009, 06:21 PM   #5
biovizier
All Star
 
Join Date: May 2004
Location: london on ca
Posts: 930
Try checking the "open-folder list" for the volume using 'bless' to see if the folder that opens is listed there, eg.
Code:
bless --info /Volumes/"volume name"
If the list isn't empty, I don't know how to clear it. However as a workaround, if you have "write" privileges for the drive (as you presumably would for the clone of the DVD), it should be possible to make a dummy folder, set that to be the folder to be opened (using 'bless --openfolder /full/path/to/folder'), then delete the folder...
biovizier is offline   Reply With Quote
Old 12-16-2009, 09:16 AM   #6
poenn
Triple-A Player
 
Join Date: May 2002
Location: Germany
Posts: 83
Sorry for returning so late, but the forum mail must've gone into Spam unnoticed.

I tried what biovizier suggested and the list indeed isn't empty. Here's the ouput:

finderinfo[0]: 87 => Blessed System Folder is /Volumes/Mac OS X Install DVD/System/Library/CoreServices
finderinfo[1]: 32692 => Blessed System File is /Volumes/Mac OS X Install DVD/System/Library/CoreServices/boot.efi
finderinfo[2]: 2 => 1st dir in open-folder list is /Volumes/Mac OS X Install DVD/
finderinfo[3]: 0 => No OS 9 + X blessed 9 folder
finderinfo[4]: 0 => Unused field unset
finderinfo[5]: 87 => OS X blessed folder is /Volumes/Mac OS X Install DVD/System/Library/CoreServices
64-bit VSDB volume id: 0xB49C4FE2B6BABAB1

I suspect that it's [2] which I need to get rid of. Any ideas on how to accomplish this?

Thanks!
poenn
poenn is offline   Reply With Quote
Old 12-16-2009, 09:35 AM   #7
poenn
Triple-A Player
 
Join Date: May 2002
Location: Germany
Posts: 83
I got it!

I took the time to read the bless manpage. It says:
--openfolder directory   Specify a folder to be opened in the Finder when the volume is mounted by the system.


So I first tried with changing the current setting to another existing folder via:
sudo bless -folder /Volumes/Mac\ OS\ X\ Install\ DVD -openfolder /Volumes/Mac\ OS\ X\ Install\ DVD/var


After unmounting and remounting the Volume the Finder automatically displayed var this time. You can't specify a nonexistant folder, so I went ahead and created dummy inside of tmp on the Install DVD partition and then issued this:
sudo bless -folder /Volumes/Mac\ OS\ X\ Install\ DVD -openfolder /Volumes/Mac\ OS\ X\ Install\ DVD/tmp/dummy


Afterwards I simply deleted dummy and now the auto-opening is gone! Besides this, I now know what to do if I ever need the opposite behaviour...
poenn is offline   Reply With Quote
Old 12-21-2009, 08:23 PM   #8
MacXperte
Guest
 
Posts: n/a
How to clear the open-folder list

Well, I didn't want to settle for the workaround, because while actually stopping the auto-opening, it leaves a
finderinfo[2]: 40042 => 1st dir in open-folder list is <missing>
entry in the finderinfo. So I looked for a way to really clear the open-folder list. And guess what: it's easy!

Just use
bless --folder /Volumes/Mac\ OS\ X\ Install\ DVD/ --saveX
and it is gone.

After that 'bless --info /Volumes/Mac\ OS\ X\ Install\ DVD/' will give you
finderinfo[2]: 0 => Open-folder linked list empty

BTW: Read-only images opening automatically on mount is a different matter.
  Reply With Quote
Old 09-14-2010, 04:30 AM   #9
poenn
Triple-A Player
 
Join Date: May 2002
Location: Germany
Posts: 83
Just one VERY late heads-up: Using --saveX is a very nice idea, but it results in the partition being shown only as EFI Boot in the boot manager. This is not so ideal when having several Install DVDs cloned to partitions on your external HD. You can’t see which is which without using special icons.
poenn is offline   Reply With Quote
Old 09-14-2010, 11:33 AM   #10
poenn
Triple-A Player
 
Join Date: May 2002
Location: Germany
Posts: 83
Upon further investigation EFI Boot also shows when using my method of non-existing folders. But issuing
Quote:
sudo bless --folder /Volumes/Mac\ OS\ X\ Install\ DVD/System/Library/CoreServices/ --bootefi

resolves that and shows the volume’s name again when in the boot manager.
poenn is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 09:00 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.