• 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
Opening Folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opening Folders


  • Subject: Opening Folders
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 15 Apr 2008 09:20:49 -0500

About a year ago, I complained about a -10010 error, but we couldn't find a cause. (We were discussing Unicode.) I think I've found the problem.

If 'folder1' is an alias to a folder, you can tell the Finder to open its window with

	open folder1

but I've been in the habit of using

	open window of folder1

for a very long time, probably due to some forgotten problem with the former.

I have a script with a line something like this

	open {window of folder1, window of folder2, ...}

and I just happened to be paying attention yesterday when I got an error and noticed why. If any of the windows are already open, this will throw the error -10010 "Finder got an error: Handler can't handle objects of this class."

So now I use

	open {folder1, folder2, ...}

and I no longer get the error. The Finder's dictionary isn't very instructive. Perhaps someone knows more.

_______________________________________________
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: Quicktime question
  • Next by Date: RE: Quicktime question
  • Previous by thread: Re: Introduction
  • Next by thread: Mac Spell checker
  • Index(es):
    • Date
    • Thread