Re: Why this doesn't work?
Re: Why this doesn't work?
- Subject: Re: Why this doesn't work?
- From: David Durkee <email@hidden>
- Date: Tue, 12 Aug 2003 22:17:55 -0500
You would need a target application that had applications as elements
of itself for the whose clause to be supported. Applescript itself
doesn't support whose clauses. For example, you can't do this:
words of "this is a test" whose first character is "t"
Fortunately, there is such an application. In Mac OS X, this works:
tell application "System Events"
get name of first application process whose frontmost is true
end tell
"first" is necessary because whose clauses return lists, and the object
class you need to get is application process, not application.
This might work in Mac OS 9 with "Finder" as the target.
David
On Tuesday, August 12, 2003, at 08:39 PM, Marcus Rodrigues wrote:
I thought it was very easy, but it does not compile:
get (name of application whose the frontmost is true)
Any clue????
Thx ;-)
Minha situaC'C#o atual no iChat:
b" Meu Status do iChat C) Available.
b" Minha mensagem de Status C) Minha data e hora local sC#o Tuesday,
August 12, 2003 10:25:37 PM. :D.
b" Meu tempo longe do aibuque C) 0 segundos.
Status do iChat conseguido via AppleScript
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.
--
David Durkee
email@hidden
<
http://ddurkee.homeip.net/>
_______________________________________________
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.