• 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: Move script problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Move script problem (From: Bob Hallam <email@hidden>)

  • Prev by Date: Re: Chevrons test
  • Next by Date: Re: Address Book scripting
  • Previous by thread: Re: Move script problem
  • Next by thread: Click at (x,y)
  • Index(es):
    • Date
    • Thread