Re: InDesign; using objects from CC Libraries?
Re: InDesign; using objects from CC Libraries?
- Subject: Re: InDesign; using objects from CC Libraries?
- From: James Yanchak via AppleScript-Users <email@hidden>
- Date: Thu, 30 Apr 2020 07:37:23 -0400
Oops, you are correct, this is the classic library, not the cloud based one.
james
> On Apr 30, 2020, at 07:29, GNDGN <email@hidden> wrote:
>
> But this is just for classic libraries and not for CC libraries, isn't it?
>
>
>> Am 30.04.2020 um 13:23 schrieb James Yanchak via AppleScript-Users
>> <email@hidden
>> <mailto:email@hidden>>:
>>
>> I wrote this code in 2018, but it still works for CC 2020. I get the
>> individual assets (icons) of all libraries (you could call every library
>> then go through each library if you want) then collect the ones I want.
>>
>> tell application "Adobe InDesign 2020"
>> set paste remembers layers of clipboard preferences to true
>> set theseIcons to every asset of every library
>> repeat with ctI from 1 to count of theseIcons
>> if name of item ctI of theseIcons is "Added" then
>> set iconAdd to item ctI of theseIcons
>> else if name of item ctI of theseIcons is "Deleted" then
>> set iconDelete to item ctI of theseIcons
>> else if name of item ctI of theseIcons is "Modified" then
>> set iconMod to item ctI of theseIcons
>> end if
>> end repeat
>> end tell
>>
>> The panel image for that library.
>> <Screen Shot 2020-04-30 at 07.14.12.png>
>>
>> To place them I select the layout window, then the page (thisNotePage), of
>> the active document (thisDoc) then I place it:
>>
>> tell application "Adobe InDesign 2020"
>> set thisDoc to active document
>> tell active document
>> set mooFar to item 1 of every layout window
>> tell mooFar
>> set active page to thisNotePage
>> end tell
>> set theResult to place asset iconAdd on thisDoc
>> end tell
>> end tell
>>
>> The placement is simply on the page (I am using free-floating icons in the
>> margin), so I move it to the proper location with a bit more code.
>>
>> Hope this helps.
>>
>> james
>>> On Apr 30, 2020, at 03:51, Håvard Graudo via AppleScript-Users
>>> <email@hidden
>>> <mailto:email@hidden>> wrote:
>>>
>>> Is there a way to script getting an object from a CC Library onto an Adobe
>>> InDesign 2020 page?
>>>
>>> I cannot find anything useful in the dictionary, but I may be overlooking
>>> the obvious.
>>>
>>> Håvard
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> AppleScript-Users mailing list (email@hidden
>>> <mailto:email@hidden>)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> Archives: http://lists.apple.com/archives/applescript-users
>>>
>>> This email sent to email@hidden
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (email@hidden
>> <mailto:email@hidden>)
>> Help/Unsubscribe/Update your Subscription:
>> Archives: http://lists.apple.com/archives/applescript-users
>> <http://lists.apple.com/archives/applescript-users>
>>
>> This email sent to email@hidden <mailto: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