• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: List View Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List View Problems


  • Subject: Re: List View Problems
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 24 Dec 2010 11:38:57 -0600

On Dec 24, 2010, at 09:17, 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 ...
...
Is this an AppleScript problem or a system problem?
And does anyone have any idea about its cause?
______________________________________________________________________

Hey Luther,

I think the problem with the initial window is a system problem.  You may be able to fix this by bringing up view options and changing to icon view; then close and open a new window; then change to list view and make your changes; then close and open a new window.  (Maybe - I saw this fix somewhere on the net in the last few months).

In any case I think you've discovered a very bad bug in the Finder.  If I start with the front window sorted by NAME in REVERSE-ORDER I can't get the scripted changes to stick unless I include the block with the bolded comment.  The triangle in the column heading changes properly, but the column itself doesn't re-sort unless I include that block.

--
Best Regards,
Chris


####################################################################################################
#       Author: ccs
#      Created: 2010-10-09 : 12:45
#     Modified: 
#  Application: Finder
#      Purpose: Resize front window to large default size.
# Dependencies: none
####################################################################################################

tell application "Finder"
try


if (count of windows) > 0 then


tell front window


if current view ≠ list view then
set current view to list view
end if


tell its list view options
set width of column id name column to 413
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


set sort column to size column
set sort column to name column
set sort direction of sort column to normal


# TO GET THE CHANGE TO TAKE...
set sort column to size column
set sort column to name column


end tell


set bounds to {0, 44, 844, 1196}
set current view to list view
set toolbar visible to true
set sidebar width to 175
set statusbar visible to true


end tell


end if


on error errMsg number errNum
beep
tell me to display dialog "Error: " & errMsg & return & "Error Number: " & errNum
end try
end tell
 _______________________________________________
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

  • Follow-Ups:
    • Re: List View Problems
      • From: Luther Fuller <email@hidden>
References: 
 >List View Problems (From: Luther Fuller <email@hidden>)
 >Re: List View Problems (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: List View Problems
  • Next by Date: Re: List View Problems
  • Previous by thread: Re: List View Problems
  • Next by thread: Re: List View Problems
  • Index(es):
    • Date
    • Thread