• 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: Infinite Loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Infinite Loop


  • Subject: Re: Infinite Loop
  • From: Iurista GmbH <email@hidden>
  • Date: Tue, 24 Jan 2012 20:13:48 +0100

Am 24.01.2012 um 19.32 schrieb Robert Poland:

> Hi,
>
> I'm experimenting and in the process I am trying to use the following script. I don't understand why it is an infinite loop. y does contain "GraphicConverter". It fails with GraphicConverter running and not running. It does start GraphicConverter.
>
> What an I doing wrong?
>
> set y to ""
>
> tell application "Smile" to chrono
> repeat while y does not contain "GraphicConverter"
> 	tell application "System Events"
> 		tell application "GraphicConverter"
> 			activate
> 			delay 0.5
> 		end tell
> 		set y to processes
> 	end tell
> end repeat
>
> tell application "Smile" to set x to chrono
> x


Shouldn't it be :
set y to NAME OF processes
Otherwise y contains {"application process "GraphicConverter" of application "System Events"}, which does not seem to be the same as the string "GraphicConverter"
Rudolf
 _______________________________________________
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: 
 >Infinite Loop (From: Robert Poland <email@hidden>)

  • Prev by Date: Infinite Loop
  • Next by Date: Re: Infinite Loop
  • Previous by thread: Infinite Loop
  • Next by thread: Re: Infinite Loop
  • Index(es):
    • Date
    • Thread