Re: About login item deletion
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