• 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: Name of Active Process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name of Active Process


  • Subject: Re: Name of Active Process
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 17 Jun 2004 13:51:49 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Jun 17, 2004, at 12:49 PM, John Baltutis wrote:

> or errors with when any alpha number greater than tenth is used in the
> second example below: both running in script editor;
>
> tell application "System Events" to get name of first process whose
> frontmost is true
> (where the event log shows it converted to: get name of process 1 whose
> frontmost = true)
>
> tell application "System Events" to get name of eleventh process whose
> frontmost is true
> ->"Syntax Error-A class name can't go after this
> identifier-highlighting
> eleventh process" ?

Because applescript defines only "first" through "tenth." "eleventh"
is treated as a variable.

- -- Michelle

- --
Help, I've caught a cult, and can't get out!

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
Comment: To you from me, courtesy of PGP

iQA/AwUBQNIEZUX3pGKCIlLEEQKzowCg5PsFZWVlUOPIK6ZlucBtmvrKm/UAni5n
ccXGdZzzdQllfsBqCzvM+dqs
=x/DK
-----END PGP SIGNATURE-----
_______________________________________________
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: 
 >Re: Name of Active Process (From: John Baltutis <email@hidden>)

  • Prev by Date: Re: Name of Active Process
  • Next by Date: Re: Name of Active Process
  • Previous by thread: Re: Name of Active Process
  • Next by thread: Re: Name of Active Process
  • Index(es):
    • Date
    • Thread