• 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
Re: Creating a new folder in the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Creating a new folder in the Finder
      • From: Michelle Steiner <email@hidden>
References: 
 >Creating a new folder in the Finder (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Creating a new folder in the Finder
  • Next by Date: Re: Removing spaces from a list in a Text file
  • Previous by thread: Re: Creating a new folder in the Finder
  • Next by thread: Re: Creating a new folder in the Finder
  • Index(es):
    • Date
    • Thread