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


Click here to return to the 'Side-by-side windows script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Side-by-side windows script
Authored by: bkperry on Dec 01, '01 10:39:20AM

Hey, excellent script. I made some changes to have two windows open side-by-side. Here 's the script:

property monitor_width : 980
property monitor_height : 768

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 {60, 100, (monitor_width div 2), (monitor_height div 1.25)}
set the current view of this_window to column view
-- 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 {500, 100, (monitor_width div 1.03), (monitor_height div 1.25)}
set the current view of this_window to column view
end tell

BTW, a good program (cheap and powerful) to run timed applescripts is Alarm Clock SE. http://www.versiontracker.com/moreinfo.fcgi?id=12255&db=mac

Ciao!
---bkperry



[ Reply to This | # ]
some more mods....
Authored by: loren_ryter on Dec 23, '01 07:42:11PM

great idea... i changed the script slightly too so you can adjust the offsets (make space for iTunes, etc). paste a nice icon onto it!

Anyone know how to bring both windows to the front but NOT hide all other apps?

--begin--

property monitor_width : 975
property monitor_height : 700
property vOffset_top : 70
property vOffset_bottom : 10
property hOffset_top : 5
property hOffset_bottom : 5

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 + hOffset_bottom, ((monitor_height * 0.55) div 1 + vOffset_bottom),
monitor_width, monitor_height}
set the current view of this_window to column view
--select this_window ; how can you bring to front?
-- 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 + hOffset_top, ((monitor_height * 0.06) div 1) + vOffset_top,
monitor_width, (monitor_height * 0.53) div 1}
set the current view of this_window to column view
--select this_window
end tell



[ Reply to This | # ]