Applescript, the new Photos app and Instagram
I'm using applescript to add images to the new (Yosemite) Photos app. I'm using the following code:
tell application "Photos"
set ImageFile to POSIX file "~/photos/test.jpg"
set DestinationAlbumName to "Instagram"
if not (exists container named DestinationAlbumName) then
make new album named DestinationAlbumName
end if
import ImageFile into container named DestinationAlbumName with skip check duplicates
end tell
On the face of it this all works just dandy; album is created if it needs to be, image comes in fine. However, heading on over to Instagram, iphone of iPad, when I look for the image I've just added it's not there, nor is the album. It's in the Photos app on the phone and tablet, just Instagram refuses to see it.
If I add an album with an image in it by hand, Instagram sees it.
Apple have precious little to offer by way of examples on this, does anyone have anything to offer?
Thanks.