Re: Creating a new folder in the Finder
Re: Creating a new folder in the Finder
- Subject: Re: Creating a new folder in the Finder
- From: "J. Stewart" <email@hidden>
- Date: Sun, 4 Nov 2007 06:45:26 -0500
On 11/3/07 at 5:09 PM, Michelle Steiner <email@hidden>
spake thusly:
I have Finder preferences set to open a new Finder window in my
home directory. When I press Command N, that's what it does.
But if I run the following script, the window opens to the
Computer view, showing the mounted volumes and the Network icon:
tell application "Finder"
if not (exists Finder window 1) then make new Finder window
end tell
Michelle and Philip,
This works -
-- <cut> --
set fp to path to home folder
tell application "Finder"
if not (exists Finder window 1) then
tell (make new Finder window) to set ¬
{target, toolbar visible, statusbar visible, current view} ¬
to {fp, false, false, list view}
end if
end tell
-- <cut> --
and does what you're asking but it's a bug workaround because -
-- <script> --
make new finder window with properties {toolbar visible:
false,statusbar visible: false,current view: list view,target: fp}
-- </script> --
still doesn't work.
--
Naturally, the common people don't want war, but after all, it
is the leaders of a country who determine the policy, and it is
always a simple matter to drag people along whether it is a
democracy, or a fascist dictatorship, or a parliament, or a
communist dictatorship. Voice or no voice, the people can always
be brought to the bidding of the leaders. This is easy. All you
have to do is tell them they are being attacked, and denounce
the pacifists for lack of patriotism and exposing the country to
danger. It works the same in every country. -Hermann Goering
_______________________________________________
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