Re: Curses! How to make new window in OSX Finder?
Re: Curses! How to make new window in OSX Finder?
- Subject: Re: Curses! How to make new window in OSX Finder?
- From: Mr Tea <email@hidden>
- Date: Mon, 11 Mar 2002 16:14:59 +0000
This from Charles Arthur - dated 11/3/02 02.30 pm:
>
tell application "Finder"
>
make new window with properties {bounds:43,..... view:column view}
>
end tell
Hi, Charles.
The command you need is 'make new Finder window', and you may find that you
cannot set the properties of the window in the same line as the 'make'
command.
Something like this should work:
property WindowPosOne : {5, 50, 1019, 390}
property WindowPosTwo : {5, 418, 1019, 758}
tell application "Finder"
activate
set viewerOne to make new Finder window
set properties of viewerOne to {bounds:WindowPosOne, target:alias
"Studio!:", current view:column view}
set viewerTwo to make new Finder window
set properties of viewerTwo to {bounds:WindowPosTwo, target:alias
"Mezzanine!:", current view:column view}
end tell
The bounds stored in the WindowPos properties are indended to cover most of
a 1024 by 768 desktop. You can get your own favoured window sizes by
positioning your windows where you want them, then running this script:
tell application "Finder"
set thePosList to {}
set theWindowList to every Finder window
repeat with theWindow in theWindowList
set theBounds to bounds of theWindow
set thePosList to thePosList & {theBounds}
end repeat
end tell
Mr Tea
--
Brew of the day: Darjeeling
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.