Re: About login item deletion
Re: About login item deletion
- Subject: Re: About login item deletion
- From: Michelle Steiner <email@hidden>
- Date: Fri, 8 Feb 2008 11:39:11 -0700
On Feb 8, 2008, at 8:07 AM, Mark J. Reed wrote:
I assume the OP is looking to automatically remove a particular login
item, and wants to know how to determine its index (given a name,
perhaps)?
If he knows the name, he can use the name to delete the item.
tell application "System Events"
activate
set itemToDelete to (choose from list (get name of login items))
if itemToDelete is false then
quit
else
delete login item (item 1 of itemToDelete)
end if
end tell
-- Michelle
--
Never forget that only dead fish swim with the stream
_______________________________________________
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