• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail.app and iChat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail.app and iChat


  • Subject: Re: Mail.app and iChat
  • From: kai <email@hidden>
  • Date: Tue, 12 Aug 2003 03:52:42 +0100

on Mon, 11 Aug 2003 21:12:39 -0300, Marcus Rodrigues wrote:

> I fixed my last script in this way:

[snip: start of script]

> if myStatus is equal to "B+constant ****awayB;" then
> set myStatus to "Away"
> else if myStatus is equal to "B+constant ****avalB;" then
> set myStatus to "Available"
> else
> set myStatus to "Offline"
> end if

[snip: rest of script]

Untested with iChat, Marcus - but another way might be to insert a line like
this before your main script:

run script "tell app \"iChat\" to \"\""

-- then continue with:
> tell application "iChat"
> set myStatus to (get status) as string
> set mySM to get status message as string
> set idleTime to get idle time as string
-- (omit the above if/then statements)
> end tell
> tell application "Mail"
-- continue with rest of script...

In this particular instance, the if/then approach is probably preferable,
but there could be situations in which the above method (assuming it works
for you) might come in handy.

---
kai
_______________________________________________
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.

  • Prev by Date: Re: PDF Services - I'm lost...
  • Next by Date: Where is "osascript"?
  • Previous by thread: Mail.app and iChat
  • Next by thread: PDF Services - I'm lost...
  • Index(es):
    • Date
    • Thread