Re: Finder "duplicate" requirements
Re: Finder "duplicate" requirements
- Subject: Re: Finder "duplicate" requirements
- From: Shane Stanley <email@hidden>
- Date: Tue, 30 Jun 2015 10:07:32 +1000
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>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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