• 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: launching finder with optionschi
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launching finder with optionschi


  • Subject: Re: launching finder with optionschi
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 16 Jun 2008 08:40:41 -0700


On 16 Jun '08, at 6:09 AM, Memo Akten wrote:

I'd like to launch one of the apps -
Finder - in a specific folder in Cover Flow (app is leopard only).
I've been searching how to do this but cannot find any info.

You can tell an app to open a specific file (which in the case of Finder can include a folder) using other NSWorkspace methods. But it won't be able to tell Finder what view to use. To do that you'll need to use the scripting bridge to send AppleEvents to Finder.


The best way to approach something like that is to open Script Editor, use its Open Dictionary command to open the Finder scripting dictionary browser, and then construct a short script that does what you want. From there you should be able to use AppKit's scripting bridge support to construct calls that do the same thing.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: launching finder with optionschi
      • From: Memo Akten <email@hidden>
References: 
 >launching finder with optionschi (From: Memo Akten <email@hidden>)

  • Prev by Date: awakeFromNib
  • Next by Date: QTMovieLayer never being released?
  • Previous by thread: launching finder with optionschi
  • Next by thread: Re: launching finder with optionschi
  • Index(es):
    • Date
    • Thread