AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Download dropbox for mac9/23/2023 Your friends do not have DB accounts but could sign up for the free account and install the DB client. You have spent the money on a DB business account so that you could put some large medium size files up to share with friends. It would be great if you could shed light on the users and frankly hundreds of other users simple request. The application /Applications/Dropbox.app cannot be opened for an unexpected reason, error=Error Domain=NSCocoaErrorDomain Code=260 "The file “Dropbox.app” couldn’t be opened because there is no such file.Since you do not understand the problem, try to follow this scenario. Hdiutil: detach failed - No such file or directory INFO - Changing to other directory than installer to prevent unmount to fail INFO - Application copied to local Applications folder Proceeding with install/update.Ĭp: /Volumes/Dropbox Offline Installer/Dropbox.app: No such file or directory INFO - Checking if application is installed Hdiutil: attach failed - image not recognized When i try and run the above script i get these errors: Installation will begin!"Ĭurl -A "$UserAgent" -L "$DownloadURL" > "$MountPath" No update needed!"Įcho "INFO - Appication not installed. Update will begin!"Įcho "INFO - Current version same or higher than latest stable version. # Copy application from mounted DMG to local Applications folderĮcho "INFO - Latest version newer than current version. # If current version is lower than latest version run function "CheckRunning" else end script successfull If thenĮcho "INFO - Application installed, checking versions."ĭropboxCurrentVersion=$(defaults read "/Applications/Dropbox.app/Contents/ist" CFBundleShortVersionString | sed -e 's/.//g')Įcho "INFO - Current version is: $DropboxCurrentVersion"ĭropboxLatestVersion=$(defaults read "/Volumes/Dropbox Offline Installer/Dropbox.app/Contents/ist" CFBundleShortVersionString | sed -e 's/.//g')Įcho "INFO - Latest version is: $DropboxLatestVersion" # Function to check if application is installed # If Dropbox kill successfull function "CopyApp" will run else script will stop with errorĮcho "INFO - Application kill confirmed!"Įcho "ERROR - Could not kill application"Įcho "INFO - Application is not running. # If Dropbox is running kill its processesĮcho "INFO - Application is currently running, trying to kill application processes" # Function to check if application is running # Function to copy application from mounted DMG to local Applications folderĬopy=$(cp -R "/Volumes/Dropbox Offline Installer/Dropbox.app" "/Applications/Dropbox.app")Įcho "INFO - Application copied to local Applications folder"Įcho "ERROR- Could not copy files from mounted DMG to local Applications folder" MountPath="/var/tmp/DropBox Installer.dmg" # - v1.2 Martin Kretz, : Added StableVersion variable to populate the new download URLĬurrentUser=$(scutil ]*>//g' | sed 's/^ *//g') Try it and come back to me if there are any issues. It should work on both Intel and M1 processors. I've changed the script to make it work, how I get the latest stable version number is not pretty but it works. Hi and checked the script again and the reason that it doesn't work is because of how Dropbox publishes the dmg, the URL has changed. Hdiutil detach /Volumes/Dropbox Offline Installer/ -force # Change to other directory than installer to prevent unmount to failĮcho "INFO - Changing to other directory than installer to prevent unmount to fail" # Check if application is already installedĮcho "INFO - Checking if application is installed" # - v1.1 Martin Kretz, : Changed download URL, unmount behavior and added functions and checks # Description: Installs or updates Dropbox The script works as an Dropbox updater too (if the built in updater doesn't work)! #!/bin/bash I changed download URL, unmount behavior and added functions and checks I tried the script too and it didn't work.
0 Comments
Read More
Leave a Reply. |