Re: Finder "duplicate" requirements
Re: Finder "duplicate" requirements
- Subject: Re: Finder "duplicate" requirements
- From: Deivy Petrescu <email@hidden>
- Date: Mon, 29 Jun 2015 20:57:53 -0400
> On Jun 29, 2015, at 20:07 , Shane Stanley <email@hidden> wrote:
>
> On 30 Jun 2015, at 2:21 am, Yvan KOENIG <email@hidden> wrote:
>>
>> POSIX file belongs to the Osax Standard Additions so it's not supposed to be called in a tell application block.
>
> Well yes and no. 'POSIX file' is a bit different because it's a class, not a command.
>
> The other point is that it's not really a "rule" in the strict sense, at least at this stage. That's because if you do send a command to the wrong target, the resulting privilege violation error should be picked up and the command automatically sent again to the correct target.
>
> In terms of this thread, I think the important point is that although using some commands inside tell blocks is a bad idea and will generate privilege errors that then have to be corrected, there's reason to think they should just fail silently as we are seeing here.
>
> That notwithstanding, the advice of using most things scripting-addition-related outside tell blocks is good.
>
>
> --
> Shane Stanley <email@hidden>
Just to remark that if one is using JSA then the errors are not so kind.
However, I do believe that certain SA commands should continue to fail silently.
"display dialog" and “say' for instance.
They are great for debugging.
Deivy Petrescu
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