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

Toolbar visible script


  • Subject: Toolbar visible script
  • From: iKel via AppleScript-Users <email@hidden>
  • Date: Mon, 25 May 2020 13:15:22 -0500

Greetings All!

I get this error when trying to run...
"A property can’t go after this identifier.”
Perhaps this is not a sound way of doing it. Partly, just want to understand
property values.
Perhaps the use of set is better?

My attempt to get a script to toggle toolbar visible on and off:

property toolbarToggle: toolbar visible of application "Finder"
#the use of ‘set’ may be better here rather than the use of ‘property’.

tell application "Finder"
        --toggle Boolean value
        if (toolbarToggle = false) then
                set toolbarToggle of the front Finder window to true
        else if (toolbarToggle = true) then
                set toolbarToggle of the front Finder window to false
        end if
end tell


I appreciate it, as always!



Live your life as an exclamation rather than an explanation. -Sir Isaac Newton


-Kell
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

  • Follow-Ups:
    • Re: Toolbar visible script
      • From: Yvan KOENIG via AppleScript-Users <email@hidden>
  • Prev by Date: Re: Can one script execute another?
  • Next by Date: Re: Make Symlink in AppleScript
  • Previous by thread: Re: Can one script execute another?
  • Next by thread: Re: Toolbar visible script
  • Index(es):
    • Date
    • Thread