Re: Move script problem
Re: Move script problem
- Subject: Re: Move script problem
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 12 Sep 2004 09:51:25 -0700
Title: Re: Move script problem
On 9/12/04 5:59 AM, "Bob Hallam" <email@hidden> wrote:
I'm having trouble with a part of a script that is supposed to move a bad file to an error folder. The move doesn't happen and the script stops.
Here's what I'm doing now:
on runError(this_File)
set Error_Folder to "OS_X:Users:Thisuser:Desktop:ERROR:" as alias
tell application "Finder"
move this_File to Error_Folder
beep 2
end tell
end runError
What am I doing wrong?
Well, what 'type' is 'this_File'? You haven't included that part of the script. Is it an alias, or a Finder object (Finder file)? If so, that would normally work. If it's a string, then it will error, and you should fix it. If you're moving it to another disk or partition, it will duplicate it there without deleting the original (as in the UI) but it won't error. If either the file, its containing folder, or the folder you're moving it to, have permissions that don't include you or your script, you should be getting a more descriptive error. So I suspect the problem is that you aren't supplying an alias or Finder file to the handler. Or do you see anything else?
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden