• 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: Finder preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder preferences


  • Subject: Re: Finder preferences
  • From: David Gregg <email@hidden>
  • Date: Mon, 05 Jun 2017 14:05:27 -0600

Yvan,

Maybe there is a difference between the two languages but I found the checkbox in the English version to be checkbox 3 in El Capitan. After making that change the Finder does seem to toggle between showing/hiding the extension names. In my case it took a few seconds to show up though.

David


> On Jun 5, 2017, at 10:32 AM, Yvan KOENIG <email@hidden> wrote:
>
> I'm tired by asker complaining that a script doesn't work as it's supposed to do because they uncheck the preferences checkbox urging the app to display the extension names.
> I know how to check this box thru GUIScripting but I don't find a way to force the app to apply this new setting.
>
> tell application "System Events" to tell process "Finder"
> 	set frontmost to true
> 	keystroke "," using {command down}
> 	tell window 1
> 		--class of UI elements --> {pop up button, checkbox, checkbox, checkbox, checkbox, checkbox, static text, static text, button, button, button, toolbar, static text}
> 		tell toolbar 1
> 			--class of UI elements--> {button, button, button, button}
> 			--name of buttons--> {"Général", "Tags", "Barre latérale", "Options avancées"}
> 			click button 4
> 		end tell # toolbar 1
> 		if value of checkbox 1 = 0 then
> 			click checkbox 1
> 			# code forcing Finder to apply the new setting
> 		end if
> 	end tell # window 1
> end tell # System Events …
>
>
> Is one of you knowing the correct incantation ?
>
> Thanks in advance.
>
>
> Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) lundi 5 juin 2017 18:32:30
>
> _______________________________________________
> 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

References: 
 >Finder preferences (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Finder preferences
  • Next by Date: Re: Finder preferences
  • Previous by thread: Finder preferences
  • Next by thread: Re: Finder preferences
  • Index(es):
    • Date
    • Thread