Set theVolume to ...whose name begins with
How can I set theVolume to one of my drives that begin with Images
I need to add it to my scripts where it will be used on each computer but referencing a different external drive.
Many Thanks
Matt
How can I set theVolume to one of my drives that begin with Images
I need to add it to my scripts where it will be used on each computer but referencing a different external drive.
Many Thanks
Matt
Someone will be along with a shell script, but this'll work in Finder:
tell application "Finder"
set allDisks to disks
repeat with theDisk in allDisks
if name of theDisk starts with "yourstring" then
set theVolume to theDisk
return theVolume
exit repeat
end if
end repeat
display dialog "No disk found"
end tell
Set theVolume to ...whose name begins with