Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'New easier script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
New easier script
Authored by: Anonymous on Nov 28, '01 09:15:24PM

This one just uses pixel numbers and is optimized for a 1024x768 screen with the dock at the bottom.

I have replaced the variables and functions to calculate window bounds with pixel values.

The bounds appear to be an array of the following values:

(left edge at # of pixels from left, top edge at # of pixels from top, right edge at # of pixels from left, bottom edge at # of pixels from bottom)

where the titlebar of the window is ignored.

Just change these numbers to change the window placement. Experiment for yourself until you get it the way you like it.

Cheers,

Y
___________________

set the startup_disk to (path to startup disk)

tell application "Finder"
activate
set visible of (every process whose visible is true and frontmost is false) to false
-- BOTTOM WINDOW
set this_window to make new Finder window
set the target of this_window to the startup_disk
set the bounds of this_window to {0, 400, 1024, 700}
set the current view of this_window to column view
-- TOP WINDOW
set this_window to make new Finder window
set the target of this_window to the startup_disk
set the bounds of this_window to {0, 46, 1024, 375}
set the current view of this_window to column view
end tell



[ Reply to This | # ]
New easier script
Authored by: chadders on Nov 29, '01 03:30:46AM

Thanks for the modified script... I can follow that logic! I am interested in what the other script was actually doing however... if you can spare the time a brief explanation would probably help me understand it better. Your modified script is working great on my system here, and I like it's functionality a great deal. Excellent, thank you.



[ Reply to This | # ]
New easier script
Authored by: james_sorenson on Nov 29, '01 02:10:16PM
Alas, although the Finder dictionary shows the syntax to change the
inspector panel, it refuses to do so. According to the dictionary,
the syntax would be:

set the current panel of the information window to Preview panel

But, it says:

"Can't set <<class panl>> of <<class iwnd>> to <<consant ipnlvpnl>>."

Oh well, I guess it hasn't been implemented yet.

[ Reply to This | # ]