On Sep 12, 2008, at 10:18 AM, I wrote:
In Leopard, if you make a new folder manually, its "View Options" window will always have the "Always open in ..." box (at the top) unchecked and the "... Defaults" button (at the bottom) inoperative. At least that's my experience.
I have an AppleScript application that uses the 'make new folder ...' command in various places and I've just noticed that when this command creates a new folder, the status of its "Always open in ..." box is inherited from the parent folder. This indicates that the status of "Always open in ..." can be read & set internally by the 'make new folder ...' command, but there is no way to read & set this status via AppleScript. (It's not in the Finder's dictionary.)
Anyone know more about what's going on here?
(I'm still waiting for "Always open in ..." and "... Defaults" to be removed from Leopard's View Options. They are useless and illogical.)
I've done some experimenting resulting in this script ...
tell application "Finder"
activate
try
set winRef to window 1
on error
beep
error number -128
end try
(target of winRef) as alias
make new folder at the result
-- set current view of (window of the result) to list view
end tell
Without the last line, the window is always created with "Always open in ..." unchecked.
If the last line is used (with list, icon or column), the window's "Always open in ..." box is checked.
My first guess was wrong. It now seems that 'set current view ...' includes checking the "Always open in ..." box.
(The "Defaults" button at the bottom of the View Options window is still inoperative and I don't yet know how to make it operative.)
Has anyone noticed more about this?