• 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: Roger_Jolly <email@hidden>
  • Date: Fri, 19 Jul 2002 12:52:46 +0200

Hi Kris,

I think the problem is you first slash. It shouldn't be there, try:

tell application "Finder"
move file ":Users:kris:Desktop:foo" to folder
":Users:kris:Documents"
end tell

If that doesn't help, I'll try and start thinking ;-)

Roger

on 18-07-2002 19:18, Kris Steinhoff at email@hidden wrote:

> Roger,
>
> thanks for your advice. it looks like your routines sorted out my problem
> with the paths, but I'm still having some trouble. 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.
>
> thanks for any help
>
> -kris
_______________________________________________
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.

  • Prev by Date: Re: Creator Types in OS X...
  • Next by Date: Re: Inventory of HD contents with date/time and path info
  • Previous by thread: Re: unix style paths
  • Next by thread: Re: unix style paths
  • Index(es):
    • Date
    • Thread