Applescript-Shell Error Question
Applescript-Shell Error Question
- Subject: Applescript-Shell Error Question
- From: Christopher Stone <email@hidden>
- Date: Sat, 15 Sep 2012 10:16:44 -0500
Hey Folks,
This script throws an error if there are items that have no quarantine bit set:
tell application "Finder" set d to target of front window as string end tell set d to POSIX path of d set cmd to "cd " & quoted form of d & ";xattr -d com.apple.quarantine *" do shell script cmd
Is there a way to stop the error from propagating from the shell to Applescript?
I thought I could just do something like: 2>/dev/null
But it doesn't stop Applescript from throwing an error.
I know of course I can just put a try-block in the script, but I'm looking for a little deeper understanding.
Thank you.
-- 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