• 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: can't make alias into type text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't make alias into type text


  • Subject: Re: can't make alias into type text
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 18 Sep 2014 14:45:45 +1000

On 18 Sep 2014, at 2:39 pm, Donald Hall <email@hidden> wrote:

> I have decided to alter my program slightly to use Chris Page’s suggestion:
>
> tell application "System Events" to set frontProcess to the first item of (processes whose frontmost is true)

Why not go one step further:

tell application "System Events" to set frontProcess to (process 1 whose frontmost is true)

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >Re: can't make alias into type text (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: can't make alias into type text
  • Next by Date: is there a path problem?
  • Previous by thread: Re: can't make alias into type text
  • Next by thread: [ANN] MovingImages 0.3a released
  • Index(es):
    • Date
    • Thread