• 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: How do I script "Hide Toolbar" in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I script "Hide Toolbar" in Finder


  • Subject: Re: How do I script "Hide Toolbar" in Finder
  • From: Paul Skinner <email@hidden>
  • Date: Tue, 18 Feb 2003 20:49:46 -0500

On Tuesday, February 18, 2003, at 08:01 PM, Andrew Oliver wrote:

Looking at the dictionary, I can't see any reference to the toolbar. This
seems like an omission on Apple's part.

That being the case, the only other option I can think of is ::shudder:: UI
scripting where you select the toolbar menu item.

Andrew
:)

http://www.apple.com/applescript/GUI/#1004
-- bring the target application to the front try
tell application "Finder"
activate
select Finder window 1
end tell
tell application "System Events"
tell process "Finder"
click ( the first button of the front window whose subrole is "AXToolbarButton")
end tell
end tell
on error error_message number error_number
tell application "Finder"
display dialog error_message buttons {"OK"} default button 1
end tell
end try


--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How do I script "Hide Toolbar" in Finder (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: 'sh: ping: command not found' error
  • Next by Date: applescript presenter
  • Previous by thread: Re: How do I script "Hide Toolbar" in Finder
  • Next by thread: How do I script "Hide Toolbar" in Finder
  • Index(es):
    • Date
    • Thread