Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

WaywardActor

macrumors newbie
Original poster
Feb 27, 2015
2
0
I'm trying to write an Applescript that will get finder to copy a file from one directory to another. It works for "normal" file names. However, when I use a filename that has a blank in the name, it fails. The message is

Finder got an error: Can’t set folder "Macintosh HD:Users:FrederickOchs:Church:photos:Deleted Scans" to file "Macintosh HD:Users:FrederickOchs:Church:photos:Scans:VW0000 3.jpeg".

The script is

tell application "Finder"
copy file "Macintosh HD:Users:FrederickOchs:Church:photos:Scans:VW0000 3.jpeg" to folder "Macintosh HD:Users:FrederickOchs:Church:photos:Deleted Scans"
end tell

Is there a way to get this to work?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.