Re: Repeat in iChat
Re: Repeat in iChat
- Subject: Re: Repeat in iChat
- From: Marcus Rodrigues <email@hidden>
- Date: Tue, 26 Aug 2003 21:27:46 -0300
Hi, Michele thx for your help, but I already fixed my script.
Here is what I did:
tell application "iChat"
activate
set everyAccount to the name of every account as list
set eachAccount to the items of everyAccount
set numero to the (count of items of everyAccount) as integer
repeat with i from 1 to numero
set nome to (get name of account i as Unicode text)
set sMsg to (get status message of account i as Unicode text)
set oStatus to (get status of account i as Unicode text)
display dialog "A pessoa: " & nome & " estC! com a mensagem de status:
" & sMsg & " e estC!: " & oStatus & "." giving up after 3
end repeat
end tell
On Tuesday, August 26, 2003, at 06:28 PM, Michelle Steiner wrote:
>
On Tuesday, August 26, 2003, at 01:11 PM, Marcus Rodrigues wrote:
>
>
> set everyAccount to every account as list
>
>
"every account" already returns a list; adding "as list" is redundant.
>
>
> set eachAccount to the items of everyAccount
>
>
All this does is make make a copy of the list.
>
>
But the problem I run into is that "every account" returns the
>
following list:
>
>
{application "iChat", application "iChat"}
>
>
--Michelle
>
>
--
>
If you don't hit any bumps in the road, you're not moving.
>
_______________________________________________
>
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.
>
>
o#? Marcus Rodrigues o#?
iBook 600 - Combo - Jaguar
CC4nsul do Brasil Apple Clube - Caxias do Sul
Moderador BAC-Macusers
ichat: marcusrodrigues
mailto:email@hidden
http://homepage.mac.com/marcusrodrigues
_______________________________________________
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.