• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: why this error code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why this error code


  • Subject: Re: why this error code
  • From: Bob Cuilla <email@hidden>
  • Date: Sun, 20 May 2012 14:53:58 -0400

Thank you, Michelle


On May 20, 2012, at 1:54 PM, Michelle Steiner wrote:

On May 20, 2012, at 9:44 AM, Bob Cuilla wrote:

but i get a applescript error number -10004 in the editor when i view Replies (snippet below)

can anyone explain this?  is it a bogus error?

Yvan explained how to get rid of the error.  I found the following explanation as to why it occurs:

Error -10004 is an Apple Event Privilege Error. From the 10.6 AppleScript Release Notes - "For security reasons, most scripting addition commands now return a “privilege violation” error when sent between application processes." 

Commands from scripting additions should either not be used in a Finder (or any other application) tell statement, or should be prefixed with "tell me" that you are not targeting the the application that's the target of the "tell" block, (e.g., the Finder, as in your script).

-- Michelle 

--
"Experience is that marvelous thing that enables you to recognize a mistake when you make it again."  --F. P. JONES


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
References: 
 >why this error code (From: Bob Cuilla <email@hidden>)
 >Re: why this error code (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: why this error code
  • Next by Date: Re: Choose color with script
  • Previous by thread: Re: why this error code
  • Next by thread: Filtering Out Missing Value
  • Index(es):
    • Date
    • Thread