| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Peter,_______________________________________________
The following script works for me (regular AppleScript, not Studio):
property prefsFolder : ""
property theFileName : ""
property theDestination : ""
property destinationPath : ""
property thePath : ""
on run
tell application "Finder"
set prefsFolder to (home as text) & "Desktop:"
end tell
set theFileName to "example.txt"
set thePath to (prefsFolder & theFileName)
set theDestination to "some folder"
set destinationPath to (prefsFolder & theDestination & ":")
tell application "Finder"
move alias thePath to alias destinationPath
end tell
end run
The folder path needs to be coerced to alias too. The error you received was misleading
Tom
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.