Re: special characters in file names
Re: special characters in file names
- Subject: Re: special characters in file names
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 12 Oct 2005 17:28:10 +0200
Le 12 oct. 2005 , à 1:07, Jim Brandt a écrit :
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?
For me under 10.3.9, this code works well:
property the_File : "Macintosh HD:Users:yvankoenig:Desktop:Image 3.pdf"
set infomac to (path to desktop) as text
tell application "Finder"
set theFile to the_File as alias
duplicate theFile to folder (infomac & "•Originals:")
end tell
Yvan KOENIG
_______________________________________________
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