• 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: Error -15266
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error -15266


  • Subject: Re: Error -15266
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 28 Apr 2008 09:22:02 -0700

On Apr 28, 2008, at 8:20 AM, Luther Fuller wrote:

New Mac Mini running with 10.5.2 and already I've got problems with AppleScript.

Here the code ...

	try
		duplicate objectRef to projectFolder with replacing
	on error errText number errNr
		-- temporary diagnostic here
		my remove(objectRef) -- from Temporary Items folder
		error "(at duplicate)" & return & errText number errNr
	end try

Where 'objectRef' is an alias to the Temporary Items folder created by this code ...

set tempRef to (path to temporary items) as alias
set objectRef to (POSIX path of tempRef) & projectName & ".app" as POSIX file
... lots more stuff here
return objectRef as alias


and as text equals ...
"OS_X:private:var:folders:ki:kiuKs3kDEQyc5IM+B4We8k++ +TI:TemporaryItems:Script Bundle Tool.app:"


The error is -15266
	The operation could not be completed because
	some items had to be skipped. "Script Bundle
	Tool.app"

The TemporaryItems folder contains the Script Bundle Tool.app (because I Canceled at temporary diagnostic), but it is non- functional with a -5000 error.

My list of suspicions is growing, but before doing anything, I need to know more details about the -15266 error.
I hope someone knows !!!!

It's a custom Finder error, errFinderCantMoveSource, which sounds like you haven't got write access to something, presumably the thing you're trying to replace in the "duplicate" command, or possibly the directory that it's in.



--Chris Nebel AppleScript Engineering

P.S.: How did I find out that error number? Because I have the developer tools installed, I can search all the headers like this:

find /System/Library/Frameworks -name \*.h -print0 | xargs -0 grep -e -15266
_______________________________________________
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
  • Follow-Ups:
    • Re: Error -15266
      • From: Luther Fuller <email@hidden>
    • Re: Error -15266
      • From: Luther Fuller <email@hidden>
    • Re: Error -15266
      • From: Luther Fuller <email@hidden>
    • Re: Error -15266
      • From: Luther Fuller <email@hidden>
    • Re: Error -15266
      • From: Luther Fuller <email@hidden>
References: 
 >Error -15266 (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Error -15266
  • Next by Date: Re: Error -15266
  • Previous by thread: Re: Error -15266
  • Next by thread: Re: Error -15266
  • Index(es):
    • Date
    • Thread