I’m trying to mount an NTFS partition at startup with an application made in AppleScript. Being brand new to this I’ve run into a problem executing a do shell script command.
How should I format the following as do shell script (“”):
/usr/local/bin/ntfs-3g /dev/disk1s1 /Volumes/ntfs -ovolname="External Storage"
Thanks in advance for any/all help,
do shell script "usr/local/bin/ntfs-3g /dev/disk1s1 /Volumes/ntfs -ovolname=External\\ Storage"
Thanks for the quick response.
Excuse my ignorance, but "\ " is an escape to let the script know the space is part of a continued string?
yes, in the Terminal you would write "\ " to escape the space character, in AppleScript you must also escape the backslash (with another backslash)
alternatively you can use
do shell script "usr/local/bin/ntfs-3g /dev/disk1s1 /Volumes/ntfs -ovolname=" & quoted form of "External Storage"