Re: Error -15266
Re: Error -15266
- Subject: Re: Error -15266
- From: Axel Luttgens <email@hidden>
- Date: Tue, 29 Apr 2008 10:15:13 +0200
Le 28 avr. 08 à 19:19, Luther Fuller a écrit :
Let me bring you up to speed with a more general problem I've been
having ...
I installed 10.5 and created the admin user by migrating from a PPC
G4 with 10.4.11. When I encounter a problem, it is usually connected
with a folder migrated from my old Mac.
Hello Luther,
What exactly do you mean by "...a folder migrated from..."? How
exactly did you "migrate" that folder?
I check the permissions for that folder and find that its
permissions are ...
(unknown), Read only
everyone, Read only
If you allow, let's start with basic facts. ;-)
With such an item, could you execute following commands in
Terminal.app and show us their output?
If it is a file:
ls -alOe /path/to/file
ls -alOen /path/to/file
and if it is a folder:
ls -alOed /path/to/folder
ls -alOend /path/to/folder
This should give us a better understanding of the permissions than the
one provided by the Finder interface.
Adding Me as a Read & Write owner fixed one of these problems. It
does not fix the Temporary Items folder, however. I wonder if adding
the Admin group as Read & Write will work ... (pause while I do
that) ... No!
[...]
The destination folder for 'duplicate' was created by copying an
image disk and has permissions ...
[...]
This application is created by Script Editor upon command from an
AppleScript. It seems odd that it should have an "(unknown)" name in
the permissions. I need tech info on "(unknown)" !
Sorry, I am unable to get a clear picture; too many shortcuts perhaps?
Le 28 avr. 08 à 17:20, Luther Fuller a écrit :
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
This is in a tell block targeted to the Finder, or?
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:"
So, it seems that "Script Bundle Tool.app" exists at the time of
setting the value of objectRef.
What are the permissions, as provided by ls, on the temporary items
folder?
And the ones on "Script Bundle Tool.app" within it (a folder too)?
As well as on the items within the application bundle?
On the other hand, how do you define "projectFolder"?
And what are the permissions on that folder?
The error is -15266
The operation could not be completed because
some items had to be skipped. "Script Bundle
Tool.app"
Does the error really stem from the "duplicate" command?
Or is it triggered in your remove() handler, invoked after a first
error?
Sorry for asking so many questions...
Axel
_______________________________________________
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