grefel
Community Expert
grefel
Community Expert
Activity
‎Oct 31, 2024
03:47 AM
5 Upvotes
Here we go: My version of Adobe #InDesign CC 2025 #ExtendScript DOM API Docs http://www.indesignjs.de/extendscriptAPI/indesign-latest/ also very useful for uxp scripting
... View more
‎Sep 25, 2023
03:22 AM
2 Upvotes
There seems to be a problem with the InDesign adobe server. Teams Accounts seem to run, Standard accounts can no longer launch InDesign. A solution (Windows only?) is to start without internet connection (after that it can be activated again). See https://www.linkedin.com/posts/gregor-fellenz_adobe-indesign-activity-7111993985014878209-cx5y?utm_source=share&utm_medium=member_desktop
... View more
‎May 24, 2023
08:14 AM
Unfortunately, the solution from Carlos Canto does not work with my Illsutrator 27.5/Windows 10 🙂
... View more
‎Nov 29, 2022
11:57 PM
I do not know any other possibility to handle this case. In terms of readability of would prefer a three liner without for-loop.
... View more
‎Nov 23, 2022
08:45 AM
1 Upvote
Its all in the Document https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Document.html and Application Object https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html Print Preset you get via app.printerPresets.itemByName("Name"); The full Path is in Document.fullName start printing with Document.print(false, preset) https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Document.html#d1e49521__d1e55139
... View more
‎May 09, 2022
10:50 AM
As far as I know you cannot add the pdf javascript in InDesign.
... View more
‎May 10, 2021
07:46 AM
2 Upvotes
Peter scripts works fine. Fixed a little glitch in the second for loop (>= instead of >) function remmoveMasterSpreads(dok) {
// Peter Kahrel https://community.adobe.com/t5/indesign/delete-unused-master-spreads/td-p/7433938
var appliedToPages = {};
var appliedToMasters = {};
// Get the names of the masters applied to document pages
var pages = dok.pages.everyItem().getElements();
for (var i = pages.length - 1; i >= 0; i--) {
var page = pages[i];
if (page.appliedMaster !== null) {
appliedToPages[page.appliedMaster.name] = true;
}
}
// Get the names of masters applied to masters (i.e. masters based on other masters)
var masterPages = dok.masterSpreads.everyItem().pages.everyItem().getElements();
for (i = masterPages.length - 1; i >= 0; i--) {
var masterPage = masterPages[i]
if (masterPage.appliedMaster !== null) {
appliedToMasters[masterPage.appliedMaster.name] = true;
}
}
// Delete masters that are not applied to any document pages or other masters
var masterSpreads = dok.masterSpreads.everyItem().getElements();
for (i = masterSpreads.length - 1; i > 0; i--) {
var masterSpread = masterSpreads[i];
if (!appliedToPages[masterSpread.name] && !appliedToMasters[masterSpread.name]) {
masterSpread.remove();
}
}
}
remmoveMasterSpreads(app.activeDocument)
... View more
‎Oct 28, 2020
04:21 AM
8 Upvotes
I've just updated my representation of the Scripting DOM API Documentation for InDesign CC 2021. http://www.indesignjs.de/extendscriptAPI/indesign-latest/ The website supports copy & paste for every text where the copy icon appears while hoovering with the mouse. You can find a short overview of the DOM here: http://www.indesignjs.de/auflage2/wp-content/uploads/2015/04/InDesign_Skripting_Kurzreferenz.pdf In case you're interested in the creation process, have a look at the transformations at https://github.com/grefel/extendscriptApiDoc A big THANK YOU towards jongware who inspired me with his version at http://jongware.mit.edu/ for the work!
... View more
‎Jun 03, 2020
06:33 AM
1 Upvote
Another approach could be https://github.com/grefel/restix HTTPS supported Works form CS4 to CC 2018 (ExtendScript based library) Based on VBScript/ServerXMLHTTP (Win) AppleScript/curl (Mac) relies on app.doScript()
... View more
‎Nov 19, 2019
12:16 AM
5 Upvotes
I've just updated my representation of the Scripting DOM API Documentation for InDesign CC 2020. http://www.indesignjs.de/extendscriptAPI/indesign-latest/ The website supports copy & paste for every text where the copy icon appears while hoovering with the mouse. You can find a short overview of the DOM here: http://www.indesignjs.de/auflage2/wp-content/uploads/2015/04/InDesign_Skripting_Kurzreferenz.pdf Code Completion for Sublime Text is available here: https://www.indesignjs.de/extendscriptAPI/indesign-latest/jsx.sublime-completions If there is interest in IntelliSense/VS Code - with some help how to structure IntelliSense Code Completion I will provide that happily. In case you're interested in the creation process, have a look at the transformations at https://github.com/grefel/extendscriptApiDoc A big THANK YOU towards jongware who inspired me with his version at http://jongware.mit.edu/ for the work!
... View more
‎Aug 16, 2019
08:07 AM
1 Upvote
If you want to create Hyperlinks from URLs. This is a quite difficult task... You could have a look at this script GitHub - grefel/createHyperlinks: Create InDesign hyperlinks from URLs and mail adresses which performs far better than the shipped version at the hyperlinks panel. But you will still find edge cases where a valid URL is not located.
... View more
‎Jul 08, 2019
10:49 AM
I can confirm the issue. Downgrading helps.
... View more
‎May 03, 2019
05:56 AM
You can do it even with CEP https://medium.com/adobetech/how-to-build-a-node-js-server-in-a-panel-ba1d63ea67e2 I would love to see a one liner and not all that overhead 🙂
... View more
‎May 03, 2019
12:22 AM
5 Upvotes
More and more work is shifting into online resources (name it cloud, if you wish). With InDesign we cannot access these resources out of the box. A real innovation would be the ability to access HTTPS/REST. There are two obvious and many other use cases: Link Images/Assets on the web (from any source and DAM-Systems). Access Content (CMS or similar systems) In InDesign that might bei simply as my press2id (GitHub - grefel/press2id: Connect Adobe InDesign to a Wordpress Blog via REST ) or this XD plugin Data Populator (https://www.datapopulator.com/ ) From an extension/scripitng perspective we could manage Cloud-Workflows with ease. The current situation, were ID only sits in the file system is so much 90ties...
... View more
‎Mar 23, 2019
02:21 AM
Thanks for the clarification Marc
... View more
‎Mar 21, 2019
07:06 AM
1 Upvote
Behind Position.SUPERSCRIPT is acutally a Number (in this case 1935831907) InDesign ExtendScript API (14.0) . Use this in your JSON. Simply omit the " "position": Position.SUPERSCRIPT
... View more
‎Feb 02, 2019
06:40 AM
You may know my InDesign Desktop API Reference here: http://www.indesignjs.de/extendscriptAPI/indesign-latest/ I just put the docs for InDesign Server online: https://www.indesignjs.de/extendscriptAPI/indesign-server-latest/ The website supports copy & paste for every text where the copy icon appears while hoovering with the mouse. In case you're interested in the creation process, have a look at the transformations at https://github.com/grefel/extendscriptApiDoc A big THANK YOU towards jongware who inspired me with his version at http://jongware.mit.edu/ for the work!
... View more
‎Nov 20, 2018
02:41 AM
1 Upvote
Starting from this morning I get the Error Message "(#1116) Can't start debug session." on my Mac for any target / Application. ESTK 4.0.0.1 MacOS 10.13.6 (High Sierra) Scrips are running, but the message is annoying. Any Ideas? I had some minor security Updates on my Mac today. This guy on debugging - Extendscript Toolkit debugger fails: Can't start debug session - Stack Overflow has the same problem starting from today. Anyone encountering this problem as well?
... View more
‎Oct 18, 2018
02:06 AM
1 Upvote
Loic.Aigon schrieb Hi grefel Thanks for the good work ! Guys, how could we show our gratitude, paypal donation ? You're welcome. Give the next person a
... View more
‎Oct 18, 2018
02:04 AM
A CHM version! (But the zip also includes the HTML. As it's also a separate download, perhaps you could remove it from there.) Done. Sorry for that. I don't use CHM and just run a ready made CHM process from oxygen. I hope it works altogether...
... View more
‎Oct 18, 2018
12:23 AM
3 Upvotes
I've just updated my representation of the Scripting DOM API Documentation for InDesign CC 2019. http://www.indesignjs.de/extendscriptAPI/indesign-latest/ The website supports copy & paste for every text where the copy icon appears while hoovering with the mouse. You can find a short overview of the DOM here: http://www.indesignjs.de/auflage2/wp-content/uploads/2015/04/InDesign_Skripting_Kurzreferenz.pdf If your're looking for offline usage check out the HTML Version https://www.indesignjs.de/extendscriptAPI/indesign14.zip or CHM https://www.indesignjs.de/extendscriptAPI/chm_indesign14.zip Code Completion for Sublime Text is available here: https://www.indesignjs.de/extendscriptAPI/indesign-latest/jsx.sublime-completions If there is interest in IntelliSense/VS Code - with your help how to structure IntelliSense Code Completion I will provide that happily. In case you're interested in the creation process, have a look at the transformations at https://github.com/grefel/extendscriptApiDoc A big THANK YOU towards jongware who inspired me with his version at http://jongware.mit.edu/ for the work!
... View more
‎Mar 29, 2018
05:01 AM
it has to be returnValue ! thanks for sharing. stole me also one hour #headbanging
... View more
‎Oct 28, 2017
12:32 PM
1 Upvote
Davide, Thanks for posting it here. I do 100% InDesign scripting and do not wander around in the PS forums 🙂 I'll try to update the OMV whenever possible. The best URL is https://www.indesignjs.de/extendscriptAPI/photoshop-latest/ its currently linked to CC 2015.5, but will link always to the most recent version.
... View more
‎Oct 23, 2017
12:54 AM
2 Upvotes
I've just updated my representation of the Scripting DOM API Documentation for InDesign CC 2018 (13). http://www.indesignjs.de/extendscriptAPI/indesign-latest/ The website supports copy & paste for every text where the copy icon appears while hoovering with the mouse. You can find a short overview of the DOM here: http://www.indesignjs.de/auflage2/wp-content/uploads/2015/04/InDesign_Skripting_Kurzreferenz.pdf In case you're interested in the creation process, have a look at the transformations at https://github.com/grefel/extendscriptApiDoc A big THANK YOU towards jongware who inspired me with his version at http://jongware.mit.edu/ for the work!
... View more
‎Mar 10, 2017
01:28 AM
I'm quite sure that place() works the same way in 2015.4 (11.4.0.90) and 2017 and all the other version since I started scripting with CS3. To check: Do you use the mentioned code block with unlink: app.activeDocument.textFrames[0].place(icmlFile); dok.links.itemByName(icmlFile.name).unlink();
... View more
‎Jan 11, 2017
01:55 AM
There is no wrapper for String or Stream. I would write a temporary file to disk.
... View more
‎Jan 03, 2017
02:54 AM
You simply place the ICML-File into a Textframe: app.activeDocument.textFrames[0].place(icmlFile); // optional unlink dok.links.itemByName(icmlFile.name).unlink();
... View more
‎Jan 03, 2017
02:26 AM
Hey Uwe, Thanks for mentionining my DOM documentation. Please not the link http://www.indesignjs.de/extendscriptAPI/indesign-latest/ to the latest version (for now 12 - CC 2017). In my opinion this is the link to bookmark, the versioned links will not update. Viele Grüße, Gregor
... View more
‎Nov 07, 2016
12:59 AM
I've just updated my representation of the Scripting DOM API Documentation for InDesign CC 2017. http://www.indesignjs.de/extendscriptAPI/indesign-latest/ The website supports copy & paste for every text where the copy icon appears while hoovering with the mouse. You can find a short overview of the DOM here: http://www.indesignjs.de/auflage2/wp-content/uploads/2015/04/InDesign_Skripting_Kurzrefere nz.pdf In case you're interested in the creation process, have a look at the transformations at https://github.com/grefel/extendscriptApiDoc A big THANK YOU towards jongware who inspired me with his version at http://jongware.mit.edu/ for the work!
... View more
‎Apr 05, 2016
02:50 AM
4 Upvotes
I cannot test with Yosemite or Mavericks but with El Capitan you can disable App Nap systemwide to speed things up. In terminal defaults write NSGlobalDomain NSAppSleepDisabled -bool YES or more lenghty: How to Disable App Nap Completely in Mac OS X This could affect your battery life, but ExtendScript + InDesign debugging is working now again here. I had no sucess with disabling App Nap only for the ExtendScript Toolkit and I could not find how to disable App Nap for InDesign. via Chuck Weger.
... View more