Hi all
I'm trying to put together a basic AppleScript to check if a volume is present and launch Dropbox.
I keep Dropbox data on a separate encrypted volume and have it prompt for the password at login. If no password is entered, the volume doesn't mount and the Dropbox app shouldn't start.
I have this so far:
>>>>>>>>>>>>>
tell application "System Events" to get the name of every disk
if exists ("Encrypted-Disk-Name") then
tell application "Dropbox"
launch
end tell
end if
>>>>>>>>>>>>>
Any help would be appreciated.
I'm trying to put together a basic AppleScript to check if a volume is present and launch Dropbox.
I keep Dropbox data on a separate encrypted volume and have it prompt for the password at login. If no password is entered, the volume doesn't mount and the Dropbox app shouldn't start.
I have this so far:
>>>>>>>>>>>>>
tell application "System Events" to get the name of every disk
if exists ("Encrypted-Disk-Name") then
tell application "Dropbox"
launch
end tell
end if
>>>>>>>>>>>>>
Any help would be appreciated.