On Apr 15, 2011, at 07:37, Marconi wrote: Is there a way to specify the particulars of the window -- its position, dimensions, view mode [list | icon view] sort order, etc?
______________________________________________________________________
set folderTarget to path to downloads folder tell application "Finder"
set newWin to make new Finder window
tell newWin if current view ≠ list view then set current view to list view end if
set toolbar visible to true set sidebar width to 175 set bounds to {0, 44, 1169, 725} set target to folderTarget
tell its list view options set width of column id name column to 500 set width of column id modification date column to 157 set width of column id size column to 97 set visible of column id kind column to false end tell
end tell
end tell
# ======================================================================
tell application "Finder" set fwProp to properties of front window set b to bounds of fwProp set {winName, targetFolder, currentView} to {name, target, current view} of fwProp end tell
# OR
tell application "Finder" set b to bounds of front window set {winName, targetFolder, currentView} to {name, target, current view} of front window end tell
# OR
tell application "Finder" tell front window set b to bounds set {winName, targetFolder, currentView} to {name, target, current view} end tell end tell
-- Best Regards, Chris
|