Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is it possible to force an AppleScript to activate when I log in?

share|improve this question
add comment

3 Answers

up vote 11 down vote accepted

If you save the Apple Script as an application, then go to System Preferences -> Users -> Login Items, you can add the application there, and it will run on login.

enter image description here

share|improve this answer
    
Awesome! That does exactly what I want. –  Mahnax Oct 25 '11 at 18:07
add comment

~/Library/LaunchAgents/login_test.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd>
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>login_test</string>
    <key>ProgramArguments</key>
    <array>
        <string>osascript</string>
        <string>/Users/username/Desktop/test.scpt</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>
share|improve this answer
    
This looks good too. I'll try it out, see how it goes. –  Mahnax Oct 26 '11 at 4:36
add comment

You can also use Script Timer for this. It is $12, but it is a very useful little utility.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.