Skip to main content
Participant
October 14, 2024
Question

Issues Accessing bookContent Properties in UXP Plugin for InDesign

  • October 14, 2024
  • 1 reply
  • 267 views

i'm migrating an old Indesign script i created to process book documents before starting to work on them.
i'm trying to get a list of all documents in the book and open each one, process and save it.
i created a UXP plugin, but when i'm trying to access the bookContent properties like the filePath i'm getting back rejected promisses and not valid objects
i already tried adding full file system permissions with no luck.
i tried

 

await book.bookContents.firstItem().fullName

 


but i'm getting back some kind of Symbol()
without await i get a resolved Promise which the result is an "n"...

 

 

<Title renamed by MOD>

1 reply

Community Expert
February 23, 2025

Hello

I found a post here - is this the same request as it's different user names? 
https://forums.creativeclouddeveloper.com/t/cannot-access-bookcontent-properties/8517

Not sure if UXP supports this - might need to go back to ExtendScript - can you give more details on what you're trying to do?

Legend
February 23, 2025

@Eugene Tyson not sure why you warm up all these old, never answered discussions.

 

My guess would be that the returned object is still a File object, but the UXP way.

https://developer.adobe.com/indesign/uxp/reference/uxp-api/reference-js/Modules/uxp/Persistent%20File%20Storage/File/

 

If so, you'd also better read on and consider all security sensitivities of UXP, namely that a UXP plugin requires extra manifest entries for access anywhere outside its sandbox.

Community Expert
February 23, 2025
quote

@Eugene Tyson not sure why you warm up all these old, never answered discussions.

 


By @Dirk Becker

I go through the no reply threads and see if I can help. If I can't then I leave it for a few days. If nobody replies then I'll try find something, anything, to get a conversation going. 

 

I just want to help.

 

On reflection I see it's oct 2024, usually cop that's really old, missed the date on this one. Somehow it's been on my radar to reply. 

 

Sorry