• 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: Toolbar visible script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toolbar visible script


  • Subject: Re: Toolbar visible script
  • From: Yvan KOENIG via AppleScript-Users <email@hidden>
  • Date: Mon, 25 May 2020 22:27:23 +0200

Enhanced version:

my hideToolBar()
delay 2
my showToolBar()

on hideToolBar()
        tell application "Finder"
                activate
                set hideToolbar_loc to localized string "FV1"
        end tell
        tell application "System Events" to tell process "Finder"
                set frontmost to true
                tell menu bar 1 to tell menu bar item 5 to tell menu 1
                        if exists menu item hideToolbar_loc then click menu
item hideToolbar_loc
                end tell
        end tell
end hideToolBar

on showToolBar()
        tell application "Finder"
                activate
                set showToolbar_loc to localized string "FV2"
        end tell
        tell application "System Events" to tell process "Finder"
                set frontmost to true
                tell menu bar 1 to tell menu bar item 5 to tell menu 1
                        if exists menu item showToolbar_loc then click menu
item showToolbar_loc
                end tell
        end tell
end showToolBar

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) lundi 25
mai 2020 22:27:15


 _______________________________________________
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: 
 >Toolbar visible script (From: iKel via AppleScript-Users <email@hidden>)
 >Re: Toolbar visible script (From: Yvan KOENIG via AppleScript-Users <email@hidden>)
 >Re: Toolbar visible script (From: David Gregg via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: Toolbar visible script
  • Next by Date: Re: Toolbar visible script
  • Previous by thread: Re: Toolbar visible script
  • Next by thread: Re: Toolbar visible script
  • Index(es):
    • Date
    • Thread