This is my first post, so bear with me if already answered somewhere else:)
I have created a small “Add new pictures to iPhoto” script. It looks like this:
Ask for confirmation that my NAS shares are mounted, if yes go on,
Find Finder Item, where - in my picture share, whose - Kind is Image, AND, date modified is today.
Add Photos to Album
This works if I add pictures to my share which were taken today, and I run the script. However, if I have taken pictures over a few days, and add these to the share, and run the script, it only finds the ones which were taken today. This is because the Date Created and the Date Modified are the same.
Is there a way I can ask in step 2, that it finds all pictures whose date created/modified is since the last time I ran the script? Or any other ideas how to add pictures to iPhoto, which I have put onto a NAS share, and not get all my pictures in the results list. BTW - I run iPhoto without “copy items to the iPhoto library”, and keep all my originals on my NAS share (35’000 pictures).
try something like this, the persistence of property works reliably, if the script is saved as an application
property lastRun : missing value
tell (current date) to set today to it - (its time)
if lastRun is missing value then
set lastRun to current date
You can automate your step number 1 as follows. This way you will only be presented with a dialog box if the NAS drive is not mounted.
set nasDiskName to "Backups" -- put the name of your nas drive here
if (list disks) does not contain nasDiskName then
tell me to display dialog "Please mount the disk \"" & nasDiskName & "\" before proceeding" default button 2 with icon caution