• 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: David Marshall <email@hidden>
  • Date: Sun, 4 Nov 2007 06:28:22 -0500


On Nov 4, 07, at 4:25 AM, Michelle Steiner wrote:

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

I gather this is Leopard behavior you're reporting?

If so, it's apparently not a new thing. I get the same result in Tiger (10.4.10), and my Finder prefs are set to open new windows to ~/ Documents; they're also set not to display Computer in the Sidebar.

Changing the script to specify the desired target doesn't seem to work either:

set homeFolder to (path to home folder)
tell application "Finder"
	if not (exists Finder window 1) then make new Finder window¬
		with properties {target:homeFolder}
end tell

Even goofier, the script-created window's position and bounds are different from my manually-invoked Finder window's, but if I resize and relocate the script-created window, then close it and run the script again, the new window retains those changes. More .DS_Store madness, maybe...

- - - - -

Dave



_______________________________________________
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
  • Prev by Date: Re: Removing spaces from a list in a Text file
  • Next by Date: Re: Creating a new folder in the Finder
  • Previous by thread: Re: Creating a new folder in the Finder
  • Next by thread: QuickTime document file in Leopard
  • Index(es):
    • Date
    • Thread