Re: can't find error
Re: can't find error
- Subject: Re: can't find error
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 04 Feb 2015 19:12:33 +0000
- Thread-topic: can't find error
I seem to remember an issue where a variable could become "undefined" if
it's set to something like a missing value. Anyone?
On 2/4/15, 11:08 AM, "Alex Zavatone" <email@hidden> wrote:
>Try logging the value of processList within a try block right after you
>set it. This should tell you if it has a value at the time you need it.
>
>Sent from my iPad. Please pardon typos.
>
>On Feb 4, 2015, at 2:02 PM, Robert Poland <email@hidden> wrote:
>
>> Hi,
>>
>> I have this small part of a large script that when by it¹s self it
>>works.
>>
>> But when as part of the larger script I get the error ³The variable
>>processlist is not defined².
>>
>> It is used several times and only fails late in the script.
>>
>> I have rebooted and restarted Smile and Script Editor several times.
>>
>> Any ideas?
>>
>>
>> <script>
>> tell application "System Events"
>> delay 0.3
>> set processlist to name of every process
>> delay 0.3
>> if processlist does not contain "Skype" then
>> repeat while processlist does not contain "Skype"
>> tell application "Skype" to launch
>> delay 0.3
>> set processlist to name of every process
>> end repeat
>> end if # does not contain "Skype"
>> end tell # System Events
>> beep
>> </script>
>>
>> TIA,
>>
>> Robert Poland
>> Fort Collins CO
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>>.com
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to 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:
>imes.com
>Archives: http://lists.apple.com/archives/applescript-users
>
>This email sent to 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