Re: Move script problem
Re: Move script problem
- Subject: Re: Move script problem
- From: Michelle Steiner <email@hidden>
- Date: Sun, 12 Sep 2004 12:58:04 -0700
On Sep 12, 2004, at 5:59 AM, Bob Hallam 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?
It would help if you told us what the error message is, and on which
line it happens.
For starters, without knowing the above information, I would change
this line:
set Error_Folder to "OS_X:Users:Thisuser:Desktop:ERROR:" as alias
to this:
set Error_Folder to (path to desktop as text) & "ERROR" as alias
-- Michelle
--
There's no place like 127.0.0.1
There's no place like 127.0.0.1
There's no place like 127.0.0.1
_______________________________________________
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