Re: launching finder with optionschi
Re: launching finder with optionschi
- Subject: Re: launching finder with optionschi
- From: Memo Akten <email@hidden>
- Date: Mon, 16 Jun 2008 10:36:20 -0600
- Domainkey-status: no signature
- Organization: MSA Visuals Ltd.
Hi thanks,
I ended up creating an AppleScript like you mention (below) and then just
creating an app out of it, and launching that app instead of finder...
works quite well...
cheers,
Memo.
tell application "Finder"
activate
if not (exists Finder window 1) then
make new Finder window to startup disk
end if
select Finder window 1
set target of Finder window 1 to folder "documents" of home
set current view of Finder window 1 to flow view
end tell
On Mon, 16 Jun 2008 08:40:41 -0700, Jens Alfke <email@hidden> wrote:
>
> 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
--
----------------------------
Mehmet S. Akten
email@hidden
www.memo.tv
_______________________________________________
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