Re: error number -1799 and good results?
Re: error number -1799 and good results?
- Subject: Re: error number -1799 and good results?
- From: Iurista GmbH <email@hidden>
- Date: Thu, 13 Sep 2012 23:43:05 +0200
Am 13.09.2012 um 21.54 schrieb koenig.yvan:
>
> Le 13/09/2012 à 21:44, Iurista GmbH <email@hidden> a écrit :
>
>> Hi
>>
>> I found this piece of code on http://hintsforums.macworld.com
>>
>> tell application "Finder"
>> set proc_list to name of every process whose visible is true
>> end tell
>>
>> The result is puzzling:
>>
>> tell application "Finder"
>> get name of every process whose visible = true
>> --> error number -1799
>> end tell
>> tell application "System Events"
>> get name of every process whose visible = true
>> --> {"Finder", "AppleScript Editor", "firefox"}
>> end tell
>> Ergebnis:
>> {"Finder", "AppleScript Editor", "firefox"}
>>
>> Why is this error code, although the scripts seems to delivers a proper result?
>> Any hints for my curiosity?
>> Thanks
>> Rudolf
>>
>
>
> My understanding is that the Finder is unable to treat the request so that it is passed to System Events.
> Exactly as when we trigger a function from an OSAX in a tel … end tell block.
Wow, I think I stared to long on the screen. It completely escaped to my attention, that the second command was directed to System Event and not to the Finder...
Thanks everybody for the comments and tipps
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