• 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: Add an item to OS X's "startup items"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Add an item to OS X's "startup items"
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Add an item to OS X's "startup items" (From: Shane Stanley <email@hidden>)

  • Prev by Date: Newbie
  • Next by Date: Re: applescript-users digest, Vol 3 #1139 - 15 msgs
  • Previous by thread: Re: Add an item to OS X's "startup items"
  • Next by thread: Re: Add an item to OS X's "startup items"
  • Index(es):
    • Date
    • Thread