Re: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
Re: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
- Subject: Re: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
- From: Laine Lee <email@hidden>
- Date: Tue, 23 Oct 2007 16:44:00 -0500
- Thread-topic: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
On 9/24/07 8:44 AM, "Nick Hearn" <email@hidden> wrote:
>
> tell application "Finder"
> if ((count each Finder window) is 0) then make new Finder window
> end tell
>
Better make sure its a folder other than "computer":
tell application "Finder"
if ((count each Finder window) is 0) then (open (path to "cusr"))
end tell
> set sidePanelNames to name of UI elements
Better insure that the sidebar is showing:
try
set sidePanelNames to the name of UI elements
on error
tell application "Finder"
tell front window to set sidebar width to 150
end tell
set sidePanelNames to the name of UI elements
end try
--
Laine Lee
_______________________________________________
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