/you/have/to/do/the/full/pathname/greet.sh
Not if you know what you're doing.
Code:
cd /you/have/to/do/the/full/pathname
chmod a+x greet.sh
Works just fine.
The Drag and Drop + Script Editor approaches are better though.
B
/you/have/to/do/the/full/pathname/greet.sh
cd /you/have/to/do/the/full/pathname
chmod a+x greet.sh
Not if you know what you're doing.
Code:cd /you/have/to/do/the/full/pathname chmod a+x greet.sh
Works just fine.
The Drag and Drop + Script Editor approaches are better though.
B
FWIW, my goal was to explain why it didn't work and provide some "glue" to make it work without changing the other steps. This is how we learn, before we start taking shortcuts, of which there are plenty.what's the point of changing the directory if you're just going to be doing one thing there? You still have to either type the whole file path or drag the file into terminal once either way
"not if you know what you're doing" pfft
I have a sneaking suspicion that this is a textbook case of "too many cooks".
OP, to make it easier for you try this to create the script.
In Terminal:
cd ~
echo 'say "Hello Mac User"' > ~/greet.sh
chmod ugo+x ~/greet.sh
You should be able to copy and paste the above commands into your Terminal session.
Then in System Preferences/Accounts/ in your Login Items, add this script just created with the plus (+) symbol. The file will be in your username folder.
Hope this helps.
Did this EXACTLY, and it is not working for me. Have you tried this on Leopard? Wondering why it's not working for me. I did it earlier exactly same. Either way typing or copy pasting it, it just opens the text file in text editor when I login.
the Apple script way I suggested earlier is fool proof and doesn't require fancy unix knowledge.
did not work for me either. it says something about error because of "read-only"
did you make sure to save it as an application, not a script?
cd Desktop
say -o startup.aiff "Welcome to macintosh."
Thanks a bunch everyone i got it to work using Tuffluffjimmy's solution and im sure the others work just as well im just not that good with terminal
did you make sure to save it as an application, not a script?
k so now that ive been experimenting in script editor ive run into another problem how do you make a pause between like " how are u" and "thats great"
so i can respond ??
I was looking into the speech functions of my imac and i was wondering if i could get my mac to greet me when it turns on or wakes up? or do i need some program from the internet?
k so now that ive been experimenting in script editor ive run into another problem how do you make a pause between like " how are u" and "thats great"
so i can respond ??
Use the slnc (silence) embedded speech command. You can add an arbitrary amount of silence anywhere in the text by inserting the [[slnc x]] command (where x is a number of milliseconds). For example, inserting extra silence between the items in a list makes it easier for people to take note of each item. Listen to the following sentence, which lists four items, separated by commas:
Don't forget to bring your hat, sunglasses, sandals, and towel.
Now listen to the same sentence, with 400 milliseconds of silence inserted between the listed items, and notice that you hear each item more distinctly:
Don't forget to bring your hat, [[slnc 400]] sunglasses, [[slnc 400]] sandals, [[slnc 400]] and towel.