• 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: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Which app to target?
  • Next by Date: Re: Which app to target?
  • Previous by thread: Re: Which app to target?
  • Next by thread: EOF Error passing "quoted form of the POSIX path" to "do shell script"
  • Index(es):
    • Date
    • Thread