Re: launching finder with optionschi
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