• 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: Sending a list of path strings to the Finder via Scripting Bridge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending a list of path strings to the Finder via Scripting Bridge


  • Subject: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 25 May 2012 00:29:20 -0700

On May 25, 2012, at 00:14 , Peter wrote:

> I am supporting OS 10.5, so I still have to find a way for it.

Isn't there a solution using a sequence starting with:

	[[NSWorkspace sharedWorkspace] selectFile:currentFilePath [0] inFileViewerRootedAtPath: [currentFilePath stringByDeletingLastPathComponent];

followed by a sequence of:

	[[NSWorkspace sharedWorkspace] selectFile:currentFilePath [n] inFileViewerRootedAtPath: nil];

? That's assuming the files are all in the same directory. If not, you're going to have to get the Finder to open multiple windows anyway.

Even if it's not perfectly what you want, something based on that idea might be an acceptable workaround if used for 10.5 only, using the newer API for 10.6+.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Sending a list of path strings to the Finder via Scripting Bridge (From: Peter <email@hidden>)
 >Re: Sending a list of path strings to the Finder via Scripting Bridge (From: Quincey Morris <email@hidden>)
 >Re: Sending a list of path strings to the Finder via Scripting Bridge (From: Peter <email@hidden>)

  • Prev by Date: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Next by Date: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Previous by thread: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Next by thread: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Index(es):
    • Date
    • Thread