Re: Re: Subject: How do I script "Hide Toolbar" in Finder
Re: Re: Subject: How do I script "Hide Toolbar" in Finder
- Subject: Re: Re: Subject: How do I script "Hide Toolbar" in Finder
- From: admin <email@hidden>
- Date: Thu, 20 Feb 2003 08:39:45 -0600
Not that it removes any of the objections to GUI scripting, but
couldn't this be simplified to (still in pseudo-code):
try
select menu "hide toolbar"
end try
If the menu item is available, it will hide the toolbar, if it isn't
it will just continue on its merry way. Please note that I haven't done
ANY gui scripting yet, so this may not work even conceptually...
al
On Wednesday, February 19, 2003, at 02:36 PM,
email@hidden wrote:
Message: 14
Date: Wed, 19 Feb 2003 12:24:14 -0800
Subject: Re: Subject: How do I script "Hide Toolbar" in Finder
From: Andrew Oliver <email@hidden>
To: Paul Skinner <email@hidden>, AppleScript Users Users
<email@hidden>
CC: David Crowe <email@hidden>
Sure you can.
Even though I can't believe I'm proposing this... when the toolbar is
visible, the Finder's View menu includes a 'Hide Toolbar' option.
When the toolbar is not visible, the menu item changes to 'Show
Toolbar'
In pseudo-code
-- to toggle toolbar
try
select menu 'show toolbar'
on error
-- oops, toolbar's already shown, so hide it
select menu 'hide toolbar'
end try
_______________________________________________
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.