Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

8digital

macrumors newbie
Original poster
Dec 5, 2018
1
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.