Re: List View Problems
Re: List View Problems
Luther,
I ran the following script and did not get the same results as you. The new folder windows looked normal. The name column width was reasonable.
The script seemed to return the correct results from each command, but the sort direction didn't change, which, I believe, is a known bug.
10.6.5
HTH,
ES
property testFolder : alias "Macintosh HD:Users:edstockly:Desktop:"
property testCount : 0
tell application "Finder"
activate
set testCount to testCount + 1
set testFolderName to "test" & testCount as text
set testFolder to make new folder at testFolder with properties {name:testFolderName}
open testFolder
set winRef to window of testFolder
-- the window of the test folder is open and in list view
set sort column of list view options of winRef to name column
-->Name column
set sort direction of sort column of list view options of winRef to normal
-- >Normal
set sort direction of sort column of list view options of winRef to reversed
-- >reversed
--set width of column name column of list view options of winRef to 200
-->200
sort direction of sort column of list view options of winRef
if the result is normal then
set sort direction of sort column of list view options of winRef to reversed
else
set sort direction of sort column of list view options of winRef to reversed
end if
end tell
On Dec 24, 2010, at 7:17am, Luther Fuller wrote:
> More info on this problem. I created a test folder, then experimented with various list view properties.
> Notice the comments in this script ...
>
> property testFolder : alias "Work_Files:untitled folder"
> tell application "Finder"
> activate
> set winRef to window of testFolder
> -- the window of the test folder is open and in list view
> set sort column of list view options of winRef to name column -- OK
> set sort direction of sort column of list view options of winRef to normal -- ineffective
> set width of column name column of list view options of winRef to 1000 -- ineffective
> sort direction of sort column of list view options of winRef -- always reversed = «constant ****srvs»
> end tell
>
> It seems that the display of list view windows in my installation of Snow Leopard is badly broken. All newly created list view windows open with a narrow name column in reversed order and changes are not saved. (But folders created by the previous system installation are OK.)
>
> Is this an AppleScript problem or a system problem?
> And does anyone have any idea about its cause?
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden