• 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
How to build valid folder path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to build valid folder path


  • Subject: How to build valid folder path
  • From: Mark Dawson <email@hidden>
  • Date: Wed, 17 Dec 2003 10:36:24 -0800

I want to copy a file into a folder, using the "move" command. However, I'm having trouble getting the right type for the "to" piece

I'm doing a "move theItem to loc"

I'm setting loc to be: set loc to (startPath & bundleName & ":Contents:") as string

If I manually type in the path, everything works. However, if I use "loc" or "loc as string", I get an error, "Finder can't handle objects of this type". As best as I can tell, a display dialog of "loc" before this call shows the exact same path that I manually typed in, so it seems to be built correctly.

What could I be doing wrong?

Thanks!

mark
_______________________________________________
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:
    • Re: How to build valid folder path
      • From: Gary Lists <email@hidden>
    • Re: How to build valid folder path
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Floating Window in Xcode?
  • Next by Date: Re: Open Dialog Sort Order
  • Previous by thread: Re: Filter reference form question
  • Next by thread: Re: How to build valid folder path
  • Index(es):
    • Date
    • Thread