spyle
Explorer
spyle
Explorer
Activity
‎Mar 27, 2020
08:03 AM
1 Upvote
For a full reference of what you can do with hyperlinks, see this site: http://jongware.mit.edu/idcs6js/index_Hyperlinks%20Suite.html Specifically, the hyperlinks.add method should do what you need: http://jongware.mit.edu/idcs6js/pc_Hyperlinks.html#add
... View more
‎Mar 27, 2020
08:00 AM
I know this is an old post but this site has been immensly helpful when trying to understand the ExtendScript syntax and objects available in InDesign. http://jongware.mit.edu/idcs6js Other applications are available as well: http://jongware.mit.edu/
... View more
‎Mar 27, 2020
07:56 AM
I use extendscript-repl for quick and dirty testing ExtendScript syntax and representations in InDesign. In addition to full automated tests using jasminejsx, I this project as devDependencies in my project. My main reason to mentioning ExtendScript Debugger was to see if others knew how it communicated with the ExtendScript API when it is debugging. If this "communication" is open and available for developers, we could right tools that access that directly without relying on clunky JXA scripts (which extendscript-repl does).
... View more
‎Mar 09, 2020
06:19 AM
According to this post, it sounds like they aim to make the ExtendScript API open so other IDEs can access it. However, I can't find anything else to support that idea. https://medium.com/adobetech/extendscript-debugger-for-visual-studio-code-mac-prerelease-84040d6cab92#d88e
... View more
‎Mar 09, 2020
06:15 AM
Thanks @Peter_Kahrel. Looks like texts[0] and texts.firstItem() return the same thing, a Text object that returns an Array when contents is called. I'll just have to work around it. I can't see any other way to make the Text object return a non-array. texts[0]: jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).texts[0].toSource()
resolve("(/document[@id=1047]/story[@location=first]/character[0] to /document[@id=1047]/story[@location=first]/character[9])/text[0]")
jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).texts[0].constructor.name
Text
jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).texts[0].contents.toSource()
["This is a "] texts.firstItem(): jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).texts.firstItem().toSource()
resolve("(/document[@id=1047]/story[@location=first]/character[0] to /document[@id=1047]/story[@location=first]/character[9])/text[@location=first]")
jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).texts.firstItem().constructor.name
Text
jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).texts.firstItem().contents.toSource()
["This is a "]
... View more
‎Mar 06, 2020
02:05 PM
I've been trying to figure out how to return a text object from a range of characters. See the attached INDD file for a very simple example which has one text frame with the following text: This is a test file.
Τηισ ισ α τεστ φιλε. I want to return the first ten characters in a Text object. Right now, I'm unable to coax the range of characters in a text object. All I'm able to get is an array from contents. Output is from my extendscript-repl project. jsx> app.activeDocument.stories.firstItem().constructor.name
Story
jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).constructor.name
Character
jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).contents.constructor.name
Array
jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).contents.toSource()
["This is a "] I'd love to be able to do something like the following (or similar). I just can't seem to understand why I can't easily get a Text object with a character index range. jsx> app.activeDocument.stories.firstItem().characters.itemByRange(0,9).texts.firstItem().contents
"This is a " Any ideas on how to do that easily would most appreciated. Thanks! My environment: Adobe InDesign 2020 v15.0.1 Mac OS X 10.14.6
... View more
‎Feb 28, 2020
07:51 AM
Not sure if this is of use to others but I didn't see anything like this elsewhere. It's not perfect as it uses Apple's Javascript for Automation as the go between. It uses InDesign by default but could handle other applications if they support something like the doScript method. https://github.com/theasci/extendscript-repl Anyone know if it's possible to tap into the the mechanism that ExtendScript Debugger uses to communicate with a target application?
... View more
‎Aug 19, 2019
06:02 AM
The only thing that sort of helps is not accessing the network shares over SMB protocol. We've switched to AFP and that seems to help, although, isn't a silver bullet.
... View more
‎Jul 26, 2019
11:59 AM
That's good to hear. This article communicates the expectation that developers will need to move from CEP to UXP at some point. https://medium.com/adobetech/xd-and-creative-cloud-extensibility-faq-e615dd6ecbfe
... View more
‎Jul 24, 2019
05:54 AM
Does Window > Text Wrap show you what you want?
... View more
‎Jul 23, 2019
01:18 PM
Checkout samples at GitHub - Adobe-CEP/CEP-Resources: Tools and documentation for building Creative Cloud app extensions with CEP
... View more
‎Jul 23, 2019
01:16 PM
Can you post your whole manifest file? There is another ExtensionManifest@Version attribute that needs to match the RequiredRuntime version. See this example: https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_8.x/Samples/CEP_HTML_Test_Extension-8.0/CSXS/manifest.xml
... View more
‎Jul 23, 2019
01:07 PM
You'll need InDesign and a text editor. If you want to access npm package, you'll want to get node.js. I use this to log both the client (CEP panel) and host (ExtendScript) shims. Checkout this https://github.com/theasci/cep-bootstrap project for an example on how to use all those things in addition to @Trevor's cool JSX.js library.
... View more
‎Jul 23, 2019
12:59 PM
1 Upvote
I just recently published a bootstrap repository that details how the client and host interactions work and provides a working example. This project works with both CSInterface and JSX.js. ​Checkout the READMEs for more details. https://github.com/theasci/cep-bootstrap
... View more
‎Nov 29, 2018
09:10 AM
2 Upvotes
We have the same problem with about 25 macs running HighSierra, Adobe InDesign 2018 (13.1), and accessing a Samba share on a Synology RackStation device. The read-only files get into a state where subsequent opens will create a *.idlk file but then it's immediately deleted and then it shows read-only. Copying this file to a new file in the same directory or the local hard drive allows the copied file to opened and edited properly. So, this seems to be problem with the original file and it's *.idlk creation. Things I've considered: * Permissions, which look fine. RackStation doesn't have anything other than Read/Write (no delete) privs. We are authenticating through LDAP but have been doing that since the beginning. This is a fairly recent (6 month) issue. * Finder view options, which can't be reproduced. We've even tried using Commander One to avoid Finder prefs that might be causing locking the files. * Multiple accesses, sometimes it's the same person accessing the file on the same machine so another user isn't using it. * Network connectivity corrupting files. Gigabit ethernet for all wired users. Likely not the issue due to the occurrence frequency and lack of changes to the network. * InDesign internals. We don't have any problems with PhotoShop files hosted next to the InDesign files. I'm thinking it's this but since InDesign isn't supported on networked drives, I may just be out of luck. Current workaround is to save a copy, delete the read only and then move the copy back. Annoying, but truly painful when users don't notice it's not saving and loose work.
... View more