FROM : Memo Akten
DATE : Mon Jun 16 18:36:20 2008
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_removed>> 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_removed>
www.memo.tv
DATE : Mon Jun 16 18:36:20 2008
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_removed>> 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_removed>
www.memo.tv
| Related mails | Author | Date |
|---|---|---|
| Memo Akten | Jun 16, 15:09 | |
| Jens Alfke | Jun 16, 17:40 | |
| Memo Akten | Jun 16, 18:36 | |
| Kyle Sluder | Jun 16, 19:50 | |
| Jens Alfke | Jun 16, 20:17 | |
| Memo Akten | Jun 16, 21:20 | |
| Kyle Sluder | Jun 16, 22:00 | |
| Uli Kusterer | Jun 17, 15:08 |






Cocoa mail archive

