Re: Applescript-Shell Error Question
Re: Applescript-Shell Error Question
- Subject: Re: Applescript-Shell Error Question
- From: Alex Zavatone <email@hidden>
- Date: Sat, 15 Sep 2012 18:16:27 -0400
Cool. I didn't get to those messages.
In Xcode making sure my NSNotifications get to the right place and watching Xcode crash itself to keep my life interesting.
On Sep 15, 2012, at 6:01 PM, Christopher Stone wrote:
> On Sep 15, 2012, at 16:09, Alex Zavatone <email@hidden> wrote:
>> Hmmmm. I'm wondering if wrapping it in a try block and on an error, just ignore it and continue?
>>
>> Can you introspect the item, check it first to see which attributes it actually has, and then apply the proper call?
> ______________________________________________________________________
>
> Hey Alex,
>
> I've already hashed this out with Jon and Axel. I don't need a solution to the problem I needed an answer to my question. :)
>
> In this case I don't want to interrogate each file for the quarantine property. All I want to do is run xattr -d against all items in the front window and let the chips fall where they may.
>
> Nor did I want to put the do shell script in a blind try-end-try block. I wanted to negate the error in the shell, and Jon and Axel both provided nearly the same method to do that.
>
> It's simple enough to find items that have the quarantine bit set:
>
> xattr * | egrep -i "quarantine"
>
> Recursively:
>
> xattr -r * | egrep -i "quarantine"
>
> --
> Best Regards,
> Chris
>
>
> _______________________________________________
> 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
_______________________________________________
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