FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Re: "Hello, user" speech script

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Salling Software Forums Forum Index -> Archives
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Jul 09, 2003 2:34 pm    Post subject: Re: "Hello, user" speech script Reply with quote

> From:  Marook Zuug Kenja
> Date:  Tue Jul 1, 2003  3:35 pm
> Subject:  Re: "Hello, user" speech script
>
> On tirsdag, jul 1, 2003, at 15:16 Europe/Copenhagen, Ashley Ward wrote:
> > I believe that the "do shell script" I've used to obtain the short
> > username requires the BSD subsystem.
>
> Using a small Perl script fomr a nice developer at Apple, gives me
> this:
>
> jp% ./package-for whoami
> whoami (/usr/bin/whoami): Essentials
>
> So, 'whoami' is part of the Essentials system, and is always there...
> in contrast to 'defaults', that is part of the BSD [extras] stuff...
>
> Hope it helps...
>
> Jakob Peterhänsel

On the trail of getting the Mac to say "Hello [your real name]"...

"bitkid" sent me this suggestion privately for saying the full name.
Unfortunately my reply mails to bitkid's address bounce ("This account
has been disabled or discontinued").

This suggestion is good but needs 'defaults', and as Jakob points out
above, this is part of the BSD [extras] stuff.

> set firstname to do shell script "defaults read AddressBookMe
> FirstName"
> set lastname to do shell script "defaults read AddressBookMe LastName"
> say "hello " & firstname & " " & lastname using "Victoria"

I posted on the "AppleScript | OS X" forum this morning at
and received this
suggestion from Greg Spence:

> set theFullName to do shell script "niutil -readprop . /users/" & (do
> shell script "whoami") & " realname"

Can you send me a copy of your package-for Perl script, Jakob? I'd
like to know which package 'niutil' is a part of.

Ashley.

--
Ashley Ward: Teaching Fellow. Academic, PhD student, Musician
Department of Computer Science, University of Warwick, Coventry
Room 3.21 | Tel: +44 (0)24 765 73774 | Fax: +44 (0)24 7657 3024
ashley@d... http://www.dcs.warwick.ac.uk/~ashley/

Back to top
marook
Hero


Joined: 30 Jul 2004
Posts: 336
Location: Copenhagen

PostPosted: Thu Jul 10, 2003 9:44 am    Post subject: Re: "Hello, user" speech script Reply with quote

Hi..

On onsdag, jul 9, 2003, at 14:34 Europe/Copenhagen, Ashley Ward wrote:

> Can you send me a copy of your package-for Perl script, Jakob?=A0 I'd
> like to know which package 'niutil' is a part of.

Sure.
Remember to set it executable and place it somewhere handy:

Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Salling Software Forums Forum Index -> Archives All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group