CODE
tell application "Finder"
if exists folder "/Volumes/Advent iPod" = false then
diskutil mount "/dev/disk2s3"
else if exists folder "/Volumes/Advent iPod" = true then
diskutil unmount "/Volumes/Advent iPod"
end if
end tell
if exists folder "/Volumes/Advent iPod" = false then
diskutil mount "/dev/disk2s3"
else if exists folder "/Volumes/Advent iPod" = true then
diskutil unmount "/Volumes/Advent iPod"
end if
end tell
however, when I run it, I get a Syntax error
QUOTE
Expected “then”, etc. but found “.
it then highlights the " in the line
CODE
if exists folder "/Volumes/Advent iPod" = false then
what am I doing wrong, I'm not very experienced in applescripts
