Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 10, 2013, 07:22 AM   #1
ninecows
macrumors newbie
 
Join Date: Apr 2012
load iphotolibrary on NAS

I followed the "harder way" of sharing an iphotolibrary between several macs on this guide:

http://www.maclife.com/article/howto...worked_storage

But it takes several steps to load the library (I can live with that, but the WAF is too low)

I have to:
  1. make sure that the share "pictures" on my NAS is mounted
  2. then open/mount the iPhotoLibrary.dmg file on /Volumes/Pictures/
  3. finally open the ourpictures.photolibrary file on the newly mounted /Volumes/iPhotoLibrary.


I tried making a script to do all of the above, but I cant get it to work... I'm pretty new in this scripting stuff. Can anyone help me with a complete script that will do this?

I got so far that I can get the iPhotoLibrary.dmg mounted by doing this:

Code:
try
	mount volume "afp://NAS/Pictures"
	
	do shell script "hdiutil mount '/Volumes/Pictures/iPhotoLibrary.dmg'"
	
on error
end try
...but if I put anything after this script I will get an error about line ends and the " not being right...

Last edited by ninecows; Mar 10, 2013 at 07:27 AM.
ninecows is offline   0 Reply With Quote
Old Mar 10, 2013, 09:21 AM   #2
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: Belgium
What exactly are you trying to put after the try block? Please post your entire script and a screenshot of the contents of the iPhotoLibrary.dmg when it's mounted.
__________________
Space Corps Directive 34124
kryten2 is offline   0 Reply With Quote
Old Mar 10, 2013, 09:42 AM   #3
ninecows
Thread Starter
macrumors newbie
 
Join Date: Apr 2012
I was trying stuff like

Code:
open document file "iPhoto-bibliotek.photolibrary" of disk "iPhotoLibrary"
basically just recorded via applescript.

Anyway I tried this:

Code:
do shell script "open /Volumes/iPhotoLibrary/ourpictures.photolibrary"
and it worked :-)
ninecows is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
NAS + ATV, NAS + Mac Mini, or Mac Mini alone for music? mcdj Digital Audio 3 Apr 17, 2013 06:44 PM
Nas-to-Home Sharing Apple TV vs Nas-to-Mac iTunes Airplay Stream? iOrbit Apple TV and Home Theater 1 Feb 2, 2013 10:35 PM
Moving iTunes library from PC to NAS then accessing Music on NAS from new MAC dtos01 Mac Applications and Mac App Store 3 Aug 13, 2012 09:41 PM
Backing up a NAS to a NAS with or without a Mac involved? infobleep Mac Peripherals 7 Aug 4, 2012 08:06 AM

Forum Jump

All times are GMT -5. The time now is 04:04 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC