|
|
#1 |
|
Automatically mount Sparsebundle?
Is there any way to do this?
I have a sparsebundle on a fileserver that I use for timemachine backups and everything's great... it's just that I have to manually mount it every time I wake the macbook from sleep. I have tried dragging the sparsebundle into the login items, but that only mounts the shared harddrive and doesn't mount the sparsebundle itself. Any solutions would be awesome, thanks! |
|
|
|
0
|
|
|
#2 |
|
I think you could do it with the below shell script in an Applescript launched at login.
Code:
hdiutil attach -mountpoint ~/myMountPoint mySparsebundle.dmg |
|
|
|
1
|
|
|
#3 |
|
Sorry, I've never used Applescript before, any instructions to do so?
|
|
|
|
0
|
|
|
#4 | |
|
Quote:
Code:
do shell script "hdiutil attach -mountpoint /Volumes/extDriveName mySparsebundle.dmg" |
||
|
|
1
|
|
|
#5 | |||
|
Quote:
Quote:
Quote:
|
||||
|
|
0
|
|
|
#6 | |
|
Quote:
Change the mountpoint /Volumes/extDriveName section to the NAS location. Look toward the bottom of the page I linked and you will also see a way to add the network mount to the Applescript. It is hard for me to do this without knowing what protocol you are using to share. If you post up the NAS share location, I'll try and string it all together into one script for you. |
||
|
|
1
|
|
|
#7 | |
|
Quote:
The NAS share location is - smb://192.168.1.10/Timemachine The sparsebundle inside the shared location is - TimeMachine.sparsebundle Thanks a lot for the help so far.
__________________
Late 2011 15" Macbook Pro - 2.4GHz i7 | 256GB Samsung 8 SSD | 16GB Memory | AMD Radeon HD 6770M iPad Mini - Wifi 32GB iPhone 4 - 16GBTime Machine on Networked Drive Guide |
||
|
|
0
|
|
|
#8 | |
|
Quote:
Code:
try
mount volume "smb://192.168.1.10/Timemachine"
end try
do shell script "hdiutil attach -mountpoint smb://192.168.1.10/Timemachine TimeMachine.sparsebundle"
|
||
|
|
1
|
|
|
#9 | |
|
Quote:
Used this and it looks to be working. Just added 'Volumes/TimeMachine/' before the sparsebundle Code:
try mount volume "smb://192.168.1.10/Timemachine" end try do shell script "hdiutil attach -mountpoint smb://192.168.1.10/Timemachine Volumes/TimeMachine/TimeMachine.sparsebundle"
__________________
Late 2011 15" Macbook Pro - 2.4GHz i7 | 256GB Samsung 8 SSD | 16GB Memory | AMD Radeon HD 6770M iPad Mini - Wifi 32GB iPhone 4 - 16GBTime Machine on Networked Drive Guide Last edited by Namtaro; Nov 25, 2012 at 01:16 PM. |
||
|
|
0
|
|
|
#10 | |
|
Quote:
Yes... just save as an Applescript where ever you want. Documents is fine. Then just add it as a login item. All set.
|
||
|
|
1
|
|
|
#11 | |
|
Quote:
![]() Nevermind, found the solution - I had to export it as an Application ![]() Thanks for all the help, Weaselboy!
__________________
Late 2011 15" Macbook Pro - 2.4GHz i7 | 256GB Samsung 8 SSD | 16GB Memory | AMD Radeon HD 6770M iPad Mini - Wifi 32GB iPhone 4 - 16GBTime Machine on Networked Drive Guide Last edited by Namtaro; Nov 25, 2012 at 10:23 PM. |
||
|
|
1
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 12:21 PM.







iPhone 4 - 16GB
Linear Mode
