Adobe InDesign: SDK/Scripting Bugs and Features
118 results found
-
[CS6 to 2020 15.0.1.209] documentPreferences.snippetImportUsesOriginalLocation | values true and false do the opposite what they should do
Hi,
if I set value for snippetImportUsesOriginalLocation of documentPreferences to true, InDesign will place a snippet file with spread.place( snippetFile ) always at the current zero point [0,0].Wheras I set the value to false the snippet will be placed at its original position.
It should be exactly the other way.
Currently value false will use the original position and value true will chose the current zero point as defined with app.documents[0].zeroPoint .
Tested with German InDesign versions:
CS6 8.1.0
CC 2014 10.2.
2020 v. 15.0.1.209
All on WIndows 10.In the discussion linked to below Gerald Singelmann can see…
1 vote -
nextItem() doesn't work
Instructions:
- Load Script4.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Run the script
- Observe that line 8 gives an "Object is invalid" error. That's because the nextItem() on line 6 didn't work.
To see this more clearly:
- Load Script4.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Comment line 6 and uncomment line 7.
- Run the script
- The script runs fine. It prints out "2", the name of the second page.
In other words, nextItem() is broken. The work around (in this case) is to use an…
1 voteWe’re reviewing this issue.
—
Adobe InDesign team -
Script failing ... strangely
Instructions:
- Load Script.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Run the script
- Observe that the script gives an error on line 6 (Invalid object for this request.) This is because TextFrame281 and TextFrame284 are the same object. They should be different objects.
To see this more clearly:
- Load script.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Uncomment line 4 (var temp = TextFrame_281.id)
- Run the script
- The script runs fine. If you look in the document that has been created, the two text…
1 vote -
1 vote
-
1 vote
-
Allow for control of undo tracking Re: Undo Set Scripting Tag
Currently the only way to manipulate the undo queue is to run a script with doScript and even then it's very limiting. With my current event listeners, the user clicks around a few times and the undo queue fills up with 'Undo Set Scripting Tag' and they are unable to undo simple changes without holding down CTRL+Z for a few seconds. I am unable to use doScript because I need to return values to my interface. I would like to suggest an option to temporarily suspend undo tracking during certain script actions. Some of my actions do not change the…
1 vote -
Where to find InDesign document links API reference?
Where do I find the API reference for document links? (As show in the Links tab.) I've found scripting guides and various bits of documentation, but I can't find a complete object model reference.
Newcomer to InDesign scripting. All I need is to dump the full path of every linked image to a text file. I've found a script online which does this, but it only outputs each link's 'name'. A fuller version of the same script dumps out the size and file type as well.
I'd like to modify this script to dump out 'path', but 'path' doesn't seem…
1 vote -
The Script FindChangeByList.jsx not working CC2019
Dont Working script
1 vote -
Preferences folder access via ExtendScript with macOS Catalina public beta 3
I've installed macOS X Catalina public beta 3 and I have an annoying issue with scripting.
I can't access to the user's preferences folder via Javascript even if I've assigned to InDesign full file system access in the security panel of the system preferences.
I can't read any files inside the user's Library so that I can't load a GREP query for example.Hope you find a fix on this.
1 vote -
Запись операций
Возможно создать вкладку с записью операций, чтобы принцип работы был реализован, как в Photoshop.
А также панель с историей работы в файле.
Скрипт работы с формулами непосредственно в самой программе InDesign.1 vote -
ExtendScript feature: asynchronous PDF export for indb books
I'd like to see an asynchronous export option for indb books as it exists for indd documents because why not.
Currently I work with 10 indb projects and I'd like to export them by 4 using all the power of my 4-core cpu, but I can only export them one by one due to lack of asynchronous export option.
At the same time I'm able to export 4 indd files using existing asynchronousExportFile() method.1 vote -
Arrow with start/end in scale
If I have an line with a start/end and it's in different scale, when use transformation method, the start/end doesn't scale, even with "Adjust Stroke Weight when Scaling" and "Adjust Effects when Scaling" are turned on. See screenshots of before and after procedure.
1 vote -
Crash when calling IActionManager::PerformAction() in InDesign SDK Sample
Steps:
1. On macOS, build sample plugin "SnapShot.sdk.xcodeproj" which is from Adobe InDesign SDK.
2. Load the plugin in InDesign.
3. Create a empty new document.
4. Open panel "Windows->SnippetRunner[US]"
5. From snippet name drop down list, select "ManipulateStructureView"
6. Cick "Go" icon button.
7. On parameter dialog, select "ChangeStructureViewState(toggle)".
8. Click OK.
9. Crash.
The attachment is the crash log.For the same plugin with same operations, the crash only occurs on macOS, but not on Windows.
1 vote -
problems with work speed
I change formats of single letters or total paragraphs in a book. If I do this at a start of a indesign file (70 pages, 270 footnotes, no pictures, only opened part of the book) it lasts up to 40 seconds until I can work further. If I do this further to the end of the document the delay is lessens.
My Win-10-PC has 16 GB RAM and i7-processor1 vote -
binding
인디자인 cc 2019 사용하는 캡쳐 화면 첨부를 올려드립니다.
이 "바인딩" 빨간 네모 표시가 안 나왔으니, 잘 나왔으면 좋겠어요.
바인딩 방향 오른쪽에서 왼쪽 쓰기 페이지...
부탁드립니다.
1 vote -
Indesign crash when the graphics inside the table
I want to check the table have any track changes. But I have this case make the Indesign crash if the graphics inside the table using following script.
var abc = app.activeDocument.stories[0].tables[0].changes.length;
1 vote -
InDesign Scripting bug? Master Pageitems of specific Layer as Collection
I want to see all 'master' page items of all master spreads on a specific layer using code like this:
app.activeDocument.layers.itemByName('existLayerName').pageItems.everyItem().getElements();
Even such a layer contains 'master' page items, this code always returns an empty array!
0 votes -
Crash when adding a "checkbox" into a "cell" of a table
I'm trying to add a Checkbox into a cell of a table with JavaScript.
When executing the code InDesign crashes.With my Script I'm looking for certain text in a table, delete it from the cell and then want to add a checkbox instead. So my code is looking something like this:
var found = app.documents[0].findGrep();
found[0].parent.contents = "";
var myBox = found[0].checkBoxes.add();0 votes
- Don't see your idea?