Removing items from the Sidebar
Removing items from the Sidebar
- Subject: Removing items from the Sidebar
- From: Nick Hearn <email@hidden>
- Date: Fri, 12 Jan 2007 10:54:53 +0000
***Before acting on this email or opening any attachment you are advised to read the disclaimer at the end of this email***
************************************
Hi there,
I'm trying to write a script that will allow me to manage the Sidebar list.
It's still at a very early stage, I'm still playing with deleting or removing an item from the list. I've hit a slight snag and I'm not sure how to solve it. How do I tell the Finder to remove an item from the list? I've had a look through the Finder dictionary and found the 'delete' command but I'm not sure if I can use it in the way I am. I'm coming up with an 'NSReceiverEvaluationScriptError: 4' which, correct me if I'm wrong, makes me think the script can't find the item I'm trying to get rid of.
Here's the code:-
tell application "System Events" tell process "finder" delete UI element "ELEMENT" of list 1 of scroll area 1 of splitter group 1 of window "THIS_WINDOW" end tell end tell
Any help would be appreciated.
Thanks in advance,
Nick
**********************************************************************
Communisis plc - registered no: 2916113 is a limited company registered in England and Wales and whose registered office is at Wakefield Road, Leeds, LS10 1DU.
Please Note: This e mail and its attachments contain only the opinions of the sender and do not necessarily reflect the policy (s) of the Communisis group in general.
Confidentiality: This e-mail and the contents of any attachments are intended for the named recipient(s) only and may be confidential. If you have received this e-mail and its contents in error you must take no action based on them, nor must you copy or show them to anyone. Please reply to this e-mail and highlight the error.
Warning: Although this e-mail and any attachments have been scanned for viruses, Communisis cannot guarantee that they are virus free. The Communisis group therefore accepts no responsibility for any loss or damage caused by transmission of this e-mail.
**********************************************************************
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
|
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden