• 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: Scripting Sidebar Adding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Sidebar Adding


  • Subject: Re: Scripting Sidebar Adding
  • From: kai <email@hidden>
  • Date: Tue, 27 Mar 2007 22:46:49 +0100


On 23 Mar 2007, at 12:55, Chris Tangora wrote:

Does anybody have a pre-made script that will add a specific folder to the sidebar, or something i can re-code a little to do it. Before I go off writing anew, I figured I'd just ask.

I suppose you could always try something like this, Chris:

---------------

set f to choose folder with prompt "Choose a folder to add to Sidebar:"

tell application "Finder"
	activate
	set {c, s} to {count windows, selection}
	select f
	tell application "System Events" to keystroke "t" using command down
	if (count windows) > c then
		close front window
	else
		select s
	end if
end tell

---------------

---
kai


_______________________________________________ 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
References: 
 >Scripting Sidebar Adding (From: Chris Tangora <email@hidden>)

  • Prev by Date: Re: choose from list bug??
  • Next by Date: Re: Shell script help - get date of last modified file in hierarchy
  • Previous by thread: Re: Scripting Sidebar Adding
  • Next by thread: Re: Puzzling display dialog
  • Index(es):
    • Date
    • Thread