• 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: Setting all subfolder views to list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting all subfolder views to list


  • Subject: Re: Setting all subfolder views to list
  • From: Nigel Garvey <email@hidden>
  • Date: Sat, 19 Mar 2005 16:46:04 +0000

Jim Witte wrote on Fri, 18 Mar 2005 22:30:10 -0500:

>>   How would I write an applescript to recursively set the view options
>for all descendants of a folder to list view?  I can set the view of a
>particular folder with a script like this:
>
>tell application "Finder"
>	set target of Finder window 1 to folder "Applications" of folder
>"Developer" of startup disk
>	set current view of Finder window 1 to list view
>end tell
>
>But it appears that 'current view' is only a property of windows, not
>of folder objects themselves, which means I can't use 'every item of'
>(has that little bug been fixed yet?)

You have to use the 'container window' property of the folders. This
works in 10.2.8:

  set targetFolder to (choose folder)
  tell application "Finder"
    activate
    set current view of container window of targetFolder to list view
    set current view of container window of every folder of entire
contents of target folder to list view
  end tell


NG
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Creating variables with names from other variable values ?
  • Next by Date: Re: Creating variables with names from other variable values ?
  • Previous by thread: Setting all subfolder views to list
  • Next by thread: itunes & text edit fun
  • Index(es):
    • Date
    • Thread