• 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: "Stockly, Ed" <email@hidden>
  • Date: Fri, 08 Feb 2008 12:23:14 -0800
  • Thread-topic: About login item deletion

>> 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)?

tell application "System Events"
    login items
end tell

Returns a list of login items. Index is not one of their properties.

tell application "System Events"
    login item 1
end tell

Would return the first item of that list, but I don't think you can count on
the same login item always being in the same position in the list from one
run to the next, particularly after you start deleting or adding login
items.

> If he knows the name, he can use the name to delete the item.
>

That's good advice.

ES

 _______________________________________________
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

  • Prev by Date: Re: Error -609
  • Next by Date: Re: Error -609
  • Previous by thread: Re: About login item deletion
  • Next by thread: Error -609
  • Index(es):
    • Date
    • Thread