Re: Scripting from Photos to Outlook
Re: Scripting from Photos to Outlook
- Subject: Re: Scripting from Photos to Outlook
- From: Deivy Petrescu <email@hidden>
- Date: Fri, 7 Jul 2017 19:23:36 -0400
> On Jul 7, 2017, at 18:46 , Takaaki Naganoya <email@hidden> wrote:
>
> 2017/07/08 4:12、Deivy Petrescu <email@hidden>のメール:
>>> On Jul 6, 2017, at 20:23 , Takaaki Naganoya <email@hidden> wrote:
>>>
>>>> 2017/07/05 13:58、Deivy Petrescu <email@hidden>のメール:
>>>>
>>>> --set fpath to do shell script "locate " & nome
>>>> set fpath to do shell script “mdfind -name " & nome
>>>
>>> Photos.app stores photo image files on local storage and cloud.
>>> This description can not handle images on cloud storage, I think.
>>
>> You are absolutely right.
>> And, I forgot to mention that in my post.
>> Initially I selected photos that were in the cloud and the script did not
>> work.
>> Furthermore, I was sloppy in my script because I should have mentioned that
>> probably the folder where all the photos of Photo are could be given as a
>> parameter…
>>
>> set fpath to do shell script “mdfind -onlyin ContainerFolder -name “ & nome
>>
>> Thanks for pointing it out.
>
> So, you have to *export* it first to an appropriate directory. You can get
> image file whether it is on local or on cloud.
>
No, not really.
Sorry if I wasn’t clear.
The point is, the script gets from Photos the name of the file, which might
exist somewhere else in the computer.
So, to get the right photo, hopefully, would be necessary to get inside the
Photos folder, that is, ContainerFolder is actually
/Users/userName/Pictures/iPhoto\ Library.photolibrary/Masters/
If you “export” the iCloud pictures to a local file, then, you don’t need to
script Photos because, presumably, you know where your photos are (the path).
Deivy Petrescu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden