Re: unix style paths
Re: unix style paths
- Subject: Re: unix style paths
- From: Christopher Nebel <email@hidden>
- Date: Fri, 19 Jul 2002 10:38:06 -0700
On Thursday, July 18, 2002, at 10:18 AM, Kris Steinhoff wrote:
When I specify a path of a file I know exists to try to move it
Applescript says it could not get the file, even though i know it
exists.
---
application "Finder"
move file "/:Users:kris:Desktop:foo" to folder
"/:Users:kris:Documents"
end tell
---
I get the error
---
Execution Error
Finder got an error: Can't get file "/:Users:kris:Desktop:foo".
---
I'm not sure what I'm doing wrong.
If your startup disk is actually named "/", then your script looks
correct -- you might try working your way down the hierarchy until it
fails (i.e., get disk "/"; get folder "/:Users", get folder
"/:Users:kris", etc.), and that should give you a better idea where the
problem is.
If your startup disk *isn't* named "/", you should substitute the actual
name of the disk for the "/".
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.