applescript login help

1 reply [Last post]
Joined: Jun 4 2004
Posts: 2


i would like to write an apple script that says a message like "hello Mr. whatever" when i login to my account. my computer is a powerbook g4 and it only has one account on it. i have root on the system. however i do not know the first thing about applescript. i am trying to learn and would like any ideas on any good applescript books for beginners you may have.




The day MICRO$OFT stops sucking, is the day they start making vacuums.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rael9's picture
Joined: Dec 26 2003
Posts: 215
Here ya go!

Open up Script Editor, type in this:
tell application "Finder"
say "whatever you wanna say here"
end tell

Hit "Compile" and then "Run" to test it. If it works, do a Save as... and pick "Application" from the drop-down menu. Give it a name and save it somewhere like your Documents folder.

Open up System Preferences from the Apple Menu and click on "Accounts" and then the "Startup Items" tab. Clcik the plus sign at the bottom, find your script in your Documents folder and hit "Add." Next time you log in, it should say whatever you put in the place of "whatever you wanna say here."

Applescript is pretty cool. You can do a lot with it, that's for sure. I'll post some links to some info on it soon.


James M. Baker
Computer Nerd
[url="]My site[/url]