How to move a file to a folder on apple script?
MacBook Pro (13-inch Mid 2012), macOS Sierra (10.12)
1. Then use a path starting with "Volumes:volumename".
2. Because the path in the script is the same as the one on the disk.
3. The slash-delimited paths should only be used in do shell script statements.
4. Use 'folder "Applications" of startup disk'.
(147520)
One tip, sometimes when working in AppleScript and Terminal you can drag files and folders to the window to get the correct path name entered. This is particularly handy in Terminal where you may have long path names and also you need to escape spaces in the path name.
Use:
tell app “Finder:
move file "Desktop:testpic.png" of home to folder "Desktop:Test Folder" of home
end tell
(147517)
Check that the folder exists in the Finder, including spacing and capitalization.
(147518)
Remove the final space from the script. TestFolder isn’t Test Folder.
(147519)
Great it worked. Couple questions:
What if the file is on an external disk?
Why did this work?
Is there anyway to use the strings or no?
What if the folder is in applications folder?
Thanks again.
Perfect!
Thanks again for the quick reply.
Never mind I missed type.
Include Contents: as part of the path, such as "Applications:ActionWall.app:Contents:Delete".
(147523)
Use:
to folder "Volumes:JB BACKUP:Footage"
(148130)
How to move a file to a folder on apple script?