Re: Infinite Loop
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