Re: Why is this?
Re: Why is this?
- Subject: Re: Why is this?
- From: Andrew Oliver <email@hidden>
- Date: Tue, 27 Jan 2004 10:12:25 -0800
If you look at foo after running the script, you get something like:
{ application process "Safari" of application "System Events",
application process "Fire" of application "System Events",
application process "Script Debugger" of application "System Events",
...
...}
Note that the processes are listed as objects '...of application "System
Events".
Looking at bar, the processes are all objects '...of application "Finder".
Therefore they aren't the same. Using 'name of processes' produces a list of
strings which do compare.
Andrew
:)
On 1/27/04 8:48 AM, "Michelle Steiner" <email@hidden> wrote:
>
tell application "System Events"
>
set foo to get processes
>
end tell
>
>
tell application "Finder"
>
set bar to get processes
>
end tell
>
>
foo = bar
>
>
--> false
>
>
tell application "System Events"
>
set foo to get name of processes
>
end tell
>
>
tell application "Finder"
>
set bar to get name of processes
>
end tell
>
>
foo = bar
>
>
--> true
>
>
-- Michelle
>
>
--
>
I am Dyslexic of Borg. Fusistance is retile. Your ass will be laminated.
>
_______________________________________________
>
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.
_______________________________________________
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.
References: | |
| >Why is this? (From: Michelle Steiner <email@hidden>) |