Re: Scripting Sidebar Adding
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