• 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: Why is this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Why is this?
      • From: Mr Tea <email@hidden>
References: 
 >Why is this? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Anything else I can do to speed up this process?
  • Next by Date: Re: Why is this?
  • Previous by thread: Why is this?
  • Next by thread: Re: Why is this?
  • Index(es):
    • Date
    • Thread