• 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: unix style paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • OS 9 and Saving Excel Work Books
      • From: Jason Bourque <email@hidden>
  • Prev by Date: Re: Passing *possible* variables to a handler
  • Next by Date: Re: Server error 19?
  • Previous by thread: Re: unix style paths
  • Next by thread: OS 9 and Saving Excel Work Books
  • Index(es):
    • Date
    • Thread