• 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: About login item deletion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >About login item deletion (From: "Apparao Mulpuri" <email@hidden>)
 >Re: About login item deletion (From: Axel Luttgens <email@hidden>)
 >Re: About login item deletion (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Getting script to run with apple mail rules.
  • Next by Date: Re: Error -609
  • Previous by thread: Re: About login item deletion
  • Next by thread: Re: About login item deletion
  • Index(es):
    • Date
    • Thread