Roy McCoy AS: Scripting Finder list views [was: Sort 'n stack]
Feb 05, 2010; 07:00
Roy McCoy
AS: Scripting Finder list views [was: Sort 'n stack]
Thomas Olbrich wrote:
> Apple's system does differentiate the file order according to the > selected finders view: You can copy/paste a folders content from > finder to TextEdit with different results, depending under which > finders view you did the copy action: For instance list view and > symbolic/icon view result in different text entries/order.
And this applies to dragging graphics into InDesign windows as well? I'll look out for this possibility if/when the occasion arises, thanks. In the case of my four test graphics, however, I placed them one after the other individually.
It's a curious coincidence that you write about different Finder views precisely when I'm trying to get my old Mac cmd-shift-ctrl n/d/k/l/s name/date/kind/label/size shortcuts finally revived in OS X. This is complicated, I realized yesterday, by the existence of column view as well as list view. So today I made a series just for list view:
tell application "Finder" set current view of window 1 to list view set sort column of list view options of window 1 to name column -- modification date column, kind column, label column, size column if sort direction of column name column of list view options ¬ of window 1 is reversed then set sort direction of column name column of list view options ¬ of window 1 to normal else set sort direction of column name column of list view options ¬ of window 1 to reversed end if end tell
and got these all assigned to the desired keycodes. I may or may not get around to doing variants for column view, but one thing I do want to do is reverse the sort direction only if the sort column is already set to the one desired. That is, I want to move the if/else statement to the beginning of the script and place it inside another if statement testing for the current sort column. But I couldn't figure out how to do that test.
Thanks,
Roy
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/InDesign/Browse/ Manage your subscription: http://www.ListSearch.com/InDesign/
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!