Re: Add an item to OS X's "startup items"
Re: Add an item to OS X's "startup items"
- Subject: Re: Add an item to OS X's "startup items"
- From: Mr Tea <email@hidden>
- Date: Thu, 12 Dec 2002 23:43:22 +0000
This from Shane Stanley - dated 12-12-02 10.28 pm:
>
set theApp to choose file of type {"APPL"}
>
-- path property of login item requires POSIX path
>
set appPath to POSIX path of theApp
>
tell application "System Events"
>
make login item at end with properties {path:appPath, hidden:false}
>
end tell
Could you tell me, Shane... how did you arrive at this syntax?
I knew that System Events could do this, and I got as far as figuring out
that the path property needed to be a POSIX path by looking at the
properties of existing login items, but in all my mangled attempts to script
the creation of a new login item, I didn't even come close to 'make login
item at end...'. How is one supposed to work _that_ out?
Regards,
Mr Tea
--
"Always remember to warm the pot."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.