• 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: Repeat until application is frontmost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repeat until application is frontmost


  • Subject: Re: Repeat until application is frontmost
  • From: Iurista GmbH <email@hidden>
  • Date: Sat, 14 Jan 2012 03:44:25 +0100

Am 13.01.2012 um 20.35 schrieb theDaniel:

> Thank you guys. Already tried the first one, didn't work. Just now tried the second, it didn't work either.
> I'll have to try this on Sno Leo later, but right now I'm on Lion and it don't work. :)
>
> -Daniel
>
> On Jan 13, 2012, KOENIG Yvan wrote:
>
>> If my memory is right, it's not the app which is at front but the application process.
>>
> snip...snip...snip...

> On Jan 13, 2012, Iurista GmbH wrote:
>
>> try to replace the repeat sequence with this code. It's tested with with Snow Leo
>>
>> repeat
>> 	tell application "System Events" to set FA to name of frontmost application
>> 	if (FA contains "your Program name here") then
>> 		exit repeat
>> 	end if
>> end repeat

Well, the "name of frontmost application" usually corresponds to the name of the application process, its the same name. System event can read both, therefore both scripts should be ok
Rudolf



--
The price of freedom is eternal vigilance (Thomas Jefferson, US President)

This mail is from:
Rudolf O. Durrer
IURISTA CONSULT GmbH
Legal Counselors
Switzerland

email@hidden
email@hidden




 _______________________________________________
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: 
 >Repeat until application is frontmost (From: theDaniel <email@hidden>)
 >Re: Repeat until application is frontmost (From: KOENIG Yvan <email@hidden>)
 >Re: Repeat until application is frontmost (From: theDaniel <email@hidden>)

  • Prev by Date: Re: Repeat until application is frontmost
  • Next by Date: alias list broken ?
  • Previous by thread: Re: Repeat until application is frontmost
  • Next by thread: Re: Repeat until application is frontmost
  • Index(es):
    • Date
    • Thread