Re: How do I script "Hide Toolbar" in Finder
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.