• 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
special characters in file names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

special characters in file names


  • Subject: special characters in file names
  • From: Jim Brandt <email@hidden>
  • Date: Tue, 11 Oct 2005 18:07:56 -0500

Can someone tell me how to duplicate a file to a folder whose name
contains a character such as a bullet (option-8) or a space?

Here is a line from a script I have:

    duplicate theFile to folder (infomac & "•Originals:")

This results in the following in the event log:

    get document file "asv2n0298.txt" of folder "InfoMac" of disk "HD1"
        "HD1:InfoMac:asv2n0298.txt"
    copy "HD1:InfoMac:asv2n0298.txt" to folder "HD1:InfoMac:•Originals:"
        "Finder got an error: Can't set folder \"HD1:InfoMac:•Originals:\" to \"HD1:InfoMac:asv2n0298.txt\"."


If I create a folder without the bullet in the name and change the line to:

    duplicate theFile to folder (infomac & "Originals:")

,the duplicate statement works correctly.

Putting the complete name of the folder in a variable doesn't work either.

Any suggestions?


Jim Brandt
 _______________________________________________
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

  • Follow-Ups:
    • Re: special characters in file names
      • From: Yvan KOENIG <email@hidden>
    • Re: special characters in file names
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Finder in processes false ?
  • Next by Date: Re: Finder in processes false ?
  • Previous by thread: Re: mount volume, new error from out of the blue
  • Next by thread: Re: special characters in file names
  • Index(es):
    • Date
    • Thread